Originally Posted by
sinha_nsit
Look into the diagnostic page you posted. It lets you know which X-address is used for what purpose and which ones are free.
You would need to add a rung into the ladder for using unused X-addresses, as described in the pdf you attached:
In order to communicate an external signal to the CNC, the corresponding
X-signal will need to be written to the appropriate G-signal
(G54.0 to G54.7 and G55.0 to G55.7 are reserved for this purpose). This
can be done by adding a new rung to the PMC ladder:
X_·_ G_·_
|----| |---------------------------------------------------------------------------( )----|
This defines a system variable (corresponding to the specified G address),
which can be read in a program. For example, when X0.0
(assuming the MTB has not used this address) is written to G54.0
(which corresponds to variable #1000), it defines variable #1000
(which becomes 0 or 1 depending on whether X0.0 is low or high).
Variable #1000 can be read in a program. Thus, the ON/OFF state of
an external sensor becomes available inside the program.