Here’s the scenario. When a PLC is turned off, the Cobot will need to go to home position and power off its arm, not the control box. How do I put that in the Robot Program? The powerdown() script function powers off the whole thing which I don’t want.
I have not heard of this being achieved before. The only way I can see this being done is by sending a command to the dashboard server from the robot program if connection to the PLC is lost.
Open a socket connection to the dashboard (127.0.0.1) with script command “socket_open(“127.0.0.1”, 29999)”.
Then try a “socket_send_string(“power off”)”. You might need to end it with a “socket_send_byte(10)”.
Again, not done it before. Also, the robot program will stop being executed with this. You won’t be able to have the robot program running with the robot arm off.