Read Input Status (Function 2)

The Read Input Status function can be used to read the digital input data. The first 10 digital inputs are read in this example. The start address is zero. An offset can be entered in the Start address field

Query

Byte Name

Example

Function code

2

Start address high

0

Start address low

0

Count high

0

Count low

10

The fieldbus coupler answers with Byte count 2, i.e. two bytes of data are returned. The query was for 10 bits, and these are now distributed over 2 bytes. The third bit in the output process image of the BK9000 is set, and the fieldbus coupler returns the value 4 in the first data byte.

Response

Byte Name

Example

Function code

2

Byte Count

2

Data bits 0...7

1

Data bits 8...18

0