I'm working in a project of wago controller which is programmed by codesys 3.5, and I'm looking for way to let the operator to reset the controller from the HMI, so if there any ready function that can make this directly from the software without physical touching the controller.
pApp: POINTER TO CmpApp.APPLICATION;
xInit: BOOL:= TRUE;
xRestartApp: BOOL; //Visu
IF xInit THEN
pApp:= AppGetCurrent(pResult:= result);
IF xRestartApp THEN
CmpApp.AppReset(pApp:= pApp, usResetOption:= CmpApp.RTS_RESET);
FUNCTION SysEvent_StopDone : DWORD
IF Ethercat_INode.xAutoRestart THEN
In Task Configuration/System Events add event Handler StopDone and fuction call to SysEvent_StopDone.
Hopefully this helps.
This works kind of...
I'm using a PFC200 controller with the latest firmware. When the user resets or restarts the wago controller from his HMI the application restarts like it should but the run led on the controller turns red and stay red until the controller is power cycled. The controller is fully functional but the run led remains red. Could someone find a fix or a solution for this?
U mean the controller work OK the only issue is the red led??
Yes. The controller works ok after the user requests a reset but the run led is red. Not sure how reliable the controller would be when the run led isn't green. Ok for a hobby project maybe, or during development but not in production.
Log in to post a comment.