986
Serial Communications Instructions
Section 3-24
The following diagram shows the order in which data is sent and the contents
of the send frame for various start and end code settings.
Flags
1
3
5
2
4
6
CR
LF
CR+LF End Code
Only End Code
Data
Data
Data
Data
Data
Data
N bytes of data is sent in the following order when
sending the most significant bytes first is specified:
1, 2, 3, 4, 5, 6
No Start or End Code
N send bytes: 256 max.
Only Start Code
Send bytes after ST:
256 max.
Send bytes before ED:
256 max.
Start and End Code
Send bytes between
ST and ED: 256 max.
Send bytes before
CR+LF: 256 max.
Send bytes between ST
and CR+LF: 256 max.
Start and CR+LF End Code
RS-232C port on CPU Unit
Data sent.
Name
Label
Operation
Error Flag
ER
ON if the CPU Unit’s RS-232C port is specified as the
send port, but no-protocol mode is not set in the PLC
Setup.
ON if one of the Serial Communication Board’s serial
ports is specified as the send port, but no-protocol mode
is not set in the port’s allocated DM Setup Area.
ON if the value of C is not within range.
ON if the value for N is not between 0000 and 0100 hex.
ON if a send is attempted when the Send Ready Flag is
OFF. (The Send Ready Flag is A39205 for the CPU Unit’s
RS-232C port, A35605 for Serial Communications Board
port 1, or A35613 for Serial Communications Board port
2.)
ON (ER Flag in interrupt tasks) if a TXD(236) or
RXD(235) instruction is being executed for the Serial
Communications Board in the cyclic task, the cyclic task
is interrupted, and another TXD(236) or RXD(235)
instruction is executed for the Serial Communications
Board in the interrupt task. (See note.)
Note
The Error (ER) Flag will turn ON immediately after
another TXD(236) or RXD(235) instruction in the
interrupt task.
OFF in all other cases.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...