Vous êtes sur la page 1sur 5

6.

APPLICATION EXAMPLES OF BASIC COMMANDS

 Example: Ball Sorter Mechanism

Hopper with 2 colour


balls (black &white)
Start
Top (0)
(100 Cylinde Ball Sensor
0) r Stop
(S1)
(100 Bottom Colour Sensor (3)
1) Cylinde (S2)
r
Pusher
(1002)

Black White
Balls Balls

In this application, the system is to sort out the black & white balls into 2
different container.

The start button will start the operation, Ball sensor (S1) will sense the
presence of the ball in the hopper. The top solenoid will release the ball for the
colour sensor (S2) to differentiate the colour before being release into the
container.

• I/O Assignment

Input Device Output Device


00000 Start PB 01000 Top cylinder
00001 Ball sensor (S1) 01001 Bottom cylinder
00002 Colour sensor 01002 Pusher
(S2)
00003 Stop PB

6-80
6. APPLICATION EXAMPLES OF BASIC COMMANDS

Ladder Diagram : Main 1 Network 1


Main 1 – Ball Sorting (Conventional Method)
Network 1 – Start cond
000.00 000.03 200.01

Start Stop Startcond


200.01

Startcond
Network 2 – Top cylinder
200.01 000.01 200.03 010.00

Startcond S1 Topcylinder
010.00

Topcylinder

Network 3 – Timer
010.00
TIM
Topcylinder
000
#0015

Network 4 – Delay
TIM000 TIM004 200.03

200.03

Network 5 – White&black
200.03 000.02
TIM
Colorsense 001
White
#0005
000.02

TIM
Colorsense 002
Black
#0005

Network 6 - Bottomcylinder
TIM001 010.01

White Bottomcylin
TIM003

6-81
6. APPLICATION EXAMPLES OF BASIC COMMANDS

Network 7 – Delay 0.5sec


010.01
TIM
Bottomcylin
004
#0005

Network 8 - Pusher
TIM002 010.02

Black Pusher

TIM
003
#0010

Network 9 - End

End(01)

6-82
6. APPLICATION EXAMPLES OF BASIC COMMANDS

Ladder Diagram : Main 1 Network 1


Main 1 – Balls sorting
This program separates white balls from black balls using the shift register method
Network 1 – Start
000.00 000.03 200.00

Start Stop Cond


200.00

Cond
Network 2 –
Differentiation up
200.00
DIFU(13)
Cond 200.01

Network 3 – Set bit 1 on


First bit of HR 00 is set
200.01
MOV(21)
#0001
HR00.04
HR00
Shift
Shift.04

Network 4 – Shift register


253.14

SFT(10)
No
200.02 HR00
Shift
Clock
000.03 HR00
Shift

Stop
Network 5 – Process
Process sequencing clock input to shift register
HR00.00 000.01 200.02 200.02

Shift.00 S1 Clock Clock


HR00.01 TIM000

Shift.01
HR00.02 000.02

Shift.02 S2
TIM003

HR00.03 TIM001

Shift.03

6-83
6. APPLICATION EXAMPLES OF BASIC COMMANDS

Network 6 – Set bit 1 on


HR00.01 010.00

Shift.01 Topcy
TIM
001
#0010

Network 7 – Set bit 1 on


HR00.03 010.00

Shift.03 Botcy
TIM
001
#0010

Network 8 – Delay 1sec


HR00.02 000.02

TIM
Shift.02 S2
002
#0010

Network 9 – Pusher
TIM002 HR00.04 010.02

010.02 Shift.04 Pusher

TIM
Pusher 003
#0010

Network 10 - End

End(01)

6-84