
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
5-18
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Note:
Constants configured in the beginning of receive formats have different functions as shown below:
Skip
When “skip” is designated in the receive format, a specified quantity of digits in the incoming data are skipped and not stored to
data registers. A maximum of 99 digits (bytes) of characters can be skipped continuously.
Example:
When a RXD instruction with skip for 2 digits starting at the third byte is executed
Incoming Data
Receive Format
Const
(02h)
(xxh)
Start
Delimiter
(FFh) (xxh)
(0Dh)
Const
(05h)
DR
Const
(FFh)
DR
Const
(0Dh)
Incoming Data
Receive Format
Receive status:
Receive completion output:
7
0
•
Start delimiter of incoming data does not match the receive format
RXD instruction keeps waiting for valid incoming data,
and completes data receiving after receiving valid data
including a correct start delimiter.
(05h)
(xxh)
Constant for
Verification
(0Fh) (xxh)
(0Dh)
Const
(05h)
DR
Const
(FFh)
DR
Const
(0Dh)
Receive status:
Receive completion output:
74
1
•
Constant for verification of incoming data does not match the receive format
Receive status stores 74 (= 64 + 10)
RXD instruction completes data receiving. To repeat
receiving incoming communication, turn on the input for
the RXD instruction.
Receive Format
Constant for Verification
6th byte and after
Const
Receive Format
•
More than five constants are configured in the beginning of the receive format
Byte
1st
Const
2nd
Const
3rd
Const
4th
Const
5th
Const
6th
Const
200th
Start Delimiter
Up to 5th byte
Constant for Verification
Not consecutive in the first 5 bytes
Const
•
Other than constants (data register, skip, or BCC) are included in the first five bytes of the receive format
1st
DR
etc.
2nd
Const
3rd
Const
4th
Const
5th
6th
200th
Start Delimiter
Consecutive first 5 bytes only
Data register,
Byte
skip, or BCC
0035h
D102
“1”
(31h)
“2”
(32h)
Skipped
“3”
(33h)
“4”
(34h)
Incoming Data
0038h
D105
0036h
D103
“5”
(35h)
“6”
(36h)
“7”
(37h)
“8”
(38h)
0031h
D100
0032h
D101
0037h
D104
When D100 is designated
as the first data register