
WPMZ Series Modbus communication instruction manual
IM-0862-02
Number of pages:109
24
2.
Setting value write communication
An example of changing "pulse input A pattern 1 input type" is shown below.
The function code is 06H (1-word holding register hold) or 10H (hold register continuous write).
Pulse input A pattern 1 In put type change (address: 0BC2H)
First, send a message from the master to the slave (module).
Below is an example of setting logic (0001H) for pulse input A pattern 1 input type.
Since the number of write words is 1, the write byte count is 2.
Table 4.8 Pulse input A pattern 1 input type write [transmit]
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 BH
Lo w e r
C2 H
Th e n u mbe r o f da ta
U p p e r
0 0 H
Lo w e r
0 1 H
Nu m be r of byte s
0 2 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
E r r o r c h e c k
( C R C - 1 6 )
Lo w e r
CD H
U p p e r
B2 H
Then the slave (module) will respond to the master.
If you specify a value outside the range or there is an error in the address, it will be an error
response here, so you will need to redo the setting permission communication again.
Table 4.9 Pulse input A pattern 1 input type write [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 d d r e s s
U p p e r
0 BH
Lo w e r
C2 H
Th e n u mbe r o f da ta
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
A 2 H
U p p e r
1 1 H