I have one problem. Program is conting encoder pulses but when i press F2 ( machine on) pop up window with a messege apear " joint 0 on limit switch error ".

How to solve this problem?