Question:
How can an assigned limit switch be released when Template Positioner V3.1 is used?
Answer:
After a limit switch has been approached the template changes to the 'Trouble' state. To leave the limit switch, first reset the motion request (e.g. g_bManualJogPos=TRUE) which has moved the drive to the limit switch. Only after this, you can reset the error message g_bErrorReset=TRUE. Then, the drive must only be moved away from the limit switch.
There are basically two possibilities to leave an assigned limit switch:
1. Manually (ManualJog)
If, e.g. the negative limit switch is activated it can be released again after an error reset via 'Manual jogging in positive direction' (g_bManualJogPos=TRUE). The drive returns to the motion area until 'Manual jogging in positive direction' is deactivated again.
2. Predefined function 'Automatic release'
If the function ('g_bReleaseLimitSwitch=TRUE') is activated the drive leaves the assigned limit switch in the correct direction of release. The drive stops as soon as the limit switch is no longer assigned. The user must set and reset the variable g_bReleaseLimitSwitch, i.e. if the release function is activated permanently the drive will always leave automatically an assigned limit switch.