Counter, Ladder variable, Counter -7 bit -7 ladder variable -7 – Sensaphone SCADA 3000 Users manual User Manual
Page 75
10-7
Chapter 10: Generic Programming
3
Preset Value
0 to 32,767
4
Timer Value
0 to 32,767
Examples: T,0,0 = This UAF indicates if Timer 0 is enabled or disabled
T,12,4 = This UAF references the current timer value of timer number 12
Counter
The SCADA 3000 contains 64 counters for use within the Ladder program. There are two
types of Counters, Count Up and Count Down. The Group for this type is the counter num-
ber from 0-63. The Element specifies an individual function for the selected counter. There
are 7 elements associated with each counter:
Element Element Range
of
Number
Description
Values
0
Up Counter Enabled
0 or 1 (0=disabled, 1=enabled)
1
Down Counter Enabled
0 or 1 (0=disabled, 1=enabled)
2
Counter Done
0 or 1 (0=disabled, 1=enabled)
3
Counter Overflow
0 or 1 (0=disabled, 1=enabled)
4
Counter Underflow
0 or 1 (0=disabled, 1=enabled)
5
Counter Preset
-32,768 to 32,767
6
Counter Value
-32,768 to 32,767
Examples:
C,0,0 = This UAF indicates if Counter 0 is enabled or disabled
C,19,6 = This UAF references the current value of Counter number 19
Bit
The SCADA 3000 contains 4096 bits, arranged as 256 16-bit words, that can be used within
the Ladder program. Bits can only have one of two possible values, 0 or 1. The Group for this
type refers to the word number from 0 to 255. The Element refers to the actual bit number
from 0 to 15.
Word
Bit Number
Number
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0
1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0
1
0 1 0 1 0 0 0 0 1 0 0 0
0 0 0 0
2
0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1
:
:
Examples:
B,0,0 = This UAF refers to bit number 0 of word number 0
B,2,12 = This UAF refers to bit number 12 of word number 3
Ladder Variable
The SCADA 3000 contains 128 user-defined floating point variables for use within the Ladder
program. The Group specifies which of the 128 variables is referenced. The Element field is
not used and should be set to 0.
Examples:
V,0,0 = This UAF references ladder variable number 0
V,35,0 = This UAF references ladder variable number 35