Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 526

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Communications Instructions
RS-232C Mode
Control Word
Flags
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...
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
Node
Header
number
code
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.
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.
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.
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.
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.
MSB LSB
S
1
S+1
3
S+2
5
S+3
7
X
.........
Data (122 ASCII characters max.)
Byte order
Not used. (Set to 00.)
Port
MSB LSB
S
1
S+1
3
S+2
5
S+3
7
Section
2
4
6
8
CR
FCS
Terminator
0: Most significant bytes first
1: Least significant bytes first
0: Specifies RS-232C port.
1: Specifies peripheral port.
2
4
6
8
7-30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents