Jump to content

Flex727

MVP 2023
  • Posts

    3,263
  • Joined

  • Last visited

  • Days Won

    237

Everything posted by Flex727

  1. His other post has the program file posted, which is why I left it up. There is no initialization of any socket, so using port 20000 will go to socket 0 which is using UDP protocol. Socket 1 defaults to port 20256 and TCP protocol (and server), which is what should be used for PC-PLC communications. The PC (VisiLogic) should be set to client, as you correctly point out.
  2. Looking at your attached program, you do not initialize a socket. The default for Socket 0 is Port 20000 and UDP protocol. You cannot use UDP protocol for PC-PLC communications. The default for Socket 1 is port 20256 and TCP protocol. Use that. Read the VisiLogic Help file on Ethernet.
  3. With proper preparation of the images, it's likely that list of images by pointer will accomplish what you want.
  4. Why did you select port 20000? Typically for connection between PC & PLC, port 20256 & TCP protocol is used. The default for Socket 0 is UDP. Socket 1 defaults to TCP & port 20256 for PC-PLC communications. You do not need to initialize a socket for that to occur (but it doesn't hurt if you do it correctly). Just be sure your VisiLogic communication settings have the correct PLC Name, IP address, and port 20256. Also, make sure your PC is on the same subnet and it's smart to use a crossover cable if the connection doesn't go through a hub or switch (I've heard varying reports about the necessity of this). It's useful to read the help entry in VisiLogic for Ethernet.
  5. I assume you mean displaying the content of a data table. There is no direct way that I know of in VisiLogic. What I do is use the Data Table Copy Row to Vector to copy the data into a vector of MIs. Then you can display as string variable. For mixed data, you can use the Data Table Read Row to place the data where you want it for display on the HMI. There are other Data Table Read commands you can use depending on what you're trying to display. It sure would be nice to have that function from UniLogic, but I will say that the output formatting options are too limited.
  6. 1 - The Start-Up Display will load automatically upon boot up. You can then load any other display you wish at any time via ladder or via the Link & Jumps tab on the display using screen buttons, timers, or any other logic you wish. 2 - This is from the Help file. It's an excellent resource.
  7. It's still not clear to me how you KNOW how many mA are being fed to the PLC. You said "on my calibrator, not in the PLC". If so, why are you troubleshooting the PLC?
  8. Depending on how you have set up the HW Configuration, you should see a value from 819-4095 or 3277-16383 for the input range 4-20mA. You can then linearize that number from 4-20mA or 0-100% or whatever you need.
  9. How are you measuring this? If you're reading this on the PLC then post the software you have running in the Samba.
  10. Have you confirmed your wiring matches the Unitronics Installation Manual?
  11. Oops, sorry, that's for analog INPUTS, not outputs. The analog outputs for that module are 12-bit.
  12. No, if you are outputting 4-20mA, then your MI would need to have a value of 819 to output 4mA. This assumes you have it set to "Fast Mode", which is 12-bit.
  13. I'm pretty sure memory must be allocated during compile. @GonzaloRoldan_, why do you need to do this? You have only a finite amount of memory available. Just define your array or table to the maximum size you think you might need and work with that.
  14. I don't know what that specific error is, but I would re-install making sure to install "As Administrator" (that means right-clicking on the install file and selecting "Run as administrator").
  15. All electronic equipment is subject to the vagaries of power supply and ambient electrical noise - sad fact of our lives. Still better than working in retail.
  16. I've seen a power glitch (or surge) change timers before. Not sure how to prevent it other than make sure the power source is as clean as possible.
  17. And you're definitely using a 6-wire cable? I think it needs to be a crossover cable, not a straight-through cable (not sure about that though).
  18. Also, this isn't clear to me, are you using the programming cable supplied by Unitronics?
  19. Do we know if that USB-to-Serial adapter is compatible with the M91? I have no experience with that adapter.
  20. I agree with Ausman - this is all very confusing. With the exception of the Standard Vision, V120, an MI will not hold a number large enough to drive the output to the maximum frequency in the spec.
×
×
  • Create New...