Publication 1763-RM001C-EN-P - October 2009
178 Timer and Counter Instructions
RES - Reset
Instruction Type: output
The RES instruction resets timers, counters, and control elements. When
the RES instruction is executed, it resets the data defined by the RES
instruction.
The RES instruction has no effect when the rung state is false. The
following table shows which elements are modified:
Addressing Modes and File Types can be used as shown in the following
table:
RES
R6:0
Execution Time for the RES Instructions
Controller When Rung Is:
True False
MicroLogix 1100 1.3 μs 0.87 μs
RES Instruction Operation
When using a RES instruction with a:
Timer Element Counter Element Control Element
The controller resets the:
ACC value to 0
DN bit
TT bit
EN bit
The controller resets the:
ACC value to 0
OV bit
UN bit
DN bit
CU bit
CD bit
The controller resets the:
POS value to 0
EN bit
EU bit
DN bit
EM bit
ER bit
UL bit
ATTENTION
Because the RES instruction resets the accumulated value
and status bits, do not use the RES instruction to reset a
timer address used in a TOF instruction. If the TOF
accumulated value and status bits are reset,
unpredictable machine operation or injury to personnel
may occur.
RES Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files Function Files
CS - Comms
IOS - I/O
DLS - Data Log
Address
Mode
Address Level
O
I
S
B
T, C, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
LCD
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Structure • • •
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive