Welcome

OMRON

Advanced Industrial Automation

OMRON component subdivision Industrial Components
•Electromechanical relays •Timers and counters •Programmable relays •Level controllers •Limit switches •Push buttons •Low voltage switch gear •Temperature and process controllers •Solid-state relays •Panel indicators •Power supplies

OMRON
Automation & Drives Sensing & Safety
•Photoelectric sensors •Displacement sensors •Vision systems •Safety sensors •Safety switches •Safety relays •Proximity sensors •Rotary encoders •Pressure sensors

•Program. Logic Controller •Network systems •HMI terminals •Inverters •Servo systems •Software

Advanced Industrial Automation

Contents of the training Automation & Drives
Contents of the training: • Introduction: PLC Overview OMRON PLC range CJ1M • Software CX-programmer V3.0 • PLC-Basic Hands-On Training … • Building up an Project • PLC-Advanced Hands-on Training …

OMRON

Advanced Industrial Automation

Overview PLC range OMRON CS1 C200HE/HG/HX CQM1H CJ1 SRM1 CPM2C CPM2A CPM1A ZEN 34 100 120 140 256 512 1184 2560 5000 I/O Advanced Industrial Automation .

CPM PLC family OMRON CPM1A The Micro PLC. high functionallity Micro PLC CPM High functionality Micro PLC fully compatible with CPM1A CPM2C Advanced Industrial Automation CPM2A . standard for most of the basic applications • • • • • Relay or transistor outputs Various peripheral devices 4 types of interrupts High-speed counter integrated Networking: Compobus-S (remote I/O) Compobus-D (DeviceNet) Profibus (slave) Super compact.

up to 2 KHz frequency Advanced Industrial Automation .CPM1A Family OMRON • • • • • • • • CPU‟s with 10. 20. 30 and 40 I/O Expandable to 100 I/O 2 KW program memory 1KW data memory 150 instructions 1 port (peripheral) 1 counter for counting to up to 5 KHz 2 pulse generators.

CPM2A Family OMRON • • • • • • CPUs with 30. 20 KHz range • 4 counters for up to 2 KHz • 2 pulse outputs. 40 or 60 I/O Expandable up to 120 I/O 4 KW Program memory 2KW Data memory 185 instructions 2 ports • (Peripheral and RS232) • 1 counter. 10 Khz Advanced Industrial Automation .

15 10.15 .00 – 19.CPM1A/2A adding I/O OMRON CPM1A-10 CPM1A-20 No-expansion CPM1A-30 CPM1A-40 CPM2A-20 CPM2A-30 CPM2A-40 CPM2A-60 Max. 3 modules extra I/O Inputs: I/O Outputs: Advanced Industrial Automation 0.00 – 9.

07 Advanced Industrial Automation 12.CPM I/O example OMRON CPM2A – 40 I/O 24 digital inputs 16 digital outputs 0.00 – 12.07 11.00 – 11.11 CPM expansion – 20 I/O 12 digital inputs 8 digital outputs 2.03 10.00 – 0.00 – 3.11 1.00 – 2.07 3.07 .00 – 1.00 – 10.

CQM PLC family OMRON Modules CPU’s Inner boards Communications Advanced Industrial Automation .

Up to 12. 5 Khz • 1 or 2 comunication ports Advanced Industrial Automation .000 data memory registers Built in all CPU‟s : • 16 built-in digital inputs • 4 counting/interrupt inputs • 1 counter.CQM PLC family OMRON • • • • • • Modular system configuration No need for racks 256/512 I/O points maximum 15 Kw Program memory max.

• Advanced Industrial Automation . Analogue.CQM PLC family OMRON • CQM1H modules – Variety of Digital and Analogue I/O – Temperature control – Linear sensor module – Remote I/O master. fieldbus masters CQM1H inner boards – Counters. Encoders... Communications. Pulse drivers.

CQM1H expansion OMRON Advanced Industrial Automation .

CQM1H expansion OMRON Advanced Industrial Automation .

15 LR00.15 216.00 – 255.CQM1H .00 – 229.511 OMRON Max 256 I/O CPU11/21 Max 512 I/O CPU51/61 Special bits Temporary bits Holding bits Auxiliary bits Link bits Timers / counters Data memory CPU settings Holds on power failure /!\ Mixed DM0000 – DM3071 (CPU 11/21) / DM6143 (CPU 51/61) DM6144 – DM6655 (read only) EM0000 – EM6655 (CPU 61) 000.15 224.15 100.00 – 219.bits and memory Input bits Output bits Work bits 000.15 AR00.00 – HR99.15 016.15 244.00 – 189.00 – AR27.15 TIM/CNT 000 .00 – 000.15 116.07 TR0 – TR7 HR00.00 – LR63.00 – 089.03 Interrupts 4 interrupts  sequence Advanced Industrial Automation .00 – 015.00 – 115.

.CQM1H networking OMRON Controller link CompoBus/D (Slave) NT Link.Modem. Host Link. Modbus (Master) Advanced Industrial Automation . AS-I Bus (Master) CompoBus/S (Master) Protocol Macro.

– 12 meter special up-to 50meter) – C200H power supply units – C200H expansion back-planes usable (max. 7 pcs.) – Number of Special I/O units – Communication Inner boards OMRON Advanced Industrial Automation . 3. 3 pcs. 5.CS1 PLC family . 8 and 10 slots (max.Hardware • Modular system configuration – Standard Nine types of CPU Back-planes for CPU & expansion 2.

CS1 Family – Data storage OMRON • • • • Comments stored in the PLC Easy backup of the program Flash-memory card: 8. 64MB Process values recording from the ladder Data file management – program files – I/O memory files – system parameters files Advanced Industrial Automation . 16. 48. 32.

CS1D

OMRON

Advanced Industrial Automation

CS1D – Risk Management

OMRON

Risk Management is essential in systems requiring a high level reliability.
Every system is subjected to malfunction
Duplex unit

When is this a significant problem? • 24 hour system that can not be stopped • Extremely high starting-up costs • Unexpected stops can lead to disasters e.g. toxic spills, explosions… Duplexing functions: • Double power supply (main and expansion rack) • Double CPU • Double Network cards • Hot swapping of all units without powering down the system (CPU, power supply and normal I/O units But ALSO network and special I/O units)

CPU

PS PS CPU

CLK

CLK

I/O

Expansion I/O Rack

PS PS PS PS

Expansion I/O Rack

Advanced Industrial Automation

CS1D – Hot-standby

OMRON

Advanced Industrial Automation

CS1D – redundant network OMRON Advanced Industrial Automation .

CS1 Allocating I/O Units OMRON Advanced Industrial Automation .

Seamless Advanced Industrial Automation . Compact.CJ1 PLC family OMRON Fast.

C200H series) – Control up to 2560 Local I/O: Typical of the mid-sized PLC category.Introducing the new CJ1 OMRON • A SMALL PLC in size. – Industry leading networking: Omron‟s FINS protocol routes data across networks. – Compact size: Free up panel space without sacrificing performance! Advanced Industrial Automation . but it is not a MICRO… • PLC size and capability no longer go hand-in-hand! • The CJ1 features: – High speed CPUs (40 and 20ns): 20ns is 3 to 5 times faster than typical midsized CPU.g. (e.

the CS1 is and will remain Omron‟s mid-sized PLC and leading technology platform. • OMRON In fact the Omron CJ1 is a CS1 in a smaller package. 2/3 of the Footprint 2/3 the Panel Depth 1/3 Total Panel Volume Advanced Industrial Automation . – Released in 1999.The CJ1 is a mid-sized PLC in a “micro-sized” package.

New processors – Faster and more energy efficient. Advanced Industrial Automation .How is the CJ1 possible? OMRON • • • • Advances in printed circuit board design – More efficient layout. Surface mounted PCB technology – Better heat dissipation. New component technology – Lower energy requirements.

Store PLC programs and transfer to/from PLC memory.CJ1 Features . Access the flash card from CX-Programmer – it appears as another PC drive. Use FTP to store non-PLC related files on the flash card. Log data into the card for manual or network retrieval. Advanced Industrial Automation .Flash Memory Cards OMRON • • • • • 16 to 64 MB flash cards available.

CJ1 Features .Communications OMRON • Ethernet • Controller Link • DeviceNet • CompoBus/S • Single Port Multiple Access • Protocol Macro Advanced Industrial Automation .

Communications Programming & Debug Tool OMRON Protocol Macro: Non-Omron Serial Devices SCADA MESSAGE BOARD Ethernet CLK PCI Board Flash Memory Ethernet Controller Link DeviceNet or CompoBus/S Programming/Diagnostic Software Host Link Omron Touch Screen Single Port Multiple Access Advanced Industrial Automation .CJ1 Features .

0. 5. Smaller modules – up to 10 can be joined by the CJ1 “through plane” Expand up to 4 “racks” of I/O and communications – 40 total modules (2560 local I/O) Expansion 1 • Expansion 2 • Expansion 3 TOTAL EXPANSION BUS LENGTH = 12 meters 0. 3.0. 10. 2. 0.3.7.0 meter cables available Advanced Industrial Automation .0.CJ1G/H Features – Layout Flexibility OMRON CPU Rack • Rack mounted PLCs come with fixed number of slots available. Eliminating the rack eliminates module width restrictions.0. CJ1 is more flexible. 12.

series OMRON Advanced Industrial Automation .CJ1M .

instructions and I/O with CJ1G/H compatible 6 NEW CPUs: .CJ1M – new CPUs OMRON Fast! Small! Seamless!… • Expands the CJ1 family to the small scale control area (CQM1H) • CJ1M memory map.CJ1M-CPU11 (5Ksteps) • CJ1M-CPU12 (10Ksteps) • CJ1M-CPU13 (20Ksteps) • CJ1M-CPU21 (5Ksteps) • CJ1M-CPU22 (10Ksteps) • CJ1M-CPU23 (20Ksteps) Advanced Industrial Automation .

6 outputs • Interrupt functions 4 points • Build-in positioning functions . 2 axis Single phase 100kHz. 2 axis Advanced Industrial Automation . 50kHz.CJ1M .counter function Phase differ.pulse output 100kHz.CJ1M-CPU11 (5Ksteps) • CJ1M-CPU12 (10Ksteps) • CJ1M-CPU13 (20Ksteps) 31 • CJ1M-CPU11 (5Ksteps) • CJ1M-CPU22 (10Ksteps) • CJ1M-CPU23 (20Ksteps) • 16 I/O on the CPU .10 inputs . 2 axes .features OMRON • Peripheral port • RS232C • Memory card interface • Just 31mm wide .

CJ1M – Capacity compared to… User Memory Capacity CJ1G/H CJ1M CQM1H 15 K Data Memory Capacity CJ1G/H CJ1M CQM1H 32 K 20 K OMRON 120 K steps 256 K words 12 K 50% volume reduction Advanced Industrial Automation .

CJ1M – Expansion compared to… Maximum Number of I/O bits CJ1G/H CJ1M 640 512 Maximum Number of Connectable Units CJ1G/H CJ1M CQM1H 11 Up to 10 I/O units can be placed on a CJ1M-CPU. A expansion „rack‟ can be added to the CJ1M-CPU13 & CJ1M-CPU23 20 40 OMRON 2560 CQM1H Advanced Industrial Automation .

3 µs 17.04 µs CJ1G/H CJ1M CQM1H 0.CJ1M – Speed compared to… Execution Time (Basic Instruction) CJ1G/H CJ1M 20 ns 100 ns OMRON 375 ns CQM1H Execution Time (Special Instructions) 0.7 µs CJ1M is 59 times faster!!! Advanced Industrial Automation .

CJ1 PLC – System set-up Basic I/O Special I/O CPU-Bus I/O(*) Interrupt units(*) OMRON CJ1-CPU CJ1-I/O Control Unit End-Cover CJ1-Power Supply Memory Card CJ1-Power Supply Max 12 m I/O Connecting Cable Basic I/O Special I/O CPU-Bus I/O Max 10 Units End-Cover CJ1-I/O Interface Unit Max 10 Units WARNING (*) Place CPU-Bus Units and I/O-Interrupt units next to CPU (5 left slots) Advanced Industrial Automation .

CJ1 PLC .Hardware 3 groups of CJ1-Units OMRON Special I/O Units Basic I/O Units CPU Bus Units CIO 0000 to CIO 0079 (8 . 32 or 64 points) CIO 2000 to CIO 2959 (Refresh area :10 words/unit) D20000 to D29599 (Setup area : 100 words/unit) CIO 1500 to CIO 1899 (Refresh area : 25 words/unit) D30000 to D31599 (Setup area : 100 words/unit) Special I/O unit number (40 Units maximum) Advanced Industrial Automation CPU Bus unit number (16 Units maximum) . 16 .

CJ1 .I/O channel assignment OMRON 008 009 010 011 I/O word 000 001 002 006 003 004 005 007 IN 16 OUT IN OUT 16 16 16 IN 16 IN 16 IN 32 OUT 64 Advanced Industrial Automation .

I/O channel assignment OMRON 008 009 010 011 I/O word 000 006 001 002 003 004 005 007 Reserved IN 16 OUT IN OUT 16 16 16 Reserved IN 16 IN 16 IN 32 OUT 64 Advanced Industrial Automation .CJ1 .

CJ1 .I/O channel assignment CIO word 000 001 002 OMRON IN 16 OUT 16 IN 16 003 004 005 006 IN 16 OUT 16 IN 16 OUT 16 007 008 009 010 OUT 16 IN 16 OUT 16 IN 16 Advanced Industrial Automation .

CJ1 .I/O channel assignment OMRON CPU BUS Special I/O 000 Special I/O 001 002 003 004 005 006 007 008 009 010 00 00 01 IN 16 1500 1524 2000 2009 OUT 16 2010 2019 OUT OUT 16 64 IN 64 Advanced Industrial Automation .

0 OMRON CX-Programmer V3.CS1D (needs CX-P V3.CS1H . ME. Recommended: MS Windows NT.CS1 Bus I/F Board (ITBC-CST01) .CX-programmer V3.0 made in Japan • Improvements on 87 points • Designed to operate with MS Windows XP as well as MS Windows 95. 98.1 for duplex functions) • New Networks supported: .CJ1M .62 node Controller Link Advanced Industrial Automation . NT and 2000. 2000 or XP • New PLC ranges supported: .

E-EM RS11 Enable pasting of Symbol data created using MS-Excel and CX-P V1. T-TIM. C-CNT. H-HR.2. D-DM. L-LR.Improvements on 87 points Small selection: OMRON RS01 Key-function allocation RS03 Open CX-P with default environment RS05 On-line default state: Monitoring RS06 Auto on-line function RS10 Improvement to address formatting: A-AR. RS16 Automatically generate an “END” instruction in a new section RS19 Fast connection across empty cells: [Ctrl] + arrow keys RS24 Connection and division of rungs RS35 Jump to corresponding contact / coil RS56 Rung Wrap RS86 Block / Network Manager Advanced Industrial Automation .

Basic Hands-on training OMRON Advanced Industrial Automation .PLC .

Starting a new project in CX-Programmer OMRON Advanced Industrial Automation .

Opening a new Program OMRON Advanced Industrial Automation .

Up- and downloading of PLC programs

OMRON

Advanced Industrial Automation

Statement List

OMRON
000.00 000.01 000.01 100.00

000.02

LD AND OR AND OUT
000.00 000.01 000.03 100.00

000.00 000.01 000.02 000.03 100.00

000.02

Advanced Industrial Automation

Statement List

OMRON
000.00 000.01 100.00

000.02

000.03

LD AND OR AND OUT
000.00 000.01

000.00 000.01 000.02 000.03 100.00
000.03 100.00

000.02

000.00

000.01

100.00

000.02

000.03

LD AND LD AND OR LD OUT

000.00 000.01 000.02 000.03 100.00

Advanced Industrial Automation

01 000.06 000.07 Advanced Industrial Automation .05 000.05 100.06 000.Statement List OMRON 000.04 000.04 000.01 000.04 000.07 100.05 LD OR LD OR AND LD OUT 000.07 000.06 000.07 000.05 100.01 000.

02 000.03 Advanced Industrial Automation .01 000.Statement List OMRON 000.04 000.00 000.02 000.05 100.03 100.

02 000.00 000.02 0 000.Statement List OMRON 000.05 100.00 000.04 000.03 TEMPORAIRY RELAY LD AND OUT TR AND AND OUT LD TR AND AND OUT Advanced Industrial Automation 000.01 * 000.01 0 000.02 000.03 .02 000.03 100.05 100.03 100.04 000.

. Advanced Industrial Automation .OMRON TRY..

Problem Splitting Working out Design Writing Testing Finishing 5.Program Writing – Seven steps OMRON Define the purpose 1. 4. 6. 2. 3. 7. Advanced Industrial Automation .

Advanced Industrial Automation .Program Writing – Define the Purpose 1.02 is set to off and the drill is returning to the upper position. The drill goes down to limitswitch 0. If the pusher is in the out position (limitswitch 0. This belt stops if there is another product under work. the inputbelt.01 detects the product. If upperlimitswitch 0. OMRON Products on the inputbelt are transported to PES 0. The drill is in the upper position and will be started by output 100.05) the output goes off and the pusher returns.03 detects the drill. After five products the pusher is activated and pushes the products from the belt by output 100. Otherwise the product is transported to the next belt and stops if PES 0.02.02.00.04. During this period no belt is running except the inputbelt. the transportbelt and the outputbelt is started.04 detects the product and stops the outputbelt on the backside of the product . The output 100. PES 0.

In-take transport Drilling station Transport and ejecting the products Advanced Industrial Automation .Program Writing – Problem Splitting OMRON 2.

In-take transport Transport Drilling station Transport Drilling Transport & ejection Transport Ejection of the products Advanced Industrial Automation .Program Writing – More Splitting OMRON 2.

06 100.01 100. 000.04 099.00 100.00 000.01 000.14 099.05 000.03 000.02 100.03 100.Program Writing – Defining I/O list 3.02 000.13 099.15 099.04 000.12 FInput FTransp CilOut CilIn FOutput PusIn PusOut Minput MTransport ACyl MOutput APus PUW PUWR MP MPR OMRON Working out (I/O list) Sensor on input belt Sensor on transport belt Cylinder out Cylinder in Sensor on output belt Pusher in Pusher out Motor input belt Motor transport belt Cylinder Motor output belt Pusher Product under work Product under work ready Move products Move products ready Advanced Industrial Automation .

Adding comments to the PLC program

OMRON

Advanced Industrial Automation

Adding comments to contacts: „Symbols‟

OMRON

„Global symbols‟ and „Local symbols‟

Advanced Industrial Automation

Online Edit

OMRON

Advanced Industrial Automation

An easy way to connect… OMRON Advanced Industrial Automation .

.OMRON TRY.. Advanced Industrial Automation .

HR. HR. T/C. LR R: Result word IR. LR. SR. T/C.Functions OMRON Ladder symbol Operand Data-area S: Source word IR. AR. HR. AR. AR. # P1: Parameter word IR. DM. DM Condition 1 Condition 2 Condition 3 XYZ(99) S P1 R Advanced Industrial Automation . LR.

9 sec = TIM0 INPUT SV TIMER OUTPUT SV Advanced Industrial Automation . LR.1 . AR.9999 = 0.999.Timer Ladder symbol Condition 1 TIM OMRON Operand Data-area N: TC number N SV # (000-511) SV: Set value (BCD) IR. # P1 Time Contact = 1 . HR. DM.

00 SV 100.Normal Timer OMRON 000.00 SV Advanced Industrial Automation .

Delay After Off OMRON 000.01 SV1 Advanced Industrial Automation .01 SV1 100.

On/Off Delay OMRON 000.02 SV3 100.02 SV3 SV2 SV2 Advanced Industrial Automation .

03 SV3 Advanced Industrial Automation .One Shot OMRON 000.03 SV3 100.

HR. # INPUT SV TIMER OUTPUT SV Advanced Industrial Automation .99 sec = TIM0 IR.99. AR.01 .High Speed Timer OMRON Operand Data-area Ladder symbol Condition 1 TIMH(15) N SV N: TC number # (000-511) SV: Set value (BCD) SV Time Contact = 1 .9999 = 0. LR. DM.

# Reset PULSE 5 RESET 4 3 2 1 0 0 5 4 3 5 5 4 COUNTER OUTPUT Advanced Industrial Automation . AR.9999 = CNT511 OMRON Operand Data-area N: Counter number # (000 – 511) SV: Set value (BCD) IR.Counter Ladder symbol Pulse CNT N SV SV Contact = 1 . LR. DM. HR.

LR. # = 1 .9999 = CNT511 DIReset DI- 0 RESET COUNTER OUTPUT 1 2 3 0 1 2 1 0 3 2 3 0 3 0 1 Advanced Industrial Automation .Reversible Counter Ladder symbol II+ CNTR(12) N SV SV Contact II+ OMRON Operand Data-area N: Counter number # (000 – 511) SV: Set value (BCD) IR. DM. HR. AR.

Example Program OMRON Advanced Industrial Automation .

OMRON Try… Manipulation of numbers and bits ON-LINE edit Advanced Industrial Automation .

01 100. HR.00 KEEP(11) 000.01 100.00 000.00 000.Keep Ladder symbol S KEEP(11) OMRON Operand Data-area B: Bit R B 000. AR.00 BIT SET RESET Advanced Industrial Automation . LR 100.00 IR.

Set en Reset OMRON Ladder symbol Operand Data-area S SET B B: Bit IR. AR. LR R RSET B B: Bit IR. HR. HR. AR. LR Advanced Industrial Automation .

LR CYCLUS Advanced Industrial Automation . LR B: Bit IR. AR. HR. AR. HR.Signal Flanks Ladder symbol Signal DIFU(13) B Signal DIFD(14) B OMRON Operand Data-area B: Bit IR.

Interlock OMRON Ladder symbol Signal IL(02) Signal ILC(03) Advanced Industrial Automation .

Interlock OMRON PROGRAM WITHOUT INTERLOCK Advanced Industrial Automation .

Interlock OMRON PROGRAM WITH INTERLOCK Advanced Industrial Automation .

01 DIFU(13) 10.DIFU and DIFD in Interlocks OMRON 000.00 IL(02) 000.00 Advanced Industrial Automation .01 010.00 000.00 ILC(03) A ON OFF ON OFF ON OFF 000.

Example Program OMRON Advanced Industrial Automation .

OMRON Try… Advanced Industrial Automation .

2 sec pulse 1.1 sec pulse 0.253.02 sec pulse 0.Special Internal Relays OMRON Output inhibit Battery alarm Always on Always off .14 First scan 1 min pulse 0.0 sec pulse Advanced Industrial Automation .

Questions? OMRON Thank you for you attention if you have any question… Advanced Industrial Automation .

DATA Hands-on training OMRON Advanced Industrial Automation .PLC .

03 255.06 255.05 255.System Flags OMRON ADRESS 255.04 255.07 FUNCTION ER CY GR EQ LE NAME ERROR CARRY GREATER EQUAL LESS error bit carry bit > bit = bit < bit Advanced Industrial Automation .

Instruction groups OMRON * * * * * * * * * * * * * * * * Logical instructions Timer instructions Counter instructions Basic instructions Bit control instructions Data shifting instructions Data movement instructions Data compare instructions Data conversion instructions Binary calculation BCD calculation Logical calculation Subroutine instructions Step instructions Network instructions Special instructions Advanced Industrial Automation .

Logical instructions OMRON NO contact NC contact Output Inverted output Horizontal and vertical line LD LD NOT AND AND NOT OR OR NOT OUT OUT NOT OR LD AND LD Ladderdiagram: Statement list: Advanced Industrial Automation .

Basic Instructions OMRON NOP(00) END(01) No function End of program IL(02) ILC(03) Interlock Interlock close Advanced Industrial Automation .

00 JMP(O4) 000.Jump Instructions OMRON LADDER SY MBOOL JMP(04) N N: Sprongnummer # (00 to 99) N 000.01 100.00 OPERAND DATAGEBIEDEN N: Sprongnummer # (00 to 99) JME(05) OUTPUTS FREEZE TIM 0 #9999 TIMERS STOP JME(O5) Advanced Industrial Automation .

Advanced Industrial Automation .2 JMP(O4) 0 JME(O5) 0 USED More programs into 1 PLC Shorten programs.1 JMP(O4) 0 JME(O5) 0 LABEL 0 Can be used more than one time in the program.W.Jump Instructions OMRON V.W. V.

2 JMP(O4) 0 LABEL 0 JMP-JMP-JME combination JME(O5) 0 Advanced Industrial Automation .W.W.1 JMP(O4) 0 V.Jump Instructions OMRON V.

1 JMP(O4) 1 V.99 Can be used only once in the program.W. JME(O5) 2 JME(O5) 1 Advanced Industrial Automation .W.Jump Instructions OMRON V.2 JMP(O4) 2 LABEL 1.

99 Jump back in the program USED Recursive action Conversion more than one variable MODBUS CRC Check Advanced Industrial Automation .1 JMP(O4) 1 LABEL 1.W.Jump Instructions OMRON JME(O5) 1 V.

Example Program OMRON Advanced Industrial Automation .

OMRON Try… Advanced Industrial Automation .

Data monitoring OMRON Advanced Industrial Automation .

Data Shifting Instructions OMRON Data Shifting Instructions Advanced Industrial Automation .

St VERLOREN DATA 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 EXECUTIE 1 1 CONDITIE Condition: End word >= Start word Same data area Advanced Industrial Automation . AR...P.Shift Register OMRON SHIFTREGISTER SFT(10) DATA SFT(10) C. LR 99. DM. St+2.00 E St+1. HR. 99 RESET 99 Start word IR. HR. AR. DM.12 100. . LR End word IR.

Example Program OMRON Advanced Industrial Automation .

OMRON Try… Advanced Industrial Automation .

LR 000. HR. DM. AR.03 10.Shift Register OMRON SHIFTREGISTER SFTR(84) V.14 CLOCK PULSE 000.12 Example C= IR10 000. SFTR(84) C St E C: Control word IR. LR E: End word IR. HR. AR. LR St: Start word IR.15 RESET Advanced Industrial Automation . AR.00 10.02 10. DM.01 10. HR. DM.13 L/R DATA 000.W.

ASL(25) Wd Wd: Word IR. LR ER. DM. AR. EQ BIT 15 BIT 0 0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0 Cy 0 Advanced Industrial Automation . HR.Shift Register OMRON SHIFTREGISTER ASL(25) V.W.

LR ER. ASR(26) Wd Wd: Word IR.W. AR.Shift Register OMRON SHIFTREGISTER ASR(26) V. HR. DM. EQ BIT 15 BIT 0 0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0 0 Cy Advanced Industrial Automation .

DM. LR ER.W. EQ BIT 15 BIT 0 0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0 Cy Advanced Industrial Automation .Shift Register OMRON SHIFTREGISTER ROL(27) V. AR. HR. ROL(27) Wd Wd: Word IR.

W. DM. LR ER. ROR(28) Wd Wd: Word IR. EQ BIT 15 BIT 0 0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0 Cy Advanced Industrial Automation . HR.Shift Register OMRON SHIFTREGISTER ROR(28) V. AR.

SLD(74) St E St: Start word IR. DM. HR. LR E: End word IR.Shift Register OMRON SHIFTREGISTER SLD(74) V. HR. AR. DM.W. AR. LR ER E St 2 1 3 2 4 3 5 4 6 5 7 6 8 7 0 8 VERLOREN DATA 0 Condition: End word >= Start word Same data area Advanced Industrial Automation .

HR. SRD(75) E St E: End word IR. DM.W. HR. LR St: Start word IR. DM. AR. AR. LR ER St E 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 VERLOREN DATA 0 Condition: End word >= Start word Same data area Advanced Industrial Automation .Shift Register OMRON SHIFTREGISTER SRD(75) V.

LR E: End word IR. DM. WSFT(16) St E St: Start word IR. HR. AR.Shift Register OMRON SHIFTREGISTER WSFT(16) V. LR ER DM100 0000 0000 1234 1234 1111 2233 1111 1FFF 2233 1FFF 0000 0000 9999 9999 4545 DM106 VERLOREN DATA Condition: End word >= Start word Same data area Advanced Industrial Automation . HR. DM. AR.W.

4.7.2.3.1.5.Notations OMRON NOTATIONS Decimal 0.9 1234 4 * 10 0 3 * 10 1 2 * 10 2 1 * 10 3 Advanced Industrial Automation .6.8.

1 1011 1*20 = 1 1*21 = 2 0*22 = 0 11 :2 rest 1 5 :2 rest 1 2 :2 rest 0 1*2 3 = 8 11 1 :2 rest 1 0 1011 Advanced Industrial Automation .Notations OMRON NOTATIONS Binary 0.

B.E.D.5.Notations OMRON NOTATIONS Hexadecimal 0.C.2.7.9.8.A.F 12A4 4 * 16 0 = 10 * 16 1 = 2 * 16 2 = 4772 : 16 rest 4 4 160 512 298 : 16 rest 10=A 18 : 16 rest 2 1 * 16 3 = 4096 4772 1 : 16 rest 1 0 12A4 Advanced Industrial Automation .4.6.1.3.

Notations OMRON NOTATIONS Hexadecimal <-> Binary Hexadecimal 12A4 Binary 0001 0010 1010 0100 2 15 20 Advanced Industrial Automation .

Notations OMRON NOTATIONS Decimal <-> BCD Decimal 1294 BCD 0001 0010 1001 0100 23 D 20 23 H 20 23 T 20 23 E 20 Advanced Industrial Automation .

Notations OMRON NOTATIONS DEC 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 HEX 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 BIN 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 BCD 0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0001 0000 0001 0001 0001 0010 0001 0011 0001 0100 0001 0101 0001 0110 0001 0111 0001 1000 0001 1001 0010 0000 Advanced Industrial Automation .

Data Movement Instructions OMRON Data Movement Instructions Advanced Industrial Automation .

LR. # D: Destination word IR.Data Movement Instructions OMRON MOV(21) V. MOV(21) Data Movement Instructions S: Source word IR. LR D S ER. EQ SOURCE WORD DESTINATION WORD 1101101110011011 1101101110011011 Status source word will not be changed Advanced Industrial Automation . AR. HR. AR. DM.W. TC. DM. HR.

Example Program OMRON Advanced Industrial Automation .

OMRON Try… Advanced Industrial Automation .

03 @MOV(21) #0001 DM0000 Advanced Industrial Automation .00 010.Differentiated Instructions OMRON Differentiated Instructions 000.02 000.02 000.01 000.00 MOV(21) #0001 DM0000 000.01 000.03 DIFU(13) 010.

01 MOV(21) #0010 DM0012 BEFORE DM0010 DM0011 DM0012 DM0013 DM0014 DM0015 0013 3331 1234 A000 0000 FFFF AFTER DM0010 DM0011 DM0012 DM0013 DM0014 DM0015 0013 3331 0010 A000 0000 FFFF Advanced Industrial Automation .Indirect Addressing OMRON Indirect Addressing 000.

Indirect Addressing OMRON Indirect Addressing 000.01 MOV(21) #0010 *DM0012 BEFORE DM0010 DM0011 DM0012 DM0013 DM0014 0013 3331 1234 A000 0000 AFTER DM0010 DM0011 DM0012 DM0013 DM0014 0013 3331 1234 A000 0000 DM1233 DM1234 DM1235 A120 AD01 FFFF DM1233 DM1234 DM1235 A120 0010 FFFF Advanced Industrial Automation .

DM. MVN(22) OMRON Br: Source word IR. HR. EQ SOURCE WORD DESTINATION WORD 1101101110011011 0010010001100100 Status source word will not be changed Advanced Industrial Automation .Data Movement Instructions MVN(22) V. AR. HR. TC. DM. LR D ER. # Br D: Destination word IR. LR.W. AR.

LR. DM.Data Movement Instructions XFER(70) V. DM.W. AR. TC D: First destination word IR. DM. HR. HR. XFER(70) N Br OMRON N: Number of words IR. # Br: First source word IR. AR. LR D ER Br Br+1 Br+2 Br+3 3331 1234 A000 0000 D D+1 D+2 D+3 3331 1234 A000 0000 Br+N-1 A120 Status source word will not be changed D+N-1 A120 Advanced Industrial Automation . AR. LR. HR. TC.

LR.Data Movement Instructions BSET(71) V. TC. TC E ER Br 3331 St St+1 St+2 St+3 3331 3331 3331 3331 E 3331 Condition: End word >= Start word Same data area Advanced Industrial Automation . AR. LR. # St: Start word IR. LR. DM. TC E: End word IR. HR. DM. AR. DM. AR. HR.W. BSET(71) Br St OMRON Br: Source word IR. HR.

TC ER V1 1234 3331 V2 3331 1234 Advanced Industrial Automation . TC V2: To change word 2 IR.Data Movement Instructions XCHG(73) V.W. LR. HR. XCHG(73) V1 V2 OMRON V1: To change word 1 IR. AR. LR. DM. AR. DM. HR.

DM. AR. AR. HR. DM. MOVB(82) Br Bi OMRON Br: Source word IR. AR. LR. TC. # D: Destination word IR.W. DM. LR. HR. # Bi: Bit designation (BCD) IR.Data Movement Instructions MOVB(82) V. LR D ER SOURCE WORD 1 DESTINATION WORD 1 Bit status source word will not be changed Advanced Industrial Automation . HR.

TC D ER SOURCE WORD 4 2 7 1 Di = #0210 DESTINATION WORD DOELWOORD 7 9 1 9 3 3 Digit source word will not be changed Advanced Industrial Automation . HR. HR.Data Movement Instructions MOVD(83) V. LR. MOVD(83) Br Di OMRON Br: Source word IR. LR. HR. DM. TC. DM. TC. # Di: Digit designation (BCD) IR. # D: Destination word IR.W. LR. AR. AR. DM. AR.

Data Compare Instructions OMRON Data Compare Instructions Advanced Industrial Automation .

Data Compare Instructions CMP(20) V. HR.06 = 100. TC. TC. AR. LR.05 > 100. AR. CMP(20) Cp1 Cp2 255.W. HR. DM. DM.07 < 100.00 OMRON Cp1: First compare word IR. # 255. # Cp2: Second compare word IR.01 255.02 ER Advanced Industrial Automation . LR.

Example Program OMRON Advanced Industrial Automation .

OMRON PROGRAM DOWNLOAD Advanced Industrial Automation .

LR. DM. TC 255. TC Cp2: Second compare word IR. DM. CMPL(60) Cp1 Cp2 255.06 = 100.Data Compare Instructions CMPL(60) V.07 < 100.02 ER Advanced Industrial Automation .05 > 100.01 255. HR. LR. AR. HR. AR.00 OMRON Cp1: First compare word IR.W.

Data Compare Instructions BCMP(68) V.W. DM. HR. LR. HR. LR. AR. # CB: Startaddress table IR. BCMP(68) VD CB R OMRON VD: Compare data IR. LR 1234 Upper limit RES CB CB+2 CB+4 CB+6 1000 1280 1234 2000 CB+1 CB+3 CB+5 CB+7 2000 1420 1234 2400 1 0 1 0 Bit 0 CB+30 1100 CB+31 1500 1 Bit 15 Advanced Industrial Automation . DM. TC. TC ER VD Lower limit R: Result word IR. DM. HR.

HR. HR. DM. LR 1234 RES CB CB+1 CB+2 CB+3 1000 1280 1234 2000 0 0 1 0 Bit 0 CB+15 1100 0 Bit 15 Advanced Industrial Automation . TC. DM. LR. LR. HR. AR.W. # CB: Startaddress table IR. TCMP(65) VD CB R OMRON VD: Compare data IR. TC ER VD DATA R: Result word IR.Data Compare Instructions TCMP(65) V. DM.

Data Compare Instructions OMRON MCMP(19) CPS(--) CPSL(--) ZCP(--) ZCPL(--) Multiple words compare Binary compare with sign Double binary compare met sign Zone compare with sign Double zone compare with sign Advanced Industrial Automation .

Data Conversion Instructions OMRON BIN(23) BINL(58) BCD(24) BCDL(59) ASC(86) HEX(--) BCD ->Binary Double BCD -> Double Binary Binary -> BCD Double Binary -> Double BCD HEX -> ASCII ASCII -> HEX Advanced Industrial Automation .

BCD Calculation Instructions OMRON BCD Calculation Instructions Advanced Industrial Automation .

Data Calculation Instructions OMRON LADDER SY MBOOL STC(40) @STC(40) LADDER SY MBOOL CLC(41) @CLC(41) Bit 255.04 Advanced Industrial Automation .

AR. LR.W. ADD(30) Br1 Br2 R OMRON Br1: Source word 1 (BCD) IR.Br2 (Add) “0” 1234 2345 “1” 1234 2345 “0” 4567 7667 “1” 4567 7667 “0” 9999 0001 “1” 9999 0000 “0” 0000 0000 . HR.Data Calculation Instructions ADD(30) V. EQ. AR. HR.CY after exec. DM. 3579 “0” 3580 “0” 2234 “1” 2235 “1” 0000 “1” 0000 “1” 0000 “0” Advanced Industrial Automation . DM. TC. . # Br2: Source word 2 (BCD) IR.Br1 (Source) . CY R: Result word IR. HR. DM. AR. LR.R (Result) . # ER. TC. LR Br1 + Br2 + Cy = R -> Cy CY before exec.

Example Program EXAMPLE PROGRAM OMRON Advanced Industrial Automation .

OMRON PROGRAM DOWNLOAD Advanced Industrial Automation .

DM. AR. HR. .W.R (Result) . SUB(31) Br1 Br2 R OMRON Br1: Source word 1 (BCD) IR. LR. LR Br1 . HR. 8889 “1” 8888 “1” 0900 “0” 0899 “0” 9999 “1” 0000 “0” 0000 “0” Advanced Industrial Automation . CY R: Result word IR. TC. # ER. LR. EQ. DM. AR. # Br2: Source word 2 (BCD) IR. TC.Data Calculation Instructions SUB(31) V.Cy = R -> Cy CY before exec. DM.CY after exec. AR. HR.Br1 (Source) .Br2 (Add) “0” 1234 2345 “1” 1234 2345 “0” 8567 7667 “1” 8567 7667 “0” 0000 0001 “1” 0001 0000 “0” 0000 0000 .Br2 .

AR. MUL(32) Vt Vv R OMRON Vt: Multiply word (BCD) IR. LR. AR. EQ R: First result word IR. AR. LR Vt * Vv = R (R+1) Attention: the result gives always two words (eight digits) Advanced Industrial Automation . # ER. HR.W. HR. HR. DM. TC.Data Calculation Instructions MUL(32) V. DM. # Vv: Multiplier(BCD) IR. LR. DM. TC.

HR. # ER. TC. LR.W. DM. TC. AR. HR. LR Dd : Dr = R rest R+1 Attention: the result gives always two words Advanced Industrial Automation . DM. LR. AR. DIV(33) Dd Dr R OMRON Dd: Divider word (BCD) IR. AR.Data Calculation Instructions DIV(33) V. DM. # Dr: Divider (BCD) IR. EQ R: First result word IR. HR.

Data Calculation Instructions OMRON INC(38) DEC(39) ADDL(54) SUBL(55) MULL(56) DIVL(57) Increases BCD number with 1 Decreases BCD number with 1 Double word ADD Double word SUBTRACT Double word MULTIPLY Double word DIVIDE Advanced Industrial Automation .

Binary Calculation Instructions OMRON ADD binary SUBTRACT binary MULTIPLY binary DIVIDE binary Double word ADD Double word SUBTRACT Signed MULTIPLY Double word signed MULTIPLY Signed DIVIDE Double word signed DIVIDE 2’s complement conversion 2’s complement conversion (double) 2’s complement compare 2’s complement compare (double) ADB(50) SBB(51) MLB(52) DVB(53) ADBL(--) SBBL(--) MBS(--) MBSL(--) DBS(--) DBSL(--) NEG(--) NEGL(--) CPS(--) CPSL(--) Advanced Industrial Automation .

Logistic Calculation Instructions OMRON COM(29) ANDW(34) ORW(35) XORW(36) XNRW(37) 1’s Complement Logical AND between two words Logical OR between two words Logical XOR between two words Logical XNOR between two words Advanced Industrial Automation .

W.Program - APPLICATION Actions which are executed more than once in the program RET(93) Advanced Industrial Automation .255) ER SBN(92) N . SBS(91) N OMRON N: Subroutine number #(00 .Subroutine Instructions SBS(91) / SBN(92) / RET(93) V.

Example Program OMRON Advanced Industrial Automation .

OMRON PROGRAM DOWNLOAD Advanced Industrial Automation .

07 Step start flag . AR.W.Program - V.Step Instruction STEP(08) / SNXT(09) STEP(08) B OMRON B: Control bit IR. LR 254. SNXT(09) B Advanced Industrial Automation . HR.

Step Instruction Example 0 TR1 TR5 OMRON 1 TR2 5 TR6 2 TR3 3 6 TR7 4 TR4 7 TR8 Ref 0 Ref 1 Advanced Industrial Automation .

01 OMRON 099.Step Instruction STEP(08) / SNXT(09) 099.00 000.03 099.00 Advanced Industrial Automation .02 000.01 000.00 099.02 CNT500 099.

Example Program EXAMPLE PROGRAM OMRON Advanced Industrial Automation .

OMRON Try… Advanced Industrial Automation .

Task programming OMRON Task One Ladder Task Task Task End • Continuous Ladder program can be split into the functional parts • These parts are called Tasks or Programs • Task programming results in faster and more flexible program development Advanced Industrial Automation .

Cyclic Tasks

OMRON
• List of active tasks is refreshed during I/O refresh Active cyclic tasks are executed from the lowest task number Tasks can be activated or deactivated by other tasks Operation Start assignment can be switched On/Off

Task 00

End
Task 01

• •

Task 02

I/O refresh
Advanced Industrial Automation

Interrupt tasks

OMRON
• Interrupt of cycle task execution can be triggered by – Power fail – Internal timer – External interrupt input – Message received on serial board
Interrupt Task

Task 00

End
Task 01

Task 02

End

Advanced Industrial Automation

Task programming

OMRON

When to use Tasks? – Local symbols results in flexible programming – Parallel program development – Reuse of standard blocks of code – Upgrade of the machine by activating the task – Optimisation of the cycle time

Advanced Industrial Automation

Check for Memory Card Overseeing Processing Cycle Time Program Execution Refresh data for : .Peripheral port and RS-232C port events .Communications port events I/O Refreshing Peripheral Servicing Advanced Industrial Automation .SYSMAC BUS Remote I/O .File access .Check User Program Memory .Special I/O Units .Read DIP-switches .CPU Bus Unit events .Check Battery .Cycle time – Standard situation OMRON .Basic I/O Units .Check I/O Bus .Special I/O unit events .CPU Bus Units Events Servicing : .

Data concurrence via special instructions Advanced Industrial Automation .Faster servicing of events .Cycle time – Parallel Processing Mode OMRON Cycle Time for Peripheral Servicing Cycle Time for program execution Overseeing Processing Overseeing Processing Peripheral Servicing Program Execution I/O Refreshing .Synchronous or asynchronous I/O-memory access can be set by the user .Time slice for program execution and peripheral servicing can be tuned by the customer .

Optimisation of the cycle time OMRON Execute Stop Stop Execute Advanced Industrial Automation .

Tasks : summary OMRON • • • • Task is a program • Equivalent to a function of your process • Easier programming. debugging and maintenance Integrate tasks into a project • Up to 32 tasks ! • Up to 256 linked to an event ! Project will call the tasks needed • Your cycle is optimal Re-use-able ! Advanced Industrial Automation .

Questions? OMRON Thank you for you attention if you have any question… Advanced Industrial Automation .

Sign up to vote on this title
UsefulNot useful