
WPMZ Series Modbus communication instruction manual
IM-0862-02
Number of pages:109
22
4-1-2.
Change control parameters
The simulation input / output control of the module is as follows.
1.
Control parameter change communication
This example shows simulated output of the comparison output AL1.
Since the simulation output instruction of the comparison output AL1 is defined in the holding register,
10H (hold register consecutive writing) is used as the function code.
Comparative output AL1 simulated output (address: 03 E8H)
First, send a message from the master to the slave (module).
Data write AL1 simulation output instruction: valid (0001H), indicated value: ON (0001H).
Since the number of words to be written is 2, the number of bytes to be written is 4.
Table 4.4 Comparative output AL1 simulated output [Send]
n a me
Tran smi tte d
da ta
S l a v e ID
0 1 H
Fu n c ti on c o de
1 0 H
S t a r t a d d r e s s
U p p e r
0 3 H
Lo w e r
E8 H
Th e n u mbe r o f da ta
U p p e r
0 0 H
Lo w e r
0 2 H
Nu m be r of byte s
0 4 H
Da ta o f th e fi r s t
wor d
U p p e r
0 0 H
Lo w e r
0 1 H
Da ta o f th e se c on d
wor d
U p p e r
0 0 H
Lo w e r
0 1 H
E r r o r c h e c k
( C R C - 1 6 )
Lo w e r
7 8 H
U p p e r
B1 H
Then the slave (module) will respond to the master.
Table 4.5 Comparative output AL1 simulated output [Receive]
n a me
Re c e i ve d
da ta
S l a v e ID
0 1 H
Fu n c ti on c o de
1 0 H
A dd re s s
U p p e r
0 3 H
Lo w e r
E8 H
Th e n u mbe r o f da ta
U p p e r
0 0 H
Lo w e r
0 2 H
E r r o r c h e c k
( C R C - 1 6 )
Lo w e r
C1 H
U p p e r
B8 H