تلفن تماس : 09023011132
شرکت اتوماسیون صنعتی فریان | تامین تجهیزات ابزاردقیق

شرکت اتوماسیون صنعتی فریان | تامین تجهیزات ابزاردقیق

شرکت اتوماسیون صنعتی در تهران و سراسر ایران، تامین و فروش تجهیزات ابزار دقیق، راه اندازی خط تولید ، برنامه نویسی ربات های صنعتی کوکا، زیمنس

آموزش اتصال درایو G120 به PLC و HMI زیمنس

تاریخ انتشار : 2025/06/05

Introduction

این آموزش روشی ساده‌شده برای راه‌اندازی درایوهای Siemens G120 ارائه می‌دهد که با هدف ساده‌سازی مراحل راه‌اندازی اولیه و نگهداری طراحی شده است. این برنامه شامل دو بلوک تابع است: «ParaRW» با شناسه FB38055 و «EasySetupG120X/XA» با شناسه FB38056.

Figure 1.1: Siemens G120X/XA Drive Configuration with HMI - Automation task overview
Figure 1.1: Siemens G120X/XA Drive Configuration with HMI – Automation task overview

ParaRW (FB38055): این بلوک تابع (FB) با استفاده از روش‌های ارتباطی غیر دوره‌ای برای خواندن یا نوشتن، به منظور تعامل با پارامترهای درایو به‌کار می‌رود. از جمله قابلیت‌های آن، امکان بازگرداندن پارامترهای درایو به پیکربندی کارخانه و نوشتن پارامترهای راه‌اندازی به صورت دسته‌ای (Batch) می‌باشد.

EasySetupG120X/XA (FB38056): این بلوک تابع با بهره‌گیری از ‘ParaRW’ (FB38055)، قادر است تمامی قابلیت‌های گنجانده‌شده در FB38055 را اجرا کند. علاوه بر این، به امکاناتی مانند کنترل سرعت از طریق PROFINET و رابط کاربری برنامه‌نویس برای اجرای دستورات درایو و پایش وضعیت لحظه‌ای نیز دسترسی می‌دهد.

Figure 1.2: Siemens G120X/XA Drive Configuration with HMI - Main function blocks

Figure 1.2: Siemens G120X/XA Drive Configuration with HMI – Main function blocks

 

 

پیش‌نیازها

آنچه برای دنبال کردن این آموزش نیاز دارید:

شما باید نرم‌افزار TIA Portal را روی رایانه شخصی خود نصب کرده باشید. اگرچه این آموزش به نسخه ۱۸ اشاره دارد، اما اطمینان داشته باشید که سایر نسخه‌های TIA Portal نیز به‌خوبی کار خواهند کرد.
شما باید با نصب فایل GSDML مربوط به سروو درایو مورد نظر خود در TIA Portal آشنا باشید.
شما ملزم به نصب نرم‌افزار SINAMICS StartDrive نسخه ۱۸ سرویس پک ۲ (SP2) هستید.

پیکربندی سخت‌افزار

در چارچوب این مثال کاربردی، پیکربندی سخت‌افزار شامل PLC مدل S7-1200، پنل HMI مدل KTP 900، و درایو G120X به‌عنوان اجزای اصلی است. گذرگاه PROFINET امکان ارتباط  اتصال میان درایو G120X، پنل KTP 900 HMI و PLC مدل S7-1200 را فراهم می‌کند. پیکربندی‌های دقیق مربوط به آدرس‌های IP و نام دستگاه‌ها در شکل زیر  ارائه شده‌اند.

Figure 2.1: Siemens G120X/XA Drive Configuration with HMI - Hardware configuration

Figure 2.1: Siemens G120X/XA Drive Configuration with HMI – Hardware configuration

واحدهای G120X از طریق تلگرام آزاد ۱۲/۱۲ با PLC ارتباط برقرار می‌کنند و این امکان را فراهم می‌سازند که داده‌های حیاتی مانند نقطه تنظیم سرعت (Speed Setpoint)، کلمه کنترل (Control Word)، مقادیر واقعی (Actual Values)، و کلمه وضعیت (Status Word) تبادل شوند.

فراتر از دامنه اولیه خود، این برنامه شرایطی را نیز پشتیبانی می‌کند که در آن بیش از دو مبدل (Converter) وجود دارد. مهندسان باید آدرس‌های IP و نام دستگاه‌ها را برای مبدل‌های اضافی پیکربندی کرده و همچنان از پروتکل تلگرام آزاد ۱۲/۱۲ استفاده نمایند.

Figure 2.2: Siemens G120X/XA Drive Configuration with HMI - Telegram configuration
Figure 2.2: Siemens G120X/XA Drive Configuration with HMI – Telegram configuration
Figure 2.3: Siemens G120X/XA Drive Configuration with HMI - PZDs from PLC to drive and vice versa
Figure 2.3: Siemens G120X/XA Drive Configuration with HMI – PZDs from PLC to drive and vice versa

مروری بر برنامه‌نویسی PLC

در قالب این پروژه نمونه، دو نوع داده PLC متمایز تعریف شده‌اند:

Drive_CMD_UDT: این نوع داده ساخت‌یافته (UDT) شامل دستورات کنترلی ضروری درایو مانند OFF1، ACK (دستورات تأیید) و SpeedSet (نقطه تنظیم سرعت) است. این UDT امکان کنترل مناسب درایو را فراهم می‌سازد.

Drive_Stat_UDT: این UDT شامل مقادیر واقعی (Actual Values) و کلمه وضعیت (Status Word) مرتبط با مبدل (Converter) می‌باشد.

Figure 3.1: Siemens G120X/XA Drive Configuration with HMI - PLC data types

Figure 3.1: Siemens G120X/XA Drive Configuration with HMI – PLC data types

با استفاده از EasySetupG120X/XA (FB38056) برای فراخوانی ParaRW (FB38055)، مهندسان فرآیند راه‌اندازی را ساده‌سازی می‌کنند، به‌طوری‌که تنها کافی است FB38056 را در بلوک‌های سازمانی چرخه‌ای مانند OB1 فراخوانی کنند. در نتیجه، برنامه PLC دو عملکرد کلیدی را محقق می‌سازد: «راه‌اندازی سریع مبدل» و «تنظیم سرعت از طریق PROFINET».

راه‌اندازی سریع مبدل (Rapid Converter Setup):
با استفاده از دستورات برنامه‌نویسی‌شده، PLC به‌صورت خودکار عملیات خواندن و نوشتن تمام پارامترهای راه‌اندازی را انجام می‌دهد، که نیاز به ورود دستی اطلاعات از طریق واسط‌های Basic Operator Panel یا Intelligent Operator Panel را حذف می‌کند و در نتیجه، کارایی عملیاتی را افزایش می‌دهد.

تنظیم سرعت از طریق PROFINET (PROFINET Speed Regulation):
ارسال نقطه تنظیم سرعت (Speed Setpoint) و کلمه کنترلی (Control Word) از PLC به درایو با دریافت مقادیر واقعی (Actual Values) و کلمه وضعیت (Status Word) تکمیل می‌شود، که ارتباطی جامع و کامل میان کنترلر و درایو را تضمین می‌کند.

Figure 3.2: Siemens G120X/XA Drive Configuration with HMI - EasySetupG120X/XA function block

Figure 3.2: Siemens G120X/XA Drive Configuration with HMI – EasySetupG120X/XA function block

اطمینان حاصل کنید که مقدار ثابت DRIVE_MAX_NUMBER در بخش Interface از بلوک تابعی EasySetupG120X/XA به‌درستی با تعداد کل درایوها مطابقت دارد، سپس بلوک را کامپایل و فراخوانی نمایید.

در زمینه مثال کاربردی حاضر، که شامل دو درایو است، مقدار ثابت DRIVE_MAX_NUMBER به‌درستی پیکربندی شده و مقدار آن برابر با ۲ تعیین شده است تا با تعداد درایوها مطابقت کامل داشته باشد.

 

Figure 3.3: Siemens G120X/XA Drive Configuration with HMI - Setting the value of DRIVE_MAX_NUMBER
Figure 3.3: Siemens G120X/XA Drive Configuration with HMI – Setting the value of DRIVE_MAX_NUMBER

Obtaining the drive’s distinct hardware identifier entails navigating through the ‘Device view,’ selecting ‘Properties,’ and then accessing the ‘System constants’ section, as clearly outlined in Figure 3.4.

Figure 3.4: Siemens G120X/XA Drive Configuration with HMI - Hardware identifier of drives
Figure 3.4: Siemens G120X/XA Drive Configuration with HMI – Hardware identifier of drives

HMI Overview

Two HMI screens, labeled ‘Monitoring’ and ‘Setup,’ have been generated within the framework of this template project, tailored to specific functionalities.

Figure 4.1: Siemens G120X/XA Drive Configuration with HMI - Main HMI screens
Figure 4.1: Siemens G120X/XA Drive Configuration with HMI – Main HMI screens

Monitoring Screen: Designed with monitoring in mind, this screen serves as a central hub, providing users with in-depth visibility into the status bits and real-time actual values across all drives.

Figure 4.2: Siemens G120X/XA Drive Configuration with HMI - Monitoring screen overview
Figure 4.2: Siemens G120X/XA Drive Configuration with HMI – Monitoring screen overview

Setup Screen: The focus of this screen is to streamline the commissioning process for the converter.

Figure 4.3: Siemens G120X/XA Drive Configuration with HMI - Setup screen overview
Figure 4.3: Siemens G120X/XA Drive Configuration with HMI – Setup screen overview

The default configuration takes the precautionary step of cloaking all setup function buttons to impede unauthorized access to drive parameters, fostering a secure operational environment. Display of these buttons is contingent upon the ‘Debug’ button being clicked and the correct user credentials entered, ensuring visibility is restricted to authorized users post-authentication.

The specified access credentials entail the username ‘solisplc’ and the associated password ‘123456’. Engineers are granted comprehensive authority to intricately modify the settings embedded within the ‘User Administration’ interface, as shown in Figure 4.4.

Figure 4.4: Siemens G120X/XA Drive Configuration with HMI - HMI user administration
Figure 4.4: Siemens G120X/XA Drive Configuration with HMI – HMI user administration

Operation Overview

Before exploring the operation segment in-depth, it is imperative to fulfill two primary prerequisites: confirming the accurate configuration of IP addresses and device names for all drives and successfully downloading this project onto the PLC and HMI.

Figure 5.1: Siemens G120X/XA Drive Configuration with HMI - Compiling and downloading the project
Figure 5.1: Siemens G120X/XA Drive Configuration with HMI – Compiling and downloading the project

Let’s enable the display of setup function buttons. Launch the process by clicking the ‘Debug’ button, and proceed to enter the requisite password and username.

Figure 5.2: Siemens G120X/XA Drive Configuration with HMI - Inserting username and password
Figure 5.2: Siemens G120X/XA Drive Configuration with HMI – Inserting username and password

Clicking the ‘Debug’ button once more will result in the appearance of all setup function buttons.

Figure 5.3: Siemens G120X/XA Drive Configuration with HMI - Activating setup function buttons
Figure 5.3: Siemens G120X/XA Drive Configuration with HMI – Activating setup function buttons

Proceed with resetting the drive parameters to their original factory configuration. Engage the converter’s factory setting restoration process by clicking the ‘Reset’ button to initiate the operation. Throughout this operation, the button will visually indicate ‘Resetting,’ with the background shifting to an orange hue and intermittently flashing to signify ongoing activity.

Figure 5.4: Siemens G120X/XA Drive Configuration with HMI - Resetting drive parameters
Figure 5.4: Siemens G120X/XA Drive Configuration with HMI – Resetting drive parameters

Once the reset process for all parameters is complete, the button will show ‘Reset,’ and the color of the text will transition to green. In addition, the HMI panel extends its display to include the default parameter setting of the converter.

Figure 5.5: Siemens G120X/XA Drive Configuration with HMI - Drive parameters have been returned to defaults
Figure 5.5: Siemens G120X/XA Drive Configuration with HMI – Drive parameters have been returned to defaults

Let’s undertake the task of batch-writing setup parameters. Ensure all values of setup parameters are meticulously entered via the HMI panel interface, addressing crucial variables such as motor data, voltage of the line, control mode of the drive, and ramp time. The remaining customized parameters have been intricately configured within the function block, sparing the user from the necessity of manual input through the HMI panel interface.

Figure 5.6: Siemens G120X/XA Drive Configuration with HMI - Inserting values of setup parameters
Figure 5.6: Siemens G120X/XA Drive Configuration with HMI – Inserting values of setup parameters

Trigger the PLC to begin batch writing of parameters by pressing the ‘Setup’ button. Throughout this operation, the button will visually indicate ‘Setting up,’ with the background shifting to an orange hue and intermittently flashing to signify ongoing activity.

Figure 5.7: Siemens G120X/XA Drive Configuration with HMI - Writing setup parameters
Figure 5.7: Siemens G120X/XA Drive Configuration with HMI – Writing setup parameters

Following the writing of all parameters, the button transitions to the ‘Set up’ display, while the color of the text elegantly changes to a vibrant green hue. The automatic activation of motor standstill identification results in the ‘A07991’ notification being displayed.

Figure 5.8: Siemens G120X/XA Drive Configuration with HMI - Setup parameters have been noted
Figure 5.8: Siemens G120X/XA Drive Configuration with HMI – Setup parameters have been noted

Following the completion of parameter writing, the PLC seamlessly engages in the retrieval of reference parameters automatically. The usage of these values facilitates the conversion of PZD data into actual values, incorporating the appropriate physical units.

Figure 5.9: Siemens G120X/XA Drive Configuration with HMI - Reading reference parameters automatically
Figure 5.9: Siemens G120X/XA Drive Configuration with HMI – Reading reference parameters automatically

At this moment, employ the HMI panel controls to implement standstill identification. Following parameter setup, engagement of ‘Panel mode’ is possible by clicking the ‘Auto mode’ button, denoting the switch to HMI panel control of the converter. Activate the converter by clicking the ‘ON/OFF’ button; this triggers motor standstill identification.

Figure 5.10: Siemens G120X/XA Drive Configuration with HMI - Implementing standstill identifier
Figure 5.10: Siemens G120X/XA Drive Configuration with HMI – Implementing standstill identifier

It’s time to adjust application parameters collectively in batch mode. Via the HMI panel interface, input updated values for application parameters, covering elements such as limits of the speed, drive control mode, ramp time, and other relevant variables.

Figure 5.11: Siemens G120X/XA Drive Configuration with HMI - Inserting application parameters
Figure 5.11: Siemens G120X/XA Drive Configuration with HMI – Inserting application parameters

Depress the ‘Modify’ button to initiate the batch-writing process for all application parameters. Throughout this operation, the button will visually indicate ‘Modifying,’ with the background shifting to an orange hue and intermittently flashing to signify ongoing activity.

Figure 5.12: Siemens G120X/XA Drive Configuration with HMI -Modifying application parameters
Figure 5.12: Siemens G120X/XA Drive Configuration with HMI – Modifying application parameters

Following the writing of all parameters, the button transitions to the ‘Modified’ display, while the color of the text elegantly changes to a vibrant green hue.

Figure 5.13: Siemens G120X/XA Drive Configuration with HMI - Adjustments have been made to parameters
Figure 5.13: Siemens G120X/XA Drive Configuration with HMI – Adjustments have been made to parameters

Upon completion of the commissioning process for a converter, it becomes imperative to ensure the permanent retention of all parameters to prevent their loss in the event of a power interruption. Select the ‘Save’ button to ensure the permanent storage of all parameters. Throughout this operation, the button will visually indicate ‘Saving,’ with the background shifting to an orange hue and intermittently flashing to signify ongoing activity.

Figure 5.14: Siemens G120X/XA Drive Configuration with HMI - Copying parameters from RAM to ROM
Figure 5.14: Siemens G120X/XA Drive Configuration with HMI – Copying parameters from RAM to ROM

Upon completion of parameter storage, the button indicates ‘Saved’ and transitions its text color to green, signifying successful preservation.

Figure 5.15: Siemens G120X/XA Drive Configuration with HMI - Application parameters have been saved
Figure 5.15: Siemens G120X/XA Drive Configuration with HMI – Application parameters have been saved

Press the ‘Backup’ button to initiate the PLC’s backup of drive parameters. Throughout this operation, the button will visually indicate ‘Backing up,’ with the background shifting to an orange hue and intermittently flashing to signify ongoing activity.

Figure 5.16: Siemens G120X/XA Drive Configuration with HMI - Backing up application parameters to PLC
Figure 5.16: Siemens G120X/XA Drive Configuration with HMI – Backing up application parameters to PLC

Upon completion of parameter backup, the button indicates ‘Backed up’ and transitions its text color to green, signifying successful preservation.

Figure 5.17: Siemens G120X/XA Drive Configuration with HMI - Parameters have been placed into PLC
Figure 5.17: Siemens G120X/XA Drive Configuration with HMI – Parameters have been placed into PLC

Now is the ideal moment to begin restoring parameters from the PLC. Ensure the converter is configured accurately with the appropriate IP address and device name. Press the ‘Restore Para’ button. Hold on until the button indicates the ‘Restored’ status. Engineers benefit from the remarkable convenience of this function in scenarios such as debugging similar devices or substituting new drives, enabling swift adjustment of all parameters.

Figure 5.18: Siemens G120X/XA Drive Configuration with HMI - Restoring drive parameters from PLC
Figure 5.18: Siemens G120X/XA Drive Configuration with HMI – Restoring drive parameters from PLC

Conclusion

In conclusion, you learned a simplified setup method for Siemens G120X/XA drives using two function blocks: ‘ParaRW’ (FB38055) and ‘EasySetupG120X/XA’ (FB38056). These blocks facilitate interaction with drive parameters and offer features like restoring factory configurations and batch-writing setup parameters. Integration of these blocks into PLC programming enables rapid converter setup and PROFINET speed regulation, enhancing operational efficiency. Additionally, the tutorial covers configuring parameters through the HMI panel, providing a comprehensive guide for efficient commissioning and maintenance of Siemens G120X/XA drives.

دیدگاه ها بسته شده اند.

برخی از مشتریان ما