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#64
16#00
16#C8
16#00
(200)
(100)
F72_AHEX (ASCII → HEX)
#1: DT1
#1: DT0
Offset 4
Offset 5
Offset 6
Offset 7
Offset 0
Offset 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
Summary of Contents for FPS Series
Page 7: ......
Page 17: ......
Page 18: ...Chapter 1 Safety Measures...
Page 21: ......
Page 22: ...Chapter 2 Overview...
Page 32: ...Chapter 3 CPU Types...
Page 47: ...CPU Types FP User s Manual 30 LD Body...
Page 51: ...CPU Types FP User s Manual 34 POU Header and LD Body...
Page 55: ...CPU Types FP User s Manual 38 LD Body...
Page 57: ......
Page 58: ...Chapter 4 Expansion...
Page 73: ......
Page 74: ...Chapter 5 I O Allocation...
Page 81: ......
Page 82: ...Chapter 6 Installation and Wiring...
Page 115: ......
Page 116: ...Chapter 7 High Speed Counter and Pulse Output...
Page 169: ......
Page 170: ...Chapter 8 Communication...
Page 227: ...Communication FP User s Manual 210 LD Body ST Body...
Page 233: ...Communication FP User s Manual 216 POU Header LD Body...
Page 236: ...FP User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2...
Page 237: ...Communication FP User s Manual 220 2 2 ST Body...
Page 266: ...Chapter 9 Security Functions...
Page 273: ......
Page 274: ...Chapter 10 Other Functions...
Page 277: ......
Page 278: ...Chapter 11 Troubleshooting...
Page 289: ......
Page 290: ...Chapter 12 Appendix...