7-6
Section
Instruction Tables
370
7-6
Instruction Tables
This section provides tables of the instructions supported by the CPM1/CPM1A,
CPM2A/CPM2C, and SRM1(-V2) PCs. The first few tables can be used to find
instructions by function code. The last table can be used to find instructions by
mnemonic. In both tables, the @ symbol indicates instructions with differen-
tiated forms.
7-6-1 CPM1/CPM1A Function Codes
The following table lists the CPM1/CPM1A instructions that have fixed function
codes. Each instruction is listed by mnemonic and by instruction name. Use the
numbers in the leftmost column as the left digit and the number in the column
heading as the right digit of the function code.
Left
di it
Right digit
digit
0
1
2
3
4
5
6
7
8
9
0
NOP
NO
OPERATION
END
END
IL
INTERLOCK
ILC
INTERLOCK
CLEAR
JMP
JUMP
JME
JUMP END
(@) FAL
FAILURE
ALARM AND
RESET
FALS
SEVERE
FAILURE
ALARM
STEP
STEP
DEFINE
SNXT
STEP START
1
SFT
SHIFT
REGISTER
KEEP
KEEP
CNTR
REVERS-
IBLE
COUNTER
DIFU
DIFFER-
ENTIATE UP
DIFD
DIFFER-
ENTIATE
DOWN
TIMH
HIGH-
SPEED
TIMER
(@) WSFT
WORD
SHIFT
(@) ASFT
ASYNCHRO-
NOUS SHIFT
REGISTER
---
---
2
CMP
COMPARE
(@) MOV
MOVE
(@) MVN
MOVE NOT
(@) BIN
BCD TO
BINARY
(@) BCD
BINARY TO
BCD
(@) ASL
SHIFT LEFT
(@) ASR
SHIFT
RIGHT
(@) ROL
ROTATE
LEFT
(@) ROR
ROTATE
RIGHT
(@) COM
COMPLE-
MENT
3
(@) ADD
BCD ADD
(@) SUB
BCD
SUBTRACT
(@) MUL
BCD
MULTIPLY
(@) DIV
BCD
DIVIDE
(@) ANDW
LOGICAL
AND
(@) ORW
LOGICAL OR
(@) XORW
EXCLUSIVE
OR
(@) XNRW
EXCLUSIVE
NOR
(@) INC
INCREMENT
(@) DEC
DECRE-
MENT
4
(@) STC
SET CARRY
(@) CLC
CLEAR
CARRY
---
---
---
---
(@) MSG
MESSAGE
DISPLAY
---
---
---
5
(@) ADB
BINARY ADD
(@) SBB
BINARY
SUBTRACT
(@) MLB
BINARY
MULTIPLY
(@) DVB
BINARY
DIVIDE
(@) ADDL
DOUBLE
BCD ADD
(@) SUBL
DOUBLE
BCD
SUBTRACT
(@) MULL
DOUBLE
BCD
MULTIPLY
(@) DIVL
DOUBLE
BCD
DIVIDE
---
---
6
CMPL
DOUBLE
COMPARE
(@) INI
MODE CON-
TROL
(@) PRV
HIGH-
SPEED
COUNTER
PV READ
(@) CTBL
COMPARI-
SON TABLE
LOAD
(@) SPED
SPEED OUT-
PUT (see
note)
(@) PULS
SET PULSES
(see note)
---
(@) BCNT
BIT COUNT-
ER
(@) BCMP
BLOCK
COMPARE
(@) STIM
INTERVAL
TIMER
7
(@) XFER
BLOCK
TRANSFER
(@) BSET
BLOCK SET
---
(@) XCHG
DATA
EXCHANGE
(@) SLD
ONE DIGIT
SHIFT LEFT
(@) SRD
ONE DIGIT
SHIFT
RIGHT
(@) MLPX
4-TO-16
DECODER
(@) DMPX
16-TO-4
ENCODER
(@) SDEC
7-SEGMENT
DECODER
---
8
(@) DIST
SINGLE
WORD
DISTRIBUTE
(@) COLL
DATA
COLLECT
(@) MOVB
MOVE BIT
(@) MOVD
MOVE DIGIT
(@) SFTR
REVERS-
IBLE SHIFT
REGISTER
(@) TCMP
TABLE
COMPARE
(@) ASC
ASCII
CONVERT
---
---
(@) INT
INTERRUPT
CONTROL
9
---
(@) SBS
SUBROU-
TINE
ENTRY
SBN
SUBROU-
TINE
DEFINE
RET
SUBROU-
TINE
RETURN
---
---
---
(@) IORF
I/O
REFRESH
---
(@) MCRO
MACRO
Note
Only for the CPM1A transistor output models.
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...