Skip to main content

PLC Program for Traffic Light Control



PLC Program for Traffic Light Control



 

 


Control Purpose:
  • Enabling the traffic lights to work by Start button X0 and to stop by Stop button X1.
  • Setting the time of red light in East-West direction as 60 sec and North-South direction with a heavier traffic as 30 sec.
  • The time of red light in East-West direction equals to the time of “green light + green light flashing + yellow light” in North-south direction, and vice versa.
  • When yellow light is ON, cars and pedestrians should not cross the road, and yellow light will last for 5 sec for the crossing cars and pedestrians to pass safely.

     


·      
Timing diagram of traffic lights in East-West direction:





Timing diagram of traffic lights in North-South direction:




Devices:


Device

Function

X0

Start button

X1

Stop button

T0

60 sec timer. Time base: 100ms

T1

20 sec timer. Time base: 100ms

T2

5 sec timer. Time base: 100ms

T10

50 sec timer. Time base: 100ms

T11

5 sec timer. Time base: 100ms

T12

5 sec timer. Time base: 100ms

T13

30 sec timer. Time base: 100ms

S0

Initial step

S10 ~ S13

Controlling the Traffic lights in East-West direction

S20 ~ S23

Controlling the Traffic lights in North-South direction

Y0

Red light in East-West direction

Y1

Green light in East-West direction

Y2

Yellow light in East-West direction

Y10

Red light in North-South direction

Y11

Green light in North-South direction

Y12

Yellow light in North-South direction


 Ladder Program for Traffic Light Control:





 

 

Program Description:
  • WhenStart is pressed, X0 = ON. PLS instruction will be executed, and M0 will create a rising-edge pulse to set T0. The program will enter the step ladder process.
  • ·  When Stop is pressed, X1 = ON. PLS instruction will be executed, and M1 will create a rising-edge pulse to execute [ZRST S0 S127] instruction. All steps will be reset and all traffic lights will be OFF.
  • This example is designed by the application of the simultaneous divergence sequence. The two sequences running simultaneously are East-West direction and North-South direction.
  • When the red light of East-West direction is ON, the corresponding state of North-South direction will be the sequence of “Green ON”, “Green Flashing” and “Yellow ON.”
  •  When the East-West direction sequence is finished (the yellow light is OFF), the North-South direction sequence will be finished as well (the red light is OFF). The program will return to the initial step S0. 
  • When a step is transferred from one sequence to another sequence, the former sequence will be reset including the step and output point Y.
  • The time of yellow light in East-West direction (Y2) is not controlled by a timer because when the red light in North-South direction is OFF, the yellow light in North-South direction will be reset at the same time. In this case, T13 is ON to redirect the program to initial step S0, and the outputs (Y2 and Y10) corresponding to S13 and S23 will thus be reset.



http://news.chivindo.com/809/plc-program-for-traffic-light-control.html

Comments

Popular posts from this blog

SketchUp Pro 2020 v20.1.235 Full Version

BAGAS31 – SketchUp Pro 2020 v20.1.235 Full Version  merupakan software yang dirancang untuk membantu sobat membuat dan mengedit model 3D. Dengan desain tampilan yang ‘clean’ dan simple, menjadikan software ini mudah untuk digunakan. Software ini hadir dengan editor bawaan yang memungkinkan sobat mendesain objek 3D dari awal, Layout designer untuk menggabungkan model 3D serta Style Builder untuk menyesuaikan model dengan gaya yang berbeda. Software ini juga memiliki fitur untuk mengimpor data dari format lain, seperti 3DS, DWG, KMZ, JPG, PNG, PSD, TIF, TGA dan sebagainya. Tanpa berpanjang lebar, silakan download  Sketch Up Pro  versi terbaru 2020 v20.1.235 Full Version   melalui link yang disediakan. SketchUp Pro 2020 v20.1.235 Full Version Screenshots : Download : SketchUp Pro 2020 v20.1.235 Installer | Size: 128 MB [ FileUp ] | [ up4ever ] JAMU SketchUp Pro 2020 v20.1.235 Full Version | Size: 14.5 MB [ FileUp ] | [ up4ever ] Password: www.bagas31.info |

Memahami Pull dan Push System dalam Industri Manufacture

Pull, Push   dalam kamus bahasa berarti tarik, dorong. Jika membicarakan Lean Manufacturing dan Just In Time (JIT) , rasanya dua kata ini sangat erat kaitannya. Dibanding Push System , Pull System yang lebih menjadi pusat perhatian dalam implementasi JIT . Pull merupakan proses operasi mulai dari tahap pembelian hingga delivery customer yang hingga saat ini dianggap modern dan bisa mengikuti arah pasar. Sedangkan istilah yang satunya, yaitu Push system , merepresentasikan  sebuah system operasi tradisional dan konservative, identik dengan aktivitas yang tidak memiliki nilai tambah atau istilahnya " waste ". Untuk menghindari stock out , manajemen menentukan tingkat volume pembelian material dan l evel of inventory , tidak berpedoman pada turunnya Purchase order (PO) customer. Sebagai acuan yaitu forecasting atau peramalan tingkat penjualan. Dalam manufacturing, Pull System kurang lebih memiliki arti sebagai berikut : a) Venkatesh (1996) menyatakan pada sistem  push, sebuah

Ferite Core Transformer

What are Ferrite Core Transformers? The transformer made out of ferrite core is called ferrite core transformer . The ferrite core transformer is used for higher frequency applications.The power transformer is made out of CRGO steel core which operate at 50 or 60 Hz frequency. The transformer operating at higher frequency is designed with a ferrite core. The composition of ferrite core in transformer is iron oxides,combined with nickle, zinc and manganese compounds. These compounds have low coercivity  and also called soft ferrites.   Advantage of use of  Ferrite Core ? A major advantage to a ferrite core is its high electrical resistance to high current. The high resistance to eddy current lead lower eddy current losses over many frequencies.  Ferrites have an advantage over other types of magnetic materials due to their high electrical resistivity and low eddy current losses over a wide frequency range. These characteristics, along with high permeability, make ferrite ideal for use i

Ringkasan Sirkuit Operational Amplifier

Penguat Operasional yang khas. Rangkaian Penguat Operasional Non-Ideal memiliki Impedansi Masukan yang terbatas, Impedansi Output Non-Nol, dan Gain yang terbatas.  Jenis Penguat Diferensial.   Penguat Diferensial    ➤ Penguat Diferensial Sepenuhnya (Mirip op-amp, tetapi dengan dua output)  ➤ Penguat Instrumentasi (Dibangun dari tiga op-amp)  ➤ Penguat Isolasi (Mirip penguat instrumentasi, tetapi dengan toleransi ke tegangan mode-umum yang akan menghancurkan op-amp biasa)  ➤ Penguat Umpan Balik Negatif (Dibangun dari satu atau lebih op-amp dan jaringan umpan balik resistif). Penguat Operasional dioptimalkan penggunaan dengan umpan balik Negatif, Ketika umpan balik Positif diperlukan, komparator biasanya lebih tepat.   Operational Amplifier     ➽  Inverter  Op-Amp     ➽  Non-Inverting  Op-Amp     ➽  Voltage Follower   ➽  Op-Amp  Inverter    ➽    Diffrential Amplifier   ➽    Summing   Op-Amp     ➽    Subtractor   Op-Amp   ➽    Op-Amp  Differentiator   ➽    Op-Amp  Integrator   ➽    Op-Am

Nik Collection by DxO 3.0.7 Full Version

BAGAS31 – Cari plugin untuk Photoshop atau Illustrator? Mungkin kamu bisa coba Nik Collection by DxO 3.0.7 Full Version ini ya. Ada berbagai macam filter yang bisa kamu nikmati di Nik Collection by DxO ini, mulai dari Analog Efex Pro 2, Color Efex Pro 4, Dfine 2, HDR Efex Pro 2, Sharpener Pro 3, Silver Efex Pro 2, hingga Viveza 2. Software ini juga bisa berjalan sebagai software Stand Alone loh, jadi bisa digunakan walaupun kamu nggak punya Photoshop atau Illustrator. Nah, kalau kamu mau coba versi terbaru dari Nik Collection by DxO ini, langsung aja download melalui link yang telah disediakan ya! Download Nik Collection by DxO 3.0.7 Full Version Screenshot: Download: Nik Collection by DxO 3.0.7 Full Version [ FileUp ][ Uptobox ][ UsersDrive ] Jamu Only [ FileUp ][ Uptobox ][ UsersDrive ] Password: BAGAS31 | Status: Tested (Windows 10) Cara Install: Download Nik Collection by DxO 3.0.7 Full Version   melalui link yang telah disediakan. Matikan antivi