Sensor_Offset is updated in an interrupt that is set to run every 50ms, it's data over DeviceNet. Every interrupt Sensor_Offset is updated:
Where dir is a direction (1 or -1), and const is how much to move by, e.g. 10.
I have just looked up advance run stop in the KSS 5.2 manual, this is what it says:
QuoteIn applications where this advance run stop should be prevented, the command CONTINUE
must be programmed immediately before the relevant instruction.
So I'll try that soon and report back. Otherwise is there anything else I might be doing wrong?