Instruction Manual

196 Language Reference Reference
Publication 1398-PM601A-EN-P October 2000
WORDS
DISLIM
Travel Limits Disable System
Purpose Disables the hardware travel limits when set to ON. Enables the inputs when OFF.
Syntax DISLIM = value
variable = DISLIM
value The value can be ON, OFF, a nonvolatile flag Bn, a volatile flag
Fn, or another system flag.
variable The variable may be a nonvolatile flag Bn, a volatile flag Fn, or
another system flag.
Remarks Regardless of the state of this flag, the limit switches, inputs 1 and 2, may be read. For
example:
F1 = I1 ;read forward limit switch
F2 = I2 ;read reverse limit switch
The travel limit switches must be enabled (HLIMITS = ON) for DISLIM to have any
effect.
Changes made to this flag by a program are only in effect while the program is run-
ning. When the program ends it will return to the setting stored in the Personality
Module.
See Also HLIMITS
Example
DISLIM = ON ;Disable the hardware travel limits
DISLIM = OFF ;Enable the hardware travel limits
DO/WHILE
Do/While Program Structure
Purpose The DO statement WHILE condition executes the statement(s) between DO and
WHILE repeatedly as long as the condition specified is TRUE. The statements are
executed and then the condition is tested. If the condition is TRUE, execution jumps
back to the statement following the DO. If the condition is FALSE, execution contin-
ues with the statement after the WHILE.
Syntax DO statement WHILE condition
statement(s) Any valid language statement. Multiple statements can enclosed
in curly braces {}.