Author Topic: T28H Real Time Processing  (Read 12360 times)

dennisn

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
T28H Real Time Processing
« on: November 06, 2002, 05:57:01 AM »
Hi All,

I have acquired a T28H relay controller to be used as a real-time interface between an application running on a PC and various hardware devices. My goal is to send a signal out the PC's serial port and have the T28H respond to the signal and turn on a light. I'd then send another signal to turn the light off. The PC and T28H would be connected via a serial cable.

My questions are these...
Can the T28H accomplish this?
If so, what is the most efficient method of accomplishing this?

Thanking you all in advance,
 
Dennis
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re: T28H Real Time Processing
« Reply #1 on: November 15, 2002, 08:25:40 AM »
You can easily accomplish this using the H-series HostLink command protocols published in the H-series User's Manual. Basically, to turn on output, send the following ASCII string to T28H-Relay:

    @01WO00nnxx*

I assume the PLC's ID is 01 and the WO command means "Write Output". 00 is channel number for output 1 to 8. nn is the hexadecimal representation of the 8 bits that is to be output 1-8. Eg. to turn on output 1,3,5,7 nn = 55 (hex).  

xx is the FCS that need to be computed. However, you can also use wildcard FCS = 00 in place of it.

You can find Visual Basic sample at our website:

http://www.tri-plc.com/ioboard.htm


Note: For quicker response regarding questions related to Triangle PLCs at the "Technical Support" forum.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

dennisn

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
Re: T28H Real Time Processing
« Reply #2 on: November 15, 2002, 09:05:42 AM »
Support:

Thank you for your response.

You are right. We easily figured out how to make it work. And, by the way, it works great.

Thanks again.

Dennis
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »