Jump to content

MAL

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by MAL

  1. Thank you all! I was considering the 320 files total in any folder. Not per directory. I will try this out. We haven't had any issues with the read or writes. just eventual corruption. if it can't handle that many then it would make sense that corruption can occur.
  2. I have multiple v700s that are storing trend data. Over time (months to a year) the files are corrupting. I have seen them corrupt in multiple locations on the SD but generally in the trend data. I have a max of 250 trends that are stored. When it reaches 250 files it resets to 1. Is there a limit to the number of files the PLC can manage or is it most likely the re-writes? I am not sure what the actual limits of the PLC are. From experience there are odd little facts that are not covered in the manuals.
  3. Everything turned out great! Sorry for the late response. I was able to get it working but only if I saved the buffer to MI's. From there I used a struct to turn the buffer into a more usable object.
  4. Hey all, I am able to send data to my machine via a simulated RS232 data stream. I can successfully use the COPY BUFFER FB to a MI vector but any other operand is failing. Ideally I would like to write my buffer to a set of MLs. The below logic works on any MI. Anything else and it will not copy over. I can still see the data coming into the PLC (V700) in info mode (Serial>Monitor). Is this a known issue where we have to use MI or is there a trick?
  5. After spending a few hours looking for this information I figure I might not be the only one wishing more information was out there. # Simple code to read the first 100 MI from pyModbusTCP.client import ModbusClient from pyModbusTCP import utils def read_registers(): host_ip = 'x.x.x.x' # Change to your device IP port_number = 502 # Change to your device Port c = ModbusClient( host=host_ip, port=port_number, unit_id=1, auto_open=True, timeout='2' # Increase timeout if needed ) register = 0x0000 # Change acording to the list below the code block data = c.read_holding_registers(register,100) # change 100 to how ever many registers you wish to read print(data) read_registers() # Coils #------------------------ # 0x0000 mb # 0x3000 xb # 0x4000 o # 0x5000 sb # 0x6000 i # 0x7000 t # 0x8000 c # Registers ( any long or double word uses 2 registers when pulling data ) #------------------------ # 0x0000 mi # 0x3000 xi # 0x9000 si # 0x5000 xl # 0x6000 xdw # 0x7000 ml # 0xA000 sl # 0x8000 mdw # 0xB000 sdw # 0xC000 timer preset # 0xD000 timer current # 0x4000 mf Additional information on Long and Double words: The first register is 0 through its bit register (ML is 65,536). Any number after this is returned to 0 and incrementing the second register by 1. Example1: 70,000 = 4,464 + (1 = 65,536 * 1) Example2: 170,000 = 38,928 + (2 = 65,536 * 2 = 131,072 + 38,928 = 170,000)
  6. Oh boy, It did a thing.
  7. That is dead code. That rung is only applicable to the v700. Its essentially a comment for this use.
  8. Are the addresses in the config FB not for scan support? I will try adding it and see what happens. This is a one way data push. Currently there is no need for scanning inbound data.
  9. Unfortunately this did not correct the problem. Though still kicking myself for not calling the sub. I am getting a status of -1. I am looking through the documentation and am not seeing this as an option.
  10. Socket three is the only TCP one available to us. 1 and 2 are both used by other components. I am able to connect with the PLC through visilogic. they are both on the same subnet. This is the only place in the program that this is used. Everything else is modbus. Unfortunately I can not post everything but here is the logic used to set it up. I am not able to change this much without a lot of red tape to go through. The same logic and settings work on the V700. I am aware they are different. To clarify we have the snap in communications V200-19-ET2 module.
  11. I currently have a V700 with a subroutine that works great and is able to communicate with a server I wrote to emulate my label printer. As soon as I ported the logic to the V1210 I am not able to connect with it. The Ethernet card exists (SB141), Card is initialized (SB142)socket is initializing (SB146), but the socket refuses to connect. I am also able to see the port open and listening on my side. I am currently using Socket 3 as it is the only socket that is open to use TCP. I am not sure what else to do here to identify the issue preventing a connection.
  12. Than you Ausman, I will check my installation. Unfortunately I do not have an option of running an older version. My company picked the latest and if anyone uses a different version we seem to have issues with projects on their end.
  13. Currently I am experiencing two things: I am currently trying to find a better way to quickly review my teams logic. Using STL view is somewhat difficult as any time I try to export the Net with 'E' the program crashes. I am also unable to used F9 to start 'Online Test' - Quickly corrected noticing my function key was locked. Is there some secrete reference document for Unitronics / Visilogic STL? Any information would be extremely helpful! Error when I attempt to export to excel with 'E'.
×
×
  • Create New...