User`s guide

199
CHAPTER 8 - CFW-08 OPTIONS AND ACCESSORIES
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 the8 first bitsbystartingfrom the initialaddress
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 (bit100 =
1), general enabling (bit 101 = 1) and CWW-direction of
rotation (bit 102 = 0), for a CFW-08 at address 1:
Query (Master)
Field
Value
Slaveaddress
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
Slaveaddress
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
8.25.3.6
Function 16 -
WriteMultiple
Registers
This function allows writingvaluesto a register group thatmust
be in numerical sequence. This function can also be used to
write a single register (the values are always hexadecimal
values and each field represents one byte).
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 otherbits of this byte remained with the value
0 (zero).
Query (Master)
Slaveaddress
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)
Slaveaddress
Function
Initial bit address (byte high)
Initial bit address (byte low)
Number of bits (byte high)
Number of bits (byte low)
CRC-
CRC+
Table 8.25 -
Function 15 structure
Table 8.26
- Message example using function 15