RobotStudio event

Move completion signal by PC SDK

I am using a outside camera and a ABB robot in a PC SDK, I want to capture one image just after the robot completes a movement command, other time the camera may be off. Is there anyone know how? Thanks