Omron SYSMAC mini SP10 Operation Manual page 143

Table of Contents

Advertisement

Instruction Set and Execution Times
Name/
Symbol
mnemonic
MOVE NOT
MVN(31)
MVN(31)
COMPARE
CMP(32)
SHIFT
IN
SP
REGISTER
R
SFT(33)
BLOCK
BCMP(34)
COMPARE
BCMP(34)
Arithmetic Instructions
Name/
Symbol
mnemonic
BCD ADD
ADD(40)
ADD(40)
BCD
SUB(41)
SUBTRACT
SUB(41)
LOGICAL
ANDW(42)
AND
ANDW(42)
138
Key inputs
Moves the inverse content of a specified word or a
FUN
3
1
ENT
specified constant to a destination word. The Equals
S
D
Flag will turn ON when 0 is moved.
S
ENT
D
ENT
Compares the contents of two words or constants and
CMP(32)
FUN
3
2
ENT
turns ON the Equals, Less Than, or Greater Than Flag
Cp1
Cp2
to indicate which value is larger. These flags can then
Cp1
Cp2
ENT
ENT
be used to control operation based on this comparison.
Shifts the input condition (IN) into a register and shifts
FUN
3
3
ENT
SFT(33)
the bits in the register on each rising edge of the shift
Wd
pulse (SP). The register is reset to 0 when the reset
ENT
Wd
input (R) turns ON.
N is the least significant digit of CB and determines the
ENT
FUN
3
4
size of the comparison block; there will be N+1
CD
CB
R
comparison ranges. BCMP(34) compares CD to the
ENT
CD
ranges defined by a block consisting of CB+1, CB+2,
ENT
CB
..., CB+(2N+2). Each range is defined by two words,
the first one providing the lower limit and the second
ENT
R
word providing the upper limit. The corresponding bit of
the result word, R, will be turned ON whenever CD is
within the preset range.
Key inputs
Adds two BCD (binary-coded decimal) values and the
FUN
4
0
ENT
Au
contents of the Carry Flag and places the result in the
Ad
R
result word (R) and the Carry Flag. The Carry Flag
Au
Ad
ENT
ENT
must normally be cleared before executing ADD(40).
R
ENT
Subtracts one BCD (binary-coded decimal) value and
FUN
4
1
ENT
Mi
the contents of the Carry Flag from another BCD value
Su
R
and places the result in the result word (R) and the
Mi
ENT
Su
ENT
Carry Flag. The Carry Flag must normally be cleared
R
ENT
before executing SUB(41).
Performs an AND between two words one bit at a time
FUN
4
2
ENT
I1
and places the result in the result word (R).
I2
R
I1
I2
ENT
ENT
R
ENT
Description
Description
Au + Ad +
R
CY
CY
Mi - Su
R
CY
CY
I1
AND
I2
Appendix C
Operands*
Cp1./Cp2:
I/O
W
LR
TC
DR
*DR
#
Wd:
O
W
LR
DR
CD:
CB:
R:
I/O
DR
O
W
W
D
LR
LR
DR
TC
DR
*DR
#
Operands*
Au/Ad:
R:
I/O
O
W
W
D
LR
LR
DR
*DR
TC
DR
*DR
#
Mi/Su:
R:
I/O
O
W
W
D
LR
LR
DR
*DR
TC
DR
*DR
#
I1/I2:
R:
I/O
O
W
W
D
LR
R
LR
DR
*DR
TC
DR
*DR
#

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC mini SP10 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Sysmac mini sp16Sysmac mini sp20

Table of Contents