Page 1 of 1

Best practice for unused limit switch inputs *SOLVED*

Posted: Sun Aug 30, 2020 6:44 pm
by tblough
I am not using the Ax3_PlusLimitOk_I input (INP6) on my Oak lathe install. What's the best practice to disable it? Should I force it on the I/O screen, or should I comment out the input 6 line in the PLC program? Both achieve the desired result, just wondering what the preferred method was.

Along the same lines, the AllIn1DC had limit disable switches on the controller board giving three solutions to the unused limit input. What is preferred there?

Re: Best practice for unused limit switch inputs

Posted: Tue Sep 01, 2020 12:20 am
by freedommachine
I disabled the unused inputs on my allinoneDC with the dip switches you mentioned.

Re: Best practice for unused limit switch inputs

Posted: Tue Sep 01, 2020 10:12 am
by martyscncgarage
freedommachine wrote: Tue Sep 01, 2020 12:20 am I disabled the unused inputs on my allinoneDC with the dip switches you mentioned.
I did the same.
The other option is to run a jumper from COM to the input. Flipping the dip switch is cleaner though.

Re: Best practice for unused limit switch inputs

Posted: Tue Sep 01, 2020 11:38 am
by tblough
According to Centroid, switch flipping on the AllIn1DC is the proper way since it has hardware level logic for the limit switches. For the Oak, there is no need to do either as only the limit switches used on the Motor setup screen are checked. My reason for asking the original question is no longer valid.

The background for the original question was that I had the Ax3_PlusLimitOk_I input commented out in my OAK lathe PLC program and marked as spare since I was not using it. At some point during my merging my custom PLC with the latest standard PLC code, that line was commented. Sometime later, I noticed that my Z+ jog key was not working on my control. I reverted to a previous CNC12 version and the problem was still there, then I remembered about the uncommented line in the source code. I jumped to the I/O screen, forced Input 5, and the jog key worked. Hence the posting here wondering which was the better way to handle the unused input.

Fast forward to today. Doing some additional digging to try and further document the issue, I was unable to re-create the original problem! Jog key works fine with or without the I/O forced and with or without the PLC input line commented out! I have no clue as to what I changed and can only surmise it was a stray gamma particle or unseelie magic.

TL;DR; Ignore the original post.