4-4
Section
SRM1(-V2) Communications Functions
273
2. Use the RXD(47) instruction to receive the data.
(@)RXD(47)
D
C
N
D: Leading word no. for storing reception data
C: Control data
Bits 00 to 03
0: Leftmost bytes first
1: Rightmost bytes first
Bits 12 to 15
0: RS-232C port
1: Peripheral port
N: Number of bytes stored (4 digits BCD), 0000 to 0256
3. The results of reading the data received will be stored in the AR area. Check
to see that the operation was successfully completed. The contents of these
bits will be reset each time RXD(47) is executed.
RS-232C
port
Peripheral
port
Error
AR 0800 to
AR 0803
AR 0808 to
AR 0811
RS-232C port error code (1 digit BCD) 0: Normal
completion 1: Parity error 2: Framing error 3: Over-
run error
AR 0804
AR0812
Communications error
AR 0807
AR0815
Reception Overrun Flag (After reception was com-
pleted, the subsequent data was received before the
data was read by means of the RXD(47) instruction.)
AR 09
AR10
Number of bytes received
To reset the RS-232C port (i.e., to restore the initial status), turn ON SR 25209.
To reset the peripheral port, turn ON SR 25208. These bits will turn OFF auto-
matically after the reset.
The start code and end code are not included in AR 09 or AR 10 (number of bytes
received).
The data will be as follows: “31323132313231323132CR LF”
When the peripheral port is used to conduct no-protocol communications, the
following settings must be made from the Programming Device to DM 6650 to
DM 6653 in the SRM1(-V2).
Word
Bit
Function
Setting
Peripheral Port Settings
The following settings are effective after transfer to the PC.
DM 6650
00 to 03
Port settings
0: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)
1: Settings in DM 6651
(Other settings will cause a non-fatal error, the default setting (0) will be used, and
AR 1302 will turn ON.)
As re-
quired
04 to 07
Not used.
0
08 to 11
Not used.
0
12 to 15
Communications mode
0: Host Link; 1: No-protocol
(Other settings will cause a non-fatal error, the default setting (0) will be used, and
AR 1302 will turn ON.)
1: No-pro-
tocol
Peripheral Port Settings