Comparative operations, Jump with data record selection [goto ext, 24 comparative operations – Parker Products COMPAX-M /-S (L) User Manual
Page 109: 26 jump with data record selection [goto ext, Positioning and control functions, Wait start, Goto ext
Positioning and control functions
Comparative operations
109
Unit
hardware
Connector
assignment / cable
Technical data
Configuration
Positioning and
control functions
Optimization
functions
Interfaces
Accessories /
options
Status
Parameter
Error list
8.4.24 Comparative operations
IF
or
IF
a parameter Pxxx or
a variable
a status value Sxxx (S1-S15, S30, S40ff)
A simple Operand or
A constant with max. 8 significant digits
< smaller
> larger
= equals
<> not equal
<= equal to/less than
>= equal to/greater than
Depending on the result of the comparison, a GOTO or GOSUB is carried out.
IF P40>100 GOTO 234
IF V030<>P49 GOTO 123
Within the IF query, operations with logic operators (AND, OR) are not possible.
Writing convention of variables (V0-V39) and control parameters (P40-P49)
For reasons of compatibility, a preceding point (full stop) is expected in the syntax for motion commands:
e.g.: POSA .P40, ACCEL .V10
The new comparison and arithmetic commands will operate without a preceding point (full stop): e.g.:
P41=V10+S1, IF V20 > S2 GOTO 10
8.4.25 Specific processing of data record groups. WAIT START.
Entry at BDF2
: WAIT Ent
When this instruction is issued, COMPAX interrupts the programming procedure
until a external START (E5 or via interface) is issued (reaction time <30 ms). For
shorter reaction times, refer to I15 on Page 151.
WAIT Start
8.4.26 Jump with data record selection [GOTO EXT]
Jump with data record selection via the inputs I9 to I16.
Entry at BDF2: GOTO Ent
Data record selection as for GOSUB EXT (see below).
20
for variables, see Page 114.
21
Applies to the manual terminal BDF2/01
Syntax:
Simple Operand:
Operand:
Comparison:
Examples:
Limitation:
WAIT START
Syntax:
GOTO EXT