![Advantech ADAM-5000/TCP Series Скачать руководство пользователя страница 135](http://html1.mh-extra.com/html/advantech/adam-5000-tcp-series/adam-5000-tcp-series_manual_2857301135.webp)
Chapter 6
Planning Your Application Program
$aaSi6
Name
Read Channels Status
Description
Asks a specified input module to return the status of
all channels
Syntax $aaSi6(cr)
$
is a delimiter character.
aa
(range 00-FF) represents the 2-character hexadeci-
mal address of the ADAM-5000/TCP system
you want to interrogate.
Si
identifies the I/O slot of the system you want to
read channels status. The channel status
defines whether a channel is enabled or disabled.
6
is the read channels status command.
(cr)
is the terminating character, carriage return (0Dh)
Response !aamm(cr)
if the command is valid.
?aa(cr)
if an invalid operation was entered. There is
no response if the module detects a syntax error or
communication error or if the specified ad- dress
does not exist.
!
delimiter character indicating a valid command was
received.
?
delimiter character indicating the command was in-
valid.
aa
(range 00-FF) represents the 2-character hexadeci-
mal address of an ADAM-5000/TCP system.
mm
are two hexadecimal values. Each value is inter-
preted as 4 bits. The first 4-bit value represents the
status of channels 4-7, the second 4 bits represents
the status of channels 0-3. A value of 0 means the
channel is disabled, while a value of 1 means the chan-
nel is enabled.
(cr)
is the terminating character, carriage return (0Dh)
Example
command:
$01S16(cr)
response:
!01FF(cr)
The command asks the analog
input module in slot 1 of the system at address 01h
to send the status of its input channels. The analog
input module responds that all its multiplex channels
are enabling (FF equals
1111 and 1111).
6-68
ADAM-5000/TCP
User’s Manual
Содержание 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...