Cookies are important for this site to function properly, to guarantee your safety, and to provide you with the best experience. By clicking OK, you accept all cookies. For more information, please access our Privacy Policy.
Table of Contents
Tutorials / 
Siemens G120X/XA Drive Configuration with HMI Template
Intermediate

Siemens G120X/XA Drive Configuration with HMI Template

Siemens
TIA Portal
HMI Development
Variable-Frequency Drives

Introduction

This tutorial presents a streamlined setup method for Siemens G120X/XA drives, designed to simplify commissioning and maintenance procedures. This program comprises two function blocks: 'ParaRW,' identified as FB38055, and 'EasySetupG120X/XA,' labeled as 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): This FB serves the purpose of interacting with drive parameters by employing acyclic communication methods for reading or writing. Among its features, it provides the functionality to restore drive parameters to their factory configuration and to write setup parameters collectively in batch form.

EasySetupG120X/XA (FB38056): Utilizing 'ParaRW' (FB38055), this FB can execute all functionalities integrated within FB38055. Additionally, it grants access to features such as PROFINET-enabled speed control and a user-program interface for executing drive commands and monitoring real-time status.

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

Prerequisites

What you will need to follow along with this tutorial:

Hardware Configuration

Within the framework of this application example, the hardware configuration encompasses the S7-1200 PLC, KTP 900 HMI, and G120X drive as its core components. While ensuring smooth communication, the PROFINET bus facilitates connections between the G120X, KTP 900 HMI, and S7-1200 PLC, with intricate configurations of IP addresses and device names presented in Figure 2.1.

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 units establish communication links with the PLC through free telegram 12/12, allowing for the exchange of critical data, such as speed setpoint, control word, actual values, and status word. Beyond its initial scope, this program caters to scenarios featuring more than two converters. Engineers must configure IP addresses and device names for supplementary converters and continue employing the free telegram 12/12 protocol.

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 Programming Overview

Within this template project, two distinct PLC data types have been established.

  1. Drive_CMD_UDT: Incorporating essential control commands of the drive like OFF1, ACK (Acknowledge commands), and SpeedSet (speed setpoint), this UDT offers proper control capabilities.
  2. Drive_Stat_UDT: Contained within this UDT are the actual values and the status word associated with the 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

By utilizing EasySetupG120X/XA (FB38056) to invoke ParaRW (FB38055), engineers streamline their process, merely needing to call FB38056 in cyclic organization blocks such as OB1. Consequently, the PLC program achieves two crucial functions: 'Rapid Converter Setup' and 'PROFINET Speed Regulation.'

Rapid Converter Setup: Employing programmed instructions, the PLC autonomously conducts the reading and writing of all setup parameters, removing the necessity for manual input via 'Basic Operator Panel' or 'Intelligent Operator Panel' interfaces, thereby enhancing operational efficiency.

PROFINET Speed Regulation: Transmission of speed setpoint and control word from PLC to the drive is complemented by the reception of actual values and the status word, ensuring comprehensive communication.

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

Ensure that the 'DRIVE_MAX_NUMBER' constant within the interface section of the 'EasySetupG120X/XA' function block correctly matches the total number of drives, then compile and call upon the block. Within the context of this application example, which encompasses two drives, the 'DRIVE_MAX_NUMBER' constant is accurately configured to reflect this count, fixed at 2.

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.