Author Topic: wirte IO command  (Read 13427 times)

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
wirte IO command
« on: May 19, 2011, 02:34:39 AM »
Hi I am using the t100md 888 plc for my project
if I issue the wirteIO or readIO command from VB,eg

@01WO00100*+chr(13)

or

@01WI0002*+chr(13)

will the output LATCHED itself?
will the input LATCHED itself?

Thanks

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:wirte IO command
« Reply #1 on: May 19, 2011, 09:49:10 AM »
If you are using Visual basic it is best to compute the FCS (frame check sequence) and attached before the "*". Otherwise the PLC will reject the command string without a FCS.

If the PLC is in Auto protocol mode (default) you can also substitute the FCS with just "00*" which the PLC will take a a "wildcard" and accept it.

When you execute WO correctly, and if the output is NOT controlled by the ladder program then it will latch. To verify this, first transfer a blank program to the PLC and you will then be able to send WO command. The easiest way to test the command is to use TLServer's "Command String" text box.

When you write to a physical input it will never latch because the PLC will overwrite any changes to its input register as soon as it performs the next I/O scan (which happen after every ladder logic program scan). However, it is possible to make it change for 1 scan time which may be enough to trigger an action in the PLC.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
Re:wirte IO command
« Reply #2 on: May 20, 2011, 12:26:45 AM »
thank you very much for your advise
appreciated