Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 56

Controller module
Table of Contents

Advertisement

taskDelay(1);
}
/*Wait for the motion module side to be refreshed*/
taskDelay(1);
/*Servo OFF*/
/*Set I/O variables and input variables of a member variable*/
/*No member variables to be set due to the FALSE execution*/
/*Set I/O variables and input variables to the motion module*/
sRet = mcPower.SetEnable(FALSE);
if( sRet != 0 ){
return;
}
/*Execute the MCFB with I/O variables and input variables set in the MCFB setting function*/
/*Refresh I/O variables, output variables, and public variables*/
while(1){
sRet = mcPower.RefreshLabels();
/*Check that the MCFB processing is completed*/
if( sRet == 0 ){
if( mcPower.Error ==FALSE){
if(mcPower.ReadyStatus == FALSE){
break;
}
}else{
break;
}
}else{
return;
}
taskDelay(1);
}
}
1 COMMON ITEMS
54
1.4 Motion Module Dedicated Class

Advertisement

Table of Contents
loading

Table of Contents