Wait, Wflag – 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 301

Advertising
background image

Language Reference • Reference

279

Publication 1398-PM601A-EN-P — October 2000

WORDS

WAIT

Wait

Program Structure

Purpose

Wait for a condition to occur before proceeding to the next instruction.

Syntax

WAIT condition

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

Remarks

See Also

DWELL, DELAY

Example

WAIT I12 = ON

WAIT POS1> = G3

WFLAG

Warning Flag

System

Purpose

Flag to indicate if a warning is active.

Syntax

WFLAG= value

value

Value can be ON, OFF, a nonvolatile flag Bn, a volatile flag Fn,
or another system flag.

Remarks

See Also

EFLAG, ENUM, WNUM, SYSERROR, SYSWARN

Example

IF WFLAG = ON º

Advertising