Manual – IPOSplus®
269
18
Compiler programming frame
Compiler – Examples
/*-------------------------------------
Main program loop
--------------------------------------*/
while(1)
{
//Process main state machine
switch (lGlobalStateMachine)
{
// Either no operating mode has been selected, or a selection is not possible
case DISABLE:
break;
// "Jog" mode
case JOGGING: fnJogging();
break;
// "Referencing" mode
case HOMING:fnHoming();
break;
// "Positioning" mode
case POSITIONING: fnPositioning();
break;
//Programming error - invalid status
default: _AxisStop(AS_PSTOP);
lGlobalStateMachine = lOpMode = -1;
break;
} // End switch (lGlobalStateMachine)
} //End while (1)
} // End main
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n