Home
Omron
Controller
CQM1H - PROGRAM
Omron CQM1H - PROGRAM User Manual
4
of 1
of 1 rating
602 pages
Give review
Manual
Specs
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
xxvi
Conf
ormance to EC Direct
ives
6
When switchin
g a load with a high in
rush
current
such as an
incandes
cent
lamp, suppress
the inr
ush
curre
nt as s
hown below
.
OUT
COM
R
OUT
COM
R
Countermeasure 1
Providing a dark current of approx.
one-third of the rated v
alue through
an incandescent lamp
Countermeasure 2
Providing a limiting resistor
24
26
Table of Contents
Table of Contents
6
About this Manual
10
Precautions
16
Format
16
General Precautions
17
Intended Audience
17
Safety Precautions
17
Application Precautions
19
Operating Environment Precautions
19
Conformance to EC Directives
23
Applicable Directives
23
Concepts
23
Relay Output Noise Reduction Methods
23
Conformance to EC Directives
25
Section 1
26
PC Setup and Other Features
26
Masking
26
PC Setup
27
Changing the PC Setup
27
Serial Communications Board Settings
28
PC Setup Settings
29
Inner Board Settings
34
Settings for a Serial Communications Board
34
Settings for a High-Speed Counter Board
35
Settings for a Pulse I/O Board
36
Settings for an Absolute Encoder Interface Board
36
Basic PC Operation and I/O Processes
37
Settings for an Analog I/O Board
37
Startup Mode
37
Hold Bit Status
38
RS-232C Port Servicing Time
38
Input Time Constants
39
Minimum Cycle Time
39
Peripheral Port Servicing Time
39
High-Speed Timers
40
DSW(87) Input Digits and Output Refresh Method
41
Peripheral Port Settings
41
Error Log Settings
42
Interrupt Functions
43
Types of Interrupts
43
Processing the same Memory Locations with the Main Program and Interrupt Subroutines
46
Input Interrupts
48
Control
50
Ladder
50
Masking All Interrupts
55
Interval Timer Interrupts
56
Interval Timers
56
Scheduled Interrupt Mode
56
High-Speed Counter 0 Interrupts
59
High-Speed Counter 0 Overflows/Underflows
67
Pulse Output Function
69
Communications Functions
72
Host Link and No-Protocol Communications Settings
73
Host Link Communications Settings and Procedures
76
No-Protocol Communications Settings and Procedures
78
One-To-One Data Links
80
NT Link 1:1 Mode Communications
82
Calculating with Signed Binary Data
83
Definition of Signed Binary Data
83
Wiring Ports
83
Arithmetic Flags
84
Inputting Signed Binary Data Using Decimal Values
84
Application Example Using Signed Binary Data
85
Using Signed-Binary Expansion Instructions
85
Section 2 Inner Boards
88
Inner Boards
88
High-Speed Counter Board
89
Example System Configuration
89
Functions
89
Model
89
Applicable Inner Board Slots
90
Names and Functions
90
Specifications
91
High-Speed Counters 1 to 4
94
Pulse I/O Board
112
Function
112
Model
112
System Configuration
113
Applicable Inner Board Slot
114
Names and Functions
114
Specifications
115
Pulse Output Specifications
117
High-Speed Counters 1 and 2
120
Fixed Duty Factor Pulse Output
130
Functions
130
Variable Duty Factor Pulse Outputs
142
Determining the Status of Ports 1 and 2
145
Absolute Encoder Interface Board
146
Model
146
Precautions When Using Pulse Output Functions
146
Functions
147
System Configuration
147
Applicable Inner Board Slots
148
Names and Functions
148
Absolute Encoder Input Specifications
149
High-Speed Counter Interrupts
151
Absolute Encoder Interface Board
153
Analog Setting Board
160
Function
160
Model
160
Applicable Inner Board Slots
161
Names and Functions
161
Specifications
161
Analog I/O Board
162
Function
162
Model
162
System Configuration
162
Applicable Inner Board Slot
163
Names and Functions
163
Specifications
164
Serial Communications Board
166
Application Procedure
166
Model Number
166
Serial Communications Boards
166
Features
167
System Configuration
168
Section 3 Memory Areas
170
Memory Areas
170
Memory Area Structure
171
IR Area
173
I/O Allocation
173
Input and Output Areas
173
Work Areas
173
Flags/Bits for an Inner Board in Slot 1 (IR 200 to IR 215)
180
Flags/Bits for an Inner Board in Slot 2 (IR 232 to IR 243)
183
Flags/Bits for Communications Units
184
SR Area
185
TR Area
188
HR Area
188
AR Area
189
Shared Flags/Bits (AR 00 to AR 04)
189
Flags/Bits for Inner Boards (AR 05 and AR 06)
190
Shared Flags/Bits (AR 07 to AR 27)
192
Using the Clock
195
LR Area
196
Timer/Counter Area
197
DM Area
197
EM Area
199
Using Memory Cassettes
199
Memory Cassettes and Contents
199
Memory Cassette Capacity and Program Size
200
Reading from the Memory Cassette
202
Writing to the Memory Cassette
202
Comparing Memory Cassette Contents
203
Section 4 Ladder-Diagram Programming
204
Ladder-Diagram Programming
204
Controlling Bit Status
204
Logic Block Instructions
204
Basic Procedure
205
Instruction Terminology
205
Basic Ladder Diagrams
206
Basic Terms
206
Mnemonic Code
207
Ladder Instructions
208
OUTPUT and OUTPUT NOT
211
The END Instruction
211
Logic Block Instructions
212
Coding Multiple
219
Coding Multiple Right-Hand Instructions
219
Branching
220
Branching Instruction Lines
220
Interlocks
222
Jumps
223
Controlling Bit Status
225
SET and RESET
225
DIFFERENTIATE up and DIFFERENTIATE down
226
Keep
226
Self-Maintaining Bits (Seal)
226
Work Bits (Internal Relays)
227
Programming Precautions
229
Program Execution
230
Indirectly Addressing the DM and EM Areas
231
Section 5 Instruction Set
232
Instruction Set
232
Notation
236
Instruction Format
236
Data Areas, Definer Values, and Flags
236
Differentiated Instructions
238
Expansion Instructions
239
Sqrt
239
Srch
239
Stup
239
Sum
239
Tan
239
Xfrb
239
Coding Right-Hand Instructions
240
Instruction Tables
242
Instructions with Fixed Function Codes
242
Expansion Instructions
243
Alphabetic List by Mnemonic
243
Int(89)
245
Sft 10
246
Sftr(84)
246
Sld(74)
246
Snxt 09
246
Srd(75)
246
Stc(40)
246
Sub(31)
246
Subl(55)
246
Tcmp(85)
246
Tim
246
Ladder Diagram Instructions
247
LOAD, LOAD NOT, AND, and NOT, OR, and or NOT
247
Xnrw(37)
247
Xorw(36)
247
Zcp
247
Zcpl
247
Bit Control Instructions
248
AND LOAD and or LOAD
248
OUTPUT and OUTPUT NOT - out and out NOT
249
SET and RESET - SET and RSET
249
Keep - Keep(11)
250
DIFFERENTIATE up and down - DIFU(13) and DIFD(14
251
No Operation - Nop(00)
252
End - End(01)
252
INTERLOCK and INTERLOCK CLEAR - IL(02) and ILC(03)
252
INTERLOCK and INTERLOCK CLEAR - IL(02) and ILC
252
IL(02) and ILC(03)
253
JUMP and JUMP END - JMP(04) and JME(05)
254
JUMP and JUMP END - JMP(04) and JME
254
Jump Numbers
254
User Error Instructions
255
FAILURE ALARM and RESET - FAL(06) and SEVERE FAILURE ALARM - FALS(07)
255
User Error Instructions: FAILURE ALARM and RESET - FAL(06) and SEVERE FAILURE ALARM - FALS(07
255
Step Instructions: STEP DEFINE and STEP START-STEP(08)/SNXT(09)
256
STEP DEFINE and STEP START-STEP(08)/SNXT(09)
256
Timer and Counter Instructions
258
Timer - Tim
259
Counter - Cnt
260
Reversible Counter - Cntr(12)
262
High-Speed Timer - Timh(15)
263
Totalizing Timer - Ttim
264
Interval Timer - Stim(69)
266
Register Comparison Table - Ctbl(63)
268
Mode Control - Ini(61)
280
High-Speed Counter Pv Read - Prv(62)
282
Shift Instructions
286
Shift Register - Sft(10)
286
Word Shift - Wsft(16)
287
Arithmetic Shift Left - Asl(25)
288
Arithmetic Shift Right - Asr(26)
288
Rotate Left - Rol(27)
289
Rotate Right - Ror(28)
289
One Digit Shift Left - Sld(74)
290
One Digit Shift Right - Srd(75)
291
Reversible Shift Register - Sftr(84)
291
Asynchronous Shift Register - Asft(17)
293
Data Movement Instructions
294
Move - Mov(21)
294
Move Not - Mvn(22)
295
Block Transfer - Xfer(70)
296
Block Set - Bset(71)
297
Data Exchange - Xchg(73)
298
Single Word Distribute - Dist(80)
298
Data Collect - Coll(81)
300
Move Bit - Movb(82)
302
Move Digit - Movd(83)
303
Transfer Bits - Xfrb
304
Comparison Instructions
305
Compare - Cmp(20)
305
Block Compare - Bcmp(68)
308
Double Compare - Cmpl(60)
309
Multi-Word Compare - Mcmp(19)
310
Signed Binary Compare - Cps
311
Double Signed Binary Compare - Cpsl
312
Area Range Compare - Zcp(- -)
314
Double Area Range Compare - Zcpl
315
Conversion Instructions
316
Bcd-To-Binary - bin(23)
316
Binary-To-Bcd - Bcd(24)
317
Double Bcd-To-Double Binary - Binl(58)
318
Double Binary-To-Double Bcd - Bcdl(59)
318
4-To-16 Decoder - Mlpx(76)
319
16-To-4 Encoder - Dmpx(77)
321
7-Segment Decoder - Sdec(78)
323
Ascii Convert - Asc(86)
326
Ascii-To-Hexadecimal - Hex
328
Scaling - Scl(66)
330
Signed Binary to Bcd Scaling - Scl2
332
Bcd to Signed Binary Scaling - Scl3
333
Hours-To-Seconds - Sec
336
Seconds-To-Hours - Hms
337
Column-To-Line - Line
338
Line-To-Column - Colm
339
2'S Complement - Neg
340
Double 2'S Complement - Negl
341
BCD Calculation Instructions
342
Bcd Add - Add(30)
342
Clear Carry - Clc(41)
342
Set Carry - Stc(40)
342
Bcd Subtract - Sub(31)
343
Bcd Multiply - Mul(32)
345
Bcd Divide - DIV(33)
346
Double Bcd Add - Addl(54)
347
Double Bcd Subtract - Subl(55)
349
Double Bcd Multiply - Mull(56)
350
Double Bcd Divide - Divl(57)
351
Square Root - Root(72)
352
Binary Calculation Instructions
353
Binary Add - Adb(50)
353
Binary Subtract - Sbb(51)
354
Binary Multiply - Mlb(52)
355
Binary Divide - Dvb(53)
356
Double Binary Add - Adbl
357
Double Binary Subtract - Sbbl
358
Signed Binary Multiply - Mbs
359
Double Signed Binary Multiply - Mbsl
360
Signed Binary Divide - Dbs
361
Double Signed Binary Divide - Dbsl
362
Special Math Instructions
363
Find Maximum - Max
363
Find Minimum - Min
365
Average Value - Avg
366
Sum - Sum(--)
367
Arithmetic Process - Apr
369
Floating-Point Math Instructions
372
Floating to 16-Bit: Fix(--)
377
Floating to 32-Bit: Fixl
378
16-Bit to Floating: Flt
379
32-Bit to Floating: Fltl
380
Floating-Point Add: +F
380
Floating-Point Subtract: -F
382
Floating-Point Multiply: *F
383
Floating-Point Divide: /F
384
Degrees to Radians: Rad
385
Radians to Degrees: Deg
386
Sine: sin
387
Sin
387
Cosine: Cos
388
Tangent: tan
389
Arc Sine: Asin
390
Arc Cosine: Acos
391
Arc Tangent: Atan
392
Square Root: Sqrt
394
Exponent: Exp
395
Logarithm: Log
396
Logic Instructions
397
Complement - Com(29)
397
Logical and - Andw(34)
398
Logical or - Orw(35)
399
Exclusive or - Xorw(36)
399
Exclusive nor - Xnrw(37)
400
Increment/Decrement Instructions
401
Bcd Decrement - Dec(39)
401
Bcd Increment - Inc(38)
401
Subroutine Instructions
402
Subroutine Enter - Sbs(91)
402
Special Instructions
404
SUBROUTINE DEFINE and RETURN - SBN(92)/RET(93)
404
Trace Memory Sampling - Trsm(45)
404
Message Display - Msg(46)
406
I/O Refresh - Iorf(97)
407
Macro - Mcro(99)
408
Bit Counter - Bcnt(67)
410
Frame Checksum - Fcs(- -)
410
Failure Point Detection - Fpd
412
Interrupt Control - Int(89)
416
Set Pulses - Puls(65)
418
Speed Output- Sped(64)
420
Pulse Output - Pls2
423
Counter Mode
423
Acceleration Control - Acc
425
Pulse with Variable Duty Factor - Pwm
427
Data Search - Srch
428
Pid Control - Pid
430
Network Instructions
431
Network Send - Send(90)
431
Network Receive - Recv(98)
435
Deliver Command: Cmnd
437
Communications Instructions
440
Receive - Rxd(47)
440
Transmit - Txd(48)
442
Change Serial Port Setup - Stup
444
Protocol Macro - Pmcr
447
Advanced I/O Instructions
449
7-Segment Display Output - 7Seg(88)
449
Digital Switch Input - Dsw(87)
452
Hexadecimal Key Input - Hky
456
Ten Key Input - Tky(18)
459
Host Link Commands
462
Host Link Command Summary
463
End Codes
464
Codes and Applicable Commands
466
Communications Procedure
467
Command and Response Formats
468
Commands from the Host Computer
468
Commands from the Pc
471
Host Link Commands
472
Ir/Sr Area Read –– Rr
472
Lr Area Read –– Rl
472
Hr Area Read –– Rh
473
DM Area Read –– Rd
474
Tc Status Read –– Rg
474
Ar Area Read –– Rj
475
Em Area Read –– Re
475
Ir/Sr Area Write –– Wr
476
Lr Area Write –– Wl
476
Hr Area Write –– Wh
477
Pv Write –– Wc
477
DM Area Write –– Wd
478
Tc Status Write –– Wg
478
Em Area Write –– We
479
Ar Area Write –– Wj
480
Status Read –– Ms
486
Status Write –– Sc
487
Error Read –– Mf
488
Forced Set –– Ks
489
Forced Reset –– Kr
490
Multiple Forced Set/Reset –– Fk
491
Forced Set/Reset Cancel –– Kc
492
Pc Model Read –– MM
492
Compound Command –– Qq
494
Program Read –– Rp
494
Program Write –– Wp
494
Txd Response –– Ex
497
Undefined Command –– IC
497
CPU Unit Operation and Processing Time
498
CPU Unit Operation
499
Power Interruptions
500
Operation at Power Interruption
500
Startup Operation after a Power Interruption
502
Cycle Time
503
Instruction Execution Times
504
Execution Times
505
I/O Response Time
516
One-To-One Link I/O Response Time
518
Interrupt Processing Time
520
Troubleshooting
522
Introduction
523
Programming Console Operation Errors
523
Programming Errors
524
User-Defined Errors
525
Operating Errors
526
Non-Fatal Errors
526
Fatal Errors
528
Error Log
529
Troubleshooting Flowcharts
530
Programming Instructions
538
Error and Arithmetic Flag Operation
544
Memory Areas
548
Using the Clock
566
I/O Assignment Sheet
568
Program Coding Sheet
570
List of FAL Numbers
574
Extended ASCII
576
Glossary
578
Ladder Diagram
585
Index
594
Floating-Point Math Instructions
599
Expansion
600
Right-Hand Instructions
600
Revision History
602
4
Based on 1 rating
Ask a question
Give review
Questions and Answers:
Need help?
Do you have a question about the Omron CQM1H - PROGRAM and is the answer not in the manual?
Ask a question
Omron CQM1H - PROGRAM Specifications
General
Brand
Omron
Model
CQM1H - PROGRAM
Category
Controller
Language
English
Related product manuals
Omron CQM1H
54 pages
Omron CQM1H-CPU21
54 pages
Omron CQM1H-CPU51
54 pages
Omron CQM1
312 pages
Omron CP2E
47 pages
Omron C20H
102 pages
Omron CPM1A
201 pages
Omron CP1E PLC
4 pages
Omron CJ2M-CPU34
82 pages
Omron CJ1M-CPU22
267 pages
Omron SYSMAC CS1
173 pages
Omron CJ2 Series
86 pages