SETLIM Command

Purpose

Places a precision limit on the operators used in WAITFOR and IF commands. Like MAXWAIT commands, a SETLIM command applies to all the commands that follow it until a new SETLIM command occurs.

Syntax

SETLIM value

Parameters

value – specifies the number of engineering units (EGUs) that this command sets as a precision limit. The default value is 1 EGU.

Example

Suppose you want place a -2 to +2 limit around the value in a WAITFOR. The following commands accomplish this:

SETLIM 2
WAITFOR AI1 = 90

These commands instruct the block to wait as long as the value of AI1 is between 88 and 92.