28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28<br />

Mnemonic Operators<br />

PL2 NATIVE POSITION LANGUAGE<br />

> TRUE if shortest way from Argument1 to Argument2 is clockwise.<br />

< TRUE if shortest way from Argument1 to Argument2 is<br />

counterclockwise.<br />

>= TRUE if Argument1 equals Argument2 or if shortest way from<br />

Argument1 to Argument2 is clockwise.<br />

Shift binary Argument1 to the right by Argument2 steps.<br />

AND Bit wise AND <strong>of</strong> arguments.<br />

For IF or WAIT mnemonics: TRUE if result is non-zero.<br />

EXOR Bit-wise EXCLUSIVE OR <strong>of</strong> ARGUMENTS.<br />

NOTE: EXOR can be used to perform a NOT function using:<br />

Let R10 = Argument1 EXOR -1.<br />

MOD Take Argument1 modulo Argument2.Remainder <strong>of</strong> the division<br />

Argument1/Argument2.<br />

Example: R0 = 107 mod 10; R0 will be assigned the value 7.<br />

OR Bit wise OR <strong>of</strong> arguments.<br />

For IF or WAIT mnemonics, TRUE if result is non-zero.<br />

MNEMONIC OPERATORS<br />

Op Operator; each statement has its own supported operators<br />

(see following).<br />

IFcOp One <strong>of</strong>:<br />

= < > =<br />

IfOp One <strong>of</strong>:<br />

OR AND = = < > THEN<br />

PosOp One <strong>of</strong>:<br />

ABORT ABS INC REL ’MOD ON CLR’’MOD OFF<br />

CLR’ ’MOD ON’ ’MOD OFF’<br />

Pr<strong>of</strong>Op One <strong>of</strong>:<br />

ACC<br />

THEN Either THEN or , (comma)<br />

WcOp One <strong>of</strong>:<br />

= < > =<br />

WOp One <strong>of</strong>:<br />

OR AND = = < > (none)<br />

LetOp One <strong>of</strong>:<br />

EXOR OR AND > |< |> MOD /<br />

* - + MULDIV DIVMUL<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!