09-13-2022 09:58 AM
Hello,
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?
Solved! Go to Solution.
09-13-2022 03:52 PM
Hello,
at first, do you know the TrsNodeTemplate? It was developed to program your own node (I think you can try to use it or at least check how it is done). If the node 40 already can stop the belts of the group master, why you want to program it by yourself? Do you maybe missing some functions? Let us know.
The GroupMaster reads the Property via Interface and can then shut down all the belts. If you want to stop only the belt of the node 40 you have to put only this node in one GroupMaster.
I hope it helped a bit. Do you need more information? Just let me know.
09-13-2022 04:09 PM
Hello,
yes, I know the Transfer Special Node Template, I'm using it to implement my own custom node.
Why I don't use node 40?
Because my beloved project engineers draw a custom node which is a mix of a L transfer plus a T crossing plus a gate at the end.
(and I didn't described the whole node behaviour...)
I'm trying to do my best to mimic the behaviour of a standard node but is not that easy. For example, in the documentation of NodeTemplate I have the following description for StopContactors:
"In the case of certain nodes, it must be possible to switch the motors off on a process-specific basis. This variable makes it possible to stop the motors of a node via the group master (e.g. standard node 40)."
But how I can use it? Setting the property to TRUE is enough to have the motors stopped. Resetting it automatically restarts the motors?
Also the use of StopRequest is not that clear. Should I use that property instead of using _env.StopRequest? I don't really understand the reason behind that.
09-14-2022 08:49 AM
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.
09-14-2022 10:05 AM
Thank you,
your explanation helped a lot.