28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

42<br />

Standard set Mnemonics<br />

PL2 MNEMONICS<br />

WaitC Sval WcOp Lval Wait for the expression to become TRUE, but<br />

use “circular” comparison instead <strong>of</strong> the standard<br />

one.<br />

Wait Sval WOp Lval Wait for the expression to become TRUE or nonzero.<br />

IfC Sval IfcOp Sval<br />

THEN Line<br />

If “circular” expression is TRUE, then goto Line.<br />

IfCNot Sval IfcOp Sval If “circular” expression is FALSE, then goto Line.<br />

THEN Line<br />

If Sval IfOp Sval<br />

THEN Line<br />

IfNot Sval IfOp Sval<br />

THEN Line<br />

IfAbs<br />

Sval IfOp Sval<br />

THEN Line<br />

IfAbsNot Sval IfOp Sval<br />

THEN Line<br />

Let XReg = Sval<br />

[LetOp Sval]<br />

If expression is TRUE or non-zero, then goto<br />

Line.<br />

If expression is FALSE or non-zero, then goto<br />

Line.<br />

Convert both arguments to absolute values<br />

before evaluating the expression. If expression is<br />

TRUE or non-zero, then goto Line.<br />

Convert both arguments to absolute values<br />

before evaluating the expression. If expression is<br />

FALSE or non-zero, then goto Line<br />

Calculate the value <strong>of</strong> the expression and assign<br />

it to XReg.<br />

Let XReg , Lval Assign the value Lval to XReg. NOTE: Use this<br />

for Lconsts, larger than 16-bit, 32767.<br />

Add XReg , Lval Add value Lval to Xreg.<br />

Sub XReg , Lval Subtract value Lval from Xreg.<br />

Abs Xreg , Lval If Lval is positive,<br />

then Xreg := +ABS(Xreg).<br />

If Lval is negative, then<br />

Xreg := -ABS(Xreg).<br />

ISqr XReg , Lval Calculate the integer square root <strong>of</strong> Lval and<br />

assign it to Xreg.<br />

Xreg := ISQR(Lval)<br />

Clr Xreg Zero a register.<br />

BClr Xreg, Lval Bit-Clear <strong>of</strong> register; the same as AND with<br />

complemented argument.<br />

And Xreg, Lval Binary AND register with value.<br />

Or Xreg, Lval Binary OR registers with value.<br />

NOTE: None <strong>of</strong> the instructions DISABLE<br />

interrupts; therefore, if one does BCLR Int.Pend,<br />

4 to remove an interrupt, it is possible to miss an<br />

interrupt that is arriving just as the instruction<br />

executes.<br />

Push Lval Push Lval on the parameter stack.<br />

Pop Xreg Pop value from the parameter stack and assign it<br />

to Xreg.<br />

Pos ABORT Terminate the current position or pr<strong>of</strong>ile<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!