Download Alpha Controller User Manual - Stanley Engineered Fastening

Transcript
User Manual
Instructions
Description
EQU
Equal
Use the EQU instruction to test whether two values are equal. If source A and source B are equal, the
instruction is logically true. If these values are not equal, the instruction is logically false.
GEQ
Greater than or Equal
Use the GEQ instruction to test whether one value (source A) is greater than or equal to another
(source B). If the value at source A is greater than or equal to the value at source B, the instruction is
logically true. If the value at source A is less than the value at source B, the instruction is logically
false.
GRT
Greater Than
Use the GRT instruction to test whether one value (source A) is greater than another (source B). If the
value at source A is greater than the value at source B, the instruction is logically true. If the value at
source A is less than or equal to the value at source B, the instruction is logically false.
LEG
Less Than or Equal
Use the LEQ instruction to test whether one value (source A) is less than or equal to another (source
B). If the value at source A is less than or equal to the value at source B, the instruction is logically
true. If the value at source A is greater than the value at source B, the instruction is logically false.
LES
Less Than
Use the LES instruction to test whether one value (source A) is less than another (source B). If source
A is less than the value at source B, the instruction is logically true. If the value at source A is greater
than or equal to the value at source B, the instruction is logically false.
LIM
Limit Test
Use the LIM instruction to test for values within or outside a specified range, depending on how limits
are set.
If the Low Limit has a value equal to or less than the High Limit, the instruction is true when the Test
value is between the limits or is equal to either limit. If the Test value is outside the limits, the
instruction is false.
MEQ
Masked Comparison for Equal
Use the MEQ instruction to compare data at a source address with data at a compare address. Use of
this instruction allows portions of the data to be masked by a separate word.
The source is the address of the value to compare. The mask is the address of the mask through which
the instruction moves data. The mask can also be a hexadecimal value (constant). The compare is an
integer value or the address of the reference.
If the 16 bits of data at the source address are equal to the 16 bits of data at the compare address (less
masked bits), the instruction is true.
MOV
Move
This output instruction moves the source value to the destination location. As long as the rung remains
true, the instruction moves the data each scan.
MUL
Multiply
Use the MUL instruction to multiply one value (source A) by another (source B) and place the result in
the destination.
MVM
Masked Move
The MVM instruction is a word instruction that moves data from a source location to a destination, and
allows portions of the destination data to be masked by a separate word. As long as the rung remains
true, the instruction moves the data each scan.
NEG
Negate
Use the NEG instruction to change the sign of the source and then place it in the destination. The
destination contains the two’s complement of the source.
NEQ
Not Equal
Use the NEQ instruction to test whether two values are not equal. If source A and source B are not
equal, the instruction is logically true. If the two values are equal, the instruction is logically false.
NOT
This instruction performs a bit-by-bit logical NOT. The operation is performed using the value at
source A. The result (one’s complement of A) is stored in the destination.
NXB
Next Branch
Marks the beginning of another branch.
86