Sign In
Upload
Manuals
Brands
OMRON Manuals
Controller
CPM2A - PROGRAMING 02-2001
OMRON CPM2A - PROGRAMING 02-2001 Manuals
Manuals and User Guides for OMRON CPM2A - PROGRAMING 02-2001. We have
2
OMRON CPM2A - PROGRAMING 02-2001 manuals available for free PDF download: Programming Manual
OMRON CPM2A - PROGRAMING 02-2001 Programming Manual (615 pages)
Brand:
OMRON
| Category:
Controller
| Size: 3.64 MB
Table of Contents
Table of Contents
6
Precautions
16
General Precautions
17
Intended Audience
17
Safety Precautions
17
Operating Environment Precautions
19
Application Precautions
20
Section 1 PC Setup
23
PC Setup
24
Changing the PC Setup
24
CPM1/CPM1A PC Setup Settings
25
CPM2A/CPM2C PC Setup Settings
29
SRM1(-V2) PC Setup Settings
35
Basic PC Operation and I/O Processes
38
Startup Mode
38
Hold Bit Status
39
Program Memory Write-Protection
39
RS-232C Port Servicing Time (CPM2A/CPM2C/SRM1(-V2) Only)
40
Peripheral Port Servicing Time
40
Cycle Monitor Time
40
Minimum Cycle Time
41
Input Time Constants
41
CPM2C Changes in SW2
43
Error Log Settings
43
Section 2 Special Features
46
Special Features
46
CPM2A/CPM2C Interrupt Functions
47
Processing the same Memory Locations with the Main Program
48
And Interrupt Subroutines
48
Interrupt Inputs
51
Interval Timer Interrupts
58
Precautions on Programming Interrupts
63
CPM2A/CPM2C High-Speed Counters
66
Using High-Speed Counters
68
Input Interrupts in Counter Mode
89
CPM1/CPM1A Interrupt Functions
98
Types of Interrupts
98
Input Interrupts
100
Masking All Interrupts
104
Interval Timer Interrupts
105
High-Speed Counter Interrupts
107
SRM1(-V2) Interrupt Functions
115
Types of Interrupts
115
CPM2A/CPM2C Pulse Output Functions
118
Interval Timer Interrupts
119
CPM2A/CPM2C Pulse Output Functions
119
Using Pulse Outputs with Variable Duty Ratio
132
Using Pulse Outputs with Trapezoidal Acceleration and Deceleration
138
CPM1A Pulse Output Functions
152
Programming Example in Continuous Mode
153
Programming Example in Independent Mode
153
Using Pulse Output Instructions
153
Changing the Frequency
154
Stopping Pulse Output
154
Synchronized Pulse Control (CPM2A/CPM2C Only)
155
Data Computation Standards
167
Pulse Outputs
167
Synchronized Pulse Control
167
Analog I/O Functions (CPM1/CPM1A/CPM2A/CPM2C Only)
168
Temperature Sensor Input Functions (CPM1A/CPM2A/CPM2C Only)
168
Compobus/S I/O Slave Functions (CPM1A/CPM2A/CPM2C Only)
168
Compobus/S I/O Master Functions (SRM1(-V2) and CPM2C-S Only)
169
Analog Controls (CPM1/CPM1A/CPM2A Only)
171
Quick-Response Inputs
174
CPM1/CPM1A Quick-Response Inputs
174
CPM2A/CPM2C Quick-Response Inputs
175
Macro Function
178
Calculating with Signed Binary Data
179
Differential Monitor
180
Definition of Signed Binary Data
180
Arithmetic Flags
180
Inputting Signed Binary Data Using Decimal Values
180
Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)
181
CPM2A/CPM2C/CPM2C-S Expansion Instructions
182
SRM1(-V2) Expansion Instructions
183
Using the CPM2A/CPM2C Clock Function
184
Data Area Words
184
Setting the Time
184
Section 3 Using Expansion Units
185
Section 3
185
Analog I/O Units
186
CPM1A-MAD01 Analog I/O Unit
186
CPM1A-MAD11 and CPM2C-MAD11 Analog I/O Units
197
Temperature Sensor Units
213
CPM1A/CPM2A Temperature Sensor Units
213
CPM2C Temperature Sensor Units
214
Using Temperature Sensor Units
215
Connecting Temperature Sensor Units
215
Ladder Programming
222
Two-Decimal-Place Mode
228
Compobus/S I/O Link Units
234
Devicenet I/O Link Unit
239
Using Expansion Units
185
Section 4 Communications Functions
245
Communications Functions
245
SECTION 4 Communications Functions
245
Introduction
246
Overview
246
Wiring Ports
246
CPM1/CPM1A Communications Functions
247
Host Link Communications
247
One-To-One NT Link Communications
248
One-To-One PC Link Communications
249
CPM2A/CPM2C Communications Functions
251
Host Link Communications
251
No-Protocol Communications
271
One-To-One NT Link Communications
280
One-To-One PC Link Communications
283
SRM1(-V2) Communications Functions
288
Host Link Communications
288
No-Protocol Communications
292
One-To-One NT Link Communications
297
One-To-N NT Link Communications
298
One-To-One PC Link Communications
299
Host Link Commands
301
Ir/Sr Area Read - Rr
301
Lr Area Read - Rl
302
Hr Area Read - Rh
302
Pv Read - Rc
302
Tc Status Read - Rg
303
DM Area Read - Rd
303
Ar Area Read - Rj
304
Ir/Sr Area Write - Wr
305
Lr Area Write - Wl
305
Hr Area Write - Wh
306
Pv Write - Wc
306
Tc Status Write - Wg
307
DM Area Write - Wd
308
Ar Area Write - Wj
308
Sv Read 1 - R
309
Sv Read 2 - R
310
Sv Change 1 - W
311
Sv Change 2 - W
312
Status Read - Ms
313
Status Write - Sc
314
Error Read - Mf
315
Forced Reset - Kr
317
Multiple Forced Set/Reset - Fk
318
Forced Set/Reset Cancel - Kc
319
Pc Model Read - MM
320
Test - Ts
320
Program Read - Rp
321
Program Write - Wp
321
Compound Command - Qq
322
Abort - Xz
324
Initialize
324
Txd Response - Ex
324
Undefined Command - IC
325
Section 5 Memory Areas
326
Memory Areas
326
Memory Area Functions
327
Memory Area Structure
327
SECTION 5 Memory Areas
328
Functions
330
I/O Allocation for CPM1/CPM1A/CPM2A Pcs
332
CPM1/CPM1A/SRM1(-V2) Flash Memory
332
CPU Units
332
Expansion I/O Units
336
Expansion Units
337
Examples of Expansion Unit and Expansion I/O Unit Allocation
338
I/O Allocation for CPM2C Pcs
342
CPU Units
342
Expansion I/O Units
344
Expansion Units
347
Examples of Expansion Unit and Expansion I/O Unit Allocation
348
Ladder-Diagram Programming
351
Basic Procedure
352
Instruction Terminology
352
Basic Ladder Diagrams
353
Controlling Bit Status
372
Work Bits (Internal Relays)
374
Programming Precautions
376
Program Execution
378
Instruction Set
379
SECTION 7 Instruction Set
379
Notation
382
Instruction Format
382
Data Areas, Definer Values, and Flags
382
Differentiated Instructions
384
Coding Right-Hand Instructions
385
Instruction Tables
388
Ladder Diagram Instructions
394
Bit Control Instructions
395
No Operation - Nop
399
End - End
399
INTERLOCK and INTERLOCK CLEAR - IL(02) and ILC(03)
399
JUMP and JUMP END - JMP(04) and JME
401
User Error Instructions: FAILURE ALARM and RESET - FAL(06) and SEVERE FAILURE ALARM - FALS
403
Step Instructions: STEP DEFINE and STEP START-STEP(08)/SNXT
403
STEP DEFINE and STEP START-STEP(08)/SNXT(09)
403
Timer and Counter Instructions
406
Shift Instructions
422
Data Movement Instructions
429
Data Control Instructions
439
Comparison Instructions
450
Conversion Instructions
457
BCD Calculation Instructions
475
Binary Calculation Instructions
485
Special Math Instructions
489
Logic Instructions
497
Increment/Decrement Instructions
501
Subroutine Instructions
502
Pulse Output Instructions
505
Special Instructions
515
Interrupt Control Instructions
519
Communications Instructions
523
Section 8
529
PC Operations and Processing Time
529
CPM1/CPM1A Cycle Time and I/O Response Time
530
The CPM1/CPM1A Cycle
530
CPM1/CPM1A Cycle Time
531
I/O Response Time
532
One-To-One PC Link I/O Response Time
533
Interrupt Processing Time
535
CPM1/CPM1A Instruction Execution Times
536
CPM2A/CPM2C Cycle Time and I/O Response Time
541
CPM2A/CPM2C Cycle Time
541
I/O Response Time
542
One-To-One PC Link I/O Response Time
543
Interrupt Processing Time
545
CPM2A/CPM2C Instruction Execution Times
546
SRM1(-V2) Cycle Time and I/O Response Time
555
The SRM1(-V2) Cycle
555
SRM1(-V2) Cycle Time
556
I/O Response Time
558
One-To-One PC Link I/O Response Time
559
Interrupt Processing Time
560
SRM1(-V2) Instruction Execution Times
561
Troubleshooting
567
Introduction
568
Programming Console Operation Errors
568
Programming Errors
569
User-Defined Errors
570
Operating Errors
571
Error Log
573
Host Link Errors
575
Troubleshooting Flowcharts
575
A Programming Instructions
576
B Error and Arithmetic Flag Operation
581
C Memory Areas
584
D I/O Assignment Sheet
601
E Program Coding Sheet
602
F List of FAL Numbers
605
G Extended ASCII
607
Index
608
Revision History
614
Advertisement
Omron CPM2A - PROGRAMING 02-2001 Programming Manual (523 pages)
Brand:
Omron
| Category:
Controller
| Size: 5.48 MB
Table of Contents
Table of Contents
3
General Precautions
8
Intended Audience
8
Safety Precautions
8
Operating Environment Precautions
9
Application Precautions
10
Section 1 PC Setup
13
PC Setup
14
Changing the PC Setup
14
CPM1/CPM1A PC Setup Settings
15
CPM2A/CPM2C PC Setup Settings
19
SRM1(-V2) PC Setup Settings
25
Basic PC Operation and I/O Processes
28
Startup Mode
28
Hold Bit Status
29
Program Memory Write-Protection
29
RS-232C Port Servicing Time (CPM2A/CPM2C/SRM1(-V2) Only)
30
Peripheral Port Servicing Time
30
Cycle Monitor Time
30
Minimum Cycle Time
31
Input Time Constants
31
Error Log Settings
33
Section 2 Special Features
34
Special Features
34
SECTION 2 Special Features
34
CPM2A/CPM2C Interrupt Functions
35
Interrupt Inputs
36
Interval Timer Interrupts
43
CPM2A/CPM2C High-Speed Counters
48
Using High-Speed Counters
51
Input Interrupts in Counter Mode
71
CPM1/CPM1A Interrupt Functions
79
Types of Interrupts
79
Input Interrupts
81
Masking All Interrupts
86
Interval Timer Interrupts
87
High-Speed Counter Interrupts
89
SRM1(-V2) Interrupt Functions
97
Types of Interrupts
97
Interval Timer Interrupts
97
CPM2A/CPM2C Pulse Output Functions
100
(Fixed Duty Ratio)
104
Using Pulse Outputs with Variable Duty Ratio
114
Using Pulse Outputs with Trapezoidal Acceleration and Deceleration
119
CPM1A Pulse Output Functions
132
Programming Example in Continuous Mode
133
Programming Example in Independent Mode
133
Using Pulse Output Instructions
133
Changing the Frequency
134
Stopping Pulse Output
134
Synchronized Pulse Control (CPM2A/CPM2C Only)
135
Analog I/O Functions (CPM1/CPM1A/CPM2A Only)
146
Compobus/S I/O Slave Functions (CPM1A/CPM2A Only)
146
Compobus/S I/O Master Functions (SRM1(-V2) Only)
146
Analog Controls
147
CPM1/CPM1A Analog Controls
148
CPM2A Analog Controls
149
Quick-Response Inputs
150
CPM1/CPM1A Quick-Response Inputs
150
CPM2A/CPM2C Quick-Response Inputs
151
Macro Function
154
Calculating with Signed Binary Data
156
Definition of Signed Binary Data
156
Arithmetic Flags
156
Differential Monitor
157
Inputting Signed Binary Data Using Decimal Values
157
Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)
158
CPM2A/CPM2C Expansion Instructions
159
Using the CPM2A/CPM2C Clock Function
160
SRM1(-V2) Expansion Instructions
160
Data Area Words
160
Setting the Time
161
Using Expansion Units
162
Analog I/O Units
163
Compobus/S I/O Link Unit
172
Section 4 Communications Functions
177
Communications Functions
177
SECTION 4 Communications Functions
177
Introduction
178
Overview
178
Wiring Ports
178
CPM1/CPM1A Communications Functions
179
Host Link Communications
179
One-To-One NT Link Communications
180
One-To-One PC Link Communications
181
CPM2A/CPM2C Communications Functions
183
Host Link Communications
183
No-Protocol Communications
199
One-To-One NT Link Communications
208
One-To-One PC Link Communications
210
SRM1(-V2) Communications Functions
213
Host Link Communications
213
No-Protocol Communications
217
Host Link Commands
226
Lr Area Read
227
Hr Area Read
227
Tc Status Read
228
DM Area Read
229
Ar Area Read
229
Lr Area Write
231
Tc Status Write
232
DM Area Write
233
Ar Area Write
234
Sv Read 1
234
Sv Read 2
235
Sv Change 1
236
Sv Change 2
237
Status Read
238
Status Write
239
Error Read
240
Forced Reset
242
Multiple Forced Set/Reset
243
Pc Model Read
245
Test
245
Program Read
246
Program Write
246
Compound Command
247
Initialize
249
Txd Response
249
Undefined Command
250
Memory Areas
251
CPM1/CPM1A Memory Area Functions
251
CPM1/CPM1A Memory Area Functions
252
CPM2A/CPM2C Memory Area Functions
255
SRM1(-V2) Memory Area Functions
260
SRM1(-V2) Flash Memory
262
Section 6 Ladder-Diagram Programming
264
Basic Procedure
265
Instruction Terminology
265
Basic Ladder Diagrams
266
Basic Terms
266
Mnemonic Code
267
Ladder Instructions
268
OUTPUT and OUTPUT NOT
271
The END Instruction
272
Logic Block Instructions
272
Coding Multiple Right-Hand Instructions
280
Branching Instruction Lines
280
Jumps
284
Controlling Bit Status
285
SET and RESET
285
DIFFERENTIATE up and DIFFERENTIATE down
286
Keep
286
Work Bits (Internal Relays)
287
Self-Maintaining Bits (Seal)
287
Programming Precautions
289
Program Execution
291
Section 7 Instruction Set
292
Instruction Set
292
SECTION 7 Instruction Set
292
Notation
295
Instruction Format
295
Data Areas, Definer Values, and Flags
295
Differentiated Instructions
297
Coding Right-Hand Instructions
298
Instruction Tables
301
CPM1/CPM1A Function Codes
301
CPM2A/CPM2C Function Codes
302
SRM1(-V2) Function Codes
303
Alphabetic List by Mnemonic
304
Ladder Diagram Instructions
307
LOAD, LOAD NOT, AND, and NOT, OR, and or NOT
307
Bit Control Instructions
308
AND LOAD and or LOAD
308
OUTPUT and OUTPUT NOT -- out and out NOT
308
SET and RESET -- SET and RSET
309
Keep -- Keep
310
DIFFERENTIATE up and down -- DIFU(13) and DIFD
311
No Operation -- Nop
312
End -- End
312
INTERLOCK and INTERLOCK CLEAR -- IL(02) and ILC
312
JUMP and JUMP END -- JMP(04) and JME
314
User Error Instructions: FAILURE ALARM and RESET -- FAL(06) and
316
Severe Failure Alarm -- Fals
316
Step Instructions: STEP DEFINE and STEP START--STEP(08)/SNXT(09)
317
Step Instructions: STEP DEFINE and STEP START--STEP(08)/SNXT
317
Timer and Counter Instructions
319
Timer -- Tim
320
High-Speed Timer -- Timh
321
Long Timer: Timl
322
Very High-Speed Timer: Tmhh
323
Counter -- Cnt
324
Reversible Counter -- Cntr
325
Register Comparison Table -- Ctbl
326
Mode Control -- Ini
329
High-Speed Counter Pv Read -- Prv
331
Shift Instructions
334
Data Movement Instructions
342
Comparison Instructions
351
Conversion Instructions
358
BCD Calculation Instructions
381
Binary Calculation Instructions
391
Binary Add -- Adb
391
Binary Subtract -- Sbb
392
Binary Multiply -- Mlb
394
Binary Divide -- Dvb
394
Special Math Instructions
395
Find Maximum -- Max
395
Find Minimum -- Min
396
Average Value -- Avg
397
Sum -- Sum
399
Logic Instructions
400
Complement -- Com
400
Logical and -- Andw
401
Logical or -- Orw
402
Exclusive or -- Xorw
402
Exclusive nor -- Xnrw
403
Increment/Decrement Instructions
404
Bcd Increment -- Inc
404
Bcd Decrement -- Dec
404
Subroutine Instructions
405
Subroutine Enter -- Sbs
405
SUBROUTINE DEFINE and RETURN -- SBN(92)/RET(93)
407
Macro -- Mcro
407
Special Instructions
408
Message Display -- Msg
408
I/O Refresh -- Iorf
410
Bit Counter -- Bcnt
410
Frame Checksum -- Fcs
411
Set Pulses -- Puls
413
Speed Output-- Sped
414
Acceleration Control -- Acc
416
Pulse with Variable Duty Ratio -- Pwm
419
Synchronized Pulse Control -- Sync
421
Data Search -- Srch
422
Pid Control -- Pid
423
Interrupt Control Instructions
429
Interrupt Control -- Int
429
Interval Timer -- Stim
432
Communications Instructions
433
Receive -- Rxd
433
Transmit -- Txd
435
Change Rs-232C Setup -- Stup
437
Section 8 PC Operations and Processing Time
439
PC Operations and Processing Time
439
CPM1/CPM1A Cycle Time and I/O Response Time
440
The CPM1/CPM1A Cycle
440
CPM1/CPM1A Cycle Time
441
I/O Response Time
442
One-To-One PC Link I/O Response Time
443
Interrupt Processing Time
445
CPM1/CPM1A Instruction Execution Times
446
CPM2A/CPM2C Cycle Time and I/O Response Time
451
CPM2A/CPM2C Cycle Time
451
One-To-One PC Link I/O Response Time
453
Interrupt Processing Time
455
CPM2A/CPM2C Instruction Execution Times
456
SRM1(-V2) Cycle Time and I/O Response Time
465
The SRM1(-V2) Cycle
465
SRM1(-V2) Cycle Time
468
I/O Response Time
468
One-To-One PC Link I/O Response Time
469
Interrupt Processing Time
470
SRM1(-V2) Instruction Execution Times
471
Troubleshooting
477
Introduction
478
Programming Console Operation Errors
478
Programming Errors
479
User-Defined Errors
480
Operating Errors
481
Error Log
483
Host Link Errors
485
Troubleshooting Flowcharts
485
A Programming Instructions
486
B Error and Arithmetic Flag Operation
491
C Memory Areas
494
D I/O Assignment Sheet
510
E Program Coding Sheet
511
F List of FAL Numbers
514
G Extended ASCII
516
Index
517
Revision History
523
Advertisement
Related Products
OMRON CPM2C
OMRON CPM2A - 11-2005
Omron CPM2C-S100C
Omron CPM2C-S110C
Omron CPM2C-S100C-DRT
Omron CPM2C-S110C-DRT
Omron SYSMAC CPM2C-S
Omron SYSMAC CPM2B
Omron SYSMAC CPM2B-S001M-DRT
OMRON CPM1A
OMRON Categories
Blood Pressure Monitor
Controller
Accessories
Switch
Inverter
More OMRON Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL