Chapter 8. Communication Function
8-75
z Result: The Coil 00173 turns ON. (In case of GM7U main unit, 1 is saved on the related M area.)
Coil
00173
Status 1
z It assumes that GM7U main unit is the master and it writes on 1 word at Holding Register of the station no.
17, a Modicon product.
z An example of writing 3 on Holding Register 4002 of the station no. 17.
Function block input Input value
REQ Enter the input condition to operate
CH 16#1 or 1 Set channel (0, 1)
SLV_ADDR 16#11 or 17 Slave station
FUNC 16#06 or 6 Enter ‘6’ as writes 1 word on the Holding Register.
ADDR 16#0001 or 1
Set the starting address to write on the slave station
- Write on no. 1 to write on, starting from the Holding Register
40002 in accordance with the previous no. 8) “Modbus
addressing rules.” And the highest data of the data address
doesn’t need to be input. Because it’s automatically processed by
the input value of the input FUNC of the function block.
NUM 16#03 or 3
Set the number of data to write on the slave station..
- As the example writes 3, of which hex is 16#0003. So input
16#03 for NUM
z Result: The Holding Register 40002 is saved on 16#0003. (In case of GM7U main unit, 16#0003 is saved on
a related M area.)
Holding Register
40002
Register status 16#0003