Wildswing - ONS is fine but i also needed to use OSF - ie on the trailing edge...
Sergei -
QUOTE
This is it's intended use. How else can you use it?
The code that i posted was my own and i just wanted confirmation on its usage because the AB manual i was using only gave a decription, and not an example....
Speedley - QUOTE
I have to point out (again) that I avoid the use of OSR. They are relatively pointless when you have to specify a bit for them to use (unlike Mitsubishi etc) and they can make it hard to track down bugs.
OSR/OSF are quite useful...
i emphase the point that your symbol should indicate their usage since in Mistubishi OR AB there is not indication of how the bit is triggered when used thoughout the program. OMRON do show a line in the referenced contact to indicate rise or fall ie ----|| |---- would me OSR or DIFU and ---| ||--- would be OSF or DIFD...
In the newer CJ/CS/CP1H PLCs the bit can be differentiated directly and this is indicated with an arrow pointing up/down....In this case the same bit can also be used though the program in its none differentiated form...