it is very easy to do a positioning control using a servo motor with the PLC. all you need to do is to configure the correct settings of the PLC, construct a correct wiring and write the program. if you buy a servo motor with the driver, make sure you hv the correct wiring. what im providing here is purely from the plc side.
i will sum it up into 3 steps,
1: configure the correct settings in your PLC.
make sure your plc has pulse outputs! you need two pulse outputs for a single axis. pulse can be output from the plc either by CW/CCW mode or pulse + direction mode. this mode must be of the same mode you setup in your servo motor amplifier. make sure also u set the built in inputs for encoder feedback. this is a must so that u know how many pulses has the motor moved.
2: correct wiring.
u also need to output the servo RUN signal to on the motor and Reset signal to reset any alarm. just for extra information, not all alarms can be reset from the reset signal, for some alarms, u need to reboot the servo driver.
for the input to the PLC from the servo driver, u need the feedback from the AC servo motor encoder. if you are using open collector, one feedback input is enough. it will count the Z phase from the encoder and pass it back to the plc to do the pulse count.
u also can tap into the PLC the ‘pulse output complete’ signal from the servo driver. this is important to make sure all pulse have been supplied and the motor is ready for next move.
3. write the program.
you can have a look at the sample program and better explaination HERE!!