I need help to understand how to use the properties StopContactors and StopRequest implemented by a custom node via the ITrsGroupToNode.
I'm implementing a custom node similar to standard node 40 (a swivel door).I would like to stop the conveyor belt when the gate is open.
I saw that the standard node 40 has this functionality but it has no reference to the motor or to the GroupMaster. I think the standard node uses the aformentioned interface, but the documentation is empty.
Is there any example on how to use them?
Best reply by David
Hello,
if you reset the property the motors starts again. You can use an internal variable to set it out of your chain (for example for the pre phase of the node).
The reason you should use the property instead of the _env.StopRequest: If you press stop on the ModeForwarder, all your ModeHandlers will get the stop request and try to stop their chains. The TransferMaster will do this also. The nodes will be in stop very fast but your process can take more time. Then your nodes finished and the belts stops. Your other ModeHandlers are maybe still in process and for the stop request they need the belt to get the WPC moving. So in german we would say "then the cat bites its tail". With the property we can handle the stop request of the TrasnferMaster by our self. There is also an parameter in the GroupMaster where you can handle the stop behavior.
If you check this box you can link numbers of ModeHandlers. Then the GroupMaster will wait for this handlers to stop and only if they stopped the nodes will go into stop aswell.
The StopRequest is forwarded to your chain in the NodeTemplate automatically and the GroupMaster has access to the StopRequest via interface.