General > General Discussions

T28H Real Time Processing

(1/1)

dennisn:
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

support:
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.

dennisn:
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

Navigation

[0] Message Index

Go to full version