2.11 PLC User Parameter Setting


PLC data and PLC long data in machine parameter does not allow user to set data, and allows machine manufacture to set data according to PLC procedure. For example: Lube pump on time/off time depends on machine accurate status. The plcUser is for user to set data, and plcUser(void *UserPlcData){ } passes data array pointer to PLC, also plcVariable(void *PlcVariableShown){ } passes string array pointer to PLC, and PLC can define string for shown data brief.

static long *plcUser;

static long *plcUserString;

void PLCAPI plcUser(void *UserPlcData){

plcUser = UserPlcData;

}

void PLCAPI plcVariable(void *PlcVariableShown){

plcUserString = PlcVariableShown;

}

plcUserString[ ]{ //String initialization

 “Lube on time”,

 “Lube off time”

0

}