![Advantech ADAM-5000/TCP Series Скачать руководство пользователя страница 102](http://html1.mh-extra.com/html/advantech/adam-5000-tcp-series/adam-5000-tcp-series_manual_2857301102.webp)
Planning Your Application Program
Chapter 6
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:
Command Body
Station
Address
Function
Code
Start
Address
Start
Address
Requested
Number of Register
Requested
Number of Register
High Byte Low Byte
High Byte
Low Byte
Example:
Read Analog inputs #1 and #2 in addresses 40001 to 40004
as floating point value from ADAM-5000/TCP
01 04 00 01 00 04
Response message format for function code 03 or 04:
Command Body
Station
Address
Function
Code
Byte
Count
Data
Data
…
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:
Station
Function
Coil
Command Body
Coil
Force
Force Data
Address
Code
Address
High Byte
Address
Low Byte
DataHigh Byte
Low Byte
Example:
Force coil 3 (address 00003) ON in ADAM-5000/TCP
01 05 00 03 FF 00
ADAM-5000/TCP
User’s Manual
6-35
Содержание ADAM-5000/TCP Series
Страница 1: ......
Страница 23: ......
Страница 44: ...4 I O modules...
Страница 148: ......
Страница 183: ......
Страница 218: ......
Страница 300: ...Appendix A Design Worksheets...
Страница 307: ...Appendix A Design Worksheets A 8 ADAM 5000 TCP User s Manual...
Страница 308: ...Appendix B Data Formats and I O Ranges...
Страница 323: ...Appendix B Data Formats and I O Ranges B 13 ADAM 5000 TCP User s Manual...
Страница 324: ...Appendix C Grounding Reference...
Страница 331: ...Appendix C Grounding Reference Figure C 6 wire impedancC C 8 ADAM 5000 TCP User s Manual...