Command 2100: Acquires the status of the specified input port in bytes

Returns the status of the specified byte port.

Each port contains 8 input channels.

Command Syntax

bit Name Description
Parameter 1 15

byteportNumber

Specifies the byte port of I/O.
14
1
0

Response Syntax

bit Name Description
Response 1 15 reserved Returns “0”.
8
7 returnValue Returns the acuqires state by binary.
6
5
4
3
2
1
0

Description

By using the command, you can check values of eight input bits at the same time.

Since eight channels can be checked at a time, the return values are integers ranging from 0-255.

See the chart below to check the correspondence of the integer return values and each input channel.

Input Channel Result (Using Byte port #0)

Return Value 7 6 5 4 3 2 1 0
1 off off off off off off off on
5 off off off off off on off on
15 off off off off on on on on
255 on on on on on on on on

Input Channel Result (Using Byte port #2)

Return Value 23 22 21 20 19 18 17 16
3 off off off off off off on on
7 off off off off off on on on
32 off off on off off off off off
255 on on on on on on on on

Example

When acquiring the value from byte port #2.

Value 23 22 21 20 19 18 17 16
7 off off off off off on on on
Command Response
0834H 0002H 0834H 0007H