Advantech ADAM-5000/TCP Series Manual page 101

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Chapter 6
Example:
Response message format for function code 01:
Station
Address
Example:
Function Code 02
The function code 02 is used to read the discrete input's ON/OFF status
of ADAM-5000/TCP in a binary data format. Request message format
for function code 02:
Station
Address
Example:
Response message format for function code 02:
Station
Address
Example:
6-34
ADAM-5000/TCP User's Manual
Planning Your Application Program
Read coil number 1 to 8 (address number 10001 to 10008) from
ADAM-5000/TCP
01 01 00 01 00 08
Function
Byte
Code
Count
Coils number 2 and 7 are on, all others are off.
01 01 01 42
In the response the status of coils 1 to 8 is shown as the byte
value 42 hex, equal to 0100 0010 binary.
Start
Function
Address
Code
High Byte
Read coil number 1 to 8 (address number 10001 to 10008) from
ADAM-5000/TCP
01 01 00 01 00 08
Byte
Function
Code
Count
input number 2 and 3 are on, all others are off.
01 01 01 60
In the response the status of input 1 to 8 is shown as the byte
value 60 hex, equal to 0110 0000 binary.
Command Body
Data
Command Body
Start
Address
Number of Input Number of Input
Low Byte
Command Body
Data
Data
Requested
Requested
High Byte
Low Byte
Data
...
...

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents