Sei sulla pagina 1di 4

0001 PROGRAM PLC_PRG

0002 VAR
0003 C1: CTUD;
0004 R1: R_TRIG;
0005 R2: R_TRIG;
0006 END_VAR
0001

Manual / Auto Manual Mode


Mode Selecto
r Switch
%IX0.0 %MX0.0

0002

Manual / Auto Auto Mode


Mode Selecto
r Switch
%IX0.0 %MX0.1

0003
MANUAL MODE

Gate Open Manual Mode End OF Gate Gate Opening


Push Button Open

%IX0.5 %MX0.0 %MX2.1 %MX2.0

Gate Opening

%MX2.0

0004

Gate Opening Gate Open End OF Gat


Position e Open

%MX2.0 %IX0.3 %MX2.1

0005

Gate Close Manual Mode End OF Gate Gate Closing


Push Button Close

%IX0.6 %MX0.0 %MX2.3 %MX2.2

Gate Closing

%MX2.2
0006

Gate Opening Gate Close End OF Gat


Position e Close

%MX2.2 %IX0.2 %MX2.3

0007
AUTO MODE

Vehicle AT Condition OF
Sensor S1 Vehicle
Entering
%IX0.1 %MX0.3

0008

Condition OF Counter Auto Mode End OF Gate Gate Opening


Vehicle Ready Opening
Entering Condition
%MX0.3 %MX0.7 %MX0.1 %MX0.5 %MX0.4

Gate Opening

%MX0.4

0009

Gate Opening Gate Open End OF Gate


Condition Opening

%MX0.4 %IX0.3 %MX0.5

0010

Gate Close Condition OF


Position Vehicle
Leaving
%IX0.2 %MX0.6
0011

Condition OF Counter
Vehicle Over flow
Entering C1
%MX0.3 %MX2.1
CTUD
CU QU
%MX0.6 CD QD %MX0.7
%MX1.1 RESET CV %MW1004
%MX2.5 LOAD
10 PV

0012

End OF Counter
Counting Reset
R1
%MX0.7 %MX1.1
R_TRIG
CLK Q

0013

Counter Gate AT Ope Auto Mode End OF gate Vehicle AT Gate Closing
Reset n Position Closing Sensor S1

%MX1.1 %IX0.3 %MX0.1 %MX1.4 %IX0.1 %MX1.3

Gate Closing

%MX1.3

0014

Gate Closing Gate End OF gate


Closed Closing
Condition
%MX1.3 %IX0.4 %MX1.4
0015
OUTPUTS

Manual Mode Gate Opening


Gate Opening

%MX2.0 %QX0.1

Auto Mode
Gate Opening

%MX0.4

0016

Manual Mode Gate Closing


Gate Closing

%MX2.2 %QX0.1

Auto Mode
Gate Closing

%MX1.3

Potrebbero piacerti anche