
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
5-17
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
(3) When a RXD instruction with end delimiter ETX (03h) and one-byte BCC is executed
Constant for Verification
Constants excluding start and end delimiters can be configured in the receive format to verify the incoming data with the
constants, which are either characters or hexadecimal values. As many constants can be configured for the verification as required.
The verification result is stored in the receive status of the RXD instruction.
Example: Programming Constant for Verification
The following example shows the advantage of using constant for verification. The incoming data contains a constant value “1” in
the middle, and that constant value needs to be verified to see whether the incoming data is valid.
•
Using Data Register
The incoming data including the constant value needs to be stored in data registers. When the RXD instruction completes receiving
the incoming data, the receive status contains 64, meaning the RXD instruction has completed without errors, even if the constant
value is not an expected value. Extra ladder programming is needed to see whether the constant value in the incoming data is
correct or not.
•
Using Constant for Verification
A constant to verify the constant value in the incoming data is designated in the receive format. If the constant value is not an
expected value when the RXD instruction completes receiving the incoming data, the receive status contains 74, meaning the RXD
instruction has completed but user communication error code 5 occurred. No extra ladder programming is needed to see whether
the constant value in the received data is correct or not.
Note:
When configuring constants, which are either characters or hexadecimal values, in the receive format, and the incoming data does not match
the constants in the receive format, then a user communication error code is stored in the receive status. The error code contained in the receive
status depends on whether the constants are used as a start delimiter or as constants for verification. If used as a start delimiter, user
communication error code 7 is stored in the receive status, and the RXD instruction keeps waiting for valid incoming data. On the other hand, if used
as constants for verification, the receive status contains 74, and the RXD instruction finishes the execution. To repeat receiving incoming
communication, turn on the input for the RXD instruction.
****h
D100
When D100 is designated
ETX
(03h)
“1”
(31h)
End Delimiter
“2”
(32h)
BCC
Code
Incoming Data
****h
D100+n
****h
D101
The incoming data is divided, converted, and stored to data registers according to the receive format.
The end delimiter and BCC code are not stored to data registers.
After receiving the end delimiter, the FC6A Series MicroSmart receives only the one-byte BCC code.
as the first data register
End of receiving data
STX
(02h)
(3xh)
Start
Delimiter
(3xh)
“1“
(31h)
(3xh)
(3xh)
CR
(13h)
Stored to D1 through D5
End
Delimiter
STX
(02h)
(3xh)
Start
Delimiter
(3xh)
“1“
(31h)
(3xh)
(3xh)
CR
(13h)
Stored to D3 and D4
End
Delimiter
Constant
Stored to D1 and D2
Содержание 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...