Positioning and control functions

Comparative operations

8.4.24 Comparative operations

Syntax:

IF <single Operand> <compare> <Operand> GOTO xxx

 

or

 

 

IF <single Operand> <compare> <Operand> GOSUB xxx

Simple Operand:

a parameter Pxxx or

 

a variable 20 Vxxx or

 

a status value Sxxx (S1-S15, S30, S40ff)

Operand:

A simple Operand or

 

A constant with max. 8 significant digits

Comparison:

<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.

Examples:

IF P40>100 GOTO 234

 

IF V030<>P49 GOTO 123

Limitation:

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 BDF221: WAIT Ent

WAIT START

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.

Syntax:

WAIT Start

8.4.26 Jump with data record selection [GOTO EXT]

Unit

hardware

 

 

Connector

assignment / cable

Technical data

 

 

 

Configuration

 

 

 

Positioning and

control functions

 

 

Optimization

functions

 

 

Interfaces

 

 

 

Accessories /

options

 

 

Status

 

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).

20for variables, see Page 114.

21Applies to the manual terminal BDF2/01

Parameter

 

list

109

Error

Page 109
Image 109
Parker  Products COMPAX-M /-S (L) manual Comparative operations, Specific processing of data record groups. Wait Start