Download SW manual - TG Drives
Transcript
PL2 NATIVE POSITION LANGUAGE Mnemonic Operators > TRUE if shortest way from Argument1 to Argument2 is clockwise. < TRUE if shortest way from Argument1 to Argument2 is counterclockwise. >= TRUE if Argument1 equals Argument2 or if shortest way from Argument1 to Argument2 is clockwise. <= TRUE if Argument1 equals Argument2 or if shortest way from Argument1 to Argument2 is counter clockwise. BINARY OPERATORS, PERFORM A BINARY OPERATION |< Shift binary Argument1 to the left by Argument2 steps. |> Shift binary Argument1 to the right by Argument2 steps. AND Bit wise AND of arguments. For IF or WAIT mnemonics: TRUE if result is non-zero. EXOR Bit-wise EXCLUSIVE OR of ARGUMENTS. NOTE: EXOR can be used to perform a NOT function using: Let R10 = Argument1 EXOR -1. MOD Take Argument1 modulo Argument2.Remainder of the division Argument1/Argument2. Example: R0 = 107 mod 10; R0 will be assigned the value 7. OR Bit wise OR of arguments. For IF or WAIT mnemonics, TRUE if result is non-zero. MNEMONIC OPERATORS Op Operator; each statement has its own supported operators (see following). IFcOp One of: IfOp <= >= One of: PosOp OR AND One of: ProfOp ABORT ABS INC REL ’MOD ON CLR’’MOD OFF CLR’ ’MOD ON’ ’MOD OFF’ One of: THEN WcOp ACC Either THEN or , (comma) One of: WOp <= >= One of: LetOp OR AND One of: EXOR * - 28 < > <= < OR + User's Manual 5.1 Doc. No.9032 0027 01 (B), Rev. 11.07.2001 >= > <= = <> = < > THEN = >= <> = < AND << >> |< MULDIV DIVMUL > |> (none) MOD / Inmotion Technologies AB