Internet PLC Forum

General => General Discussions => Topic started by: dennisn on November 06, 2002, 05:57:01 AM

Title: T28H Real Time Processing
Post by: dennisn 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
Title: Re: T28H Real Time Processing
Post by: support 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.
Title: Re: T28H Real Time Processing
Post by: dennisn 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