Advantech ADAM-5000/TCP Series Manual page 104

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Planning Your Application Program
Response message format for function code 08:
StationAddress
Example:
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
Address
Code
Example:
(14 hex) in ADAM-5000/TCP.
01 0F 00 14 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
Address (000XX):
Response message format for function code 15:
The normal responses return the station address, function code, start
address, and requested number of coil forced.
Station
Address
Example:
ADAM-5000/TCP User's Manual
FunctionCode
01 08 00 02 00 04
Start
Start
Address Address
High Byte Low Byte Coil High
Request to force a series of 10 coils starting at address 00020
1
0
0
Command Body
Start
Function
Address
Code
High Byte
01 0F 00 14 00 0A
Command Body
Data bytes received
Command Body
Requested Requested
Numberof Numberof
Coil Low
Byte
Byte
1
1 0
1
27 26 25 24 23 2221 20 -------------------2928
Start
Requested
Address
Numberof Coil
Low Byte
High Byte
Chapter 6
Force
Byte
DataHigh DataLow
Count
Byte
0 0 0 0 0
0 0 1
Requested
Numberof Coil
Low Byte
Force
Byte
6-37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents