Digital Input Registers
State of Digital Inputs (30016)
This 16-bit register contains the status of digital inputs. Short-circuit input to GND sets the corresponding bit in the register in accordance with the table below:
No. of Bit in the Register | No. of Digital Input |
---|---|
0 | 1 |
1 | 2 |
… | … |
10 | 11 |
11 | 12 |
Counter 1-12 (40023, 40024-40045, 40046)
The modules have 32-bit counters, one for each digital input.
The register with a lower number contains a lower byte of the counter and in the register with a higher number is stored in the higher byte of the counter.
In order to change the value of the register, write any value (called ‘preset’) for pulse counting registers. In special cases, the counter can be reset by entering 0. Resetting the counter is also possible with the 40022 register.
Resetting the Counters (40022)
Setting a true value of a particular bit of this 16-bit register results in resetting the corresponding counter (setting it to 0) in accordance with the following table:
No. of Bit in the Register | No. of Digital Input |
---|---|
0 | 1 |
1 | 2 |
… | … |
10 | 11 |
11 | 12 |