
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
5-14
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Multi-byte Start Delimiter
A start delimiter can be programmed at the first bytes in the receive format of a RXD instruction; the FC6A Series MicroSmart will
recognize the beginning of valid communication, although a RXD instruction without a start delimiter can also be executed. A
maximum of 5 consecutive constants that are either character or hexadecimal from the first byte of the receive format are
considered a multi-byte start delimiter.
If a RXD instruction with a start delimiter is executed and another RXD instruction with the same start delimiter is executed, user
communication error code 5 is stored in the data register designated as the receive status of the second RXD instruction. When the
error occurs, the second RXD instruction is canceled, and the first RXD instruction executed is kept.
If a multi-byte start delimiter is assigned, and the incoming data does not match the entire multi-byte start delimiter, the FC6A
Series MicroSmart discards the incoming data and waits for the next communication.
When the first one byte is received, a timer is started to monitor the interval between incoming data even when a multi-byte start
delimiter is assigned. If data is not received in the period specified for the receive timeout value after receiving one byte of data, a
receive timeout error occurs, and user communication error code 11 is stored in the status data register.
Examples: Multi-byte Start Delimiter
Multi-byte start delimiter is determined in the structure of the Receive Format. The following examples show how multi-byte start
delimiter is determined.
•
Constants are followed by data register, skip, or BCC
Note:
Constants following data register, skip, or BCC are not considered start delimiter even if these are in the first five bytes of the receive format.
•
More than 5 constants are specified from the first byte
Note:
Constants that are neither start delimiters or end delimiters are considered constants for verification. See "Constant for Verification" on page
5-17.
Example: Start Delimiter Duplication Error
When input I0 is turned on, the first RXD instruction is executed and status code 32 is stored in the receive status D200, indicating
the RXD instruction is waiting for the incoming data. When input I1 is turned on, another RXD instruction is executed, but since
two RXD instructions have the same start delimiter, the second RXD instruction is not executed, and user communication error
code 5 is stored in the receive status D300.
Data Register, Skip, or BCC
Receive Format
Start Delimiter
Receive Format
Const
Start
Delimiter
DR
etc.
Const Const Const
Data Register, Skip, or BCC
DR
etc.
Start Delimiter
Receive Format
Const Const Const Const Const Const
S1
16
D1
M20
I0
SOTU
RXD
1
D2
D200
Communication port:
Port 1
Receive completion output:
M20
Receive status register:
D200
Receive data byte count:
D201
Receive Format S1
32
D200
OFF
M20
Const
(05h)
Start
Delimiter
DR
D210
Const
(05h)
S1
16
D1
M30
I1
SOTU
RXD
1
D2
D300
Communication port:
Port 1
Receive completion output:
M30
Receive status register:
D300
Receive data byte count:
D301
5
D300
OFF
M30
Receive Format S1
Const
(05h)
Start
Delimiter
DR
D310
Const
(0Ah)
Содержание MICROSmart FC6A-C16K1CE
Страница 1: ...B 1730 2 FC6A SERIES All in One Type Communication Manual...
Страница 60: ...3 COMMUNICATION SETTINGS 3 22 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 76: ...4 MAINTENANCE COMMUNICATION 4 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 126: ...5 USER COMMUNICATION INSTRUCTIONS 5 50 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 158: ...6 MODBUS COMMUNICATION 6 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 200: ...8 J1939 COMMUNICATION 8 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 218: ...10 SEND E MAIL FUNCTION 10 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 252: ...INDEX 4 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730 INDEX...