Example 3, Example 4, Writing data to a server example – Yokogawa Touch Screen GP20 User Manual
Page 326

4-6
IM 04L51B01-01EN
Example 3
Load the 16-bit signed integer values assigned to registers 30001 and 30002 of instrument
B to C001 and C002. Only the smallest register number need be specified in commands.
30001
16-bit signed integer
16-bit signed integer
30002
C001
C002
Register of instrument B
Communication channel data
Command setting
Setup Item
Value
Client command number
3
Command setting
Type
Read
Server
2
Data type
INT16
Register
30001
Channel type
Communication channel
First-CH
C001
Last-CH
C002
Example 4
Load the 32-bit floating point values assigned to registers 30005 and 30006 (little endian) of
instrument B to C004. Only the smallest register number need be specified in commands.
30005
Lower bytes
Higher bytes
30006
C004
32-bit floating point
Register of instrument B
Communication channel data
Command setting
Setup Item
Value
Client command number
4
Command setting
Type
Read
Server
2
Data type
FLOAT_L
Register
30005
Channel type
Communication channel
First-CH
C004
Last-CH
C004
Writing Data to a Server
Example
Write the measured value from channel 0001 to register 40001 of instrument A.
16-bit signed integer
I/O channel
Register of instrument A
0001
40001
Command setting
Setup Item
Value
Client command number
5
Command setting
Type
Write
Server
1
Data type
INT16
Register
40001
Channel type
I/O channel
First-CH
0001
Last-CH
0001
4.2 Using Modbus/TCP to Enable the GX/GP to Read Data from and Write Data to Other Devices (Modbus client function)