Reading Command

<< Click to Display Table of Contents >>

 

Reading Command

Read-Only

 

Device

Device code

N1

0 (zero)

N2

Sub-device code. A value equal to 0 (zero) indicates a device

N3

Code of a reading command

N4

Not used

 

A PLC Tag to perform a reading of data from the items specified in the N3 parameter. This parameter must be configured with one of the next values.

0: Operational status

1: Port speed

2: Maximum time to pass

3: Port position

4: Authentication status

5: Line's acronym

6: Turnstile's acronym

 

For each reading command specified in the N3 parameter, this Tag returns a response value in the Value property, according to the next examples.

For N3 equal to 0 (zero), reads the operational status, in number format

Possible values for turnstiles:

0: Normal entry

1: Controlled entry

2: Maintenance entry

3: Bidirectional entry

4: Exit

5: Out of service

6: Free

7: Simulated

8: Special

Possible values for counters:

0: Normal entry

4: Exit

5: Out of service

For N3 equal to 1 (one), reads the port speed, in number format

For N3 equal to 2 (two), reads the maximum time to pass, in number format

For N3 equal to 3 (three), reads the port position, in number format

For N3 equal to 4 (four), reads the authentication status, in number format

For N3 equal to 5 (five), reads the line's acronym of turnstiles where the device is installed, in text format

For N3 equal to 6 (six), reads the turnstile's acronym, in text format

Was this page useful?