Download Print this page

Advantech ADAM-6000 series User Manual page 110

Ethernet-based data acquisition and control modules
Hide thumbs Also See for ADAM-6000 series:

Advertisement

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:
Station
Function
Any data, length limited to approximately half the
Address
Code
Example: 01 08 00 02 00 04
Response message format for function code 08:
Station
Function
Address
Code
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 message format for function code 15:
Station
Function
Start Address
Address
Code
High Byte
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
Address (000XX): 24 23 22 21 20 19 18 17
Response message format for function code 08:
The normal responses return the station address, function code, start address, and requested number of
coil forced.
Station
Function
Start Address
Address
Code
High Byte
Example: 01 0F 00 11 00 0A
Command Body
length of the data buffer
Command Body
Data bytes received
Command Body
Start Address
Requested Number
Low Byte
of Coil High Byte
0 0 0 0 0 0 0 1
Command Body
Start Address
Requested Number
Low Byte
of Coil High Byte
Requested Number
of Coil Low Byte
-
- -
- -
- 26 25
Requested Number
of Coil Low Byte
Byte
Force Data
Force Data
Count
High Byte
Low Byte

Advertisement

loading