I am not that familiar with the i series, but the normal Fanuc method is for the CNC to pass MST codes over to the PMC ladder via registers where is is processed by the PMC. and the PMC uses the same method to acknowledge the same over what is called the BMI bus (basic machine Interface), the CNC block is held up until it receives a FINish signal from the PMC, i.e. when the M,S,T code has completed.
The M.S.T codes are written and decoded in the ladder itself.
If it is position values you need via sensor inputs, you may be able to use the skip feature input via G31, the axis values are stored in pre-assigned registers that may be read using macro's and acted on accordingly.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.