@droftarts Thank you for your opinion.
I tried to that and the machine did no longer crashes.

I changed the Emergyency stop configuration to external trigger.
As a result, the external trigger was triggered while homey.g was runnning.

So, Maybe the emergyency stop button and something are interfering.
I'm going to search the causing.
Thank you droftarts!