324
CHAPTER 8 - CFW-09 OPTIONS AND ACCESSORIES
Query (Master)
Slave address
Function
Initial bit address (byte high)
Initial bit address (byte low)
Number of bits (byte high)
Number of bits (byte low)
Byte Count Field (number of data bytes)
Byte 1
Byte 2
Byte 3
etc to
CRC-
CRC+
Response (Slave)
Slave address
Function
Initial bit address (byte high)
Initial bit address (byte low)
Number of bits (byte high)
Number of bits (byte low)
CRC-
CRC+
-
-
-
-
-
The value of each bit that is being sent is placed at a position of the data
bytes sent by the master. The first byte, in the bits 0 to 7, receives the 8
first bits by starting from the initial address indicated by the master. The
other bytes (if the number of inscribed bits is higher than 8) remain in
sequence. If the number of inscribed bits is not a multiple of 8, the remaining
bits of the last byte should be filled in with 0 (zero).
Example: command writing for general enabling (bit 100 = 1), general
enabling (bit 101 = 1) and CWW-direction of rotation (bit 102 = 0), for
a CFW-09 at address 1:
Query (Master)
Field
Value
Slave address
01h
Function
0Fh
Initial bit (byte high)
00h
Initial bit (byte low)
64h
Number of bits (byte high)
00h
Number of bits (byte low)
03h
Byte Count
01h
Bits Value
03h
CRC-
BEh
CRC+
9Eh
Response (Slave)
Field
Value
Slave address
01h
Function
0Fh
Initial bit (byte high)
00h
Initial bit (byte low)
64h
Number of bits (byte high)
00h
Number of bits (byte low)
03h
CRC-
54h
CRC+
15h
-
-
-
-
As only three bits are written, the master needed only one byte to transmit
the data. The transmitted values are in the three less significant bits of the
byte that contains the value for the bits. The other bits of this byte remained
with the value 0 (zero).
8.14.3.5
Function 15 - Write
Multiple Coils
This function allows writing values for a bit group that must be in numerical
sequence. This function can be also used to write a single bit (the values
are always hexadecimal, and each field represents one byte).