
8–4
Communicating with a PLC-5
R
over an RS-232 or RS-422 Link
Publication 2755-6.8
•
Configure Channel 0 in the User Mode Channel 0 Configuration
screen.
Note: Termination 2 is set for
\0xa
or Line Feed
[LF]
, and
Termination 1 is set for
\0xd
or Carriage Return
[CR]
. These
terminators, along with the
ARL
instruction in the PLC-5, allow the
User port to read in one message at a time with
[CR][LF]
terminators.
The sample ladder logic below instructs the PLC-5 to:
•
Read one string of ASCII data terminated with a
[CR][LF]
.
Refer to your PLC-5 user manual for detailed information on using
the PLC-5 programming software including the ASCII instructions.
PLC-5 Ladder Logic
Program