55xGenComm1_29
0755-27153030 0755-27732300
48
GenComm Page 12 - Diagnostic - Digital Inputs
1. These registers represent the state of the actual inputs to the control unit before the application
of any time delays or other processing and are intended for diagnostic purposes only.
2. Unimplemented inputs (including totally unimplemented registers) return 3, not an exception.
Registers
These are all read only registers.
Register offset Name
Min value
Max value
Bits/ Sign
0
Emergency stop input
0
3
15/16-16/16
Reserved 0
3
13/16-14/16
Reserved 0
3
11/16-12/16
Reserved 0
3
9/16-10/16
Reserved 0
3
7/16-8/16
Reserved 0
3
5/16-6/16
Reserved 0
3
3/16-4/16
Reserved 0
3
1/16-2/16
1 Unimplemented
0
3
15/16-16/16
Unimplemented 0
3
13/16-14/16
Unimplemented 0
3
11/16-12/16
Unimplemented 0
3
9/16-10/16
Unimplemented 3
3
7/16-8/16
Unimplemented 3
3
5/16-6/16
Unimplemented 3
3
3/16-4/16
Unimplemented 3
3
1/16-2/16
2-15 Reserved
16
16
Number of auxiliary digital inputs
0
128
16
17
Auxiliary inputs 1-16
Open
Closed
16
NOTE:- Currently only Auxiliary digital inputs 1 to 9 are supported. These
correspond directly to the digital inputs on the 55x/ 52xx module terminal numbers 9
to 17.
Digital input codes
Code Meaning
0 Open
1 Closed
2 Reserved
3 Unimplemented
EXAMPLE : Testing digital input status
ReadPage12()
If ( ( ( Page12[17] >> 15 ) & 3 ) == 0 ) printf “Digital Input 1 OPEN”
Else If If ( ( ( Page12[17] >> 15 ) & 3 ) == 1 ) Print “Digital Input 1 CLOSED”
If ( ( ( Page12[17] >> 13 ) & 3 ) == 0 ) printf “Digital Input 2 OPEN”
Else If If ( ( ( Page12[17] >> 13 ) & 3 ) == 1 ) Print “Digital Input 2 CLOSED”
If ( ( ( Page12[17] >> 11 ) & 3 ) == 0 ) printf “Digital Input 3 OPEN”
Else If If ( ( ( Page12[17] >> 11 ) & 3 ) == 1 ) printf “Digital Input 3 CLOSED”
(etc)