Panasonic FPS Series User Manual page 235

Table of Contents

Advertisement

Communication
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
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.
DT200_awReceiveBuffer
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
218
Offset 7
16#30
16#30
(0)
(0)
#1: DT1
awReceivedData
C
" (OO = error code,
R
Offset 6
Offset 5
16#38
16#43
16#30
(8)
(C)
(0)
F72_AHEX (ASCII → HEX)
Offset 1
Offset 0
16#00
16#C8
16#00
(200)
(100)
#1: DT1
#1: DT0
FPΣ User's Manual
Offset 4
16#30
16#34
16#36
(0)
(4)
(6)
#1: DT0
16#64
= BCC).

Advertisement

Table of Contents
loading

Table of Contents