Beckhoff-USA-Community / SPT-Libraries

MIT License
70 stars 16 forks source link

Euipment Module does not follow defined "_ParentResponseDefinitions" #25

Closed MrKirkegaard closed 10 months ago

MrKirkegaard commented 10 months ago

Euipment Module "fbCellHandling" does not follow defined "_ParentResponseDefinitions". image Component "fbRobot" reports the correct "_CurrentAlarmSeverity" image If started from the machine module (Unit), the module remains in state starting when the component "fbRobot" reports an error. image If the Equipment module is stared independently of Unit, the module follows to the defined Error response. image

P_8744_Liminal_TestingUnit

nshiggins commented 10 months ago

The issue is that the fault response type in the robot component is Abort_Immediate. This will attempt to Abort the parent, but the parent (EM in this case) will not throw an error.

Abort_ImmediateError will cause the parent to throw E_BaseAlarms.ComponentError, which will then propagate up to the machine module, causing the machine to Abort: image

I tested this and it works like it should: image