![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414526.webp)
7-30
Section
Communications Instructions
508
The specified number of bytes will be read from S through S+(N/2)–1, converted
to ASCII, and transmitted through the specified port. The bytes of source data
shown below will be transmitted in this order: 12345678...
MSB LSB
S
1
2
S+1
3
4
S+2
5
6
S+3
7
8
The following diagram shows the format for Host Link command (TXD) sent from
the CPM2A/CPM2C. The CPM2A/CPM2C automatically attaches the prefixes
and suffixes, such as the node number, header, and FCS.
@
E
X
.........
∗
CR
Header
code
Data (122 ASCII characters max.)
FCS
Node
number
Terminator
RS-232C Mode
N must be BCD from #0000 to #00256. The value of the control word determines
the port from which data will be output and the order in which data will be written
to memory.
Control Word
The value of the control word determines the port from which data will be read
and the order in which data will be written to memory.
Byte order
0: Most significant bytes first
1: Least significant bytes first
Not used. (Set to 00.)
Port
0: Specifies RS-232C port.
1: Specifies peripheral port.
Digit number:
3 2 1 0
The specified number of bytes will be read from S through S+(N
÷
2)–1 and trans-
mitted through the specified port.
MSB LSB
S
1
2
S+1
3
4
S+2
5
6
S+3
7
8
When digit 0 of C is 0, the bytes of source data shown above will be transmitted in
this order: 12345678...
When digit 0 of C is 1, the bytes of source data shown above will be transmitted in
this order: 21436587...
Note
When start and end codes are specified the total data length should be 256 bytes
max., including the start and end codes.
Flags
ER:
The settings in C are not correct.
N is greater than 256 for no-protocol mode or greater than 61 for Host
Link mode.