Author Topic: Host Link Commands clarification?  (Read 12581 times)

skj1402

  • Newbie
  • Posts: 28
  • The Innovator!
    • View Profile
Host Link Commands clarification?
« on: April 25, 2007, 04:28:30 AM »
My master T100 needs to control a number of contacts within my T100 slave unit and I understand that I would need to use the 'Write Relays' command to do this. Within this command is a Channel # identifer, each channel containing 8 bits (maybe you wouldn't mind providing an example showing how relays are addressed and then turned on and off by using this command?).

However, I also note that there is a 'Write Single I/O bit' command (Wb) contained in the E10 manual, that can write to an individual bit. This appears not to contain a channel # identifier; only a bit position identifier. Can I therefore assume that I can't use this command within a T100, and if I can, how would I address the channel #'s?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Host Link Commands clarification?
« Reply #1 on: April 25, 2007, 09:58:17 AM »
"Write Relay" command "WR" will write to the internal relay channels in the slave PLC. Each relay channel is 8 bit.

E.g. if you execute "@xxWR0055nn*'   where xx is the ID and nn is the FCS, what happens is that relay bit #1 to #8 will be turned ON alterately:

    RELAY  8 7 6 5 4 3 2 1
    binary 0 1 0 1 0 1 0 1   (HEX &H55)
   


If you execute "@xxWR01F0nn*'

    RELAY  16 15 14 13 12 11 10  9
    binary   1   1   1   1   0   0  0   0   (HEX &HF0)
   


Wb command is supported on M-series PLCs with firmware revision of r47 and above. You can view the command from the T100MD+ user manual:  

http://www.tri-plc.com/MD-man.pdf

Look for page 4-16.

« Last Edit: April 25, 2007, 12:03:35 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

skj1402

  • Newbie
  • Posts: 28
  • The Innovator!
    • View Profile
Re:Host Link Commands clarification?
« Reply #2 on: April 25, 2007, 11:35:41 AM »
Thanks for those very useful examples. All is now made clear (except you got the Hex value equivalents the wrong way round. :)

As for the Wb command, this unfortunately wasn't contained in the blue User Guide manual that I received with my T100's, so thanks also for refering me to the updated version on your site, which I've swiftly printed out!! ;D

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Host Link Commands clarification?
« Reply #3 on: April 25, 2007, 12:04:49 PM »
Thanks. Somehow when I cut and paste over I changed the wrong part :)  Have corrected it in the last post to avoid confusing other readers.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS