Hi All
I have a program in SPS to run an Air Hammer for 2 minutes.
This program looks like this
IF NOT $OUT[8] THEN
AIR_HAMMER= FALSE
$TIMER[3]=-120000
$TIMER_STOP[3]=TRUE
ENDIF
IF$OUT[8] AND NOT AIR_HAMMER THEN
AIR_HAMMER= TRUE
$TIMER_STOP[3]=FALSE
ENDIF
IF $TIMER_FLAG[3] THEN
$OUT[8]=FALSE
END IF.
This all works but now I have a new wrinkle
They want to delay the time before the air hammer starts.
and I need it to run in the SPS also, as the actual robot will be tending to another machine.
I know this should be another timer but am not sure what this program would look like as I do not need an $OUT
Can some one please share and example as to how this program should look
Thank you all