Access adr()

pAxARM ACCESS ADR(gAxisBasic[gARM]); must be called before the pAxARM variable is used by anything else. So your ACTION Accesstion must be the first thing called in your CYCLIC code for the task.

PROGRAM _CYCLIC

Accesstion; (*Call the action to initialize the variables*)

pAxPar.Axis := ADR(gAxis01); (*Now i can start using the referenced function block after it is pointed to an actual structure*)

PAxPar.Mplink := ADR(gAxisBasic01);

1 Like