Professional Documents
Culture Documents
Step 1 :
If Upper LImit = ON And Switch Start = ON Then Cylindrical (Marking) DOWN
= ON.
Step 2 :
If Cylindrical (Marking) DOWN = ON And Lower Limit = ON Then Cylindrical
(Marking) UP = ON And Cylindrical (Marking) DOWN = OFF.
Step 3 :
If Cylindrical (Marking) UP = ON And Upper LImit = ON Then Cylindrical
(Marking) UP = OFF.
INPUT PLC :
000.00 ; LS or Limit Switch for Upper Marking
000.01 ; Switch Start
000.02 ; LS or Limit Switch for Lower Marking
OUTPUT PLC :
005.00 ; Solenoid for Cylinder Marking Down
005.01 ; Solenoid for Cylinder Marking Up
Step 1 :
If 000.00 = ON And 000.01 = ON And 010.01 = ON Then 010.00 = Hold ON (
Latching ).
Step 2 : ( Lifter in the Middle Position )
If 010.00 = ON And 000.02 = ON And 000.00 = OFF Then 010.01 = Hold ON (
Latching ).
Step 3 :
a. If 010.00= ON Then 005.00 = ON.
b. If 010.01 = ON Then 005.01 = ON.
Step 1 :
Step 2 :
If Marking DOWN = ON And Lower Limit = ON Then Marking UP = ON And
Marking DOWN = OFF.
Step 3 :
If Marking UP = ON And Upper LImit = ON Then Marking UP = OFF And
Ejector Forward = ON And Marking DOWN = OFF.
Step 4 :
If Ejector Forward = ON And Forward LImit = ON Then Ejector Forward = OFF
And Ejector Reverse = ON And Marking DOWN = OFF And Marking UP = OFF.
Step 5 :
If Ejector Reverse = ON And Reverse LImit = ON Then Ejector Reverse = OFF
And Ejector Forward = OFF And Marking DOWN = OFF And Marking UP =
OFF.
INPUT PLC :
000.00 ; LS or Limit Switch for Marking UP
000.01 ; Switch Start
000.02 ; LS or Limit Switch for Marking DOWN
000.03 ; LS or Limit Switch for Ejector Forward
000.04 ; LS or Limit Switch for Ejector Reverse
OUTPUT PLC :
005.00 ; Solenoid for Cylinder Marking DOWN
005.01 ; Solenoid for Cylinder Marking UP
005.02 ; Solenoid for Cylinder Ejector Forward
005.03 ; Solenoid for Cylinder Ejector Reverse
Step 1 :
( Marking to Move Down ) If 000.00 = ON And 000.01 = ON And 010.01 = OFF
And 010.02 = OFF And 010.03 = OFF And 010.04 = OFF Then 010.00 = Hold ON
( Latching ).
Step 2 : ( Marking to Move UP )
If 010.00 = ON And 000.02 = ON And 010.02 = OFF And 010.03 = OFF And
010.04 = OFF Then 010.01 = Hold ON ( Latching ).
Step 3 : ( Ejector to Move Forward )
If 010.01 = ON And 000.00 = ON And 010.03 = OFF And 010.04 = OFF Then
010.02 = Hold ON ( Latching ).
Step 4 : ( Ejector to Move Reverse )
a.If 010.02 = ON And 000.03 = ON And 010.04 = OFF Then 010.03 = Hold ON (
Latching ).
b.If 010.03 = ON And 000.04= ON Then 010.04 = ON.
Step 5 :
a. If 010.00 = ON Then 005.00 = ON.
b. If 010.01 = ON Then 005.01 = ON.
c. If 010.02 = ON Then 005.02 = ON.
d. If 010.03 = ON Then 005.03 = ON.
Step 2 :
1. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Feeder Reverse = ON.
2.a. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Lifter DOWN = ON.
2.b. If Lifter MID Limit = ON Then Cylindrical Lifter DOWN = OFF.
Step 4 :
1. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Feeder Reverse = ON.
2.a. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Lifter DOWN = ON.
2.b. If Lifter LOW Limit = ON Then Cylindrical Lifter DOWN = OFF.
Step 6 :
1. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Feeder Reverse = ON.
2.a. If Cylindrical Feeder Forward = ON And Feeder FWD Limit = ON Then
Cylindrical Lifter UP = ON.
2.b. If Lifter UP Limit = ON Then Cylindrical Lifter UP = OFF.
INPUT PLC :
000.00 ; LS or Limit Switch for Feeder Reverse
000.01 ; LS or Limit Switch for Feeder Forward
000.02 ; LS or Limit Switch for Lifter Lower
000.03 ; LS or Limit Switch for Lifter Middle
000.04 ; LS or Limit Switch for Lifter Upper ( Forward )
000.05 ; Switch Start
000.06 ; Push Button Reset
OUTPUT PLC :
005.00 ; Solenoid for Cylinder Feeder Forward
005.01 ; Solenoid for Cylinder Feeder Reverse
005.02 ; Solenoid for Cylinder Lifter Down
005.03 ; Solenoid for Cylinder Lifter Upper
Step 1 :
If 000.00 = ON And 000.04 = ON And 000.05 = ON And 010.01 = OFF And
010.04 = OFF And 010.07 = OFF And 000.06 = OFF Then 010.00 = Hold ON (
Latching ).
Step 2 : ( Lifter in the Middle Position )
a. If 010.00 = ON And 000.01 = ON And 010.03 = OFF And 000.06 = OFF Then
010.01 = Hold ON ( Latching ).
b. If 010.00 = ON And 000.01 = ON And 000.03 = OFF And 000.06 = OFF Then
010.02 = Hold ON ( Latching ).
Step 3 :
If 010.01 = ON And 000.03= ON And 000.00 = ON And 010.04 = OFF And
000.06 = OFF Then 010.03 = Hold ON ( Latching ).
Step 4 : ( Lifter in the Lower Position )
a. If 010.03 = ON And 000.01 = ON And 010.06 = OFF And 000.06 = OFF Then
010.04 = Hold ON ( Latching ).
b. If 010.03 = ON And 000.01 = ON And 000.02 = OFF And 000.06 = OFF Then
010.05 = Hold ON ( Latching ).
Step 5 :
If 010.04 = ON And 000.02= ON And 000.00 = ON And 010.07 = OFF And
000.06 = OFF Then 010.06= Hold ON ( Latching ).
Step 6 :( Lifter in the Upper Position or Origin Position )
a. If 010.06 = ON And 000.01 = ON And 000.00 = OFF And 000.06 = OFF Then
010.07= Hold ON ( Latching ).
b. If 010.06 = ON And 000.01 = ON And 000.04 = OFF And 000.06 = OFF Then
010.08 = Hold ON ( Latching ).
Step 7 :
a. If 010.00 = ON Or 010.03 = ON Or 010.06 = ON Then 005.00 = ON.
b. If 010.01 = ON Or 010.04 = ON Or 010.07 = ON Or 000.06 = ON Then 005.01
= ON.
c. If 010.02 = ON Or 010.05 = ON Then 005.02 = ON.
d. If 010.08 = ON Or 000.06 = ON Then 005.03 = ON.
--- For Sensor 0 , 1 Unit sensor with 2 output ( 1 output for GO, 1 Output for
NOGO )
--- Example Type Sensor 0 ( GO , NOGO ) : Thickness Detection Sensor
Step 1 :
a. If Switch = ON And Sensor 0 (GO) = OFF And Sensor 0 (NOGO) = OFF Then
Contactor for Motor Conveyor = ON.
b. If Switch = OFF or Sensor 0 (GO) = ON or Sensor 0 (NOGO) = ON Then
Contactor for Motor Conveyor = OFF.
Step 2 :
a. If Switch = ON And Sensor 0 (GO) = ON and Limit Lifter UP = OFF Then
Solenoid Lifter UP = ON.
b. If Switch = ON And Sensor 0 (GO) = ON and Limit Lifter UP = ON Then
Solenoid Lifter UP = OFF.
c. If Switch = ON And Sensor 0 (NOGO) = ON and Limit Lifter DOWN = OFF
Then Solenoid Lifter DOWN = ON.
d. If Switch = ON And Sensor 0 (NOGO) = ON and Limit Lifter DOWN = ON
Then Solenoid Lifter DOWN = OFF.
Step 3 :
a. If Sensor 0 (GO) = ON And Limit Lifter UP = ON And Sensor 1 = OFF Then
Contactor for Motor Conveyor = ON.
b. If Sensor 0 (NOGO) = ON And Limit Lifter DOWN = ON And Sensor 2 = OFF
Then Contactor for Motor Conveyor = ON.
Step 1 :
If 000.00=ON And 000.01=OFF And 000.02=OFF Then 010.00=ON.
Step 2 :
If 000.00=ON And 000.01= ON ( Latching ) And 000.03= OFF Then 010.01=ON (
Latching ON ).
Step 3 :
If 000.00=ON And 000.01=ON And 000.03=ON And 000.05=OFF Then Pulse UP
010.02.
Step 4 :
If 000.00=ON And Pulse UP 010.02 ( Latching ) and 000.05=OFF And
010.00=OFF Then 010.03=ON ( Latching ON ).
Step 5 :
If 000.00=ON And 000.02=ON ( Latching ) and 000.04=OFF Then 010.04=ON (
Latching ON ).
Step 6 :
If 000.00=ON And 000.02=ON and 000.04=ON And 000.06=OFF Then Pulse UP
010.05.
Step 7 :
If 000.00=ON And Pulse UP 010.05 ( Latching ) and 000.06=OFF And
010.00=OFF Then 010.06=ON ( Latching ON ).
Step 8 :
If 000.00=ON And 010.00=ON or 010.03=ON or 010.06=ON Then 005.00=ON.
Step 8 :
a. If 000.00=ON And 010.01=ON Then 005.01= ON.
b. If 000.00=ON And 010.04=ON Then 005.02= ON.
Step 1 :
If Push Button Emg Operator 1 = OFF Or Push Button Emg Operator 2 = OFF Or
Push Button Emg Operator 3 = OFF Or Push Button Emg Operator 4 = OFF Or
Push Button Emg Operator 5 = OFF Then Contactor for Motor Conveyor = OFF
And All System OFF.
Step 2 :
a. If Sensor 1 = ON And Sensor 2 = OFF And All Push Button Finish = ON Then
Contactor for Motor Conveyor = ON.
b. If Count ( Sensor 3 = ON ) = 2 ( Data Setting for Distance Between Operators )
Then Contactor for Motor Conveyor = OFF.
Step 3 :
a. If Push Button Emg = OFF Then Tower / Sign Lamp Red = ON.
b. If Push Button Finish = ON And Push Button Emg = ON Then Tower / Sign
Lamp Yellow = ON.
c. If Sensor 1 = ON And Push Button Emg = ON Then Tower / Sign Lamp Green
Operator 1 = ON.
d. If Count ( Motor Conveyor = ON , Motor Conveyor = OFF ) > 1 And Motor
Conveyor = OFF And Push Button Emg = ON And Sensor 2 = OFF Then Tower /
Sign Lamp Green Operator 2 = ON.
e. If Count ( Motor Conveyor = ON , Motor Conveyor = OFF ) > 2 And Motor
Conveyor = OFF And Push Button Emg = ON And Sensor 2 = OFF Then Tower /
Sign Lamp Green Operator 3 = ON.
f. If Count ( Motor Conveyor = ON , Motor Conveyor = OFF ) > 3 And Motor
Conveyor = OFF And Push Button Emg = ON And Sensor 2 = OFF Then Tower /
Sign Lamp Green Operator 4 = ON.
g. If Sensor 2 = ON And Push Button Emg = ON Then Tower / Sign Lamp Green
Operator 2, 3, 4, 5 = ON.
Notes :
LS = Limit Switch.
LS 1 = Limit Switch for Cutter Reverse.
LS 2 = Limit Switch for Cutter Forward.
LS 3 = Limit Switch for Clamp1 (Fixed) Forward (Clamp).
LS 4 = Limit Switch for Clamp1 (Fixed) Reverse (UnClamp).
LS 5 = Limit Switch for Clamp2 (Movable) Forward (Clamp).
LS 6 = Limit Switch for Clamp2 (Movable) Reverse (UnClamp).
LS 7 = Limit Switch for Clamp2 (Movable) Forward.
LS 8 = Limit Switch for Clamp2 (Movable) Reverse.
See : Solenoid
Step 1 :
a. If Push Button Emg = OFF Then All System OFF.
b. If LS 1 = ON And LS 4 = ON And LS 6 = ON And LS 8 = ON Then All Limit
Switch Origin = ON.
c. If Push Button Emg = ON And Selector Switch Motor = ( OFF to ON ) And All
Limit Switch Origin = ON Then Contactor Motor = ON.
Step 2 :
a. If Push Button Start = ON And Contactor Motor = ON And All Limit Switch
Origin = ON Then Starts Automatic Cutting Process.
--- Download Animation : Cutting Machine
b. If have been three times ( Data Setting = 3 (Can be Changed) ) Then Stops
Automatic Cutting Process And ALL Return Origin.
c. If Push Button Emg = Pulse ON Then ALL Return Origin.
INPUT PLC :
000.00 ; Push Button Start
000.01 ; Push Button Emergency
000.02 ; Selector Switch Motor ON / OFF
000.03 ; LS or Limit Switch Cutter REV ( Reverse)
000.04 ; LS or Limit Switch Cutter FWD ( Forward )
000.05 ; LS or Limit Switch Clamp1 CLAMP
000.06 ; LS or Limit Switch Clamp1 UNCLAMP
000.07 ; LS or Limit Switch Clamp1 CLAMP
000.08 ; LS or Limit Switch Clamp1 UNCLAMP
000.09 ; LS or Limit Switch Clamp2 FWD ( Forward )
000.10 ; LS or Limit Switch Clamp2 REV ( Reverse)
OUTPUT PLC :
005.00 ; Contactor Motor Cutter
005.01 ; Solenoid for Cylinder Cutter Forward
005.02 ; Solenoid for Cylinder Cutter Reverse
005.03 ; Solenoid for Cylinder Clamp1 CLAMP
005.04 ; Solenoid for Cylinder Clamp1 UNCLAMP
005.05 ; Solenoid for Cylinder Clamp2 CLAMP
005.06 ; Solenoid for Cylinder Clamp2 UNCLAMP
005.07 ; Solenoid for Cylinder Clamp2 Forward
005.08 ; Solenoid for Cylinder Clamp2 Reverse
Step 1 :
a. If Push Button Start = ON Then Speed Control Motor = ON.
b. If Speed Control Motor = ON And Timer0 = ON Then Speed Control Motor =
OFF.
c. If Timer0 = ON And Speed Control Motor = OFF Then Wire Cutters = ON.
d. If Wire Cutters = ON And Timer1 = ON Then Wire Cutters = OFF.
e. If Wire Cutters = OFF And Timer2 = ON Then Speed Control Motor = ON.
f. Continuous Process.
--- Download Simulation : Spiral Binding Forming Machine
Step 2 :
a. If Push Button Stop = ON Then Stop Process.
b. If Micro Switches = OFF Or Motor Feedback Alarm = OFF (Normally ON)
Then ALL System OFF.
c. Data Set Value Timer0 = 3 Second ( Data Setting = 3 second (Can be Changed)
) for Spiral Length.
PLC Type Series-C Omron , Name Input / Output PLC :
INPUT PLC :
000.00 ; Push Button Start
000.01 ; Push Button Stop
000.02 ; Micro Switches Wire Out
000.03 ; Motor Feedback Alarm
OUTPUT PLC :
005.00 ; Speed Control Motor ( Motor Running )
005.01 ; Single Solenoid Wire Cutters
---------
Note :
1. Electric Motor for Rotation Screw Conveyor
2. Sensor to Count Revolution, Example using One Proximity Switch
3. Sensor Bottle, Example Using Infrared Sensor
4. 1 Limit Switch (LS) Nozzle Up for 4 Nozzle ( 4 Nozzle with 1 Pneumatic
Cylinder )
5. 1 Limit Switch (LS) Nozzle Down for 4 Nozzle ( 4 Nozzle with 1 Pneumatic
Cylinder )
Remarks :
1. If Circulation Process Then Valve Drain = ON (Open) And Valve Filling = OFF
(Closed)
2. If Filling Process Then Valve Drain = OFF (Closed) And Valve Filling = ON
(Open)
3. If Operation for Nozzle = OFF Then Valve Filling Always OFF And Pump =
OFF
4. If Fluid Sensor = OFF Then Pump = OFF And Filling Machine Stop
5. If Digital Flow Switch = OFF And Circulation Process Then Pump = OFF
6. Pump Use Pneumatic Pump.
7. Valve Drain and Valve Filling use Single Solenoid Normally Closed.
INPUT PLC :
000.00 ; Push Button Start
000.01 ; Push Button Stop
000.02 ; Selector Switch 1
000.03 ; Selector Switch 2
000.04 ; Selector Switch 3
000.05 ; Selector Switch 4
000.06 ; Sensor Bottle 1
000.07 ; Sensor Bottle 2
000.08 ; Sensor Bottle 3
000.09 ; Sensor Bottle 4
000.10 ; Digital Flow Switch 1
000.11 ; Digital Flow Switch 2
000.12 ; Digital Flow Switch 3
000.13 ; Digital Flow Switch 4
000.14 ; Proximity for Count Revolution
000.15 ; Fluid Sensor
001.00 ; Motor Feedback Alarm for Screw Conveyor
001.01 ; Limit Switch (LS) Nozzle Down
001.02 ; Limit Switch (LS) Nozzle Up
OUTPUT PLC :
005.00 ; Motor ( Motor Running ) for Screw Conveyor
005.01 ; Solenoid for Cylinder Nozzle Up
005.02 ; Solenoid for Cylinder Nozzle Down
005.03 ; Single Solenoid for Drain Nozzle 1
005.04 ; Single Solenoid for Drain Nozzle 2
005.05 ; Single Solenoid for Drain Nozzle 3
005.06 ; Single Solenoid for Drain Nozzle 4
005.07 ; Single Solenoid for Filling Nozzle 1
005.08 ; Single Solenoid for Filling Nozzle 2
005.09 ; Single Solenoid for Filling Nozzle 3
005.10 ; Single Solenoid for Filling Nozzle 4
005.11 ; Single Solenoid for Pneumatic Pump 1
005.12 ; Single Solenoid for Pneumatic Pump 1
005.13 ; Single Solenoid for Pneumatic Pump 1
005.14 ; Single Solenoid for Pneumatic Pump 1
INPUT PLC :
000.00 ; Swicth for Heater ON - OFF
000.01 ; NO Contact Contactor
000.02 ; Alarm Heater Element Bournout Detector
OUTPUT PLC :
005.00 ; Power Temperature Controller
005.01 ; Alarm Heater Lamp ( RED Lamp )
005.02 ; Temperature is Reached Lamp ( GREEN Lamp )
INPUT PLC :
000.00 ; Swicth for Heater ON - OFF
000.01 ; NO Contact Contactor
000.02 ; Alarm Heater Element Bournout Detector
OUTPUT PLC :
005.00 ; Power Temperature Controller
005.01 ; Alarm Heater Lamp ( RED Lamp )
005.02 ; Temperature is Reached Lamp ( GREEN Lamp )
Step 4 :
a.If 010.01 = ON Then 005.00 = ON.
b.If 010.02 = ON Then 005.01 = ON.
c.If 010.04 = ON Then 005.02 = ON.
------------------------
Step 1 :
a. If Push Button Start = ON Then Heater = ON.
Please Click : Heater Controller with PLC
b. If Temperature is Reached And Alarm Heater = ON And Alarm Motor = ON (
See Remarks above) Then Injection Molding is Ready for use.
Step 2 :
a. If Push Button Start = ON And Injection Molding is Ready And Limit Switch
Reverse from Cylinder Molding = ON Then Solenoid to Cylinder Molding
Forward = ON.
b. If Solenoid to Cylinder Molding Forward = ON And Limit Switch Forward
from Cylinder Molding = ON Then Motor for Screw = ON And Timer Motor ON
Activated.
c. Data Set Value Timer Motor ON = 10 Second ( Data Setting = 10 second (Can
be Changed) ) for Volume of Materials into Molding Dies.
d. If Timer Motor ON = ON Then Motor for Screw = OFF And Timer Wait Cool
Activated (Wait for the Cool Material ) .
e. Data Set Value Timer Wait Cool = 15 Second ( Data Setting = 15 second (Can
be Changed) ) for Wait for the Cool Material.
f. If Timer Motor Wait Cool = ON Then Solenoid to Cylinder Molding Reverse =
ON.
g. If Solenoid to Cylinder Molding Reverse = ON And Limit Switch Reverse from
Cylinder Molding = ON Then Solenoid to Cylinder Molding Forward = ON.
h. Continuous Process.
Download Simulation Process : PLC for Injection Molding Machine
Step 3 :
a. If Push Button Stop = ON Then Injection Molding Machine Stop ( All System
OFF ).
INPUT PLC :
000.00 ; Push Button START
000.01 ; NO Contact Contactor for Temperature is Reached
000.02 ; Alarm Heater Element Bournout Detector
000.03 ; Push Button STOP
000.04 ; Alarm Motor, the Signal from the Speed Control Motor.
000.05 ; Limit Switch Reverse from Cylinder Molding
000.06 ; Limit Switch Forward from Cylinder Molding
OUTPUT PLC :
005.00 ; Power Temperature Controller
005.01 ; Speed Control Motor ( ON / OFF Motor for Screw )
005.02 ; Solenoid to Pneumatic Cylinder Molding Forward
005.03 ; Solenoid to Pneumatic Cylinder Molding Reverse
Step 1 :
a. If Switch = ON Then Valve No.01 = ON And Pump No.04 = ON And Valve
No.06 = ON.
b. If FULL WATER No.09 = ON Then Valve No.01 = OFF And Pump No.04 =
OFF And Check Clean Water Sensor No.08.
c. If OK (Clean Water Sensor) No.08 = ON Then Finish Process.
d. If NG (Clean Water Sensor) No.08 = ON Then Next Process to Step 2.
Step 2 :
a. If NG (Clean Water Sensor) No.08 = ON And Switch = ON Then Valve No.01
= OFF And Valve No.03 = ON And Pump No.04 = ON And Valve No.06 = OFF
And Valve No.07 = ON.
b. If FULL WATER No.12 = ON Or EMPTY WATER No.09 = ON Then Pump
No.04 = OFF And Valve No.03 = OFF And Check Clean Water Sensor No.13.
c. If NG (Clean Water Sensor) No.13 = ON Then Valve No.01 = OFF And Valve
No.02 = ON And Valve No.03 = OFF And Pump No.04 = ON And Valve No.06 =
ON And Valve No.07 = OFF.
d. If FULL WATER No.09 = ON Or EMPTY WATER No.13 = ON Then Pump
No.04 = OFF And Valve No.02 = OFF And Check Clean Water Sensor No.08.
e. If OK (Clean Water Sensor) No.08 = ON Then Finish Process.
f. If NG (Clean Water Sensor) No.08 = ON Then Next Process to Step 2.a.
h. Continuous Process until Clean Water = OK.
Download Simulation Process :
Process Automation For Water Treatment
Step 3 :
a. If Switch = OFF Then Process Automation Stop.
PLC Type Series-C Omron , Name Input / Output PLC :
INPUT PLC :
0000 ; Switch ON / OFF (No.14).
0001 ; OK from Clean Water Sensor in Water Tank 1 (No.08).
0002 ; NG from Clean Water Sensor in Water Tank 1 (No.08).
0003 ; OK from Clean Water Sensor in Water Tank 2 (No.13).
0004 ; NG from Clean Water Sensor in Water Tank 2 (No.13).
0005 ; FULL from Water Level Sensor in Tank 1 (No.09).
0006 ; EMPTY from Water Level Sensor in Tank 1 (No.09).
0007 ; FULL from Water Level Sensor in Tank 2 (No.12).
0008 ; EMPTY from Water Level Sensor in Tank 2 (No.12).
OUTPUT PLC :
0500 ; Valve to the Source of Dirty Water (No.01).
0501 ; Valve to Get Water From Water Tank 2 (No.02).
0502 ; Valve to Get Water From Water Tank 1 (No.03).
0503 ; Water Pump (No.04).
0504 ; Valve for the Water to Water Tank 1 (No.06).
0505 ; Valve for the Water to Water Tank 2 (No.07).
Reading Ladder PLC Programming for Process Automation For Water Treatment :
Step 1 : Process 1
a.If 0000 = ON Then 1000 = Momentary ON ( Diff. Up).
b.If 0000 = ON And 1000 = ON And 1002 = OFF And 1003 = OFF Then 1001 =
ON ( Hold ON ).
c.If 0000 = ON And 1001 = ON And 0005 = ON And 0001 = ON Then SET 1002
= ON ( Hold ON ).
d.If 0000 = ON And 1001 = ON And 0005 = ON And 0002 = ON Then SET 1003
= ON ( Hold ON ).
e.If 0000 = OFF Then RES 1002 = ON ( 1002 = OFF ) And RES 1003 = ON (
1003 = OFF ).
Step 1 :
a. If Push Button Start = ON Then Emergency Stop To Laser Engraving Machine
= ON (Hold ON).
b. If Emergency Stop To Laser Engraving Machine = ON And Ready = ON And
Error = OFF And LS Up Vacuum Cups = ON And LS Reverse Vacuum Cups =
ON Then Counter Reset To Laser Engraving Machine = Pulse ON ( With Timer )
And Counter PLC = 0 And Marking Start To Laser Engraving Machine = ON.
c. If Marking = ON Then Marking Start = OFF.
d. If Marking Complete = ON Then Next to Step 2.
Step 2 :
a. If Marking Complete From Laser Engraving Machine = ON Then Solenoid
Forward for Vacuum Cups = ON.
b. If LS Forward for Vacuum Cups = ON Then Solenoid Down for Vacuum Cups
= ON.
c. If LS Down for Vacuum Cups = ON Then Solenoid to Pneumatic Vacuum
Generator = ON And Timer Vacuum Activated .
d. If Timer Vacuum Cups = ON Then Solenoid Up for Vacuum Cups = ON .
e. If LS Up for Vacuum Cups = ON Then Solenoid Reverse for Vacuum Cups =
ON .
f. If LS Reverse for Vacuum Cups = ON Then Solenoid to Pneumatic Vacuum
Generator = OFF And Count-Up To Laser Engraving Machine = ON And Counter
PLC Increased by one.
g. If Counter PLC = OFF ( Current Value <> 5 ( Be Changed )) And Emergency
Stop To Laser Engraving Machine = ON And Ready = ON And Error = OFF Then
Marking Start To Laser Engraving Machine = ON.
h. If Marking From Laser Engraving Machine = ON Then Marking Start = OFF
And Goto Step 2.a.
i. If Counter PLC = ON ( Current Value = 5 ( Be Changed ) for 5 Product ) Then
Process Marking Stop.
Step 3 :
a. If Push Button Stop = ON Or Error From Laser Engraving Machine = ON Or
Ready From Laser Engraving Machine = OFF Then Process Marking Stop.
INPUT PLC :
000.00 ; Push Button Start.
000.01 ; Push Button Stop.
000.02 ; Limit Switch ( LS ) Up for Pneumatic Vacuum Cups. .
000.03 ; Limit Switch ( LS ) Down for Pneumatic Vacuum Cups.
000.04 ; Limit Switch ( LS ) Reverse for Vacuum Cups.
000.05 ; Limit Switch ( LS ) Forward for Vacuum Cups.
000.06 ; Ready From Laser Engraving Machine.
000.07 ; Error From Laser Engraving Machine.
000.08 ; Marking From Laser Engraving Machine.
000.09 ; Marking Complete From Laser Engraving Machine.
OUTPUT PLC :
005.00 ; Solenoid to Pneumatic Vacuum Generator.
005.01 ; Solenoid to Up for Pneumatic Vacuum Cups.
005.02 ; Solenoid to Down for Pneumatic Vacuum Cups.
005.03 ; Solenoid to Reverse for Vacuum Cups.
005.04 ; Solenoid to Forward for Vacuum Cups.
005.05 ; Emergency Stop To Laser Engraving Machine.
005.06 ; Marking Start To Laser Engraving Machine.
005.07 ; Count-Up To Laser Engraving Machine.
005.08 ; Counter Reset To Laser Engraving Machine.
Reading Ladder PLC Programming for Marking with Laser Engraving Machine :
Step 2 :
Counter Reset To Laser Engraving Machine And Counter Reset in PLC
a.If 010.01= ON And 010.02 = ON And TIM000 = ON Then 010.03 = ON ( Hold
ON ) And TIM000 Activated.
b.If 010.03= ON Then RESET CNT003 And 005.08 = ON ( Counter Reset To
Laser Engraving = ON ).
c.If TIM000= ON Then 010.03= OFF.
Step 3 : Automatic Marking Process
First Process of Marking ( Product 1 ) And Starts Marking a.If 010.01 = ON
And 010.03 = ON And TIM000= ON And 010.05 = OFF Then 010.04 = ON (
Hold ON ).
The Next Process ( Product 2 until 5 ) And Continuous of Marking
b.If 010.01 = ON And 010.14 = ON And 010.05 = OFF Then 010.04 = ON ( Hold
ON ).
Waiting Process Marking from Laser Engraving Machine Completed
c.If 010.01 = ON And 010.04 = ON And 000.08= ON And 010.06 = OFF Then
010.05 = ON ( Hold ON ).
Retrieval Process of Product After in Marking
d.If 010.01 = ON And 010.05 = ON And 000.09= ON And 010.07 = OFF Then
010.06 = ON ( Hold ON ).
e.If 010.01 = ON And 010.06 = ON And 000.05= ON And 010.10 = OFF Then
010.07 = ON ( Hold ON ).
f.If 010.01 = ON And 010.07 = ON And 000.03= ON And 010.12 = OFF Then
010.08 = ON ( Hold ON ) And TIM001 Activated.
g.If TIM001= ON Then 010.09 = Momentary ON ( Diff. Up) .
h.If 010.01 = ON And 010.08 = ON And 010.09= ON And 010.11 = OFF Then
010.10 = ON ( Hold ON ).
i.If 010.01 = ON And 010.10 = ON And 000.02= ON And 010.12 = OFF Then
010.11 = ON ( Hold ON ).
j.If 010.01 = ON And 010.11 = ON And 000.04= ON And 010.08 = ON Then
010.12 = ON ( Hold ON ).
Counter PLC in adding one And Count-Up To Laser Engraving Machine =
ON
k.If 010.01 = ON And 010.12 = ON And TIM002= OFF Then 010.13 = ON ( Hold
ON ) And TIM002 Activated.
l.If 010.13 = ON Then Count Up CNT003 ( For Count Product ).
m.If 010.13 = ON Then 005.07 = ON ( Count-Up To Laser Engraving Machine =
ON ).
Counter PLC <> 5 ( CNT003= 5 ( Be Changed ) : Number of Products )
n.If 010.01 = ON And TIM002 = ON And CNT003= OFF And 010.04= OFF Then
010.14 = ON ( Hold ON ) .
o.If 010.14 = ON Then To Step 3.b Or The Next Process ( Product 2 until 5 ).
For Setting Number of Products Marking with Laser Engraving:
Step 1 :
a. If Switch ON/OFF = ON Then System Traffic Light is Active.
b. If Switch ON/OFF = OFF Then System Traffic Light is Inactive.
Step 2 :
a. IF Green color lights in Position A ( No.2) = ON then Red Color Lights in
Position B,C, AND D = ON And Timer0 Activated.
b. IF Timer0 = ON then Green color lights in Position C ( No.6) = ON And Red
Color Lights in Position A,B, AND D = ON And Timer1 Activated.
c. IF Timer1 = ON then Green color lights in Position D ( No.8) = ON And Red
Color Lights in Position A,B, AND C = ON And Timer2 Activated.
d. IF Timer2 = ON then Green color lights in Position B ( No.4) = ON And Red
Color Lights in Position A,C, AND D = ON And Timer3 Activated.
e. IF Timer3 = ON then Green color lights in Position A ( No.2) = ON And Red
Color Lights in Position B,C, AND D = ON And Timer0 Activated.
f. Continuously to Step 2.b
g. Timer0,1,2,3 set to 2 minutes
INPUT PLC :
000.00 ; Switch ON/OFF Traffic Light.
OUTPUT PLC :
005.00 ; Red Color Lights in Position A.
005.01 ; Green color lights in Position A.
005.02 ; Red Color Lights in Position B.
005.03 ; Green color lights in Position B.
005.04 ; Red Color Lights in Position C.
005.05 ; Green color lights in Position C.
005.06 ; Red Color Lights in Position D.
005.07 ; Green color lights in Position D.
Please Download Picture Traffic Light PLC Program with PLC Omron :
Traffic Light PLC Program with PLC Omron
Reading Ladder PLC Programming for Traffic Light PLC Program with PLC
Omron :
Step 1 :
Sequence for Green Light
a.If 000.00= ON Then System Traffic Light is Active.
Green Light in Position A = ON
b.If 000.00= ON And ( 010.00 = ON or TIM003 = ON ) And 010.02 = OFF Then
010.01 = ON ( Hold ON ) And TIM000 Activated.
Green Light in Position C = ON
c.If 000.00= ON And TIM000= ON And 010.03 = OFF Then 010.02 = ON ( Hold
ON ) And TIM001 Activated.
Green Light in Position D = ON
d.If 000.00= ON And TIM001= ON And 010.04= OFF Then 010.03= ON ( Hold
ON ) And TIM002 Activated.
Green Light in Position B = ON
e.If 000.00= ON And TIM002= ON And 010.01= OFF Then 010.04= ON ( Hold
ON ) And TIM003 Activated.
f.If TIM003= ON And Goto Step 1.a.
Step 2 :
Sequence for Red Light
a.If 000.00= ON And ( 010.02 = ON Or 010.03 = ON Or 010.04 = ON ) Then
010.05 = ON.
b.If 000.00= ON And ( 010.01 = ON Or 010.02 = ON Or 010.03 = ON ) Then
010.06 = ON.
c.If 000.00= ON And ( 010.01 = ON Or 010.03 = ON Or 010.04 = ON ) Then
010.07 = ON.
d.If 000.00= ON And ( 010.01 = ON Or 010.02 = ON Or 010.04 = ON ) Then
010.08 = ON.
(2). Light Push Button Switch ( Push Button Switch with Light ) In Floor B
Outside.
(3). Push Button Switch ( Push Button Switch with Light ) In Floor 1 Outside.
(4). Light Push Button Switch ( Push Button Switch with Light ) In Floor 1
Outside.
(5). Push Button Switch ( Push Button Switch with Light ) In B Inside.
(6). Light Push Button Switch ( Push Button Switch with Light ) In B Inside.
(7). Push Button Switch ( Push Button Switch with Light ) In 1 Inside.
(8). Light Push Button Switch ( Push Button Switch with Light ) In 1 Inside.
INPUT PLC :
0000.00 ;Push Button Switch In Floor B Outside.
0000.01 ;Push Button Switch In Floor B Inside.
0000.02 ;Push Button Switch In Floor 1 Outside.
0000.03 ;Push Button Switch In Floor 1 Inside.
0000.04 ;Limit Switch Position 1.
0000.05 ;Limit Switch Position B.
0000.06 ;Limit Switch Door Open.
0000.07 ;Limit Switch Door Close.
0000.08 ;Safety Sensor.
OUTPUT PLC :
0005.00 ;Electric Motors ( Move To Position B )
0005.01 ;Electric Motors ( Move To Position 1 )
0005.02 ;Move the Door Open
0005.03 ;Move the Door Close
0005.04 ;Light Push Button Switch in B Inside
0005.05 ;Light Push Button Switch in 1 Inside
0005.06 ;Light Push Button Switch in B Outside
0005.07 ;Light Push Button Switch in 1 Outside
Reading Ladder PLC Programming for Elevator PLC Program with PLC Omron
:
Step 1 :
a.If 0011.01 = Diff. Up ON Then 0010.11 = ON .
Request from Inside the Elevator
b.If 0000.01 = ON And 0000.04 = ON Or 0000.05 = OFF Then 0010.00 = ON
(Hold ON) .
c.If 0000.03 = ON And 0000.05 = ON Or 0000.04 = OFF Then 0010.01 = ON
(Hold ON) .
Request from Outside the Elevator
d.If 0000.00 = ON And 0000.05 = OFF Then 0010.02 = ON (Hold ON) .
e.If 0000.02 = ON And 0000.04 = OFF Then 0010.03 = ON (Hold ON) .
Step 2 :
Elevator doors open and close
a.If 0000.04 = ON Then 0010.04 = Diff. Up ON.
b.If 0000.05 = ON Then 0010.05 = Diff. Up ON.
c.If 0010.04 = ON Or 0010.05 = ON And 0010.13 = ON And 0010.14 = ON And
0010.07 = OFF Then 0010.06 = ON (Hold ON).
d.If 0010.06 = ON And 0000.06 = ON And 0010.10 = OFF Then 0010.07 = ON
(Hold ON).
e.If 0010.07 = ON And 0000.08 = ON And 0010.09 = OFF Then 0010.08 = ON.
f.If 0010.07 = ON And 0000.08 = OFF Then 0010.09 = ON.
g.If 0010.07 = ON And 0000.05 = ON And ( 0000.00 = ON Or 0000.01 = ON )
Then 0010.09 = ON.
h.If 0010.07 = ON And 0000.04 = ON And ( 0000.02 = ON Or 0000.03 = ON )
Then 0010.09 = ON.
i.If 0010.07 = ON And 0000.07 = ON And 0010.11 = OFF And 0010.12 = OFF
Then 0010.10 = ON (Hold ON).
Step 3 :
Elevator moving up and down
a.If 0010.10 = ON And ( 0010.00 = ON And 0010.02 = ON ) And 0000.05 = OFF
And 0010.12 = OFF Then 0010.11 = ON (Hold ON).
b.If 0011.01 = ON Then 0010.11 = ON (Hold ON).
c.If 0010.10 = ON And ( 0010.01 = ON And 0010.03 = ON ) And 0000.04 = OFF
And 0010.11 = OFF Then 0010.12 = ON (Hold ON).
Step 4 : Output PLC
a.If 0010.11 = ON Then 0005.00 = ON.
b.If 0010.12 = ON Then 0005.01 = ON.
c.If 0010.06 = ON Or 0010.09 = ON Then 0005.02 = ON.
d.If 0010.08 = ON Then 0005.03 = ON.
e.If 0010.00 = ON Or 0000.01 = ON Then 0005.04 = ON.
f.If 0010.01 = ON Or 0000.03 = ON Then 0005.05 = ON.
g.If 0010.02 = ON Or 0000.00 = ON Then 0005.06 = ON.
h.If 0010.03 = ON Or 0000.02 = ON Then 0005.07 = ON.
INPUT PLC :
0000.00 ; Push Button Switch ( without lock ).
OUTPUT PLC :
0005.00 ; Lamp.
3. PLC programming for Push ON Push OFF With Internal Relay PLC
Omron :
4.
Step 1 :
Push ON , Lamp ON
a.If 0000.00 = ON And 0010.02 = OFF Then 0010.00 = ON (Hold ON).
b.If 0010.00 = ON And 0000.00 = OFF And 0010.02 = OFF Then
0010.01 = ON (Hold ON).
c.If 0010.00 = ON Then 0005.00 = ON.
Step 2 :
Push ON, Lamp OFF
a.If 0010.01 = ON And 0000.00 = ON And 0010.03 = OFF Then
0010.02 = ON (Hold ON) And (0010.00 = OFF And 0010.01 = OFF).
b.If 0010.02 = ON And 0000.00 = OFF Then 0010.03 = ON And
0010.02 = OFF.
c.If 0010.00 = OFF Then 0005.00 = OFF.
INPUT PLC :
0000.00 ; Push Button Switch ( without lock ).
OUTPUT PLC :
0005.00 ; Lamp.
PLC programming for Push ON Push OFF With Counter PLC Omron :
1.
Step 1 :
Push ON , Lamp ON
a.If 0000.00 = ON Then Present Value ( CNT000 = 1 And CNT001 = 1 )
And ( C000 = ON And C001 = OFF ).
b.If 0000.00 = OFF Then C000 = ON And C001 = OFF.
c.If C000 = ON Then 0005.00 = ON.
Step 2 :
Push ON, Lamp OFF
a.If 0000.00 = ON Then C001 = ON And Present Value ( CNT000 = 0
And CNT001 = 0 ) And ( C000 = OFF And C001 = OFF ).
b.If 0000.00 = OFF Then C000 = OFF And C001 = OFF.
c.If C000 = OFF Then 0005.00 = OFF.
OUTPUT PLC :
0005.00 ; Lamp.
PLC programming for Push ON Push OFF With Data Memory PLC Omron :
1.
Reading Ladder PLC Programming for Push ON Push OFF with Data
Memory PLC Omron :
Step 1 :
Push ON , Lamp ON
a.If 0000.00 = ON Then Increment D00000 ( INC with Differentiate Up
) And D00000 = 1.
b.If D00000 = 1 Then 0005.00 = ON.
c.If 0000.00 = OFF Then D00000 = 1 And 0005.00 = ON .
Step 2 :
Push ON, Lamp OFF
a.If 0000.00 = ON Then Increment D00000 (Differentiate Up) And
D00000 = 2.
b.If D00000 = 2 ( EQU ) Then D00000 = 0 ( MOV ).
c.If D00000 = 0 Then 0005.00 = OFF.
d.If 0000.00 = OFF Then D00000 = 0 And 0005.00 = OFF .
2.
Information on Drawing Numbers for Display Seven Segment with PLC :
1. Push Button Switch ( without lock )
2. One Display Seven Segment
3. PLC or Programmable Logic Controller
Numeric Display 0
0. If Data Memory = 0 Then Display Seven Segment = 0. PLC OUTPUT
: OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON, OUT4=ON,
OUT5=ON, OUT6=OFF
Numeric Display 1
1. If Push Button Switch = ON (Push-1) Then Data Memory = 1 And
Display Seven Segment = 1.
PLC OUTPUT : OUT0=OFF, OUT1=ON, OUT2=ON, OUT3=OFF,
OUT4=OFF, OUT5=OFF, OUT6=OFF
Numeric Display 2
2. If Push Button Switch = ON (Push-2) Then Data Memory = 2 And
Display Seven Segment = 2.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=OFF, OUT3=ON,
OUT4=ON, OUT5=OFF, OUT6=ON
Numeric Display 3
3. If Push Button Switch = ON (Push-3) Then Data Memory = 3 And
Display Seven Segment = 3.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON,
OUT4=OFF, OUT5=OFF, OUT6=ON
Numeric Display 4
4. If Push Button Switch = ON (Push-4) Then Data Memory = 4 And
Display Seven Segment = 4.
PLC OUTPUT : OUT0=OFF, OUT1=ON, OUT2=ON, OUT3=OFF,
OUT4=OFF, OUT5=ON, OUT6=ON
Numeric Display 5
5. If Push Button Switch = ON (Push-5) Then Data Memory = 5 And
Display Seven Segment = 5.
PLC OUTPUT : OUT0=ON, OUT1=OFF, OUT2=ON, OUT3=ON,
OUT4=OFF, OUT5=ON, OUT6=ON
Numeric Display 6
6. If Push Button Switch = ON (Push-6) Then Data Memory = 6 And
Display Seven Segment = 6.
PLC OUTPUT : OUT0=ON, OUT1=OFF, OUT2=ON OUT3=ON,
OUT4=ON, OUT5=ON, OUT6=ON
Numeric Display 7
7. If Push Button Switch = ON (Push-7) Then Data Memory = 7 And
Display Seven Segment = 7.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON OUT3=OFF,
OUT4=OFF, OUT5=OFF, OUT6=OFF
Numeric Display 8
8. If Push Button Switch = ON (Push-8) Then Data Memory = 8 And
Display Seven Segment = 8.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON OUT3=ON,
OUT4=ON, OUT5=ON, OUT6=ON
Numeric Display 9
9. If Push Button Switch = ON (Push-9) Then Data Memory = 9 And
Display Seven Segment = 9.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON,
OUT4=OFF, OUT5=ON, OUT6=ON
Numeric Display 0
0. If Push Button Switch = ON (Push-10) Then Data Memory = 0 And
Display Seven Segment = 0. PLC OUTPUT : OUT0=ON, OUT1=ON,
OUT2=ON, OUT3=ON, OUT4=ON, OUT5=ON, OUT6=OFF
11.
12. The physical appearance of the seven segments
Definition of common Cathode seven segment with Light Emitting Diode (LED)
Internal Circuit Diagram of common Cathode seven segment
INPUT PLC :
0000.00 ; Push Button Switch ( without lock ).
OUTPUT PLC :
0005.00 ; OUT0 or Seven Segment A.
0005.01 ; OUT1 or Seven Segment B.
0005.02 ; OUT2 or Seven Segment C.
0005.03 ; OUT3 or Seven Segment D.
0005.04 ; OUT4 or Seven Segment E.
0005.05 ; OUT5 or Seven Segment F.
0005.06 ; OUT6 or Seven Segment G.
Step 1 :
Increments the memory data specified by the operand by 1
a.If 0000.00 = ON Then Increment D00000 ( Diff Up INC / Differentiate Up
Increment).
Step 2 :
a.If D00000 = 0 Then 0010.00 = ON.
b.If D00000 = 1 Then 0010.01 = ON.
c.If D00000 = 2 Then 0010.02 = ON.
d.If D00000 = 3 Then 0010.03 = ON.
e.If D00000 = 4 Then 0010.04 = ON.
f.If D00000 = 5 Then 0010.05 = ON.
g.If D00000 = 6 Then 0010.06 = ON.
h.If D00000 = 7 Then 0010.07 = ON.
i.If D00000 = 8 Then 0010.08 = ON.
j.If D00000 = 9 Then 0010.09 = ON.
Step 3 :
a.If 0010.00 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON.
b.If 0010.01 = ON Then 0005.01 = ON And 0005.02 = ON.
c.If 0010.02 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.03 = ON
And 0005.04 = ON And 0005.06 = ON.
d.If 0010.03 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.06 = ON.
e.If 0010.04 = ON Then 0005.01 = ON And 0005.02 = ON And 0005.05 = ON
And 0005.06 = ON.
f.If 0010.05 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON
And 0005.05 = ON And 0005.06 = ON.
g.If 0010.06 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON
And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
h.If 0010.07 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON.
i.If 0010.08 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
j.If 0010.09 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.05 = ON And 0005.06 = ON.
Numeric Display 0
0. If Data Memory = 0 Then Display Seven Segment = 0. PLC OUTPUT :
OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON, OUT4=ON, OUT5=ON,
OUT6=OFF
Numeric Display 1
1. If Push Button Switch = ON (Push-1) Then Data Memory = 1 And Display
Seven Segment = 1.
PLC OUTPUT : OUT0=OFF, OUT1=ON, OUT2=ON, OUT3=OFF, OUT4=OFF,
OUT5=OFF, OUT6=OFF
Numeric Display 2
2. If Push Button Switch = ON (Push-2) Then Data Memory = 2 And Display
Seven Segment = 2.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=OFF, OUT3=ON, OUT4=ON,
OUT5=OFF, OUT6=ON
Numeric Display 3
3. If Push Button Switch = ON (Push-3) Then Data Memory = 3 And Display
Seven Segment = 3.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON, OUT4=OFF,
OUT5=OFF, OUT6=ON
Numeric Display 4
4. If Push Button Switch = ON (Push-4) Then Data Memory = 4 And Display
Seven Segment = 4.
PLC OUTPUT : OUT0=OFF, OUT1=ON, OUT2=ON, OUT3=OFF, OUT4=OFF,
OUT5=ON, OUT6=ON
Numeric Display 5
5. If Push Button Switch = ON (Push-5) Then Data Memory = 5 And Display
Seven Segment = 5.
PLC OUTPUT : OUT0=ON, OUT1=OFF, OUT2=ON, OUT3=ON, OUT4=OFF,
OUT5=ON, OUT6=ON
Numeric Display 6
6. If Push Button Switch = ON (Push-6) Then Data Memory = 6 And Display
Seven Segment = 6.
PLC OUTPUT : OUT0=ON, OUT1=OFF, OUT2=ON OUT3=ON, OUT4=ON,
OUT5=ON, OUT6=ON
Numeric Display 7
7. If Push Button Switch = ON (Push-7) Then Data Memory = 7 And Display
Seven Segment = 7.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON OUT3=OFF, OUT4=OFF,
OUT5=OFF, OUT6=OFF
Numeric Display 8
8. If Push Button Switch = ON (Push-8) Then Data Memory = 8 And Display
Seven Segment = 8.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON OUT3=ON, OUT4=ON,
OUT5=ON, OUT6=ON
Numeric Display 9
9. If Push Button Switch = ON (Push-9) Then Data Memory = 9 And Display
Seven Segment = 9.
PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON, OUT3=ON, OUT4=OFF,
OUT5=ON, OUT6=ON
Numeric Display 0
0. If Push Button Switch = ON (Push-10) Then Data Memory = 0 And Display
Seven Segment = 0. PLC OUTPUT : OUT0=ON, OUT1=ON, OUT2=ON,
OUT3=ON, OUT4=ON, OUT5=ON, OUT6=OFF
INPUT PLC :
0000.00 ; Push Button Switch ( without lock ).
OUTPUT PLC :
0005.00 ; OUT0 or Seven Segment A.
0005.01 ; OUT1 or Seven Segment B.
0005.02 ; OUT2 or Seven Segment C.
0005.03 ; OUT3 or Seven Segment D.
0005.04 ; OUT4 or Seven Segment E.
0005.05 ; OUT5 or Seven Segment F.
0005.06 ; OUT6 or Seven Segment G.
Step 1 :
Increments the memory data specified by the operand by 1
a.If 0000.00 = ON Then Increment D00000 ( Diff Up INC / Differentiate Up
Increment).
Step 2 :
a.If D00000 = 0 Then 0010.00 = ON.
b.If D00000 = 1 Then 0010.01 = ON.
c.If D00000 = 2 Then 0010.02 = ON.
d.If D00000 = 3 Then 0010.03 = ON.
e.If D00000 = 4 Then 0010.04 = ON.
f.If D00000 = 5 Then 0010.05 = ON.
g.If D00000 = 6 Then 0010.06 = ON.
h.If D00000 = 7 Then 0010.07 = ON.
i.If D00000 = 8 Then 0010.08 = ON.
j.If D00000 = 9 Then 0010.09 = ON.
Step 3 :
a.If 0010.00 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON.
b.If 0010.01 = ON Then 0005.01 = ON And 0005.02 = ON.
c.If 0010.02 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.03 = ON
And 0005.04 = ON And 0005.06 = ON.
d.If 0010.03 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.06 = ON.
e.If 0010.04 = ON Then 0005.01 = ON And 0005.02 = ON And 0005.05 = ON
And 0005.06 = ON.
f.If 0010.05 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON
And 0005.05 = ON And 0005.06 = ON.
g.If 0010.06 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON
And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
h.If 0010.07 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON.
i.If 0010.08 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
j.If 0010.09 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON
And 0005.03 = ON And 0005.05 = ON And 0005.06 = ON.
Definition of common anode seven segment with Light Emitting Diode (LED)
Definition of common Cathode seven segment with Light Emitting Diode (LED)
INPUT PLC :
0000.00 ; Toggle Switch ( ON - OFF ).
OUTPUT PLC :
0005.00 ; OUT0 or Seven Segment A of Digit 1.
0005.01 ; OUT1 or Seven Segment B of Digit 1.
0005.02 ; OUT2 or Seven Segment C of Digit 1.
0005.03 ; OUT3 or Seven Segment D of Digit 1.
0005.04 ; OUT4 or Seven Segment E of Digit 1.
0005.05 ; OUT5 or Seven Segment F of Digit 1.
0005.06 ; OUT6 or Seven Segment G of Digit 1.
0005.07 ; OUT7 or Seven Segment A of Digit 2.
0005.08 ; OUT8 or Seven Segment B of Digit 2.
0005.09 ; OUT9 or Seven Segment C of Digit 2.
0005.10 ; OUT10 or Seven Segment D of Digit 2.
0005.11 ; OUT11 or Seven Segment E of Digit 2.
0005.12 ; OUT12 or Seven Segment F of Digit 2.
0005.13 ; OUT12 or Seven Segment G of Digit 2.
0005.14 ; Lamp to signal countdown completion.
Download PDF File:
timer countdown using PLC Omron(.pdf)
Reading Ladder PLC Programming for Timer Countdown with PLC Omron :
Step 1 :
Setting Timer T000 = 1 Second
Decrements the memory data specified by the operand by 1
a.If 0000.00 = ON And 0012.00 = OFF And T000 = ON Then Decrement D00000
( Diff.up DEC / Decrement diff.Up).
Step 2 :
a.If 0000.00 = OFF Then D00000 = 30 ( MOV #0030 D00000 ).
b.If D00000 = 0 Then 0012.00 = ON And 0005.14 = ON.
a.Binary to BCD ( BCD D00000 D00100 ) --> Logical AND with Decimal 15
( ANDW D00100 #0015 D00101 ) --> BCD to Binary (BIN D00101 D00001 )
b.Binary to BCD ( BCD D00000 D00103 ) --> Logical AND with Decimal 240 (
ANDW D00103 #240 D00104 ) --> BCD to Binary ( BIN D00104 D00002 )
Step 4 : digit1
a.If D00001 = 0 Then 0010.00 = ON.
b.If D00001 = 1 Then 0010.01 = ON.
c.If D00001 = 2 Then 0010.02 = ON.
d.If D00001 = 3 Then 0010.03 = ON.
e.If D00001 = 4 Then 0010.04 = ON.
f.If D00001 = 5 Then 0010.05 = ON.
g.If D00001 = 6 Then 0010.06 = ON.
h.If D00001 = 7 Then 0010.07 = ON.
i.If D00001 = 8 Then 0010.08 = ON.
j.If D00001 = 9 Then 0010.09 = ON.
Step 5 : digit2
a.If D00002 = 00 Then 0011.00 = ON.
b.If D00002 = 10 Then 0011.01 = ON.
c.If D00002 = 20 Then 0011.02 = ON.
d.If D00002 = 30 Then 0011.03 = ON.
e.If D00002 = 40 Then 0011.04 = ON.
f.If D00002 = 50 Then 0011.05 = ON.
g.If D00002 = 60 Then 0011.06 = ON.
h.If D00002 = 70 Then 0011.07 = ON.
i.If D00002 = 80 Then 0011.08 = ON.
j.If D00002 = 90 Then 0011.09 = ON.
2. Close Gate
a. If Area Sensor 4 = OFF AND Area Sensor 2 = ON AND Area Sensor 3 = ON
Then Electric Motor for Close Gate = ON.
b. If Electric Motor for Close Gate = ON AND Area Sensor 2 = OFF OR Area
Sensor 3 = OFF Then Electric Motor for Close Gate = OFF AND Electric Motor
for Open Gate = ON.
PLC Type Series-CV Omron , Name Input / Output PLC :
INPUT PLC :
0000.00 ; Area Sensor 1.
0000.01 ; Area Sensor 2.
0000.02 ; Area Sensor 3.
0000.03 ; Area Sensor 4.
0000.04 ; Limit Switch for Open gate.
0000.05 ; Limit Switch for Closed gate.
OUTPUT PLC :
0005.00 ; Contactor for Electric Motor ( Open Gate ).
0005.01 ; Contactor for Electric Motor ( Close Gate ).
Reading Ladder PLC Programming for Automatic Gates using PLC Omron :
Step 1 :
Open Gate
a.If 0000.00 = OFF AND 0000.04 = OFF Then 0010.00 = ON (Hold ON).
b.If 0010.01 = ON AND 0000.01 = OFF OR 0000.02 = OFF Then 0010.03 = ON.
c.If 0010.00 = ON OR 0010.03 = OFF Then 0005.00 = ON.
Step 2 :
Close Gate
a.If 0000.04 = ON AND 0000.03 = OFF AND 0000.01 = ON AND 0000.02 = ON
AND 0010.04 = OFF AND 0000.00 = ON Then 0010.01 = ON (Hold ON).
b.If 0010.01 = ON AND 0000.01 = ON AND 0000.02 = ON Then 0010.02 = ON.
c.If 0010.01 = ON AND 0000.01 = ON AND 0000.02 = ON AND 0000.05 = ON
Then 0010.04 = ON AND 0010.01 = OFF.
d.If 0010.02 = ON Then 0005.01 = ON
INPUT PLC :
0000.00 ; Area Sensor 1.
0000.01 ; Area Sensor 2.
0000.02 ; Area Sensor 3.
0000.03 ; Area Sensor 4.
0000.04 ; Limit Switch for Open gate.
0000.05 ; Limit Switch for Closed gate.
OUTPUT PLC :
0005.00 ; Contactor for Electric Motor ( Open Gate ).
0005.01 ; Contactor for Electric Motor ( Close Gate ).
Reading Ladder PLC Programming for Automatic Gates using PLC Omron :
Step 1 :
Open Gate
a.If 0000.00 = OFF AND 0000.04 = OFF Then 0010.00 = ON (Hold ON).
b.If 0010.01 = ON AND 0000.01 = OFF OR 0000.02 = OFF Then 0010.03 = ON.
c.If 0010.00 = ON OR 0010.03 = OFF Then 0005.00 = ON.
Step 2 :
Close Gate
a.If 0000.04 = ON AND 0000.03 = OFF AND 0000.01 = ON AND 0000.02 = ON
AND 0010.04 = OFF AND 0000.00 = ON Then 0010.01 = ON (Hold ON).
b.If 0010.01 = ON AND 0000.01 = ON AND 0000.02 = ON Then 0010.02 = ON.
c.If 0010.01 = ON AND 0000.01 = ON AND 0000.02 = ON AND 0000.05 = ON
Then 0010.04 = ON AND 0010.01 = OFF.
d.If 0010.02 = ON Then 0005.01 = ON.
-------------
Information on Numbers for Parking Information using PLC :
1. Parking Information
2. "FULL" display
3. "EMPTY" display
4. Ultrasonic sensor for OUT detection
5. Ultrasonic sensor for IN detection
6. Parking Area
3. Setting Data
a. Setting data with the number 5(five) and data can be set in accordance with the
capacity of parking areas.
Download Simulation Parking Information using PLC :
Please Click : Parking Information using PLC
PLC Omron Type CP1L-L10, Name Input / Output PLC :
INPUT PLC :
0.00 ; Ultrasonic sensor for IN detection.
0.01 ; Ultrasonic sensor for OUT detection.
OUTPUT PLC :
100.00 ; Output for "FULL" display.
100.01 ; Output for "EMPTY" display.
Reading Ladder PLC Programming for Parking Information using PLC Omron
:
Step 1 :
Setting Data equal capacity of parking areas
a.If 10.00 = OFF Then D0 = 15, Instruction:MOV &15 D0
Remarks :
a.1. If capacity of parking areas = 0 Then D0 = 10, Instruction:MOV &10 D0.
a.2. If capacity of parking areas = 5 Then D0 = 10 + 5 = 15, Instruction:MOV &15
D0.
a.3. If capacity of parking areas = 1000 Then D0 = 10 + 1000 = 1010,
Instruction:MOV &1010 D0.
Step 2 :
"FULL" display => ON
a.If I: 0.00 = ON Then Increments Pulse the D1 by 1(one), Instruction:@++ D1
b.If D1 equal or more than 15 ( capacity of parking areas = 5, Instruction:>= D1
D0 ) Then 10.01 = ON.
c.If 10.01 = ON Then Q: 100.00 = ON.
Step 3 :
"EMPTY" display => ON
a.If I: 0.01 = ON Then Decrements Pulse the D1 by 1(one), Instruction:@-- D1
b.If D1 less than 15 ( capacity of parking areas = 5, Instruction:< D1 D0 ) Then
10.02 = ON.
c.If 10.02 = ON Then Q: 100.01 = ON.
Step 4 :
Minimum and Maximum Limits
Minimum Limits :
a.If D1 less than 10 ( Instruction:< D1 &10 ) Then D1=10 ( Instruction:MOV &10
D1 ).
Maximum Limits :
b.If D1 more than D0/capacity of parking areas ( Instruction:> D1 D0 ) Then
D0=D1 ( Instruction:MOV D0 D1 ).
INPUT PLC :
0.00 ; Sensor Object
0.01 ; Sensor for empty containers
0.02 ; Sensor for detection position of the Rotary container
0.03 ; Weighing : GO/OK
OUTPUT PLC :
100.00 ; Output to Yellow Lights for the Empty
100.01 ; Output to Red Lights for Weighing Not OK
100.02 ; Output to Green Lights for Weighing OK
100.03 ; Output to Contactor for Electric Motor
100.04 ; Weighing : Digital Zero Reset
Reading Ladder PLC Programming for Weighing Machine using PLC Omron :
Step 1 :
ALL Process ON/OFF
a.If 0.00 = ON Then 10.00 = ON (DIFU)
b.If 10.00 = ON AND 0.00 = ON AND 10.09 = OFF Then 10.01 = ON (ALL
PROCESS ON)
c.If 0.00 = OFF (ALL PROCESS OFF)
d.If 0.01 = OFF AND 10.02 = ON Then 10.09 = ON ( ALL PROCESS OFF )
Step 2 :
Red Lights = OFF
Green Lights = OFF
a.If 10.00 = ON AND 10.01 = ON AND 10.03 = OFF Then 10.02 = ON
b.If 10.02 = ON Then 10.07 = OFF (RSET 10.07 = ON) AND 10.08 = OFF (
RSET 10.08 = ON )
c.If 10.07 = OFF Then 100.02 = OFF (Green Lights = OFF)
d.If 10.08 = OFF Then 100.01 = OFF (Red Lights = OFF)
Step 3 :
Digital Zero Reset = ON
a.If 10.02 = ON AND T0000 = ON AND 10.01 = ON AND 10.04 = OFF Then
10.03 = ON
b.If 10.03 = ON Then 100.04 = ON (Digital Zero = ON)
Step 4 :
Rotary container = ON / OFF
a.If 10.03 = ON AND T0001 = ON AND 10.01 = ON AND 10.05 = OFF Then
10.04 = ON (Hold ON)
b.If 10.04 = ON Then 100.03 = ON (Electric Motor = ON)
c.If 0.02 = OFF AND 10.04 = ON AND 10.01 = ON AND 10.05 = OFF Then
10.10 = ON (Check Sensor position = OFF)
d.If 10.04 = ON AND 100.03 = ON AND 10.10 = ON AND 0.02 = ON AND
10.01 = ON AND 10.06 = OFF Then 10.05 = ON ( Electric Motor = OFF )
e.If 10.05 = ON Then 10.04 = OFF
f.If 10.04 = OFF Then 100.03 = OFF ( Electric Motor = OFF )
Step 5 :
Weighing : GO/OK = ON/OFF
a.If 10.05 = ON AND T0002 = ON AND 10.07 = OFF AND 10.08 = OFF AND
10.01 = ON Then 10.06 = ON (Judgment OK/NOT OK)
b.If 10.01 = ON AND 10.06 = ON AND 0.03 = ON Then 10.07 = ON (SET 10.07
= ON) =>Weighing OK
c.If 10.01 = ON AND 10.06 = ON AND 0.03 = OFF Then 10.08 = ON (SET 10.08
= ON) =>Weighing NOT OK
d.If 10.07 = ON Then 100.02 = ON (OK)
e.If 10.08 = ON Then 100.01 = ON (NOT OK)
Step 6 :
Empty Containers
a.If 0.01 = OFF AND 10.02 = ON Then 10.09 = ON (ALL PROCESS OFF)
b.If 0.01 = ON Then 100.00 = ON (Yellow Lights = ON)
3. Empty Containers
a. If Sensor for empty containers (NO:7) = OFF Then Yellow Lights (NO:3) = ON
b. If Sensor for empty containers (NO:7) = OFF AND Sensor Object (NO:2) = ON
Then Green Lights, Red Lights = OFF AND All Process OFF
PLC Type KV-16, Name Input / Output PLC :
INPUT PLC :
0000 ; Sensor Object
0001 ; Sensor for empty containers
0002 ; Sensor for detection position of the Rotary container
0003 ; Weighing : GO/OK
OUTPUT PLC :
0500 ; Output to Yellow Lights for the Empty
0501 ; Output to Red Lights for Weighing Not OK
0502 ; Output to Green Lights for Weighing OK
0503 ; Output to Contactor for Electric Motor
0504 ; Weighing : Digital Zero Reset
Reading Ladder PLC Programming for Weighing Machine using PLC Keyence :
Step 1 :
ALL Process ON/OFF
a.If 0000 = ON Then 1000 = ON (DIFU)
b.If 1000 = ON AND 0000 = ON AND 1009 = OFF Then 1001 = ON (ALL
PROCESS ON)
c.If 0000 = OFF (ALL PROCESS OFF)
d.If 0001 = OFF AND 1002 = ON Then 1009 = ON ( ALL PROCESS OFF )
Step 2 :
Red Lights = OFF
Green Lights = OFF
a.If 1000 = ON AND 1001 = ON AND 1003 = OFF Then 1002 = ON
b.If 1002 = ON Then 1007 = OFF (RES 1007 = ON) AND 1008 = OFF ( RES
1008 = ON )
c.If 1007 = OFF Then 0502 = OFF (Green Lights = OFF)
d.If 1008 = OFF Then 0501 = OFF (Red Lights = OFF)
Step 3 :
Digital Zero Reset = ON
a.If 1002 = ON AND T000 = ON AND 1001 = ON AND 1004 = OFF Then 1003
= ON
b.If 1003 = ON Then 0504 = ON (Digital Zero = ON)
Step 4 :
Rotary container = ON / OFF
a.If 1003 = ON AND T001 = ON AND 1001 = ON AND 1005 = OFF Then 1004
= ON (Hold ON)
b.If 1004 = ON Then 0503 = ON (Electric Motor = ON)
c.If 0002 = OFF AND 1004 = ON AND 1001 = ON AND 1005 = OFF Then 1010
= ON (Check Sensor position = OFF)
d.If 1004 = ON AND 0503 = ON AND 1010 = ON AND 0002 = ON AND 1001 =
ON AND 1006 = OFF Then 1005 = ON ( Electric Motor = OFF )
e.If 1005 = ON Then 1004 = OFF
f.If 1004 = OFF Then 0503 = OFF ( Electric Motor = OFF )
Step 5 :
Weighing : GO/OK = ON/OFF
a.If 1005 = ON AND T002 = ON AND 1007 = OFF AND 1008 = OFF AND 1001
= ON Then 1006 = ON (Judgment OK/NOT OK)
b.If 1001 = ON AND 1006 = ON AND 0003 = ON Then 1007 = ON (SET 1007 =
ON) =>Weighing OK
c.If 1001 = ON AND 1006 = ON AND 0003 = OFF Then 1008 = ON (SET 1008 =
ON) =>Weighing NOT OK
d.If 1007 = ON Then 0502 = ON (OK)
e.If 1008 = ON Then 0501 = ON (NOT OK)
Step 6 :
Empty Containers
a.If 0001 = OFF AND 1002 = ON Then 1009 = ON (ALL PROCESS OFF)
b.If 0001 = ON Then 0500 = ON (Yellow Lights = ON)
Simulation Password
Detail for Password Using PLC
Information on Numbers for Detail the Password Using PLC :
1. KeyPad with 10 Numeric and 1 Enter (Numeric KeyPad)
2. PLC (Programmable Logic Controller)
3. Red Light for Wrong Password
4. Green Light for Correct Password
1. Correct Password
a. If typing "5500" from KeyPad AND "ENTER" from KeyPad then Green Light =
ON (Correct Password)
2. Wrong Password
a. If NOT typing "5500" from KeyPad AND "ENTER" from KeyPad then Red
Light = ON (Wrong Password)
3. Password Data
a. Password data using PLC memory (With Value 5500) and can be modified
INPUT PLC :
0.00 ; Numeric 0 from KeyPad
0.01 ; Numeric 1 from KeyPad
0.02 ; Numeric 2 from KeyPad
0.03 ; Numeric 3 from KeyPad
0.04 ; Numeric 4 from KeyPad
0.05 ; Numeric 5 from KeyPad
0.06 ; Numeric 6 from KeyPad
0.07 ; Numeric 7 from KeyPad
0.08 ; Numeric 8 from KeyPad
0.09 ; Numeric 9 from KeyPad
0.10 ; ENTER Key from KeyPad
OUTPUT PLC :
100.00 ; Output to Green Light for Correct Password
100.01 ; Output to RRed Light for Wrong Password
Download PDF File:
password using plc omron(.pdf)
Step 1 :
Password Data using D20
a.If 11.00 = OFF (Always ON) Then D20 = 5500 (can be modified and 4 Digits
Decimal)
Step 2 :
Numeric 0 to 9 is pressed
Using D0 for temporary data storage
a.If 0.00 = ON (Numeric 0) Then DIFU 10.00 = ON AND D0 = 0
b.If 0.01 = ON (Numeric 1) Then DIFU 10.00 = ON AND D0 = 1
c.If 0.02 = ON (Numeric 2) Then DIFU 10.00 = ON AND D0 = 2
d.If 0.03 = ON (Numeric 3) Then DIFU 10.00 = ON AND D0 = 3
e.If 0.04 = ON (Numeric 4) Then DIFU 10.00 = ON AND D0 = 4
f.If 0.05 = ON (Numeric 5) Then DIFU 10.00 = ON AND D0 = 5
g.If 0.06 = ON (Numeric 6) Then DIFU 10.00 = ON AND D0 = 6
h.If 0.07 = ON (Numeric 7) Then DIFU 10.00 = ON AND D0 = 7
i.If 0.08 = ON (Numeric 8) Then DIFU 10.00 = ON AND D0 = 8
j.If 0.09 = ON (Numeric 9) Then DIFU 10.00 = ON AND D0 = 9
Note : DIFU = Single-scan of target relay ON at rising edge of previous state
Step 3 :
Count the number keypad is pressed
Using D30 for Count data storage
a.If 10.00 = ON Then ++(590) D30 (Binary Increment)
Step 4 :
Enter Released for Value D30 = 0 (Count data RESET)
a.If 0.10 = ON (ENTER key is pressed) Then DIFD 10.01 = ON (Single-scan of
target relay ON at falling edge of previous state)
b.If 10.01 = ON Then Value D30 = 0
Step 5 :
Password from the KeyPad
Using D12 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
(10.00 = ON) AND (= &1 D30) AND (*U &1000 D0 D1)
b.Keypad is pressed second, multiplied by 100
(10.00 = ON) AND (= &2 D30) AND (*U &100 D0 D2)
c.Keypad is pressed three, multiplied by 10
(10.00 = ON) AND (= &3 D30) AND (*U &10 D0 D3)
d.Keypad is pressed four, multiplied by 1
(10.00 = ON) AND (= &4 D30) AND (*U &1 D0 D4)
e.Sum all the data
(10.00 = ON) AND (+ D1 D2 D10)
(10.00 = ON) AND (+ D10 D3 D11)
(10.00 = ON) AND (+ D11 D4 D12)
Example :
Keypad is pressed :
first : Numeric 4 => 4 multiplied by 1000 = 4000
second : Numeric 4 => 4 multiplied by 100 = 400
three : Numeric 2 => 2 multiplied by 10 = 20
four : Numeric 2 => 2 multiplied by 1 = 2
Sum all the data = 4000 + 400 + 20 + 2 = 4422
So,Password from the keypad is 4422
Step 6 :
Check the number of digits
a.If D30 = 4 (4 times the keypad is pressed) Then 10.02 = ON
Step 7 :
Correct Password
a.If 0.10 = ON (ENTER key is pressed) AND 10.02 = ON AND Value(D12 =
D20) Then SET 10.03 = ON
b.If 10.03 = ON Then 100.00 = ON (Correct Lamp)
Step 8 :
Wrong Password and Not 4 digits
a.If 0.10 = ON (ENTER key is pressed) AND 10.02 = ON AND Value(D12 not
same D20) Then SET 10.04 = ON
b.If 0.10 = ON (ENTER key is pressed) AND 10.02 = OFF AND 10.03 = OFF
AND 10.04 = OFF Then SET 10.05 = ON (Not 4 digits)
c.If 10.04 = ON OR 10.05 = ON Then 100.01 = ON (Wrong Lamp)
Step 9 :
Green Light = OFF OR Red Light = OFF
a.If 10.00 = ON AND 10.03 = ON OR 10.04 = ON OR 10.05 = ON Then RSET
10.03 (10.03 = OFF) AND RSET 10.04 (10.04 = OFF) AND RSET 10.05 (10.05 =
OFF)
PLC Type KV, Name Input / Output PLC :
INPUT PLC :
0000 ; Numeric 0 from KeyPad
0001 ; Numeric 1 from KeyPad
0002 ; Numeric 2 from KeyPad
0003 ; Numeric 3 from KeyPad
0004 ; Numeric 4 from KeyPad
0005 ; Numeric 5 from KeyPad
0006 ; Numeric 6 from KeyPad
0007 ; Numeric 7 from KeyPad
0008 ; Numeric 8 from KeyPad
0009 ; Numeric 9 from KeyPad
0010 ; ENTER Key from KeyPad
OUTPUT PLC :
0500 ; Output to Green Light for Correct Password
0501 ; Output to RRed Light for Wrong Password
Step 1 :
Password Data using DM0020
a.If 2002 = ON (Always ON) Then DM0020 = 5500 (can be modified and 4 Digits
Decimal)
Step 2 :
Numeric 0 to 9 is pressed
Using DM0000 for temporary data storage
a.If 0000 = ON (Numeric 0) Then DIFU 1000 = ON AND DM0000 = 0
b.If 0001 = ON (Numeric 1) Then DIFU 1000 = ON AND DM0000 = 1
c.If 0002 = ON (Numeric 2) Then DIFU 1000 = ON AND DM0000 = 2
d.If 0003 = ON (Numeric 3) Then DIFU 1000 = ON AND DM0000 = 3
e.If 0004 = ON (Numeric 4) Then DIFU 1000 = ON AND DM0000 = 4
f.If 0005 = ON (Numeric 5) Then DIFU 1000 = ON AND DM0000 = 5
g.If 0006 = ON (Numeric 6) Then DIFU 1000 = ON AND DM0000 = 6
h.If 0007 = ON (Numeric 7) Then DIFU 1000 = ON AND DM0000 = 7
i.If 0008 = ON (Numeric 8) Then DIFU 1000 = ON AND DM0000 = 8
j.If 0009 = ON (Numeric 9) Then DIFU 1000 = ON AND DM0000 = 9
Note : DIFU = Single-scan of target relay ON at rising edge of previous state
Step 3 :
Count the number keypad is pressed
Using DM0030 for Count data storage
a.If 1000 = ON Then INC DM0030 (Increment target device value)
Step 4 :
Enter Released for Value DM0030 = 0 (Count data RESET)
a.If 0010 = ON (ENTER key is pressed) Then DIFD 1001 = ON (Single-scan of
target relay ON at falling edge of previous state)
b.If 1001 = ON Then Value DM0030 = 0
Step 5 :
Password from the KeyPad
Using DM0012 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
(1000 = ON) AND (LDA DM0030) AND (CMP#0001) AND (2010) AND (LDA
DM0000) AND (MUL #01000) AND (STA DM0001)
b.Keypad is pressed second, multiplied by 100
(1000 = ON) AND (LDA DM0030) AND (CMP#0002) AND (2010) AND (LDA
DM0000) AND (MUL #00100) AND (STA DM0002)
c.Keypad is pressed three, multiplied by 10
(1000 = ON) AND (LDA DM0030) AND (CMP#0003) AND (2010) AND (LDA
DM0000) AND (MUL #00010) AND (STA DM0003)
d.Keypad is pressed four, multiplied by 1
(1000 = ON) AND (LDA DM0030) AND (CMP#0004) AND (2010) AND (LDA
DM0000) AND (MUL #00001) AND (STA DM0004)
e.Sum all the data
(1000 = ON) AND (LDA DM0001) AND (ADD DM0002) AND (STA DM0010)
(1000 = ON) AND (LDA DM0010) AND (ADD DM0003) AND (STA DM0011)
(1000 = ON) AND (LDA DM0011) AND (ADD DM0004) AND (STA DM0012)
Example :
Keypad is pressed :
first : Numeric 9 => 9 multiplied by 1000 = 9000
second : Numeric 6 => 6 multiplied by 100 = 600
three : Numeric 5 => 5 multiplied by 10 = 50
four : Numeric 7 => 7 multiplied by 1 = 7
Sum all the data = 9000 + 600 + 50 + 7 = 9657
So,Password from the keypad is 9657
Step 6 :
Check the number of digits
a.If DM0030 = 4 (4 times the keypad is pressed) Then 1002 = ON
Step 7 :
Correct Password
a.If 0010 = ON (ENTER key is pressed) AND 1002 = ON AND Value(DM0012 =
DM0020) Then SET 1003 = ON
b.If 1003 = ON Then 0500 = ON (Correct Lamp)
Step 8 :
Wrong Password and Not 4 digits
a.If 0010 = ON (ENTER key is pressed) AND 1002 = ON AND Value(DM0012
not same DM0020) Then SET 1004 = ON
b.If 0010 = ON (ENTER key is pressed) AND 1002 = OFF AND 1003 = OFF
AND 1004 = OFF Then SET 1005 = ON (Not 4 digits)
c.If 1004 = ON OR 1005 = ON Then 0501 = ON (Wrong Lamp)
Step 9 :
Green Light = OFF OR Red Light = OFF
a.If 1000 = ON AND 1003 = ON OR 1004 = ON OR 1005 = ON Then RES 1003
(1003 = OFF) AND RES 1004 (1004 = OFF) AND RES 1005 (1005 = OFF)
Information on Numbers for Detail the Lock Unlock Door For Home Automation
:
1. KeyPad with 10 Numeric and 1 Enter (Numeric KeyPad)
2. Lock Indicator using Green LED (Light Emitting Diode)
3. Electromagetic Lock using DC Source
4. Door closure Sensor
5. Door Exit Button
6. PLC (Programmable Logic Controller)
7. Relay With Relay Coil using 240 Volt AC Source
8. Battrey
9. Automatic Battery Charger
OUTDOOR
2. Correct Password (Password OK) and Wrong Password
Unlock Door
a. If Password OK then Relay Coil = ON ( Electromagetic Lock = OFF AND
Green LED = OFF ).
Lock Door
b. If Wrong Password then Relay Coil = OFF ( Electromagetic Lock = ON AND
Green LED = ON ).
3. Open Door
Unlock Door
a. If Relay Coil = ON Then Door can be opened.
INDOOR
5. Exit with Door Exit Button
a. If Door Exit Button = ON Then Relay Coil = ON ( Electromagetic Lock = OFF
AND Green LED = OFF ).
PLC Type CP1L, Name Input / Output PLC :
INPUT PLC :
I:0.00 ; Numeric 0 from KeyPad
I:0.01 ; Numeric 1 from KeyPad
I:0.02 ; Numeric 2 from KeyPad
I:0.03 ; Numeric 3 from KeyPad
I:0.04 ; Numeric 4 from KeyPad
I:0.05 ; Numeric 5 from KeyPad
I:0.06 ; Numeric 6 from KeyPad
I:0.07 ; Numeric 7 from KeyPad
I:0.08 ; Numeric 8 from KeyPad
I:0.09 ; Numeric 9 from KeyPad
I:0.10 ; ENTER Key from KeyPad
I:0.11 ; Door closure Sensor
I:0.12 ; Door Exit Button
OUTPUT PLC :
Q:100.00 ; Output to Relay Coil (Used for Electromagetic Lock and Green LED)
Reading Ladder PLC Programming for Lock Unlock Door using Omron PLC :
Step 1 :
Password Data using D20
a.If 11.00 = OFF (Always ON) Then D20 = 5214 (can be modified and 4 Digits
Decimal)
Step 2 :
Numeric 0 to 9 is pressed
Using D0 for temporary data storage
a.If I:0.00 = ON (Numeric 0) Then DIFU(013) 10.00 = ON AND D0 = 0
b.If I:0.01 = ON (Numeric 1) Then DIFU(013) 10.00 = ON AND D0 = 1
c.If I:0.02 = ON (Numeric 2) Then DIFU(013) 10.00 = ON AND D0 = 2
d.If I:0.03 = ON (Numeric 3) Then DIFU(013) 10.00 = ON AND D0 = 3
e.If I:0.04 = ON (Numeric 4) Then DIFU(013) 10.00 = ON AND D0 = 4
f.If I:0.05 = ON (Numeric 5) Then DIFU(013) 10.00 = ON AND D0 = 5
g.If I:0.06 = ON (Numeric 6) Then DIFU(013) 10.00 = ON AND D0 = 6
h.If I:0.07 = ON (Numeric 7) Then DIFU(013) 10.00 = ON AND D0 = 7
i.If I:0.08 = ON (Numeric 8) Then DIFU(013) 10.00 = ON AND D0 = 8
j.If I:0.09 = ON (Numeric 9) Then DIFU(013) 10.00 = ON AND D0 = 9
Note : DIFU(013) = Single-scan of target relay ON at rising edge of previous state
Step 3 :
Count the number keypad is pressed
Using D30 for Count data storage
a.If 10.00 = ON Then ++(590) D30 (Increment target device value)
Step 4 :
Enter Released for Value D30 = 0 (Count data RESET)
a.If I:0.10 = ON (ENTER key is pressed) Then DIFD(014) 10.01 = ON (Single-
scan of target relay ON at falling edge of previous state)
b.If 10.01 = ON Then Value D30 = 0
Step 5 :
Password from the KeyPad
Using D12 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
(10.00 = ON) -> (=(300) &1 D30) -> (*U(422) &1000 D0 D1)
b.Keypad is pressed second, multiplied by 100
(10.00 = ON) -> (=(300) &2 D30) -> (*U(422) &100 D0 D2)
c.Keypad is pressed three, multiplied by 10
(10.00 = ON) -> (=(300) &3 D30) -> (*U(422) &10 D0 D3)
d.Keypad is pressed four, multiplied by 1
(10.00 = ON) -> (=(300) &4 D30) -> (*U(422) &1 D0 D4)
e.Sum all the data
(10.00 = ON) -> (+(400) D1 D2 D10)
(10.00 = ON) -> (+(400) D10 D3 D11)
(10.00 = ON) -> (+(400) D11 D4 D12)
Example :
Keypad is pressed :
first : Numeric 5 pressed -> 5 multiplied by 1000 = 5000
second : Numeric 2 pressed -> 2 multiplied by 100 = 200
three : Numeric 1 pressed -> 1 multiplied by 10 = 10
four : Numeric 4 pressed -> 4 multiplied by 1 = 4
Sum all the data : 5000 + 200 + 10 + 4 = 5214
So,Password from the keypad is 5214
Step 6 :
Check the number of digits
a.If D30 = 4 (4 times the keypad is pressed) Then 10.02 = ON
Step 7 :
Correct Password And UnLock Door
7.1. Correct Password
a.If I:0.10 = ON (ENTER key is pressed) Then DIFU(013) 10.04 = ON (ENTER
Down)
b.If 10.04 = ON (ENTER Down) AND 10.02 = ON AND Value(D12 = D20) Then
SET 10.03 = ON
7.2. UnLock Door by Correct Password
c.If 10.03 = ON AND 10.07 = OFF AND T0000 = OFF Then 10.06 = ON (Hold
UnLock)
7.3. UnLock Door by Door Exit Button
d.If I:0.12 = ON (Door Exit Button) AND 10.07 = OFF AND T0000 = OFF Then
10.06 = ON (Hold UnLock)
7.3. UnLock Door
e.If 10.06 = ON Then Q:100.00 = ON (UnLock Door)
Step 8 :
Lock Door by Door position
a.If I:0.11 = ON (Door Closure Sensor) Then DIFU(013) 10.07 = ON
b.If 10.07 = ON Then 10.06 = OFF
c.If 10.06 = OFF Then Q:100.00 = OFF (Lock Door)
Step 9 :
Lock Door by Timer
a.If Q:100.00 = ON AND I:0.11 = ON (Door Closure Sensor) Then Activate the
Timer TIM0000
b.If T0000 = ON Then 10.06 = OFF
c.If 10.06 = OFF Then Q:100.00 = OFF (Lock Door)
Step 10 :
a.If 10.00 = ON AND 10.03 = ON (Correct Password) Then RSET 10.03 (10.03 =
OFF)
b.If 10.07 = ON AND 10.03 = ON (Correct Password) Then RSET 10.03 (10.03 =
OFF)
c.If T0000 = ON AND 10.03 = ON (Correct Password) Then RSET 10.03 (10.03 =
OFF)
INPUT PLC :
0000 ; Numeric 0 from KeyPad
0001 ; Numeric 1 from KeyPad
0002 ; Numeric 2 from KeyPad
0003 ; Numeric 3 from KeyPad
0004 ; Numeric 4 from KeyPad
0005 ; Numeric 5 from KeyPad
0006 ; Numeric 6 from KeyPad
0007 ; Numeric 7 from KeyPad
0008 ; Numeric 8 from KeyPad
0009 ; Numeric 9 from KeyPad
0010 ; ENTER Key from KeyPad
0011 ; Door closure Sensor
0012 ; Door Exit Button
OUTPUT PLC :
0500 ; Output to Relay Coil (Used for Electromagetic Lock and Green LED)
Reading Ladder PLC Programming for Lock Unlock Door using Keyence PLC :
Step 1 :
Password Data using DM0020
a.If 2002 = ON (Always ON) Then DM0020 = 5214 (can be modified and 4 Digits
Decimal)
Step 2 :
Numeric 0 to 9 is pressed
Using DM0000 for temporary data storage
a.If 0000 = ON (Numeric 0) Then DIFU 1000 = ON AND DM0000 = 0
b.If 0001 = ON (Numeric 1) Then DIFU 1000 = ON AND DM0000 = 1
c.If 0002 = ON (Numeric 2) Then DIFU 1000 = ON AND DM0000 = 2
d.If 0003 = ON (Numeric 3) Then DIFU 1000 = ON AND DM0000 = 3
e.If 0004 = ON (Numeric 4) Then DIFU 1000 = ON AND DM0000 = 4
f.If 0005 = ON (Numeric 5) Then DIFU 1000 = ON AND DM0000 = 5
g.If 0006 = ON (Numeric 6) Then DIFU 1000 = ON AND DM0000 = 6
h.If 0007 = ON (Numeric 7) Then DIFU 1000 = ON AND DM0000 = 7
i.If 0008 = ON (Numeric 8) Then DIFU 1000 = ON AND DM0000 = 8
j.If 0009 = ON (Numeric 9) Then DIFU 1000 = ON AND DM0000 = 9
Note : DIFU = Single-scan of target relay ON at rising edge of previous state
Step 3 :
Count the number keypad is pressed
Using DM0030 for Count data storage
a.If 1000 = ON Then INC DM0030 (Increment target device value)
Step 4 :
Enter Released for Value DM0030 = 0 (Count data RESET)
a.If 0010 = ON (ENTER key is pressed) Then DIFD 1001 = ON (Single-scan of
target relay ON at falling edge of previous state)
b.If 1001 = ON Then Value DM0030 = 0
Step 5 :
Password from the KeyPad
Using DM0012 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
(1000 = ON) -> (LDA DM0030) -> (CMP#0001) -> (2010) -> (LDA DM0000) ->
(MUL #01000) -> (STA DM0001)
b.Keypad is pressed second, multiplied by 100
(1000 = ON) -> (LDA DM0030) -> (CMP#0002) -> (2010) -> (LDA DM0000) ->
(MUL #00100) -> (STA DM0002)
c.Keypad is pressed three, multiplied by 10
(1000 = ON) -> (LDA DM0030) -> (CMP#0003) -> (2010) -> (LDA DM0000) ->
(MUL #00010) -> (STA DM0003)
d.Keypad is pressed four, multiplied by 1
(1000 = ON) -> (LDA DM0030) -> (CMP#0004) -> (2010) -> (LDA DM0000) ->
(MUL #00001) -> (STA DM0004)
e.Sum all the data
(1000 = ON) -> (LDA DM0001) -> (ADD DM0002) -> (STA DM0010)
(1000 = ON) -> (LDA DM0010) -> (ADD DM0003) -> (STA DM0011)
(1000 = ON) -> (LDA DM0011) -> (ADD DM0004) -> (STA DM0012)
Example :
Keypad is pressed :
first : Numeric 5 pressed -> 5 multiplied by 1000 = 5000
second : Numeric 2 pressed -> 2 multiplied by 100 = 200
three : Numeric 1 pressed -> 1 multiplied by 10 = 10
four : Numeric 4 pressed -> 4 multiplied by 1 = 4
Sum all the data : 5000 + 200 + 10 + 4 = 5214
So,Password from the keypad is 5214
Step 6 :
Check the number of digits
a.If DM0030 = 4 (4 times the keypad is pressed) Then 1002 = ON
Step 7 :
Correct Password And UnLock Door
7.1. Correct Password
a.If 0010 = ON (ENTER key is pressed) Then DIFU 1004 = ON (ENTER Down)
b.If 1004 = ON (ENTER Down) AND 1002 = ON AND Value(DM0012 =
DM0020) Then SET 1003 = ON
7.2. UnLock Door by Correct Password
c.If 1003 = ON AND 1007 = OFF AND T000 = OFF Then 1006 = ON (Hold
UnLock)
7.3. UnLock Door by Door Exit Button
d.If 0012 = ON (Door Exit Button) AND 1007 = OFF AND T000 = OFF Then
1006 = ON (Hold UnLock)
7.3. UnLock Door
e.If 1006 = ON Then 0500 = ON (UnLock Door)
Step 8 :
Lock Door by Door position
a.If 0011 = ON (Door Closure Sensor) Then DIFU 1007 = ON
b.If 1007 = ON Then 1006 = OFF
c.If 1006 = OFF Then 0500 = OFF (Lock Door)
Step 9 :
Lock Door by Timer
a.If 0500 = ON AND 0011 = ON (Door Closure Sensor) Then Activate the Timer
T000
b.If T000 = ON Then 1006 = OFF
c.If 1006 = OFF Then 0500 = OFF (Lock Door)
Step 10 :
a.If 1000 = ON AND 1003 = ON (Correct Password) Then RES 1003 (1003 =
OFF)
b.If 1007 = ON AND 1003 = ON (Correct Password) Then RES 1003 (1003 =
OFF)
c.If T000 = ON AND 1003 = ON (Correct Password) Then RES 1003 (1003 =
OFF)
1. Conveyor Start
a. If Push Button Start = ON Then Output Unit for Start-Stop on Inverter = ON
(Hold ON)
2. Conveyor Stop
a. If Push Button Stop = OFF Then Output Unit for Start-Stop on Inverter = OFF
b. If Infrared Sensor = ON Then Output Unit for Start-Stop on Inverter = OFF Else
Output Unit for Start-Stop on Inverter = ON
3. Empty Lightbox = ON
a. If Output Unit for Start-Stop on Inverter = ON AND Infrared Sensor = OFF
AND Wait For 10 Seconds Then Empty Lightbox = ON Else Empty Lightbox =
OFF
Normally Open and Normally Close from Input Equipments PLC
Picture for Normally Open (NO) and Normally Close (NC) Switch :
Picture for Normally Open (NO) and Normally Close (NC) Limit Switch :
Definition Contact Normally Open (NO) :
For Switch or Limit Switch Without Lamp :
If Switch In Depressed then signal into PLC is ON ( 1).
If Switch is Not In Depressed then signal into PLC is OFF ( 0).
INPUT PLC :
I: 0.00 ; Infrared Sensor
I: 0.01 ; Push Button Start (Normally Open Contact)
I: 0.02 ; Push Button Stop (Normally Closed Contact)
--- Link : normally open normally closed contact
OUTPUT PLC :
Q: 100.00 ; Empty Lightbox
Q: 100.01 ; Start-Stop on Inverter
Reading Ladder PLC Programming for Conveyor Control using Omron PLC :
1. Conveyor Start
a.If I: 0.01 = ON AND I: 0.02 = ON Then 10.00 = ON (Hold ON)
b.If 10.00 = ON AND I: 0.00 = OFF Then 10.01 = ON
c.If 10.01 = ON Then Q: 100.01 = ON
2. Conveyor Stop
a.If I: 0.02 = OFF Then 10.00 = OFF
b.If 10.00 = OFF Then 10.01 = OFF
c.If 10.00 = ON AND I: 0.00 = ON Then 10.01 = OFF
d.If 10.01 = OFF Then Q: 100.01 = OFF
3. Empty Lightbox = ON
a.If 10.00 = ON AND I: 0.00 = OFF Then TIM0000 activated (active for 10
seconds)
b.If T0000 = ON Then Q: 100.00 = ON
INPUT PLC :
0000 ; Infrared Sensor
0001 ; Push Button Start (Normally Open Contact)
0002 ; Push Button Stop (Normally Closed Contact)
--- Link : normally open normally closed contact
OUTPUT PLC :
0500 ; Empty Lightbox
0501 ; Start-Stop on Inverter
Reading Ladder PLC Programming for Conveyor Control using Keyence PLC :
1. Conveyor Start
a.If 0001 = ON AND 0002 = ON Then 1000 = ON (Hold ON)
b.If 1000 = ON AND 0000 = OFF Then 1001 = ON
c.If 1001 = ON Then 0501 = ON
2. Conveyor Stop
a.If 0002 = OFF Then 1000 = OFF
b.If 1000 = OFF Then 1001 = OFF
c.If 1000 = ON AND 0000 = ON Then 1001 = OFF
d.If 1001 = OFF Then 0501 = OFF
3. Empty Lightbox = ON
a.If 1000 = ON AND 0000 = OFF Then T000 activated (active for 10 seconds)
b.If T000 = ON Then 0500 = ON
Remarks :
1. Movement 1 : Cylinder1 Forward
2. Movement 2 : Cylinder2 Forward
3. Movement 3 : Cylinder1 Reverse AND Cylinder2 Reverse
2.PLC Output:
<-> 2 Output Unit for Cylinder1 Forward And Cylinder1 Reverse
<-> 2 Output Unit for Cylinder2 Forward And Cylinder2 Reverse
--> Total PLC output, minimum of 4 Output.
1. INPUT CONDITION :
a. Emergency Stop Condition
b. All Origin Condition
c. Start Condition
3. OUTPUT CONDITION :
a. STEP 1 or Output Controller 2 for Cylinder1 Forward
b. STEP 2 or Output Controller 3 for Cylinder2 Forward
c. STEP 3 or Output Controller 4 for Cylinder1 Reverse
d. STEP 3 or Output Controller 4 for Cylinder2 Reverse
4. CONTROLLER :
Using 4 Output Controller
PLC Type CP1L, Name Input / Output PLC :
INPUT PLC :
I: 0.00 ; Push Button Start
I: 0.01 ; Sensor1 Reverse
I: 0.02 ; Sensor1 Forward
I: 0.03 ; Sensor2 Reverse
I: 0.04 ; Sensor2 Forward
I: 0.05 ; Emergency Stop (Push Button)
OUTPUT PLC :
Q: 100.00 ; Cylinder1 Forward
Q: 100.01 ; Cylinder1 Reverse
Q: 100.02 ; Cylinder2 Forward
Q: 100.03 ; Cylinder2 Reverse
1. INPUT CONDITION
a.If I: 0.05 = ON Then 10.00 = ON
b.If 10.00 = ON Then Reset Input C0 or C0 = 0 (Only STEP0 = ON)
c.If I: 0.01 = ON AND I: 0.03 = ON Then 10.01 = ON ( ALL ORIGIN = ON)
d.If I: 0.00 = ON Then 10.02 = ON (Start = ON)
3. OUTPUT CONDITION
a.If 11.01 = ON Then Q: 100.00 = ON
b.If 11.03 = ON Then Q: 100.01 = ON
c.If 11.02 = ON Then Q: 100.02 = ON
d.If 11.03 = ON Then Q: 100.03 = ON
4. CONTROLLER
a.If 11.01 = OFF AND 11.02 = OFF AND 11.03 = OFF Then 10.04 = ON (Only
STEP0 = ON)
b.If 10.03 = ON (Trigger) Then Count Input CNT0000 = ON
c.If 10.00 = ON (Emergency Stop) Then Reset Input CNT0000 or CNT0000 =
1000 (Only STEP0 = ON)
d.If 10.04 = ON AND C0 (CNT0000) Not Equal 1000 (#1000) Then Reset Input
CNT0000 or CNT0000 = 1000 (Only STEP0 = ON)
e.If C0 (CNT0000) = 1000 (#1000) Then 11.00 = ON (STEP0 = ON)
f.If C0 (CNT0000) = 999 (#999) Then 11.01 = ON (STEP1 = ON)
g.If C0 (CNT0000) = 998 (#998) Then 11.02 = ON (STEP2 = ON)
h.If C0 (CNT0000) = 997 (#997) Then 11.03 = ON (STEP3 = ON)
INPUT PLC :
0000 ; Push Button Start
0001 ; Sensor1 Reverse
0002 ; Sensor1 Forward
0003 ; Sensor2 Reverse
0004 ; Sensor2 Forward
0005 ; Emergency Stop (Push Button)
OUTPUT PLC :
0500 ; Cylinder1 Forward
0501 ; Cylinder1 Reverse
0502 ; Cylinder2 Forward
0503 ; Cylinder2 Reverse
1. INPUT CONDITION
a.If 0005 = ON Then 1000 = ON
b.If 1000 = ON Then RES C000 or C000 = 0 (Only STEP0 = ON)
c.If 0001 = ON AND 0003 = ON Then 1001 = ON ( ALL ORIGIN = ON)
d.If 0000 = ON Then 1002 = ON (Start = ON)
3. OUTPUT CONDITION
a.If 1101 = ON Then 0500 = ON
b.If 1103 = ON Then 0501 = ON
c.If 1102 = ON Then 0502 = ON
d.If 1103 = ON Then 0503 = ON
4. CONTROLLER
a.If 1101 = OFF AND 1102 = OFF AND 1103 = OFF Then 1004 = ON (Only
STEP0 = ON)
b.If 1004 = ON AND C000 Not Equal 0 (Null) Then RES C000 or C000 = 0 (Only
STEP0 = ON)
c.If 1003 = ON (Trigger) Then Count Up C000
d.If 1000 = ON (Emergency Stop) Then RES C000 or C000 = 0 (Only STEP0 =
ON)
e.If C000 = 0 Then 1100 = ON (STEP0 = ON)
f.If C000 = 1 Then 1101 = ON (STEP1 = ON)
g.If C000 = 2 Then 1102 = ON (STEP2 = ON)
h.If C000 = 3 Then 1103 = ON (STEP3 = ON)
Remarks :
1. Movement1 : Cylinder Clamp Left AND Right to Middle
2. Movement2 : Cylinder Ejector Down
3. Movement3 : Cylinder Clamp Left AND Right to Forward
4. Movement4 : Cylinder Nozzle to Middle
5. Movement5 : Cylinder Nozzle to Forward AND Welding Torch=ON
6. Movement6 : Cylinder Nozzle to Middle
7. Movement7 : Cylinder Nozzle to Reverse
8. Movement8 : Cylinder Clamp Left AND Right to Middle
9. Movement9 : Cylinder Clamp Left AND Right to Reverse
10. Movement10 : Cylinder Ejector Up
2. PLC Output :
<-> 1 Output for Contactor to Torch Button of MIG Welding
<-> 1 Output for Solenoid to Clamp Left Reverse
<-> 1 Output for Solenoid to Clamp Left Forward
<-> 1 Output for Solenoid to Clamp Right Reverse
<-> 1 Output for Solenoid to Clamp Right Forward
<-> 1 Output for Solenoid to Ejector Up
<-> 1 Output for Solenoid to Ejector Down
<-> 1 Output for Solenoid to Nozzle Reverse
<-> 1 Output for Solenoid to Nozzle Forward
--> Total PLC output, minimum of 9 Output.
NOTE: All Solenoid using Double Solenoid,3 Position ( 4/3 ways or 5/3 ways
),Closed Center
1. INPUT CONDITION :
a. Waiting Start (Output Controller1) = ON, If:
a.1. Emergency Stop = ON
b.2. Waiting Start = OFF AND Safety Sensor = OFF
4. CONTROLLER :
Using 11 Output Controller :
total movement = 10 movement
Waiting Start = 1
Total Output Controller = 10 + 1 = 11
PLC Type CP1L, Name of the Input / Output:
INPUT PLC:
I:0.00 ; Emergency Push Button
I:0.01 ; Push Button Start
I:0.02 ; Safety Sensor
I:0.03 ; Limit Switch Clamp Left Reverse
I:0.04 ; Limit Switch Clamp Left Middle
I:0.05 ; Limit Switch Clamp Left Forward
I:0.06 ; Limit Switch Clamp Right Reverse
I:0.07 ; Limit Switch Clamp Right Middle
I:0.08 ; Limit Switch Clamp Right Forward
I:0.09 ; Limit Switch Ejector Up
I:0.10 ; Limit Switch Ejector Down
I:0.11 ; Limit Switch Nozzle Reverse
I:1.00 ; Limit Switch Nozzle Middle
I:1.01 ; Limit Switch Nozzle Forward
OUTPUT PLC:
Q:100.00 ; Contactor to Torch Button of MIG Welding
Q:100.01 ; Solenoid to Clamp Left Reverse
Q:100.02 ; Solenoid to Clamp Left Forward
Q:100.03 ; Solenoid to Clamp Right Reverse
Q:100.04 ; Solenoid to Clamp Right Forward
Q:100.05 ; Solenoid to Ejector Up
Q:100.06 ; Solenoid to Ejector Down
Q:100.07 ; Solenoid to Nozzle Reverse
Q:101.00 ; Solenoid to Nozzle Forward
1. INPUT CONDITION
2.3. Movement1=ON
2.3.a. If C0 (CNT0000)=1 Then 11.01=ON
2.3.b. If 11.01=ON AND 10.06=OFF AND 10.07=OFF Then 11.01=ON
2.5. Movement2=ON
2.5.a. If C0 (CNT0000)=2 Then 11.02=ON
2.5.b. If 11.02=ON AND I:0.10=OFF Then 11.02=ON
2.7. Movement3=ON
2.7.a. If C0 (CNT0000)=3 Then 11.03=ON
2.7.b. If 11.03=ON AND I:0.05=OFF AND I:0.08=OFF Then 11.03=ON
2.9. Movement4=ON
2.9.a. If C0 (CNT0000)=4 Then 11.04=ON
2.9.b. If 11.04=ON AND I:1.00=OFF Then 11.04=ON
2.11. Movement5=ON
2.11.a. If C0 (CNT0000)=5 Then 11.05=ON
2.11.b. If 11.05=ON AND I:1.01=OFF Then 11.05=ON
2.13. Movement6=ON
2.13.a. If C0 (CNT0000)=6 Then 11.06=ON
2.13.b. If 11.06=ON AND I:1.00=OFF Then 11.06=ON
2.15. Movement7=ON
2.15.a. If C0 (CNT0000)=7 Then 11.07=ON
2.15.b. If 11.07=ON AND I:0.11=OFF Then 11.07=ON
2.17. Movement8=ON
2.17.a. If C0 (CNT0000)=8 Then 11.08=ON
2.17.b. If 11.08=ON AND 10.06=OFF AND 10.07=OFF Then 11.08=ON
2.19. Movement9=ON
2.19.a. If C0 (CNT0000)=9 Then 11.09=ON
2.19.b. If 11.09=ON AND I:0.03=OFF AND I:0.06=OFF Then 11.09=ON
2.20. Movement10=ON
2.20.a. If C0 (CNT0000)=10 Then 11.10=ON
2.20.b. If 11.10=ON AND I:0.09=OFF Then 11.10=ON
3. OUTPUT CONDITION
4. CONTROLLER
INPUT PLC:
0000 ; Emergency Push Button
0001 ; Push Button Start
0002 ; Safety Sensor
0003 ; Limit Switch Clamp Left Reverse
0004 ; Limit Switch Clamp Left Middle
0005 ; Limit Switch Clamp Left Forward
0006 ; Limit Switch Clamp Right Reverse
0007 ; Limit Switch Clamp Right Middle
0008 ; Limit Switch Clamp Right Forward
0009 ; Limit Switch Ejector Up
0010 ; Limit Switch Ejector Down
0011 ; Limit Switch Nozzle Reverse
0012 ; Limit Switch Nozzle Middle
0013 ; Limit Switch Nozzle Forward
OUTPUT PLC:
0500 ; Contactor to Torch Button of MIG Welding
0501 ; Solenoid to Clamp Left Reverse
0502 ; Solenoid to Clamp Left Forward
0503 ; Solenoid to Clamp Right Reverse
0504 ; Solenoid to Clamp Right Forward
0505 ; Solenoid to Ejector Up
0506 ; Solenoid to Ejector Down
0507 ; Solenoid to Nozzle Reverse
0508 ; Solenoid to Nozzle Forward
1. INPUT CONDITION
1.3. Start=ON
If 0000=OFF AND 0002=ON AND 0001=ON Then 1002=ON
2.3. Movement1=ON
2.3.a. If C000=1 Then 1101=ON
2.3.b. If 1101=ON AND 1006=OFF AND 1007=OFF Then 1101=ON
2.5. Movement2=ON
2.5.a. If C000=2 Then 1102=ON
2.5.b. If 1102=ON AND 0010=OFF Then 1102=ON
2.7. Movement3=ON
2.7.a. If C000=3 Then 1103=ON
2.7.b. If 1103=ON AND 0005=OFF AND 0008=OFF Then 1103=ON
2.9. Movement4=ON
2.9.a. If C000=4 Then 1104=ON
2.9.b. If 1104=ON AND 0012=OFF Then 1104=ON
2.11. Movement5=ON
2.11.a. If C000=5 Then 1105=ON
2.11.b. If 1105=ON AND 0013=OFF Then 1105=ON
2.13. Movement6=ON
2.13.a. If C000=6 Then 1106=ON
2.13.b. If 1106=ON AND 0012=OFF Then 1106=ON
2.14. Movement6=OFF, And Movement7=ON
If 1106=ON AND 0012=ON Then 1003=ON, C000=7, 1106=OFF, 1107=ON
2.15. Movement7=ON
2.15.a. If C000=7 Then 1107=ON
2.15.b. If 1107=ON AND 0011=OFF Then 1107=ON
2.17. Movement8=ON
2.17.a. If C000=8 Then 1108=ON
2.17.b. If 1108=ON AND 1006=OFF AND 1007=OFF Then 1108=ON
2.19. Movement9=ON
2.19.a. If C000=9 Then 1109=ON
2.19.b. If 1109=ON AND 0003=OFF AND 0006=OFF Then 1109=ON
2.20. Movement10=ON
2.20.a. If C000=10 Then 1110=ON
2.20.b. If 1110=ON AND 0009=OFF Then 1110=ON
3. OUTPUT CONDITION
4. CONTROLLER
Bottle Before and After Washing with Rotary Bottle Washing Machine
Remarks :
1. Dirty bottles before the washing process
2. One bottle is cleaned with water spray
3. Bottles have been cleaned
Detail of Rotary Bottle Washing Machine
Remarks of Rotary Bottle Washing Machine :
1. ControlPanel box
1a. Push Button (Normally Open Contact) for START Auto Cycle
1b. Push Button (Normally Open Contact) for START 1 Cycle
1c. Selector Switch (2 position) for Water Spray OFF/ON
1d. Push Button (Normally Open Contact) for STOP Auto Cycle
2. Turntable, consists of :
<> 10 rack holes in Turntable
<> Electric Motor with Reduction Gearbox
<> If necessary use electric motor with brake
<> Coupling for Motor Shaft and Turntable Shaft
<> Contactor with Contactor Thermal Overload Relay (TOR)
3. Proximity Sensor
4. Solenoid Valve Normally Closed
5. Inlet Water Gauge Pressure
6. Outlet Water Gauge Pressure
7. Water Jet Pump Motor with Safety CUT-OUT, and consists of : Contactor
with Contactor Thermal Overload Relay (TOR)
8. Water Reservoir
9. Drainage Pipe
2. PLC Output :
<-> 1 Output for Contactor to Electric Motor Turntable
<-> 1 Output for Contactor to Water Jet Pump Motor
<-> 1 Output for Solenoid Valve
--> Total PLC output, minimum of 3 Output.
1. INPUT CONDITION :
a. Waiting Start (Output Controller1) = ON, If:
a.1. STOP Auto Cycle = ON
a.2. Process 5 and Jet Pump Motor = OFF
1 CYCLE PROCESS
c. Start 1 cycle = ON, If:
c.1. Push Button for START 1 Cycle = ON
3. OUTPUT CONDITION :
a. Output Controller 5 AND Turntable = OFF for activate the Timer1
b. Output Controller 8 AND Solenoid Valve = ON for activate the Timer2
c. Output Controller 9 AND Solenoid Valve = OFF for activate the Timer3
d1. Output Controller 2 for Motor Turntable = ON (Hold ON)
d2. Output Controller 1 AND Output Controller 5 for Motor Turntable =
OFF (Hold OFF)
e. Water Spray Switch ON/OFF for Jet Pump Motor ON/OFF
f1. Output Controller 7 for Solenoid Valve = ON (Hold ON)
f2. Output Controller 1 AND Output Controller 9 for Solenoid Valve = OFF
(Hold OFF)
4. CONTROLLER :
Using 9 Output Controller :
total Process = 8 Process
Waiting Start = 1
Total Output Controller = 8 + 1 = 9
Monday, August 8, 2011
SECRET: Standard Sequence Programming for PLC
Legend:
I-1 : Input Condition 1
I-2 : Input Condition 2
I-3 : Input Condition 3
O-4 : Output Condition 4
S-3 : Sensor 3
C-1 : Output Controller 1
PLC Input : PLC Input from PLC Hardware
Legend:
O-1 : Output Condition 1
O-2 : Output Condition 2
O-3 : Output Condition 3
O-4 : Output Condition 4
C-2 : Output Controller 2
C-3 : Output Controller 3
C-4 : Output Controller 4
S-3 : Sensor 3
S-4 : Sensor 4
I-1 : Input Condition 1
4. Example Controller
Legend:
Tr : Trigger from "2. Trigger And Sensor Condition"
C-1 : Output Controller 1
C-2 : Output Controller 2
C-3 : Output Controller 3
C-4 : Output Controller 4
I-1 : Input Condition 1
0000 : It will be connected with the push button with the name of START Auto
Cycle.
0001 : It will be connected with the push button with the name of START 1 Cycle.
0002 : It will be connected with selector switch with the name of Water Spray
OFF/ON which will be used to turn off and turn on the Jet Pump Motor.
0003 : It will be connected with the push button with the name of STOP Auto
Cycle. The push button will have some functions not only to turn off the process of
1 Cycle and Auto Cycle but also used Emergency Stop.
Here is a list of PLC outputs which will control some devices such as contactors,
solenoid and so forth.
Here are the following names:
0500 : It will be connected to the contactor used to turn off or turn on the electric
motor in TurnTable.
0501 : It will be connected to the contactor used to turn off or turn on the Jet Pump
Motor
0502 : It will be connected to the solenoid valve used to stop or spout the water
spray to the glass bottle.
After knowing both PLC inputs and PLC outputs connected or linked to other
external devices, here is the plc programming used in the rotary bottle washing
machine with the PLC Keyence as its main control. This PLC program will use
standard sequence programming.
This Video about How To Create Keyence PLC Ladder for Rotary Bottle Washing
Machine
This program is created with KV builder from Keyence. For more information,
here is the master file for the program in the form of RAR file. Please click the link
below to download it:
(in Google Docs: click File ---> click Download)
Keyence-for-washing-machine(.rar)
After you have downloaded the file, I will help you learn how to read the ladder
plc programming for rotary bottle washing machine.
1. INPUT CONDITION
1.1.a.
If plc input 003 turn on then internal relay 1000 turn on else internal relay 1000
turn off.
1.1.b.
If internal relay 1105 turn on and plc output 0501 turn off then internal relay 1000
turn on else internal relay 1000 turn off.
1.2.
If plc input 003 turn off and plc output 0502 turn off and plc output 0500 turn off
then internal relay 1001 turn on else internal relay 1001 turn off.
1.3.
If plc input 0001 turn on then internal relay 1002 turn on else internal relay 1002
turn off.
1.4.
If plc input 0000 turn on then internal relay 1003 turn on and hold turn on.
1.5.
If plc input 0003 turn on then internal relay 1003 turn off.
2.1.
If internal relay 1100 turn on and internal relay 1001 turn on and internal relay
1002 or 1003 turn on then internal relay 1004 turn on with one scan cycle time of
plc. And if internal relay 1004 turn on then automatically internal relay 1101 turn
on with controller.
2.2.
If internal relay 1101 turn on and plc output 0500 turn on then internal relay 1004
turn on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1102 turn on with controller.
2.3.
If internal relay 1102 turn on and plc input 0004 turn on then internal relay 1004
turn on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1103 turn on with controller.
2.4.
If internal relay 1103 turn on and plc input 0004 turn off then internal relay 1004
turn on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1104 turn on with controller.
2.5.
If internal relay 1104 turn on and plc output 0500 turn off and timer T001 turn on
then internal relay 1004 turn on with one scan cycle time of plc. And if internal
relay 1004 turn on then automatically internal relay 1105 turn on with controller.
2.6.
If internal relay 1105 turn on and plc output 0501 turn on then internal relay 1004
turn on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1106 turn on with controller.
2.7.
If internal relay 1106 turn on and plc output 0502 turn on then internal relay 1004
turn on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1107 turn on with controller.
2.8.
If internal relay 1107 turn on and timer T002 turn on then internal relay 1004 turn
on with one scan cycle time of plc. And if internal relay 1004 turn on then
automatically internal relay 1108 turn on with controller.
2.9.
If internal relay 1108 turn on and plc output 0502 turn off and timer T003 turn on
then internal relay 1004 turn on with one scan cycle time of plc. And if internal
relay 1004 turn on then automatically internal relay 1100 turn on with controller.
3. OUTPUT CONDITION
3.1.
If internal relay 1104 turn on and plc output 0500 turn off then Timer T001 active,
after 5 x100ms = 500ms(millisecond) timer T001 turn on. This timer for TurnTable
STOP stability and Time can be set according to need.
3.2.
If internal relay 1107 turn on and plc output 0502 turn on then Timer T002 active,
after 5 x100ms = 500ms(millisecond) timer T002 turn on. This timer for water
spray on delay and Time can be set according to need.
3.3.
If internal relay 1108 turn on and plc output 0502 turn off then Timer T003 active,
after 5 x100ms = 500ms(millisecond) timer T003 turn on. This timer for water
spray off delay and Time can be set according to need.
3.4.a.
If internal relay 1100 turn off and internal relay 1101 turn on and internal relay
1104 turn off then plc output 0500 turn on and hold turn on.
3.4.b.
If internal relay 1100 or 1104 turn on then plc output 0500 turn off.
3.5.
If plc input 0002 turn on then plc output 0501 turn on else plc output 0501 turn
off.
3.6.a.
If internal relay 1100 turn off and internal relay 1106 turn on and internal relay
1108 turn off then plc output 0502 turn on and hold turn on.
3.6.b.
If internal relay 1100 or 1108 turn on then plc output 0502 turn off.
4. CONTROLLER
4.1.
If internal relay 1100 to 1108 turn off then internal relay 1005 turn on else internal
relay 1005 turn off.
4.2.
If internal relay 1005 turn on and counter C000 not equal 0 then counter C000 reset
turn on or current value of counter C000 filled with 0.
4.3.
If special relay 2002 always on then counter C000 activated. Input counter use
internal relay 1004 and maximum 1000 counting.
4.4.
If internal relay 1000 turn on then counter C000 reset turn on or current value of
counter C000 filled with 0.
4.5.
If special relay 2002 always on and read data from counter C000 and compare with
value 0 to 8.Result compare used for turn on/off internal relay. The following are
the conditions of the comparison :
If counter C000 equal 0 then internal relay 1100 turn on else internal relay 1100
turn off.
If counter C000 equal 1 then internal relay 1101 turn on else internal relay 1101
turn off.
If counter C000 equal 2 then internal relay 1102 turn on else internal relay 1102
turn off.
If counter C000 equal 3 then internal relay 1103 turn on else internal relay 1103
turn off.
If counter C000 equal 4 then internal relay 1104 turn on else internal relay 1104
turn off.
If counter C000 equal 5 then internal relay 1105 turn on else internal relay 1105
turn off.
If counter C000 equal 6 then internal relay 1106 turn on else internal relay 1106
turn off.
If counter C000 equal 7 then internal relay 1107 turn on else internal relay 1107
turn off.
If counter C000 equal 8 then internal relay 1108 turn on else internal relay 1108
turn off.
Car ticketing machine with game control for animation. Use keyboard for control
animation, such as for car move to forward use arrow up, for take ticket use arrow
down, for fiil car ticket use letter f, and others.
PLC Input output Indicator in car ticketing machine game for signal conditions of
PLC Input/Output. With green color for signal condition "ON" of PLC
Input/Output, and white color for signal condition "OFF" of PLC Input/Output.
For more details and play game, please download (only for windows), Login in
google accunt : click here and Ctrl + S. or click here
And for how to use car ticketing machine with game control, Please see the
youtube video and images below:
Name of the sensors that goes into the plc inputs:
Input 1. Car Entry Sensor for car entry detection.
Input 2. Take Ticket Sensor for detection of tickets have already been taken.
Input 3. LS Feeder Reverse for feeder reverse detection.
Input 4. LS Feeder Forward for feeder forward detection.
Input 5. Empty Ticket Sensor for minimum ticket detection.
Input 6. LS Gate Down for gate down detection.
Input 7. LS Gate Up for gate up detection.
Input 8. Car Out Sensor for detect the car out of the gate.
With the workings of the above are used in Car ticketing Machine.
For workings the Car ticketing Machine, can you play in the game.
Download Car ticketing Machine Game (only for windows) : click here or Mirror
download : click here
If no download, please contact me.
Good Luck.
I will give an example of a program with several brands plc, such as Keyence PLC,
Mitsubishi PLC, Omron PLC, Allen Bradley PLC, and Siemens PLC.
Please to share and follow us on facebook, twitter, google plus, pinterest, and
youtube.
Read this: Guidance how we can use Arduino as Programmable Logic Controller
Snack Vending Machine Simulation for One Type of Product using PLC
Control
Video about snack vending machine for one type of product. This use Game
Control for Simulation of Snack Vending Machine. See the video for How to work
of Snack Vending Machine Simulation.
Free Download for Snack Vending Machine Simulation for One type of product:
(This file on Google Docs, for download: click File and click Download)
1. Download for Windows x86(XP): click here
2. Download for Windowsx64 (WIN7): click here
3. Download for Mac: click here
4. Download for Linux: click here
Image about Insert Coin of Snack Vending Machine Simulation.
Image about take snack after snack vending machine finish process.
3. Motor Control and Relay wiring diagram for each Rack with speed control
motor
Example Coin Acceptor :
http://www.adafruit.com/category/35_104
Example Rotation Sensor / Proximity Sensor :
http://program-plc.blogspot.com/2009/06/equipments-of-input-for-plc.html
http://program-plc.blogspot.com/2009/06/example-of-input-wiring-diagram-
plc.html
Example Relay or Contactor :
http://program-plc.blogspot.com/2009/06/equipments-output-plc-system.html
http://program-plc.blogspot.com/2009/06/training-wiring-diagram-output-plc.html
Example Speed Control Motor :
http://program-plc.blogspot.com/2009/10/speed-control-motor-to-plc.html
C. Sequences PLC Programming for Snack Vending Machine for One type of
product
1. Number of products per rack = 7 pieces snack
2. Number of Racks = 5 racks
3. Total of all products = 7 x 5 = 35 pieces snack
4. Use PLC Counter (Total Products) to enter the Total of all products.
5. Setting PLC Counter with 35 for start value (full snack).
6. Use PLC Counter to count the coins from the Coin Acceptor signal [Input0].
7. Switch Rack Position and Rotation Sensor:
7.1.Rack 1 (Relay R1 [Output1]) only ON, If PLC Counter (Coins) greater than
zeroand value PLC Counter (Total Products) between 29 and 35.
7.2. Rack 2 (Relay R2 [Output2]) only ON, If PLC Counter (Coins) greater than
zero and value PLC Counter (Total Products) between 22 and 28.
7.3. Rack 3 (Relay R3 [Output3]) only ON, If PLC Counter (Coins) greater than
zero and value PLC Counter (Total Products) between 15 and 21.
7.4. Rack 4 (Relay R4 [Output4]) only ON, If PLC Counter (Coins) greater than
zeroand value PLC Counter (Total Products) between 8 and 14.
7.5. Rack 5 (Relay R5 [Output5]) only ON, If PLC Counter (Coins) greater than
zeroand value PLC Counter (Total Products) between 1 and 7.
See the table below with PLC Counter (Coins) greater than zero:
Note:
Application about Snack Vending Machine for One type of product use 3 PLC
Counter:
1. Total Products use Memory and use Increment/Decrease Operation
2. Count the Coins use Memory and use Increment/Decrease Operation
3. One PLC Counter for Count the Rotation Sensor
Proximity Switch
Safety Sensor or Sensor Area