EasyManuals Logo

Advantech ADAM-5000/TCP Series User Manual

Advantech ADAM-5000/TCP Series
341 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #101 background imageLoading...
Page #101 background image
Chapter 6
Planning Your Application Program
Example: Read coil number 1 to 8 (address number 10001 to 10008) from
ADAM-5000/TCP
01 01 00 01 00 08
Response message format for function code 01:
Command
Body
Station
Address
Function
Code
Byte
Count
Data
Data
Example: 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.
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:
Command
Body
Station
Function
Start
Start
Requested
Requested
Address
Code
Address
Address
Number of
Input
Number of
Input
High
Byte
Low
Byte
High
Byte
Low
Byte
Example: Read coil number 1 to 8 (address number 10001 to 10008) from
ADAM-5000/TCP
01 01 00 01 00 08
Response message format for function code 02:
Command
Body
Station
Address
Function
Code
Byte
Count
Data
Data
Example: 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.
6-34 ADAM-5000/TCP User’s Manual

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Advantech ADAM-5000/TCP Series and is the answer not in the manual?

Advantech ADAM-5000/TCP Series Specifications

General IconGeneral
BrandAdvantech
ModelADAM-5000/TCP Series
CategoryI/O Systems
LanguageEnglish

Related product manuals