Latching delay with PLC

Codey

New Member
sorry in advance the the lame question, I've never used PLC before.
 
I have a webcontrol control board which get polled every 1000ms.  I have a contact switch witch is connected to digital input 8. Often when the button is presses on input 8 the software misses that it's been pressed. Is it possible using PLC to set a delay, so when IP8 is presses on, it stays on for 3000ms?
Thanks in advance for your help.
Regards,
Jim
 
TTL input has non-blocking delay that is for when input state change less than the delay time, the PLC will not show the state change. In that way, only pulses longer than certain period of time will be displayed.  However, that is opposite to what you wanted.
 
What I can suggest is to have a VAR for that recording the state change, so that
START   
                TSTEQ IP8 1 
                SET VAR8[3000] 1 
                NOP   
END  
 
VAR8 will keep the IP8 ON state for 3 seconds before restoring it back to zero.  Instead of pull the state of IP8, you can pull VAR8 instead.
 
Back
Top