Communication
FPΣ User's Manual
218
Data conversion
Only if $1 (16#2431) is recognized in offset 2, the reception was error-free and the data will be
converted. If an error occurred, the response is "%01!OO
C
R
" (OO = error code, = BCC).
The data segment of the response is a string of 8 characters starting at offset 4 of the receive
buffer (DT200_awReceiveBuffer [4]). It is converted to hexadecimal data using F72_AHEX
and stored in offset 0 and offset 1 of the data area awReceivedData. F72_AHEX is the
hexadecimal ASCII to hexadecimal data conversion instruction.
16#36
(6)
16#34
(4)
16#30
(0)
16#30
(0)
16#30
(0)
16#30
(0)
16#43
(C)
16#38
(8)
16#6416#0016#C816#00
(200) (100)
F72_AHEX (ASCII → HEX)
#1: DT1 #1: DT0
Offset 4Offset 5Offset 6Offset 7
Offset 0Offset 1
#1: DT1 #1: DT0
DT200_awReceiveBuffer
awReceivedData
Conversion of the ASCII values from DT0 and DT1 of station number 1 into hexadecimal data
B. Writing data to remote FP Series PLC
In this example, the data stored in DT50 and DT51 are written into DT0 and DT1 of the
remote FP series PLC.
System register settings:
GVL