External access to parameters

To be able to influence the decoding of an NC-Program from a parallel process (for instance, control console, PLC), an external access to the P-parameter can be performed through a special interface.

Programming example

From a PLC, the program flow of an NC program started by the NC-control is to be influenced.

%Operating mode
N000 P101 = 0 (P101 for error message to the PLC)
N001 P102 = 0 (P102 for influencing the program flow)
N002 $WHILE P102 == 0
N003 $ENDWHILE
N010 $SWITCH P102
N020 $CASE 1
N030 (Manual operation)
N040 $BREAK
N050 $CASE 2
N060 (Automatic-mode)
N070 $BREAK
N080 $CASE 3
N090 (Reference point travel)
N100 $BREAK
N110 $DEFAULT
N120 P101 = 100 (Error status , report to PLC )
N130 $ENDSWITCH
N140 M30
External access to parameters 1:

One could provide sub-routine calls in the various cases, to synchronize the program flow regarding time.

Attention must be paid that the P-Parameter are to be marked as program-global [1]-12, because otherwise the external P-Parameters end will be deleted at the program-beginning or program- and thus would not be available outside of an NC-Program.