B&B Electronics ADAM-6066 - Manual User Manual
Page 132
ADAM-6000 Series User Manual
122
Function Code 08
Echoes received query message. Message can be any length up to half the
length of the data buffer minus 8 bytes.
Request message format for function code 08:
Example: 01 08 00 02 00 04
Response message format for function code 08:
Example: 01 08 00 02 00 04
Function Code 15 (0F hex)
Forces each coil in a sequence of coils to either ON or OFF. Request mes-
sage format for function code 15:
Example: Request to force a series of 10 coils starting at address 00017
(11 hex) in ADAM-6000 module.
01 0F 00 11 00 0A 02 CD 01 The query data contents are two bytes: CD
01 hex, equal to 1100 1101 0000 0001 binary. The binary bits are mapped
to the addresses in the following way.
Bit: 1 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1
Address (000XX): 24 23 22 21 20 19 18 17-- -- - - 26 25
Command Body
Station
Address
Function
Code
Any data, length limited to approximately half the
length of the data buffer
Command Body
Station
Address
Function
Code
Data bytes recieved
Command Body
Station
Address
Function
Code
Start
Address
High
Byte
Start
Address
Low
Byte
Requested
Number of
Coil High
Byte
Requested
Number of
Coil Low
Byte
Byte
Count
Force
Data
High
Byte
Force
Data
Low
Byte