The Servo Motor Posıtıon Control By Usıng Matlab Opc Tools


Thesis Type: Postgraduate

Institution Of The Thesis: Gazi Üniversitesi, Fen Bilimleri Enstitüsü, Turkey

Approval Date: 2016

Student: YÜCEL BEŞYAPRAK

Supervisor: ALİ SAYGIN

Abstract:

In this study, the position and speed control was performed in servo motor connected to PLC by using Matlab program. PLC processed data sent from Matlab program and transformed them into parameters which will help servo motor to work. With the model designed in Matlab, positioning and movement control was performed in servo motor by using PLC. During the thesis study, in computer interface software, simulation and in PLC part application was performed. With the program blocks in the Matlab program, parameterization of acceleration and deceleration ramp functions of servo motor was carried out. Obtained data related to the motor were transferred to computer from PLC by using OPCserver. Variables in OPCserver application which is conducted between PLC and computer were transferred within their own structures. PLC activated servo motor which would do axial movements according to the incoming commands via its driver. In this conducted study, the position control of servo motors which moves independently on two axis was performed. Motor position information was calculated in Matlab program and transferred to PLC with the help of OPC tools. In the communication of Matlab PLC, KEPServerEX OPC software was used. In the interface of KEPServerEX OPC, variables were processed with Matlab OPC tools within the software, real positions were read and the desired new position information was sent. New position information which reached to PLC with OPC tools was transferred to servo motor driver with CanOPEN protocol and motor position control was performed. In order to work the driver and servo motor, power, referencing (home), absolute location, sudden stopping, error correction functions were controlled from Matlab program. In the application, Schneider brand LMC058 PLC, Lexium servo motor driver and its motor were used.