I have Mach3 running a 4 axis milling machine and am trying to implement an auto tool zero function. In most of the examples I have found is a line of code
If IsSuchSignal (22) Then
I understand all this except the number 22. Does 22 refer to input pin 22, or some memory location, or just what is significant about 22?
My system is a bit different from the average Mach3 using a breakout board to drive stepper motors. Instead I am using the Galil plugin.with a Galil DMC-1750 controller card and servo motors. The Galil card has its own breakout board (ICM1900) with 104 pins for various functions. According to the GalilPlugIn.pdf instructions the Input pins are assigned different numbers from the parallel port cable.

In the Galil controller Input 3 (a Galil card Input port) is used for sensing a probe on the Z axis, and this becomes Port 1 Pin 27 in the Mach3 port configuration table.

So would I then use 27 instead of 22 in the VB script for the auto tool zero Macro?

I have also seen the same code written with 54 instead of 22 for the same purpose but not mentioning specifying why 54.