134
Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Chapter 7
Develop External Routines
}
else
{
if (pERCtrl->ctrlWord.FirstScan)
{
rungState = FIRST_SCAN;
}
else if (pERCtrl->ctrlWord.EnableIn)
{
rungState = RUNG_TRUE;
}
else
{
rungState = RUNG_FALSE;
}
SetEvent(hControllerState);
}
return;
}