![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414279.webp)
4-3
Section
CPM2A/CPM2C Communications Functions
259
No-protocol Data Reception
RXD(47) is used to receive data from RS-232C devices.
D: Leading address for storing reception data
C: Control data
N: Number of bytes to receive (BCD: 0001 to 0256)
Storage order
0: Leftmost bytes first 1: Rightmost bytes first
Communications port
0: RS-232C port 1: Peripheral port
(@)RXD(47)
S
C
N
The following program example is for no-protocol communications conducted
through a RS-232C port using TXD(48) and RXD(47) instructions.
If AR 0805 (the RS-232C Transmit Ready Flag) is ON when 00100 turns ON,
then data from DM 0100 to DM 0104 is transmitted from leftmost bytes to right-
most bytes. When AR 0806 (the Reception Completed Flag) turns ON, 256 by-
tes of received data are read and written to DM 0200 from leftmost bytes to right-
most bytes.
First word holding send data.
Transmit 10 bytes.
Use the RS-232C port; transmit
data from leftmost bytes to right-
most bytes.
No-protocol communications start
00100
AR 0806
AR 0805
DIFU(13)
00101
@TXD(48)
DM 0100
00101
#0000
#0010
RXD(47)
DM 0200
#0000
#0256
First word to store received data.
Receive 256 bytes.
Use the RS-232C port; store trans-
mitted data from leftmost bytes to
rightmost bytes.