AXC F 2152 Redundancy crashes the program
Hello,
I am trying to implement a redundancy for two AXC F 2152 PLCs. For that I am using the ASR_2152_PXCHR (2) library. I have configurated the redundancy settings as described in the manual:
When I try to call the FB_ControllerRedundancy function, the program crashes after cca 15 seconds and restarts, and then after 15 seconds crashes again...
This is the live view of the function call before the crashing:
Can someone please check what am I missing out and if there is there something else that needs to be configurated?
Best regards.
Comments
Hello Maltar,
the only thing I notice that might cause issues is that the AR_DevList isnt a INOUT port.
That could cause issues.
In the settings screenshot I can not see it to well , did you setup the ASR Event Tasks(Stop/Coldstart/Warmstart) properly in the ESM?
Do you get any notifications at the Crash?
Did you see the latest version of the ASR Library includes an Example project.
Try using this as a reference to verify your application.
Best regards,
Oliver
Hi Oliver,
thanks for the answer.
In the version of the library I am using the AR_DevList is called arrPNDeviceList:
I am not sure how else should I pass it as an INOUT port.
I updated the library reference to newest library and I refactored the code:
Unfortunately, the function call still crashes the progra mafter 15 secunds.
Tasks are setup like this:
Oliver thanks for the help.
I was able to fix the problem. I changed the lots of things so I can't say for sure what fixed the problem, but I think that one RED_THIS_xSignal variable went to 1 somewhere in code and the PLC tried to switch but the second PLC was not configurated yet so it crashed (maybe).
The task configuration and the function call in the last comment are correct.