IO Plus Logic Command Reference. ELPRO 415U-E CONDOR SERIES, 415U-2 CONDOR SERIES, 415U-2
Annons
Annons
415U Condor-long-range wireless I/O and gateway
User Manual MN032006EN
Effective May 2018
IO Plus Logic Command Reference
Instruction
LOAD
LOAD
I
I
N { Description
Load the Accumulator
Load a value from memory to the accumulator.
32-bit counter: MSW at the high (Even) address.
Float: Loads the integer part only (0-65535)
Load an immediate value to the accumulator
Argument
Memory Register to load from
LOAD The actual value to load to accumulator
}
LOAD
LOAD
STORE
STOR
STOR
STOR
Delayed
Calculation
N
N
Invert and Load to accumulator
Discrete: ON gives “0”; OFF gives “1”.
Other types: bitwise invert e.g. 0xFACE gives 0x0531
{ Calculate Memory Register to
Load from within the { }. The accumulator value is loaded from the location that has been calculated when the “}” statement is reached.
Store the accumulator to memory
Save value from the accumulator to memory
Invert accumulator and save. When storing to a bit Register, a non-zero value is stored as off, and zero is stored as on.
{ Calculate Memory Register to
Store to within the following instructions { }. The current accumulator value is saved to the location that has been calculated when the “}” statement is reached.
{ Calculate the Second Argument of a statement
Use this feature when you need multiple steps to calculate the second argument of a statement.
{ Check the “{“ Column to begin calculation of the argument to a statement. This works for LOAD, STOR and for all of the Logic and Math operations, as well as for the Test/Comparison operations.
Complete and execute a delayed Calculation. This matches the opening brace flag “{“ in the LOAD, STORE, Arithmetic, Logical, and Comparison commands.
It completes the calculation of the argument value and executes the original command.
Set or Clear a bit
Memory Register to load from
Initial value for the Memory Register calculation
Register location to save to
Register location to save to
Initial value of Register calculation
Initial value to load for the calculation
Argument Ignored
SET/
RESET
SET
SET
RES
N
AND
…
DIV
AND
…
DIV
TEST
RES
LOGIC/MATH
AND
OR
XOR
ADD
SUB
MUL
DIV
AND
…
DIV
I
N
N
Set memory register to “1” if accumulator is non-zero. Unchanged if accumulator is zero.
Set memory register to “1” if accumulator is zero.
Clear memory register if accumulator is non-zero.
Unchanged if accumulator is zero.
Clear memory register if accumulator is zero.
Bitwise Logical and Arithmetic operations
Perform Logical / Arithmetic operation between Accumulator and memory.
Result is saved in the accumulator.
AND, OR, XOR – Bitwise Operation
ADD – 16-bit addition with overflow
SUB – 16-Bit subtraction with overflow
MUL – Multiplication (mod 65536)
DIV – Division (x / 0 = 0)
Perform Logical / Arithmetic operation between Accumulator and Immediate value
Negate the argument (Bitwise invert) before performing the operation.
{ Perform Logical / Arithmetic operation between Accumulator and the result of the following calculation within the { }
Compare two values
Memory location to set
Memory location to set
Memory location to clear
Memory location to clear
Register index of the value to use for the second operand
Immediate value to use for the second operand
Applies to Register, Immediate and delayed calculation.
Initial memory location or immediate value (I) for calculation of second operand.
EATON
www.eaton.com
79
User Manual MN032006EN
Effective May 2018
415U Condor-long-range wireless I/O and gateway
GT
…
LT
GT
…
LT
GT
…
LT
JUMP
JMP
JMP
JMP_C
JMP_C
JMP_C
CALL/
RETURN
CALL
CALL
CALL_C
CALL_C
CALL_C
RET
RET_C
RET_C
Instruction
GT
GE
EQ
NE
LE
LT
I
I
N { Description
Perform Comparison operation between Accumulator and memory.
Accumulator gets “1” if comparison true. “0” if false.
GT – Greater Than
GE – Greater or Equal
EQ – Equal To
NE – Not Equal
LE – Less or equal
LT – Less Than
Perform Comparison operation between Accumulator and Immediate value.
Accumulatorgets “1” if comparison true. “0” if false.
N Negate the argument (two’s compliment) before performing the comparison
Argument
Register index of the value to use for the second operand of the comparison
Immediate value to use for the second operand of the comparison
Applies to Register, Immediate and delayed calculation forms.
I
I
I
I
N
{ Perform Comparison operation between Accumulator and the result of the following calculation within the { }
Transfer Control to a new location
Jump to instruction
Jump forward or backward from the current location the number of lines specified
Conditional Jump if accumulator is non-zero
Conditional Jump if accumulator is zero
Conditional Jump forward or backward from the current location the number of lines specified
Call a subroutine and Return
Initial memory location or immediate value (I) for calculation of second operand.
Line number to jump to
0-9999: Jump Forward
10000+: Jump backward
Line number to jump to if accumulator is non-zero
Line number to jump to if accumulator is zero.
0-9999: Jump Forward
10000+: Jump backward
N
N
Call a subroutine. A subroutine will execute the listed statements until a “RET” statement is reached, where control returns to the line following the CALL statement.
Call a subroutine forward or backward from the current location, offset from current location
Conditional Call if accumulator is non-zero. (otherwise continue to next line)
Conditional Call if accumulator is zero
Conditional Call a subroutine forward or backward from the current location, offset from current location
Return from subroutine. Returns to the instruction following the last executed
CALL instruction.
Return to calling address if accumulator is non-zero
Return to calling address if accumulator is zero
Line number of first instruction of the subroutine to call
0-9999: call Forward
10000+: call backward
Line number to call if accumulator is non-zero
Line number to call if accumulator
Is zero.
0-9999: Jump Forward
10000+: Jump backward
Argument Ignored
Argument Ignored
Argument Ignored
80 EATON
www.eaton.com
Ladda ner
Annons