A system comprising a servo system including a servo motor, a position detecting device for detecting the position of the servo motor, a servo drive for driving the servo motor and a servo controller which controls the servo drive, the system further comprising a trigger signal generating device for outputting a trigger signal which gives instructions on operation to an external device operated in synchronization with the servo motor wherein the trigger signal generating device comprises a timer setting time calculating portion for calculating a timer setting time by subtracting a servo side delay time and an external device side delay time from a time required until the external device arrives at an operation starting position which is calculated based on position information of the servo motor and a trigger signal outputting portion for outputting the trigger signal based on the timer setting time, wherein the servo side delay time is defined to be a time period that is required from a time when sampling by the position detecting device starts to a time when calculation of the timer setting time for generating the trigger signal is completed and the external device side delay time is defined to be a time period from a time when the trigger signal is outputted by the trigger signal outputting portion to a time when the external device starts operation and wherein the servo drive, the servo controller, the trigger signal generating device and the position detecting device are communicably connected for receiving the position information of the servo motor and wherein the servo drive includes a CPU, a memory, an input/output interface (302, 303) and a communication interface which are mutually connected with each other via a bus and wherein_the CPU transmits the position information sent from the position detecting device to the memory and further to the servo controller via the bus and the communication interface and wherein the servo controller includes a CPU, a memory and a communication interface which are mutually connected by a bus and wherein the position information received from the servo drive is sent to the memory via the bus and the communication interface. wherein the trigger signal generating device comprises a timer setting time calculating portion for calculating a timer setting time by subtracting a servo side delay time and an external device side delay time from a time required until the external device arrives at an operation starting position which is calculated based on position information of the servo motor and a trigger signal outputting portion for outputting the trigger signal based on the timer setting time, wherein the servo side delay time is defined to be a time period that is required from a time when sampling by the position detecting device starts to a time when calculation of the timer setting time for generating the trigger signal is completed and the external device side delay time is defined to be a time period from a time when the trigger signal is outputted by the trigger signal outputting portion to a time when the external device starts operation and wherein the servo drive, the servo controller, the trigger signal generating device and the position detecting device are communicably connected for receiving the position information of the servo motor and wherein the servo drive includes a CPU, a memory, an input/output interface (302, 303) and a communication interface which are mutually connected with each other via a bus and wherein_the CPU transmits the position information sent from the position detecting device to the memory and further to the servo controller via the bus and the communication interface and wherein the servo controller includes a CPU, a memory and a communication interface which are mutually connected by a bus and wherein the position information received from the servo drive is sent to the memory via the bus and the communication interface.