User Manual

Gridstream SCADA/DA S5SBR
98-2550 Rev AE 31
Landis+Gyr Quick Start Guide
3.9 Digital I/O Functionality
NOTE: This device provides two general purpose digital I/O lines. These are controllable through the DCW
programming language. It is outside the scope of this document to describe that language but, in brief, there
are mechanisms by which each line can be independently configured as input or output.
The state of inputs can be read, and the state of outputs can be set. DCW code execution operates as a virtual
environment and, as such, does not support rapid transitions. Users should understand the speed limitations
associated with the use of these digital I/O pins.
The register below can be used to control either of the two general purpose I/O pins (D1 & D2) located at
memory location 7700 (hex).
Table 3 - 1. Control Register 1
Bit Feature Description Dflt.
0
Pin D1 Direction
0: Input
1: Output
0
1
Pin D1 State
When D1, bit 0 is "0" and bit 2-3 is "00", then bit 1 returns current state
as "0" or "1".
When D1, bit 0 is "0" and bit 2-3 is not "00", then read location 7706-
7709 which returns the count of the as defined in bit 2-3.
When D1, bit 0 is "1" then the value can be read or set.
0
2-3
Pin D1 Control
00: General Purpose I/O
01: Count interrupts on rising edge
10: Count interrupts on falling edge
11: Count interrupts on either edge
0
4
Pin D2 Direction
0: Input
1: Output
0
5
Pin D2 State
When D2, bit 4 is "0" then bit 5 returns current state as "0" or "1".
When D2, bit 4 is "1" then the value can be read or set.
0
6-7 Reserved N/A 0