Monday, September 14, 2020

PLC based 15 seconds timer using ladder diagram

As referred in the previous post, a counter down timer (CTD) decreases the value of its content whenever the input changes its logic state. Its output true condition, is set by the user.

Typically, a single 7-segments display could display the number from 0 t 15 using a hexadecimal format. With this feature, we can use it to display a time in second up to 15 seconds.

In this example I create a 15 timer that turn on a lamp. Two input contacts use for starting and stopping the running timer. A 7-Segments display the remanding time in seconds. An output lamp L1 is turned on while the timer is still running.

PLC based 15 seconds timer using ladder diagram
A sample of this example ladder diagram

Ladder diagram of this example list below.

PLC based 15 seconds timer using ladder diagram
Ladder diagram of this example

There are two input negate type contact - Xreset and Xstart. When Xreset is true, the Rstart internal output coil is set. However, when the Xreset is true the Rstart and the reset count (C0) instruction is clear.

The internal output coil Rstart activates the rung number 0004. T0 has a delay of 500 mS creating a one second period of pulse that fed to the counter down timer (CTD). CTD output true whenever it's content is above 0 second.

PLC based 15 seconds timer using ladder diagram
Schematic diagram

Click here to download the zip file of this ladder diagram example.


No comments:

Post a Comment

Labels

ADC (10) Analog (14) Arduino (12) Atmega16 (19) Audio (2) AVR (20) Charger (1) Cortex-M0 (1) Counter (10) CPLD (25) Digital I/O (22) Display (34) EEPROM (2) Environment Sensor (1) esp8266 (2) Experiment Board (10) I2C (4) Interrupt (7) LCD (1) LDmicro (29) measurement and instrumentation (7) Microchip Studio (3) MikroC (1) One-Shot (3) OpAmp (1) PCB (31) PIC16 Microcontrollers (16) PIC16F877A (2) PIC16F887 MikroC (22) PLC (35) PWM (11) Regulator (1) RTC (2) Sensor (8) Shift Registers (5) SPI (5) Timer (34) UART (2) ultra-sonic sensor (1) USB (1) VHDL (21) xc8 (1) XC95108 (9) XC9536 (15) XC9572 (1) Xilinx (23) Xilinx ISE (22)