Sn: tmrm, S n : tmr m, Words – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual
Page 284: Scanned event

262
Language Reference • Reference
Publication 1398-PM601A-EN-P — October 2000
WORDS
Sn: TMRm
Scanned Event
Scanned Event
Purpose
A timer scanned event may be set up to start the timer based on a specified condition
and run for a time. Once the programmed time has elapsed, the specified action is exe-
cuted.
Syntax
Sn: TMRm condition action
n
The number of the scanned event. There are eight scanned events:
n = 1, 2, 3, .... , 8.
m
The number of the timer used: m = 1 or 2.
condition
The condition to be tested. The condition may be a comparison,
an input being ON or OFF, or a flag being ON or OFF.
Comparisons compare the values of two operands and determine
if the condition is TRUE or FALSE. A comparison may be
greater than (>), less than (<), equal to ( = ), not equal to (<>),
less than or equal to (< = ), or greater than or equal to (> = ). The
operands of a comparison may be user variables, system vari-
ables, analog input values (ADC), or constants.
I1 ON
;an input
F1 ON
;a user flag
INPOSN
;system flag
G1 > G2
;comparison user variable
G1 > POS1
;comparison system variable
POS2 <= 7.00
;comparison constant
action
The program statements in a scanned event routine can be any
legal program statement(s) except CALL, RETURN, JUMP,
MOVD, MOVP, DV, DIF, DELAY, DWELL, PRINT, READ,
ENABLE, and DISABLE statements. Multiple statements can be
enclosed in curly braces {}.
Remarks
The time is loaded during program execution using the TIMERn instruction. The
scanned event is enabled and disabled by Sn ON/OFF commands.
See Also
Sn: IF, Sn ON/OFF/CONT, TIMERn
Example
S2: TMR1 I11 = ON F7 = ON
S4: TMR2 POS2 < G3 V1 = V1+1