Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Omron Manuals
Controller
CPM1 - PROGRAMING 02-2001
Programming manual
Omron CPM1 Programming Manual
Hide thumbs
Also See for CPM1
:
Programming manual
(615 pages)
,
Programming manual
(541 pages)
,
Operation manual
(144 pages)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
page
of
523
Go
/
523
Contents
Table of Contents
Troubleshooting
Bookmarks
Table of Contents
Table of Contents
General Precautions
Intended Audience
Safety Precautions
Operating Environment Precautions
Application Precautions
Section 1 PC Setup
PC Setup
Changing the PC Setup
CPM1/CPM1A PC Setup Settings
CPM2A/CPM2C PC Setup Settings
SRM1(-V2) PC Setup Settings
Basic PC Operation and I/O Processes
Startup Mode
Hold Bit Status
Program Memory Write-Protection
RS-232C Port Servicing Time (CPM2A/CPM2C/SRM1(-V2) Only)
Peripheral Port Servicing Time
Cycle Monitor Time
Minimum Cycle Time
Input Time Constants
Error Log Settings
Section 2 Special Features
Special Features
SECTION 2 Special Features
CPM2A/CPM2C Interrupt Functions
Interrupt Inputs
Interval Timer Interrupts
CPM2A/CPM2C High-Speed Counters
Using High-Speed Counters
Input Interrupts in Counter Mode
CPM1/CPM1A Interrupt Functions
Types of Interrupts
Input Interrupts
Masking All Interrupts
Interval Timer Interrupts
High-Speed Counter Interrupts
SRM1(-V2) Interrupt Functions
Types of Interrupts
Interval Timer Interrupts
CPM2A/CPM2C Pulse Output Functions
(Fixed Duty Ratio)
Using Pulse Outputs with Variable Duty Ratio
Using Pulse Outputs with Trapezoidal Acceleration and Deceleration
CPM1A Pulse Output Functions
Programming Example in Continuous Mode
Programming Example in Independent Mode
Using Pulse Output Instructions
Changing the Frequency
Stopping Pulse Output
Synchronized Pulse Control (CPM2A/CPM2C Only)
Analog I/O Functions (CPM1/CPM1A/CPM2A Only)
Compobus/S I/O Slave Functions (CPM1A/CPM2A Only)
Compobus/S I/O Master Functions (SRM1(-V2) Only)
Analog Controls
CPM1/CPM1A Analog Controls
CPM2A Analog Controls
Quick-Response Inputs
CPM1/CPM1A Quick-Response Inputs
CPM2A/CPM2C Quick-Response Inputs
Macro Function
Calculating with Signed Binary Data
Definition of Signed Binary Data
Arithmetic Flags
Differential Monitor
Inputting Signed Binary Data Using Decimal Values
Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)
CPM2A/CPM2C Expansion Instructions
Using the CPM2A/CPM2C Clock Function
SRM1(-V2) Expansion Instructions
Data Area Words
Setting the Time
Using Expansion Units
Analog I/O Units
Compobus/S I/O Link Unit
Section 4 Communications Functions
Communications Functions
SECTION 4 Communications Functions
Introduction
Overview
Wiring Ports
CPM1/CPM1A Communications Functions
Host Link Communications
One-To-One NT Link Communications
One-To-One PC Link Communications
CPM2A/CPM2C Communications Functions
Host Link Communications
No-Protocol Communications
One-To-One NT Link Communications
One-To-One PC Link Communications
SRM1(-V2) Communications Functions
Host Link Communications
No-Protocol Communications
Host Link Commands
Lr Area Read
Hr Area Read
Tc Status Read
DM Area Read
Ar Area Read
Lr Area Write
Tc Status Write
DM Area Write
Ar Area Write
Sv Read 1
Sv Read 2
Sv Change 1
Sv Change 2
Status Read
Status Write
Error Read
Forced Reset
Multiple Forced Set/Reset
Pc Model Read
Test
Program Read
Program Write
Compound Command
Initialize
Txd Response
Undefined Command
Memory Areas
CPM1/CPM1A Memory Area Functions
CPM1/CPM1A Memory Area Functions
CPM2A/CPM2C Memory Area Functions
SRM1(-V2) Memory Area Functions
SRM1(-V2) Flash Memory
Section 6 Ladder-Diagram Programming
Basic Procedure
Instruction Terminology
Basic Ladder Diagrams
Basic Terms
Mnemonic Code
Ladder Instructions
OUTPUT and OUTPUT NOT
The END Instruction
Logic Block Instructions
Coding Multiple Right-Hand Instructions
Branching Instruction Lines
Jumps
Controlling Bit Status
SET and RESET
DIFFERENTIATE up and DIFFERENTIATE down
Keep
Work Bits (Internal Relays)
Self-Maintaining Bits (Seal)
Programming Precautions
Program Execution
Section 7 Instruction Set
Instruction Set
SECTION 7 Instruction Set
Notation
Instruction Format
Data Areas, Definer Values, and Flags
Differentiated Instructions
Coding Right-Hand Instructions
Instruction Tables
CPM1/CPM1A Function Codes
CPM2A/CPM2C Function Codes
SRM1(-V2) Function Codes
Alphabetic List by Mnemonic
Ladder Diagram Instructions
LOAD, LOAD NOT, AND, and NOT, OR, and or NOT
Bit Control Instructions
AND LOAD and or LOAD
OUTPUT and OUTPUT NOT -- out and out NOT
SET and RESET -- SET and RSET
Keep -- Keep
DIFFERENTIATE up and down -- DIFU(13) and DIFD
No Operation -- Nop
End -- End
INTERLOCK and INTERLOCK CLEAR -- IL(02) and ILC
JUMP and JUMP END -- JMP(04) and JME
User Error Instructions: FAILURE ALARM and RESET -- FAL(06) and
Severe Failure Alarm -- Fals
Step Instructions: STEP DEFINE and STEP START--STEP(08)/SNXT(09)
Step Instructions: STEP DEFINE and STEP START--STEP(08)/SNXT
Timer and Counter Instructions
Timer -- Tim
High-Speed Timer -- Timh
Long Timer: Timl
Very High-Speed Timer: Tmhh
Counter -- Cnt
Reversible Counter -- Cntr
Register Comparison Table -- Ctbl
Mode Control -- Ini
High-Speed Counter Pv Read -- Prv
Shift Instructions
Data Movement Instructions
Comparison Instructions
Conversion Instructions
BCD Calculation Instructions
Binary Calculation Instructions
Binary Add -- Adb
Binary Subtract -- Sbb
Binary Multiply -- Mlb
Binary Divide -- Dvb
Special Math Instructions
Find Maximum -- Max
Find Minimum -- Min
Average Value -- Avg
Sum -- Sum
Logic Instructions
Complement -- Com
Logical and -- Andw
Logical or -- Orw
Exclusive or -- Xorw
Exclusive nor -- Xnrw
Increment/Decrement Instructions
Bcd Increment -- Inc
Bcd Decrement -- Dec
Subroutine Instructions
Subroutine Enter -- Sbs
SUBROUTINE DEFINE and RETURN -- SBN(92)/RET(93)
Macro -- Mcro
Special Instructions
Message Display -- Msg
I/O Refresh -- Iorf
Bit Counter -- Bcnt
Frame Checksum -- Fcs
Set Pulses -- Puls
Speed Output-- Sped
Acceleration Control -- Acc
Pulse with Variable Duty Ratio -- Pwm
Synchronized Pulse Control -- Sync
Data Search -- Srch
Pid Control -- Pid
Interrupt Control Instructions
Interrupt Control -- Int
Interval Timer -- Stim
Communications Instructions
Receive -- Rxd
Transmit -- Txd
Change Rs-232C Setup -- Stup
Section 8 PC Operations and Processing Time
PC Operations and Processing Time
CPM1/CPM1A Cycle Time and I/O Response Time
The CPM1/CPM1A Cycle
CPM1/CPM1A Cycle Time
I/O Response Time
One-To-One PC Link I/O Response Time
Interrupt Processing Time
CPM1/CPM1A Instruction Execution Times
CPM2A/CPM2C Cycle Time and I/O Response Time
CPM2A/CPM2C Cycle Time
One-To-One PC Link I/O Response Time
Interrupt Processing Time
CPM2A/CPM2C Instruction Execution Times
SRM1(-V2) Cycle Time and I/O Response Time
The SRM1(-V2) Cycle
SRM1(-V2) Cycle Time
I/O Response Time
One-To-One PC Link I/O Response Time
Interrupt Processing Time
SRM1(-V2) Instruction Execution Times
Troubleshooting
Introduction
Programming Console Operation Errors
Programming Errors
User-Defined Errors
Operating Errors
Error Log
Host Link Errors
Troubleshooting Flowcharts
A Programming Instructions
B Error and Arithmetic Flag Operation
C Memory Areas
D I/O Assignment Sheet
E Program Coding Sheet
F List of FAL Numbers
G Extended ASCII
Index
Revision History
Advertisement
Quick Links
1
Pc Setup
2
Cpm1/Cpm1A Communications Functions
Download this manual
See also:
Programming Manual
,
Operating Manual
CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2)
Programmable Controllers
Programming Manual
Produced May 1999
Table of
Contents
Previous
Page
Next
Page
1
2
3
4
5
Advertisement
Chapters
Table of Contents
3
Section 1 PC Setup
13
Section 2 Special Features
34
Section 4 Communications Functions
177
Section 6 Ladder-Diagram Programming
264
Section 7 Instruction Set
292
Section 8 PC Operations and Processing Time
439
Table of Contents
Troubleshooting
Troubleshooting
477
Host Link Errors
485
Need help?
Do you have a question about the CPM1 and is the answer not in the manual?
Ask a question
Questions and answers
Subscribe to Our Youtube Channel
Related Manuals for Omron CPM1
Controller OMRON CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual
(615 pages)
Controller OMRON CPM1 Programming Manual
(541 pages)
Controller Omron CPM1 Operation Manual
(144 pages)
Controller OMRON CPM2C Operation Manual
Sysmac series programmable controller (325 pages)
Controller OMRON CPM1A Operation Manual
Sysmac series programmable controllers (201 pages)
Controller Omron CPM2C Operation Manual
(163 pages)
Control Unit Omron SRM1(-V2) Operation Manual
Compobus/s controller (126 pages)
Controller OMRON CPM1A Datasheet
Smallest plc in the sysmac c series (29 pages)
Controller Omron CPM1A Manual
Micro programmable controller (25 pages)
Controller Omron Micro Programmable Controllers CPM1A Brochure & Specs
Micro programmable controllers (6 pages)
Controller OMRON CP1 Brochure
Compact machine controllers (12 pages)
Controller OMRON Sysmac CP1H Datasheet
(18 pages)
Controller OMRON CPM2A - 11-2005 Manual
Programmable controllers (187 pages)
Controller Omron CP1E-ED User Manual
Cpu units, sysmac cp series (262 pages)
Controller Omron SYSMAC Operation Manual
(26 pages)
Controller Omron Sysmac CPM1 Operation Manual
(142 pages)
This manual is also suitable for:
Srm-v2
Cpm1a
Cpm2a
Srm1
Cpm2c
Table of Contents
Save PDF
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL
Need help?
Do you have a question about the CPM1 and is the answer not in the manual?
Questions and answers