72
9
RS-485 INTERFACE
72
R
S-4
85
IN
TE
R
FA
C
E
Chapter
9
15 (0x0F) Write multiple coils
On slave coils, data is changed by the specified number of coils from the specified address.
If broadcast (0) is specified, all slave coils of the same address are rewritten.
To request, specify the coil address and the number of bytes and output value to change.
* N = Number of coils/8 or N = N + 1 if indivisible
Example) Switch the digital zero (address 00005) to accumulation clear (address 00009)
ON/OFF.
Keep in mind that the relative address for writing in digital zero is 0x04.
The example shows rewriting of the F701-P ON (1)/OFF (0) as follows:
Fill unused bits with "0".
* To judge coil execution, judge as complete with a normal response.
* Due to the nature of the commands, simultaneous execution in combination with the
following addresses should be avoided.
In this case, sequential execution results but correct operation may not be performed.
- Addresses 00001 and 00002
- Addresses from 00003 to 00006
- Addresses 00007 and 00008
- Addresses 00013 and 00014
[Request]
Function
1
byte
0x0F
Start address
2
byte
s
0x0000 - 0xFFFF
Number of coils
2
byte
s
0x0001 - 0x07B0
Number of bytes
1
byte
N *
Change data
N×2
byte
s
[Response]
Function
1
byte
0x0F
Start address
2
byte
s
0x0000 - 0xFFFF
Number of coils
2
byte
s
0x0001 - 0x07B0
[Error response]
Error code
1
byte
0x8F (fu 0x80)
Exception code
1
byte
01 or 02 or 03
[Request]
Function
0F
[Response]
Function
0F
Start address; higher
00
Start address; higher
00
Start address; lower
04
Start address; lower
04
Number of coils; higher
00
Number of coils; higher
00
Number of coils; lower
05
Number of coils; lower
05
Number of data bytes
01
(Digital zero - Accumulation clear)
10
Coil
00012
00011
00010
Accumu-
lation
clear
Hold
OFF
Hold
ON
Digital
zero
reset
Digital
zero
Bit
0
0
0
1
0
0
0
0
0x10
Содержание F701-P
Страница 1: ...01AUG2020REV 1 07 WEIGHING INDICATOR F701 P OPERATION MANUAL...
Страница 11: ...Contents X Contents X M E M O...
Страница 116: ......