Need help in a small plc program

Hello all, I need help in a small plc program in Allen Bradley plc.

Need to generate a 1 second pulse on every ON and OFF of a bit.

Suppose for example a bit b3:0/0 when ON an output (o:0/0)will be on for 1sec. And then OFF and same bit (b3:0/0)when OFF same output (o:0/0) will ON for 1sec. And then OFF.
 
Use a TON for the ON pulse, trigger with XIC (from your example) B3/0 : if B3/0 is not on for at least 1 second, then seal it in with the TON.TT bit. That same bit is your 1 second pulse for when B3/0 comes on.

Use another TON for the OFF pulse, trigger with XIO B3/0 : again seal it in with the TON.TT bit if B3/0 can be OFF for less than 1 second. That same bit is your 1 second pulse for when B3/0 goes off.

Of course B3/0 can't toggle faster than once per second, or the pulses will get missed, I assume that's not an issue.
 

Similar Topics

Hi all, I’m new to programming and want to write a simple routine. Push start button, turns on sensor. 2 second delay before anymore logic read...
1
Replies
916
Views
Dear sir. i have one Automation Direct hmi, if you have the CMORE Programming software,i will send you .eap file in email, can you please...
3
Replies
3,256
Views
Hi guys we are constructing a small production line 5 km away from our factory that includes hydrolic presses and small machines. We want to get...
8
Replies
4,690
Views
Good day, experts! I am a fresh grad service engineer and I encounter a problem while uploading an existing program, it says I need...
0
Replies
127
Views
Hi everyone, I have an old Modicon PLC program saved as an .FMD file, which was created using FasTrak PLC WorkShop for Modicon. I can open the...
1
Replies
186
Views
Top