Ands - On T Raini NG: Welcome
Ands - On T Raini NG: Welcome
Ands - On T Raini NG: Welcome
ni n g
t ra i
s - o n
h and
pl c
Introduction: PLC
Overview OMRON PLC range
CJ1M
Software
CX-programmer V3.0
Building up an Project
CS1
C200HE/HG/HX
CQM1H
CJ1
SRM1
CPM2C
CPM2A
CPM1A
ZEN
CPM2C CPM2A
CPM1A-10 No-expansion
CPM1A-20
CPM1A-30
CPM1A-40
CPM2A-20
CPM2A-30
CPM2A-40
CPM2A-60
Max. 3 modules extra
Inner boards
Communications
CQM1H modules
Variety of Digital and
Analogue I/O
Temperature control
Linear sensor module
Remote I/O master, fieldbus
masters
Controller link
Duplex unit
When is this a significant problem?
CPU
CPU
CLK
CLK
I/O
PS
PS
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)
Expansion
PS
PS
Double CPU I/O Rack
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) Expansion
PS
PS
I/O Rack
2/3 of the
Footprint
2/3 the
Panel Depth
1/3 Total
Panel
Volume
Ethernet
Controller Link
DeviceNet
CompoBus/S
Single Port Multiple Access
Protocol Macro
MESSAGE BOARD
Ethernet
Flash
Memory Ethernet
CLK
PCI Board
Host Link
Controller Link
Omron
DeviceNet or CompoBus/S Touch Screen
Programming/Diagnostic
Software
6 NEW CPUs:
.CJ1M-CPU11 (5Ksteps)
CJ1M-CPU12 (10Ksteps)
CJ1M-CPU13 (20Ksteps)
CJ1M-CPU21 (5Ksteps)
CJ1M-CPU22 (10Ksteps)
CJ1M-CPU23 (20Ksteps)
. CJ1M-CPU11 (5Ksteps)
CJ1M-CPU12 (10Ksteps) Peripheral port
CJ1M-CPU13 (20Ksteps) RS232C
Memory card interface
Just 31mm wide
31
CQM1H 512
CJ1-I/O
Interface Unit Max 10 Units
(*) Place CPU-Bus Units and I/O-Interrupt units
WARNING next to CPU (5 left slots)
Advanced Industrial Automation
CJ1 PLC - Hardware OMRON
3 groups of CJ1-Units
Basic I/O Units Special I/O Units CPU Bus Units
CIO 0000 to CIO 0079 CIO 2000 to CIO 2959 CIO 1500 to CIO 1899
(8 , 16 , 32 or 64 points) (Refresh area :10 words/unit) (Refresh area : 25 words/unit)
008
009
006 010
I/O word 000 001 002 003 004 005 007 011
008
009
006 010
I/O word 000 001 002 003 004 005 007 011
Reserved
Reserved
IN OUT IN OUT IN IN IN OUT
16 16 16 16 16 16 32 64
IN OUT IN
16 16 16
IN OUT IN OUT
16 16 16 16
OUT IN OUT IN
16 16 16 16
003 007
CPU Special Special 008
004
BUS I/O I/O 005 009
000 001 002 006 010
00
00 01
Improvements on 87 points
Designed to operate with MS Windows XP as well as MS Windows 95,
98, ME, NT and 2000.
Recommended: MS Windows NT, 2000 or XP
New PLC ranges supported:
- CJ1M
- CS1H
- CS1D (needs CX-P V3.1
for duplex functions)
New Networks supported:
- CS1 Bus I/F Board (ITBC-CST01)
- 62 node Controller Link
ni ng
t rai
s- o n
ha nd
s i c
ba
000.02
LD 000.00
AND 000.01
OR 000.02
AND 000.03
OUT 100.00
000.02
LD 000.00
AND 000.01
000.02 000.03 OR 000.02
AND 000.03
OUT 100.00
000.02
LD 000.00
AND 000.01
000.02 000.03 LD 000.02
AND 000.03
OR LD
OUT 100.00
000.06 000.07
LD 000.04
000.06 000.07 OR 000.06
LD 000.05
OR 000.07
000.05 AND LD
OUT 100.01
000.07
TEMPORAIRY RELAY
LD 000.00
AND 000.01
OUT TR 0
AND 000.02
AND 000.03
OUT 100.02
LD TR 0
AND 000.04
AND 000.05
OUT 100.03
TRY...
2. Problem Splitting
3. Working out
4. Design
5. Writing
6. Testing
7. Finishing
Products on the inputbelt are transported to PES 0.00. This belt stops if there is another product
under work. Otherwise the product is transported to the next belt and stops if PES 0.01 detects
the product. The drill is in the upper position and will be started by output 100.02.
The drill goes down to limitswitch 0.02. The output 100.02 is set to off and the drill is returning
to the upper position. If upperlimitswitch 0.03 detects the drill, the inputbelt, the transportbelt and
the outputbelt is started. PES 0.04 detects the product and stops the outputbelt on the backside
of the product . After five products the pusher is activated and pushes the products from the belt
by output 100.04. If the pusher is in the out position (limitswitch 0.05) the output goes off and
the pusher returns. During this period no belt is running except the inputbelt.
2.
In-take transport
Drilling station
2.
In-take transport Transport
Drilling
Ejection of the
products
Global symbols
and
Local symbols
TRY...
R: Result word
IR, AR, HR, LR, T/C, DM
INPUT
SV SV
TIMER OUTPUT
000.00
SV SV
100.00
000.01
SV1 SV1
100.01
000.02
SV3 SV3
000.03
SV3 SV3
100.03
INPUT
SV SV
TIMER OUTPUT
PULSE
5 4 3 2 1 0 0 5 4 3 5 5 4
RESET
COUNTER OUTPUT
II+
DI-
0 1 2 3 0 1 2 1 0 3 2 3 0 3 0 1
RESET
COUNTER OUTPUT
ON-LINE edit
Advanced Industrial Automation
Keep OMRON
Ladder symbol Operand Data-area
S KEEP(11) B: Bit
R B IR, AR, HR, LR
000.00 000.01 100.00
100.00
000.00
KEEP(11)
000.01
100.00
BIT
SET
RESET
S SET B: Bit
B IR, AR, HR, LR
R RSET B: Bit
B IR, AR, HR, LR
CYCLUS
Ladder symbol
Signal IL(02)
Signal ILC(03)
PROGRAM
WITHOUT
INTERLOCK
PROGRAM
WITH
INTERLOCK
IL(02)
000.01
DIFU(13)
10.00
ILC(03)
ON
000.00
OFF
ON
000.01
OFF
ON
010.00
OFF
Try
Battery alarm
Always on
Always off - 253.14
First scan
1 min pulse
Thank you
for you
attention
ni ng
t rai
s - o n
ha nd
dat a
Ladderdiagram: NO contact
NC contact
Output
Inverted output
Horizontal and vertical line
Statement list: LD
LD NOT
AND
AND NOT
OR
OR NOT
OUT
OUT NOT
OR LD
AND LD
NOP(00) No function
IL(02) Interlock
JMP(04) N: Sprongnummer
# (00 to 99)
N
JME(05) N: Sprongnummer
# (00 to 99)
N
000.00
JMP(O4)
000.01 100.00
OUTPUTS FREEZE
TIM
TIMERS STOP
0
#9999
JME(O5)
JMP(O4)
LABEL 0
Can be used more than
JME(O5)
one time in the program.
0
V.W.2
JMP(O4)
JME(O5) USED
More programs into 1 PLC
0
Shorten programs.
JMP(O4)
V.W.2 LABEL 0
JMP-JMP-JME combination
JMP(O4)
JME(O5)
JMP(O4)
V.W.2
JMP(O4) LABEL 1- 99
Can be used only
2 once in the program.
JME(O5)
JME(O5)
JME(O5)
LABEL 1- 99
V.W.1 Jump back in
JMP(O4) the program
USED
Recursive action
Conversion more than one variable
MODBUS CRC Check
Try
SFT(10)
Start word
C.P. IR, AR, DM, HR, LR
99
End word
RESET IR, AR, DM, HR, LR
99
99.12 100.00
0 0 0DATA
VERLOREN 0
1 0 0
1 1 1
0 0
1 1
0 1
0 1
0 1
0 0
1 0
1 EXECUTIE
1 0
0 1
CONDITIE
Try
000.00 10.12
Example L/R
C= IR10
000.01 10.13
DATA
000.02 10.14
CLOCK PULSE
000.03 10.15
RESET
ER, EQ
BIT BIT
15 0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
0
Cy
ER, EQ
BIT BIT
15 0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
0
Cy
ER, EQ
BIT BIT
15 0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
ER, EQ
BIT BIT
15 0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
E E: End word
IR, AR, DM, HR, LR
ER
E St
1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
0
VERLOREN DATA
0
Condition: End word >= Start word
Same data area
ER
St E
1
0 2
1 3
2 4
3 5
4 6
5 7
6 8
7
VERLOREN DATA
0
Condition: End word >= Start word
Same data area
E E: End word
IR, AR, DM, HR, LR
ER
DM100
0000 0000
1234
1234
1111
2233
1111
1FFF
2233
1FFF
0000
9999
0000
4545
9999 VERLOREN DATA
DM106
1234
4 * 10 0
3 * 10 1
2 * 10 2
1 * 10 3
1011 11
:2 rest 1
1*20 = 1 5
:2 rest 1
1*21 = 2
2
0*22 = 0 :2 rest 0
3
1*2 = 8 1
:2 rest 1
11
0 1011
12A4 4772
: 16 rest 4
4 * 16 0 = 4 298
: 16 rest 10=A
10 * 16 1 = 160
18
2 * 16 2 = 512 : 16 rest 2
3
1 * 16 = 4096 1
: 16 rest 1
4772
0 12A4
Hexadecimal 12A4
Decimal 1294
MOV(21)
S: Source word
IR, AR, DM, HR, LR, TC, #
S
D: Destination word
IR, AR, DM, HR, LR
D
ER, EQ
1101101110011011 1101101110011011
Try
010.00
010.00
MOV(21)
#0001
DM0000
#0001
DM0000
#0010
DM0012
BEFORE AFTER
#0010
*DM0012
BEFORE AFTER
MVN(22)
Br: Source word
IR, AR, DM, HR, LR, TC, #
Br
D: Destination word
IR, AR, DM, HR, LR
D
ER, EQ
1101101110011011 0010010001100100
Br 3331 D 3331
Br 3331 St 3331
St+1 3331
St+2 3331
St+3 3331
E 3331
ER
V1 3331
1234 V2 1234
3331
SOURCE WORD
DESTINATION WORD
SOURCE WORD
4 2 7 1
Di = #0210
DESTINATION
DOELWOORDWORD
9
7 9
1 3 3
255.06 = 100.01
ER
PROGRAM
DOWNLOAD
255.06 = 100.01
ER
DATA RES
Bit 0
CB 1000 0
CB+1 1280 0
CB+2 1234 1
CB+3 2000 0
LADDER SYMBOOL
STC(40) @STC(40)
LADDER SYMBOOL
CLC(41) @CLC(41)
Bit 255.04
PROGRAM
DOWNLOAD
Vt * Vv = R (R+1)
Dd : Dr = R rest R+1
COM(29) 1s Complement
ANDW(34) Logical AND between two words
ORW(35) Logical OR between two words
XORW(36) Logical XOR between two words
XNRW(37) Logical XNOR between two words
ER
SBN(92)
N
APPLICATION
Actions which are executed
- Program -
more than once in the program
RET(93)
PROGRAM
DOWNLOAD
V.W.
SNXT(09)
0
TR1 TR5
1 5
TR2 TR6
2 3 6
TR7
TR3
4 7
TR4 TR8
Ref 0 Ref 1
099.00
000.01
099.01
000.02 000.03
099.02 099.00
CNT500
099.00
Try
Task
One Ladder
End
I/O refresh
End
Task 02
Program
Execution
Cycle Time
Peripheral Servicing
Overseeing Overseeing
Peripheral
Program Servicing
Execution
Execute
Stop
Stop
Execute
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 !
Thank you
for you
attention