pia-468x60

pia-728x90

Showing posts with label One-Shot. Show all posts
Showing posts with label One-Shot. Show all posts

Saturday, September 26, 2020

PLC one-shot low level (OSL) ladder diagram instruction

A one-shot low level (OSL) instruction is a normally output true instruction. Whenever its input is false then it output false for a PLC scan cycle.

The one shot low level instruction symbol

For more details let see its timing diagram.
The OSL timing diagram

This instruction is useful in the case that the user needs to trigger the action on the falling to low level of the input signal.

In the following example, we create a sample monitoring of this instruction. Whenever the user switch the input contact to the ground, the contact makes a input false signal to the OSL. This OSL again trigger a low level pulse of one PLC scan cycle of 10 mS.



PLC one-shot low level (OSL) ladder diagram instruction
The OSL ladder diagram example

The output coil Y0 is normally output true in the overall PLC program. The output coil Y1 outputs true when there's nothing happen.

PLC one-shot low level (OSL) ladder diagram instruction
Circuit Diagram



Click here to download the zip file of this working example.



Friday, September 25, 2020

PLC one shot rising ladder diagram instruction

In the PLC ladder diagram a one shot instruction creates a one shot signal output. For the one shot rising OSF instruction, it output a high pulse for one PLC cycle time - for example 10 mS, whenever its input true. This output pulse only create one's until the system is reset.
The one shot rising instruction symbol

This instruction is an auxiliary to other instruction in the same rung. It's place in front of other instructions to make them run only once when the program started.



Let take a look at a simple ladder diagram example. 

PLC one shot rising ladder diagram instruction
OSF ladder diagram example program

An OSF activate the turn off delay T0F that create a high delay time for 10 second before it's fall. So the output coil Y0 turned on for only 10 second in the PLC program.



PLC one shot rising ladder diagram instruction
The ladder diagram programming example of the OSF

Click here to download the zip file of this working example.


Thursday, September 24, 2020

PLC turn-off delay Tdoff ladder diagram instruction

Referring to the timer delay related instructions in the PLC ladder diagram instructions, we are now discussing about another timer delay called turn-off delay (Tdoff). 

Turn-off delay instruction symbol

When ever the input to this instruction changes from false to true, it will output true for a specific delay time. The input high time must greater or equal to the PLC cycle time.

PLC turn-off delay Tdoff ladder diagram instruction
Timing diagram for Turn-off delay instruction

Let see a very simple example. I use an input contact to turn on an output coil for 10 seconds.



PLC turn-off delay Tdoff ladder diagram instruction
Turn-off delay ladder diagram instruction example

We configure the Tdoff instruction as below.

The delay time is set to 10000 mS or 10 second.

It's convenience to add a one-shot rising to the rung to prevent the rung become true while the input contact X0 is in a long press duration.

The remanding open-circuit rungs are just an example of cutting the rungs. 



For a serious PLC programmer they always need to test the program in both hardware and software. However, we already know that the overall program is completedly work. So It's not necessary to test this program in another software simulation and in the hardware.

PLC turn-off delay Tdoff ladder diagram instruction
Schematic diagram

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


Labels

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