Res (reset), Res (reset) -10 – Sensaphone SCADA 3000 Users manual User Manual
Page 166
15-10
SCADA 3000 User’s Manual
using the same address. In this application the COUNT Value and the PRESET value for each
instruction are one in the same.
The instruction executes in 5.7µs and requires 176 bytes.
The GROUP for this type is the counter number from 0–63. The ELEMENT specifies an
individual function for the selected counter. There are 7 functions associated with each timer:
Element Function
Number Description
Range of 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:
N,0,0 This UAF indicates if Counter 0 is enabled or disabled.
N,19,7 References the current value of Counter number 19.
The counter value and status bits can be viewed or changed from the Counter Status form. To
view the counter values, click on the Ladder and C Variables button from the Toolbar on the
Main Programming form. Select the Counters tab. In addition to viewing the state of the
counter values, you can also force changes by double-clicking on the counter value you want to
change. A Change form will appear to let you enter a new value for the counter. Use the Up/
Down arrows to flip through the pages to access the counters you wish to view.
ReS (ReSeT)
This instruction is used to reset a timer, counter, or output. You can also reset an alarm bit
which is equivalent to acknowledging an alarm. When rung conditions become true the RES
instruction will reset the Timer On Delay (TON), Retentive Timer (RTO), Count Up (CTU),
or Count Down (CTD) instruction having the same address as the RES instruction. Counter
and Timer values will be reset to 0. If the counter preset value is negative, the done bit will be
set by a RES instruction.
The instruction executes in 2.5µs and requires 22 bytes.
Following is a list of the data points that may be used with RES instructions:
Outputs
Timer values
Counter values
Alarms