The CQM1 and CPM1 have large programming instruction sets that allow for easy programming of complicated control
processes. This section explains instructions individually and provides the ladder diagram symbol, data areas, and flags
used with each.
The many instructions provided by these PCs are organized in the following subsections by instruction group. These groups
include Ladder Diagram Instructions, instructions with fixed function codes, and set instructions.
Some instructions, such as Timer and Counter instructions, are used to control execution of other instructions, e.g., a TIM
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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
Instruction Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3
5-4
5-5
5-6
Instruction Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-1
5-6-2
5-6-3
5-6-4
5-7
5-7-1
5-7-2
5-8
5-8-1
5-8-2
5-8-3
KEEP - KEEP(11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8-4
5-9
NO OPERATION - NOP(00) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-10 END - END(01) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15-1 TIMER - TIM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16 Shift Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 5
Instruction Set
188
188
188
190
191
194
194
195
196
197
200
200
201
201
201
202
203
204
205
205
205
207
209
210
212
213
214
216
217
218
220
225
227
229
229
230
230
231
231
185