FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
25-15
25: 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. Constants for the verification can be configured as many 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 do 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 SmartAxis 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 pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...