User`s manual

PK2100
4-6 s System Development
Virtual Driver Variables
The variables described here are defined in CPLC.LIB. The virtual driver
updates the input variables every 25 milliseconds to reflect the state of the
hardware inputs and sets the hardware outputs based on the state of its
output variables.
The virtual driver does not change input variables unless the
hardware input has the same value for at least two ticks of the
virtual driver.
!
Digital Outputs
The 10 digital outputs and the two relay outputs are represented by the
following variables:
RELAY1, RELAY2
OUT1, OUT2...OUT9, OUT10
Storing a 1 in these variables causes the corresponding output to be
energized on the next virtual driver tick. Storing a 0 clears the corre-
sponding output.
Digital Inputs
Seven variables represent the seven digital inputs:
DIGIN1, DIGIN2...DIGIN6, DIGIN7
These variables are updated every virtual driver tick (25 ms). They are set
to either 1 or 0 depending on the state of the physical input. A 1 corre-
sponds to an input value of at least 2.5 volts.
Universal Inputs
The universal inputs are represented by these variables:
U1IN, U2IN, U3IN, U4IN, U5IN, U6IN
They are updated to 1 or 0 depending on the relationship of the analog
input to preset thresholds.
A high threshold and a low threshold are associated with each universal
input variable. These are the levels at which the flags U1IN, U2IN, ...
are switched.
U1LOW,U1HIGH, U2LOW,U2HIGH, ... U6LOW,U6HIGH
The way the universal inputs are interpreted is determined by setting these
thresholds.