Jump to content

s.pratt

Members
  • Posts

    350
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by s.pratt

  1. Hello, The HSC is kept track of on the hwardware level. This is why you need to send a digital input signal to the PLC to reset the HSC. If you wish to reset it via the hardware, you must create an offset to create a "software" HSC count. Basically, you would set up the ladder as shown below, and use the "Software HSC" as the current count. Then compare this count with your target position. With the HSC functionality, you have the ability to run an interrupt routine upon the HSC count reaching the target position. I would run this ladder for the SW reset in teh interrupt routine, then add whatever your target position couont is to the target position being observed by the HSC configuration. This way, the interrupt routine will be able to be called continuously. Please review the help files for more information on interrupt routines with our controllers. Hope this helps.
  2. Hello, The e-mail addresses and phone numbers are linked as an ASCII string. So you may link this to a text box and enter this on the screen by a user. Hope this helps.
  3. Hello, Run-time errors are generally caused from Windows restricting our software from running properly. Please right click on the program icon, and in the properties, enable the program to run as an administrator. This will allow the software to run without restrictions or complications. Hope this helps.
  4. Hello, You must specify the folder path on the DOK. The exact folder paths for each folder directory are described on the help files in the "LF: SD File Functions" file. Hope this helps.
  5. This occurs with both analog inputs? The input impedance for these inputs is only 37 ohms, so there is not a problem with using the Banner device. (it supports this impedance) Are you testing with a blank application (only configuring the input)? Could you search your program to ensure you are not using the MI linked to the input elsewhere, or test with a 'blank ladder application'? Could you attach a wiring diagram of how the banner is connected to the PLC here for a better wiring analysis?
  6. Hello, Have you tested the current while the Banner output was connected to the controller's input? What does this read? What V120 specifically are you using? Please ensure there is continuity between the PLC's 0V reference and the Banner's 0V reference.
  7. Hello Dan, Please e-mail into support@unitronics.com for further assistance with this topic.
  8. Hello Michael, Was the location of the files from the "Recent Solutions" changed recently? For instance, let's say you opened your file (XXXX.ulpr) originally from the desktop. Then you moved this XXXX.ulpr file into your "Documents" folder on your PC. Now you try to open the file from the "Recent Solutions". Is this what you are referring to?
  9. Hello, Upon setting up a shaft encoder input, you will have a tag automatically created for you in the associated I/O struct. This is where your pulse reading will be held. For instance, if you are using a UID-0808THS module, your counter value will be in UID-0808THS_X.B1:Counter (for block 1 counter value). In the UID-0808THS_X struct, there are other values related to this block one input you may use, such as frequency and direction of the pulses. If you wish to move this to another tag, you may simply use a store block to do so. Hope this helps.
  10. Hello, I believe the problem is you are using a BETA CPU. I have seen this issue occur when an expansion module is connected straight to the CPU, such as you have shown in your configuration. Please ensure the CPU does not say BETA on the side of it.
  11. Hello, Is the expansion module attached straight to the CPU? Do you have a BETA CPU?
  12. Hello Dan, In order for a button to 'latch' a bit, you must do so with the method you described above: on the positive transition of the button push, set another bit in the ladder. Doing this directly from the button is not available as of now in the VisiLogic software, it is only available in the UniLogic software.
  13. Hello, Is it possible to use an ML? (Range of -2,147,483,648 to +2,147,483,647) Then you can use the INV(A+B/n) function block with MLs instead of MIs.
  14. Hello, I am unsure what you mean by "divide it into two MLs". Are you trying to build a larger integer out of two MLs? If so, it is not possible to create integers out of two other integers. The range for a DW is 0 to +4,294,967,295. The range for an ML is -2,147,483,648 to +2,147,483,647. The largest number the controller can handle in an integer is 4,294,967,295. Since you are working with pulses from a HSI, the pulses cannot be negative. So there shouldn't really be a need to use MLs for the HSI. Hope this helps.
  15. Hello, A DW and an ML are both 32-bit integers. The only difference is the DW is unsigned, and the ML is signed. Therefore, you can just store the DW straight into an ML, as long as the value in the DW is not too large (i.e. over +2,147,483,648).
  16. Hello, Is it possible to post you code, or send it into support@unitronics.com for review?
  17. Hello, For the inputs, you could collect the bit statuses into a user-defined struct, then pass the collection of this struct into the UDFB. For instance, I created a struct of 16 bits, then I created 3 tags using this struct as the "type of tag". This allowed me to pass 48 bits into the UDFB as a test. You could then collect the statuses of these bits at the end of the UDFB ladder into a number to use with Modbus, as you have mentioned. Please watch the following tutorial on structs for UniLogic. User-defined structs are covered about 5:30 into the tutorial: https://www.youtube.com/watch?v=98UuQXZC1as&list=PLFBq_OH6_be7snAZAycZzQMvAWjHkX9Pz&index=5 Let me know if this helps.
  18. Hello, The NUM to BIT function will take an integer and convert its binary representation in an array of bits. For instance, using a 4-bit integer as an example where the right most bit is "bit 0": 0 = 0000 1 = 0001 2 = 0010 3 = 0011 4 = 0100 etc..
  19. Hello, Would it be possible to collect your data into a struct, then pass the struct into the UDFB?
  20. Hello, What type of RJ11 to DB9 converter are you using? Are you able to get comms with other PLC units?
  21. Hello, We are not familiar with any bugs concerning the image library. Could you tell us what the error message is? The photo was not attached to your post.
  22. Hello, I apologize, I misspoke previously. You must use those dedicated port numbers for downloading and going online with the unit otherwise UniLogic will not recognize the device. My apologizes.
  23. Hello, You may change the port numbers to whatever you'd like in the UniStream. In your router, though, you need to set up the forwarding such that when a connection comes in for the external port number you set up, it knows to direct the connection to the IP address of the UniStream and the specific internal port number in the unit on the Local Area Network. So communication will come in for the WAN IP + External Port number, and the router will direct it to the LAN IP + Internal Port number. This is all set up in the router. Did you set up port forwarding for the VNC connection, or did that work without setting anything up in your router?
×
×
  • Create New...