The switch or the signal should be connected to the
input port of the motion controller.
Please consult the Hardware Reference Manual for the
location of the input port.
The motion controller has a set of commands to read its input lines
individually or collectively. Please consult Operating and Programming
Reference Manual.