![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532100.webp)
95
SECTION 5
Instruction Set
This section explains each instruction in the CVM1D PC instruction set and provides the ladder diagram symbols, data areas,
and flags used with each. The instructions provided by the CVM1D PC are described in following subsections by instruction
group.
Some instructions, such as Timer and Counter instructions, are used to control execution of other instructions. For example, a
timer Completion Flag might be used to turn ON a bit when the time period set for the timer has expired. Although these other
instructions are often used to control output bits through the OUTPUT instruction, they can be used to control execution of
other instructions as well. The OUTPUT instructions used in examples in this manual can therefore generally be replaced by
other instructions to modify the program for specific applications other than controlling output bits directly.
5-1
Notation
100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
Instruction Format
100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3
Data Areas, Definers, and Flags
100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4
Differentiated and Immediate Refresh Instructions
103
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5
Coding Right-hand Instructions
105
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6
Ladder Diagram Instructions
107
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-1
LOAD, LOAD NOT, AND, AND NOT, OR, and OR NOT
107
. . . . . . . . . . . . . . . . .
5-6-2
CONDITION ON/OFF: UP(018) and DOWN(019)
109
. . . . . . . . . . . . . . . . . . . . . . .
5-6-3
BIT TEST: TST(350) and TSTN(351)
110
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-4
NOT: NOT(010)
111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-5
AND LOAD and OR LOAD
111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7
Bit Control Instructions
112
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7-1
OUTPUT and OUTPUT NOT: OUT and OUT NOT
112
. . . . . . . . . . . . . . . . . . . . . .
5-7-2
DIFFERENTIATE UP/DOWN: DIFU(013) and DIFD(014)
113
. . . . . . . . . . . . . . . .
5-7-3
SET and RESET: SET(016) and RSET(017)
115
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7-4
MULTIPLE BIT SET/RESET: SETA(047)/RSTA(048)
116
. . . . . . . . . . . . . . . . . . . .
5-7-5
KEEP: KEEP(011)
118
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8
INTERLOCK and INTERLOCK CLEAR: IL(002) and ILC(003)
120
. . . . . . . . . . . . . . . . . . .
5-9
JUMP and JUMP END: JMP(004) and JME(005)
122
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-10 CONDITIONAL JUMP: CJP(221)/CJPN(222)
125
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11 END: END(001)
126
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12 NO OPERATION: NOP(000)
126
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13 Timer and Counter Instructions
127
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-1
TIMER: TIM
129
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-2
HIGH-SPEED TIMER: TIMH(015)
133
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-3
ACCUMULATIVE TIMER: TTIM(120)
135
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-4
LONG TIMER: TIML(121)
137
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-5
MULTI-OUTPUT TIMER: MTIM(122)
138
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-6
COUNTER: CNT
140
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-7
REVERSIBLE COUNTER: CNTR(012)
144
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-8
RESET TIMER/COUNTER: CNR(236)
145
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14 Shift Instructions
147
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-1
SHIFT REGISTER: SFT(050)
147
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-2
REVERSIBLE SHIFT REGISTER: SFTR(051)
150
. . . . . . . . . . . . . . . . . . . . . . . . .
5-14-3
ASYNCHRONOUS SHIFT REGISTER: ASFT(052)
151
. . . . . . . . . . . . . . . . . . . . .
5-14-4
WORD SHIFT: WSFT(053)
153
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-5
SHIFT N-BIT DATA LEFT: NSFL(054)
154
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-6
SHIFT N-BIT DATA RIGHT: NSFR(055)
155
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-7
SHIFT N-BITS LEFT: NASL(056)
156
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14-8
SHIFT N-BITS RIGHT: NASR(057)
157
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...