B&B Electronics ADAM-6066 - Manual User Manual
Page 236
![background image](/manuals/282605/236/background.png)
ADAM-6000 Series User Manual
226
Function Code 03/04
The function code 03 or 04 is used to read the binary contents of input
registers
Request message format for function code 03 or 04:
Example: Read Analog inputs #1 and #2 in addresses 40001 to 40002 as
floating point value from ADAM-6017 module
01 04 00 01 00 02
Response message format for function code 03 or 04:
Example: Analog input #1 and #2 as floating point values where
AI#1=100.0 and AI#2=55.32
01 04 08 42 C8 00 00 47 AE 42 5D
Function Code 05
Force a single coil to either ON or OFF. The requested ON/OFF state is
specified by a constant in the query data field. A value of FF 00 hex
requests it to be ON. A value of 00 00 hex requests it to be OFF. And a
value of FF FF hex requests it to release the force.
Request message format for function code 05:
Example: Force coil 3 (address 00003) ON in ADAM-6000 module
01 05 00 03 FF 00
Command Body
Station
Address
Function
Code
Start Address
High Byte
Start Address
Low Byte
Requested Number
of Register High Byte
Requested Number
of Register Low Byte
Command Body
Station
Address
Function
Code
Byte
Count
Data
Data
…
Command Body
Station
Address
Function
Code
Coil Address
High Byte
Coil Address
Low Byte
Force Data
High Byte
Force Data
Low Byte