2.10 Macro Variable


INCON-M84/M86/M86R provides Macro variable, after assigned a pointer of Macro variable array in the PLC, then PLC can read and write it. Macro variable also can read and write by NC, so it is communicate media between PLC and NC. Macro total has 1000 variables, and in back up storage space.

static double *paraMacro;

#define current_position (paraMacro[0]) //assign Macro[0]

void PLCAPI plcMacro(double *MacroPara){

paraMacro = MacroPara;//save macro address

}