SimonGoldsworthy
Member
Well, we got there in the end.
bebecall - I suggest you re-read post #30
bebecall - I suggest you re-read post #30
RMA said:Peter, for some reason your program wouldn't compile, even after I changed the commands back to German - it didn't recognise the VAR definitions. I finished up typing in by hand but it still didn't work - having reread the Thread, this presumably because all the I/O is going to fully addressed DBs. Looks like I'll have to park things in Markers in between.
L #SW_Pau // If OFF time complete
>I
S #Impuls // turn ON Impuls and Clear pulse count
JC Clr // and jump to Clear pulse count
OFF: L #SW_Imp // If ON time complete
<=I
BEC
L #SW_Pau // If OFF time complete
>I
S #Impuls // turn ON Impuls and Clear pulse count
JC Clr // and jump to Clear pulse count
BEU
OFF: L #SW_Imp // If ON time complete
<=I
BEC
I can't find where this variable is being controlled but guess its a one second pulse.