DES APL GSB
DES APL GSB
instructions 1
Introduction 2
APL_GS block 3
SINAMICS
General information on
faceplates 4
Drive ES PCS7 block library
DRVPCS7_APL Module drivers/Maintenance
APL_GS block station 5
Function Manual
Feature bits of the APL block 6
WebClient 8
Simulation 9
Appendix A
List of abbreviations B
03/2019
A5E39409145B AE
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified
personnel are those who, based on their training and experience, are capable of identifying risks and avoiding
potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this
publication is reviewed regularly and any necessary corrections are included in subsequent editions.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 3
Table of contents
APL_GS block
4 Function Manual, 03/2019, A5E39409145B AE
Fundamental safety instructions 1
1.1 General safety instructions
WARNING
Danger to life if the safety instructions and residual risks are not observed
If the safety instructions and residual risks in the associated hardware documentation are not
observed, accidents involving severe injuries or death can occur.
● Observe the safety instructions given in the hardware documentation.
● Consider the residual risks for the risk evaluation.
WARNING
Malfunctions of the machine as a result of incorrect or changed parameter settings
As a result of incorrect or changed parameterization, machines can malfunction, which in turn
can lead to injuries or death.
● Protect the parameterization against unauthorized access.
● Handle possible malfunctions by taking suitable measures, e.g. emergency stop or
emergency off.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 5
Fundamental safety instructions
1.2 Warranty and liability for application examples
APL_GS block
6 Function Manual, 03/2019, A5E39409145B AE
Fundamental safety instructions
1.3 Industrial security
Note
Industrial security
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Products and solutions from Siemens constitute one element of such a
concept.
Customers are responsible for preventing unauthorized access to their plants, systems,
machines and networks. Such systems, machines and components should only be connected
to an enterprise network or the Internet if and to the extent such a connection is necessary and
only when appropriate security measures (e.g. using firewalls and/or network segmentation)
are in place.
For additional information on industrial security measures that can be implemented, please
visit:
Industrial security (https://www.siemens.com/industrialsecurity)
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they become
available, and that only the latest product versions are used. Use of product versions that are
no longer supported, and failure to apply the latest updates may increase customer’s exposure
to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS
Feed at:
Industrial security (https://www.siemens.com/industrialsecurity)
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 7
Fundamental safety instructions
1.3 Industrial security
WARNING
Unsafe operating states resulting from software manipulation
Software manipulations, e.g. viruses, Trojans, or worms, can cause unsafe operating states
in your system that may lead to death, serious injury, and property damage.
● Keep the software up to date.
● Incorporate the automation and drive components into a holistic, state-of-the-art industrial
security concept for the installation or machine.
● Make sure that you include all installed products into the holistic industrial security concept.
● Protect files stored on exchangeable storage media from malicious software by with
suitable protection measures, e.g. virus scanners.
● On completion of commissioning, check all security-related settings.
● Protect the drive against unauthorized changes by activating the "Know-how protection"
converter function.
APL_GS block
8 Function Manual, 03/2019, A5E39409145B AE
Introduction 2
2.1 General
The control blocks and associated faceplates of Drive ES PCS7 APL integrate the SINAMICS
drives into the SIMATIC PCS 7 process control system.
This manual describes the function and handling of the blocks of Drive ES PCS7 APL.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 9
Introduction
2.2 Requirements
2.2 Requirements
Hardware
The product Drive ES PCS7 APL is an add-on product for SIMATIC PCS 7
For the prerequisites, refer to the readme file of SIMATIC PCS 7 for which this product has been
released.
Software
The product Drive ES PCS7 APL is an add-on product for SIMATIC PCS 7
For the prerequisites, refer to the readme file of SIMATIC PCS 7 for which this product has been
released.
References
Notes on the installation of SIMATIC PCS 7 is available in the product-specific readme file.
APL_GS block
10 Function Manual, 03/2019, A5E39409145B AE
Introduction
2.3 Installing Drive ES PCS7 APL
Note
Readme file
Also read the information in the readme file.
Procedure
1. Insert the CD Drive ES PCS7 APL in the CD-ROM drive of your PG/PC.
2. Double-click "Setup.exe".
All the other information you need will be provided during the installation process.
– The control blocks of the automation system (AS) are installed in the directory of STEP 7
> "s7libs".
– The components of the faceplates of the operator station (OS) are installed in the
directory of SIMATIC WinCC.
3. You must carry out further steps before working with the faceplates. The detailed procedure
for this can be found in the descriptions of the individual blocks.
Note
Execute setup on every computer
Execute the setup on every computer on which the faceplates are used. This means that the
components of SIMATIC WinCC must be installed on all OS servers and OS clients. It is not
sufficient to simply copy the project from the engineering station to the server/client.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 11
Introduction
2.4 General Data Protection Regulation
APL_GS block
12 Function Manual, 03/2019, A5E39409145B AE
APL_GS block 3
3.1 Overview
Area of application
The block integrates a device of the SINAMICS product family into the SIMATIC PCS 7 process
control system.
The following SINAMICS products are supported:
● S120/150
● G130/150
● GM150
● GL150
● DCM
● G120, Version 4.2 or higher
The block supports the standard functionality of a SINAMICS with respect to control by a
SIMATIC S7 and operator control and monitoring from an operator station.
Communication between the converter and SIMATIC is handled via PROFIBUS DP or
PROFINET IO, depending on the device design (DP/PN).
Type/number
FB1721
You can change the block number.
Calling OBs
● The cyclic interrupt OB, e.g. OB35.
The block must be installed with the same instance in the following OBs. Installation in the CFC
takes place automatically:
● OB100
For start identification
Function
The APL_GS block offers the following functionality:
● Transfer of the setpoints specified by the MotSpdCL block to the drive.
● Receipt of process values provided by the drive and transfer to the MotSpdCL block.
● Generate signals which trigger alarms for WinCC at the MotSpdCL block.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 13
APL_GS block
3.1 Overview
Boundary condition
● You can use the block with SIMATIC PCS 7 Version 8.2 or higher.
● The block is CIR-capable. It should be noted that when inserting the block in a CFC chart,
the input Restart is set to TRUE. The setting is necessary because the block has startup
characteristics, see Chapter: Startup behavior (Page 21)
● The block is integrated into the SIMATIC PCS 7 module driver concept. The functionality of
the block is only ensured this way, see Chapter: Module drivers/Maintenance station
(Page 51)
● The communication interface between SIMATIC and SINAMICS comprises 6 words in both
the send direction and receive direction. The interface contains exclusively process data.
You also have the capability of exchanging more data, see Chapter: Adapting the telegram
length (Page 61).
● You must configure a SINAMICS with Drive ES/SIMOTION interface in the hardware
configuration of STEP 7. Installation of the slave and SIMOTION object manager is a
prerequisite for this. For this slave, you configure the Siemens telegram 352.
● Make sure that the I addresses and the O addresses begin at the same start address.
● If there is an Active Line Module (ALM) in the hardware setup of the SINAMICS
configuration, please note that this ALM must also be configured in the hardware
configuration of the SIMATIC project. Otherwise, the module driver cannot integrate the
block into the driver concept. An error in this case would report that no hardware has been
found for the entered address. In the default configuration of a SINAMICS, the ALM is at the
beginning of the structure. For this reason, configure the ALM object first. Select the
"telegram 370 PZD-1/1" for the ALM. After this, configure the individual axes. Alternatively,
you can move the ALM in the STARTER after all of the drive axes. The advantage of this is
that you no longer have to configure the ALM in the hardware configuration.
● To commission the fieldbus communication, parameter assignments for the bus address
and the parameterization enable are required in the drive.
Further information can be found in the SINAMICS Operating Manual.
● The process data must be "wired" by means of parameter assignment on the basic
converter to permit data exchange between the fieldbus interface of the SINAMICS and the
basic unit itself. In this context, the first word sent from the SIMATIC to the converter is
always connected as control word STW1. The first word sent from the converter to the
SIMATIC is always connected as status word ZSW1, see Chapter: Process data interface
(Page 29).
● For the assignment of the process data words and their "wiring" in SINAMICS, refer to the
following Chapter: Process data interface (Page 29).
● The fault memory of the SINAMICS is read by acyclic access from the SIMATIC master in
the case of a fault. The master must thus support the "data record read/write"
communication services.
APL_GS block
14 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.1 Overview
● The block does not provide a freely usable parameter assignment interface between
SIMATIC and SINAMICS. If necessary, the interfaces can be implemented using the blocks
PDAT_AC2 and PDAT_UD2. The blocks are included in the DRVDPS7 library.
● You can operate a SINAMICS drive in an H system following a Y-Link. If the drive is
integrated in the hardware configuration as DP standard slave (via GSD file) from the
"Standard" profile, acyclic communication is not possible. The module driver disables
acyclic communication by presetting the block input AcStart = 0. If you enable acyclic
communication nevertheless, an error message is output: SFBErr = 1.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 15
APL_GS block
3.2 Control block
Control word
The control word is formed from the following input values.
APL_GS block
16 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
The direction of rotation is specified, adapted to the behavior of a MASTERDRIVES, via the
following inputs:
Overview
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 17
APL_GS block
3.2 Control block
3.2.3 States
Overview
The following states are defined:
Overview
In the startup routine, e.g. processing after restart, rack failure or setting the input restart, the
factors are calculated as shown above.
APL_GS block
18 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
The table below shows the parameters of the SINAMICS that must be specified at the
corresponding input parameters of the block.
Note
Faceplate display
● You define whether frequency, speed or % is displayed in the faceplate. At the FactorRPM
input, you enter the value to which 16#4000 corresponds. I.e. if 3000 is at the FactorRPM
input, then 3000 = 16#4000.
● If the speed of the machine is to be entered and displayed instead of the motor speed,
specify 0.1 at the FactorGU input for a motor/machine transmission ratio of 10:1.
Overview
The following errors are signaled by the block:
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 19
APL_GS block
3.2 Control block
Drive fault
If the drive reports "Fault" in the status word, GrErr = 1 is set and the fault memory of the drive
is read. Thus you receive further information about the drive fault.
See the following Chapter: Coordination of acyclic communication (Page 28)
APL_GS block
20 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
Overview
● Read in the logical base address and the diagnostic address of the slave.
● Calculate the normalization factor from the reference variables, which are specified at the
following inputs:
– FactorRPM
– FactorGU
– FactorCPV
You can also perform the tasks above by setting the Restart input The Restart input is reset by
the block.
After a restart, there is a wait period for a parameterizable number of cycles before you can
operate the drive.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 21
APL_GS block
3.2 Control block
Overview
Message Description
class
F AS control system message fault
S AS control system message failure
A Alarm message
W Warning
The following associated values for message generation must be provided for the MotSpdCL
block.
The error texts of the drives are dynamically inserted into the message with the help of user text
libraries. The associated value provides the index for the current text in the text library. A
placeholder is entered at the location where the dynamic text is to be displayed.
The user text libraries are part of the library. Always copy these libraries into the projects as well.
The following text libraries are used:
You will find more information on user text libraries in the online help for SIMATIC PCS 7 under
the keyword "User text libraries".
APL_GS block
22 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
Overview
You must parameterize the block inputs listed below application-specifically:
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 23
APL_GS block
3.2 Control block
Overview
You must interconnect the block inputs listed below application-specifically:
APL_GS block
24 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
If the input Trip = FALSE, an OFF3 command (rapid stop) is sent to the drive.
The "Read fault memory" function can be interlocked via the AcStart input. This interlocking is
necessary if several blocks use the acyclic communication channel to the same drive, because
otherwise communication errors may occur. An example is the SINAMICS G120 with infeed
module and several axes.
If there is no further acyclic communication in the project, set the AcStart input to "1", see
Chapter: Coordination of acyclic communication (Page 28)
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 25
APL_GS block
3.2 Control block
APL_GS block
26 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
● Spanish
● Italian
Before changing the language, open the properties dialog of the control block and switch to the
"Connections" tab. Replace the English contents of the columns "Designation", "Unit", "Text0"
and "Text1" of the block with the respective German, French, Spanish or Italian texts.
Procedure
1. Select the block.
2. Select "Edit" in the menu bar.
3. Select "Object properties".
4. Open the "Connections" tab and change the descriptions in the "Designation", "Unit",
"Text0" and "Text1" columns.
5. Double-click the column borders to automatically increase the width of the column. This will
enable the complete headings and contents of the column to be displayed.
Alternatively, you can also change the texts for all of the designators in the columns
"Designation", "Unit", "Text0" and "Text1" in the SIMATIC WinCC text library.
Now it is possible to switch between languages as often as desired without having to change
the designators in the CFC again.
References
If you switch SIMATIC PCS 7 to a different language, set the language in STEP 7 and in
SIMATIC WinCC.
Further information can be found in the configuration manual: Process Control System PCS 7;
Engineering System
German
The following table shows the affected I/O parameters and the translated texts for German.
French
The following table shows the affected I/O parameters and the translated texts for French.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 27
APL_GS block
3.2 Control block
Spanish
The following table shows the affected I/O parameters and the translated texts for Spanish.
Italian
The following table shows the affected I/O parameters and the translated texts for Italian.
Overview
With the input AcStart you enable acyclic communication. If the input is set to "TRUE", the
channel for acyclic communication is currently not being used by other applications. The
channel can be used by this block. If the block occupies the acyclic channel, the AcBusy output
is set to TRUE. No other application must use the acyclic channel now.
The GrErr output can be used to give the "Read fault memory" function priority over other
applications. This output has the TRUE status as long as an unacknowledged drive fault is
pending.
You coordinate the access to this channel with the following parameters:
APL_GS block
28 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
Parameterize drive
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 29
APL_GS block
3.2 Control block
APL_GS block
30 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
Local mode
If it is to be possible to switch to local mode on the drive, it is advisable to use the CDS1 in the
drive for this purpose. On the CDS1, you switch over using an external signal, e.g. from the key-
operated switch in the converter cabinet.
The following parameter settings are an example of the implementation for switching to local
mode. The setpoint and, in part, the control signals are wired to the terminal strip module
(TM31) for the SINAMICS G150/S150 and either to the CU terminal strip or the TM31 terminal
strip for the SINAMICS G120/S120. The external switchover signal is applied to digital input 4
and the ON/OFF1 command to digital input 0. When the current process value is supplied to the
setpoint channel of the motor potentiometer, a bumpless transfer from control room mode to
local mode takes place.
The following parameterization is still required for this:
● p1070.1 = 1050, speed setpoint via motorized potentiometer
● p1043.1 = 4022.4, set signal for motorized potentiometer via TM31, here DI4
● p1043.1 = 722.4, set signal for motorized potentiometer via CU, here DI4
● p1044.1 = 63, set value for motorized potentiometer setpoint, here speed process value
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 31
APL_GS block
3.2 Control block
The interconnection of the process values is retained as with control room mode.
Note
Wiring the block from the automation system (AS)
To not only detect the switchover to local mode in the converter, but also in the AS block, the
switchover signal (e.g. from the key-operated switch in the converter cabinet) must also be
wired to a digital input of the AS. You interconnect the REMOTE input of the AS block with this
digital input.
Alternatively, you can also transfer the value of the parameter r0722 as additional process
value in the PZD data. The following parameterization is required for this:
● Hardware configuration:
– Instead of selecting the telegram 352, a user-defined configuration (6 setpoints and
7 process values) must be performed.
● CFC:
– Change the value at parameter ME_LE_AV of the SINA_GS block from 6 to 7.
– Interconnect the output PZD_7 with a converter block which transforms a word into
16 bits.
– Connect the output in which the information of the digital input, which is used/transferred
for the data record switchover, with the input LocalLi of the MotSpdCL block. Also
observe the information in the online help of the MotSpdCL block for the local mode.
● SINAMICS:
– Set p0922 = 999, free parameterization of the SINAMICS
– p2051.6 (axis/drive) = 722, status of digital inputs in Word 7 to the PLC
Connections
APL_GS block
32 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 33
APL_GS block
3.2 Control block
● Value: BOOL
Fwd_Rev STRUCT OUT - =1: Forward
● ST: BYTE 16#80 =0: Reverse
● Value: BOOL FALSE
GrErr STRUCT OUT - =1: Drive group error
● ST: BYTE 16#80
● Value: BOOL TRUE
GrErrNum DINT OUT FALSE Error number of drive group error X
InvEn STRUCT IN Linkable input: Inverter enable
● ST: BYTE
● Value: BOOL
LADDR INT IN 0 Logical address of module
LADDROut WORD OUT 0 Logical address of module
APL_GS block
34 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 35
APL_GS block
3.2 Control block
APL_GS block
36 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 37
APL_GS block
3.2 Control block
● Value: BOOL
RstLi STRUCT IN - Linkable Input: Error reset
● ST: BYTE 16#80 Signal status
● Value: BOOL FALSE Value
RstMSLi STRUCT IN - Linkable Input: Maintenance reset
● ST: BYTE 16#80 Signal status
● Value: BOOL FALSE Value
RstMSOp BOOL IN FALSE Operator Input: Maintenance reset X
RstOp BOOL IN FALSE Operator Input: Error reset X
RunUpCyc INT IN 3 Lag: Number of run up cycles
SampleTime REAL IN 0.1 Sample time [s], OB cycle time
SelFp1 ANY IN Select faceplate 1
SelFp2 ANY IN Select faceplate 2
SFBErr STRUCT OUT - SFB52/53 error
● ST: BYTE 16#80
● Value: BOOL FALSE
SimAct BOOL OUT FALSE =1: Simulation active
See Chapter: Simulation
(Page 65)
SimCPV WORD IN Current process value, simulation
See Chapter: Simulation (Page 65)
SimCW WORD OUT 0 Control word, simulation
See Chapter: Simulation (Page 65)
SIMPCD_4 WORD IN Optional process value, simulation
See Chapter: Simulation (Page 65)
SIMPCD_5 WORD IN Optional process value, simulation
See Chapter: Simulation (Page 65)
SIMPCD_6 WORD IN Optional process value, simulation
See Chapter: Simulation (Page 65)
APL_GS block
38 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 39
APL_GS block
3.2 Control block
APL_GS block
40 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.2 Control block
Note
Set option
Set this option if during initial configuration or since the last compilation the configuration of the
signal-processing blocks and the configuration of the associated hardware was changed. For
all other changes of the program that require compiling, do not set this option, because the total
compilation time is reduced.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 41
APL_GS block
3.3 Faceplate
3.3 Faceplate
The faceplate supports the following functions:
● Display of detailed fault information for a drive fault
● Acknowledgement of the drive fault
● Maintenance notification
● German, English, French, Spanish, and Italian as display language
Requirement
● To obtain a full representation of the control fields, select the following:
– Control Panel > Display > Settings > Advanced > Font size: select small fonts.
"Maintenance" area
If a low or medium maintenance requirement is indicated on the maintenance station (MS), you
reset the operating hours counter using the "Reset" button after performing the maintenance
work.
The "Reset" button can only be operated if the operator has been assigned the operating level
"High-level process operation" and at least a "low" maintenance requirement is pending.
The operating hours are displayed in days.
"Faults" area
In the "Faults" area, you can see up to 8 drive faults of a fault case, with fault number and, if
applicable, fault value.
This information is retrieved via corresponding variables from the automation system (AS). The
AS reads this data acyclically from the converter:
● P947 fault number
● P949 fault value
The fault text is stored, depending on the language, in the global functions of SIMATIC WinCC:
Drvpcs7_Sina_Err_txt_D1.fct, Drvpcs7_Sina_Err_txt_D2.fct,
Drvpcs7_Sina_Err_txt_D3.fct, Drvpcs7_Sina_Err_txt_E1.fct,
Drvpcs7_Sina_Err_txt_E2.fct, Drvpcs7_Sina_Err_txt_E3.fct,
Drvpcs7_Sina_Err_txt_F1.fct, Drvpcs7_Sina_Err_txt_F2.fct,
Drvpcs7_Sina_Err_txt_F3.fct, Drvpcs7_Sina_Err_txt_S1.fct,
Drvpcs7_Sina_Err_txt_S2.fct, Drvpcs7_Sina_Err_txt_S3.fct,
Drvpcs7_Sina_Err_txt_I1.fct, Drvpcs7_Sina_Err_txt_I2.fct,
Drvpcs7_Sina_Err_txt_I3.fct
APL_GS block
42 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.3 Faceplate
See also
Additional parameters at the control blocks (Page 51)
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 43
APL_GS block
3.4 Addressing the drive objects (parameter AxisId)
3.4.1 SINAMICS G
3.4.2 SINAMICS S
The module ID of individual drive objects can be found in CU parameter 101 or 978.
APL_GS block
44 Function Manual, 03/2019, A5E39409145B AE
APL_GS block
3.5 Block data
Block FB1721
Name APL_GS
Version 8.3
Programming language SCL
Length Local data 116
MC7 code 8124
Load memory 9918
Working memory 8160
Length of instance DB Load memory 1980
Working memory 728
Mapped variables 22
Nesting depth 1
Called blocks ALARM_8P
RD_SINFO
DPRD_DAT
DPWR_DAT
BLKMOV
FILL
WRREC
RDREC
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 45
APL_GS block
3.5 Block data
APL_GS block
46 Function Manual, 03/2019, A5E39409145B AE
General information on faceplates 4
4.1 Calling from the faceplate
The operation is performed using the standard mechanisms provided by APL.
APL faceplate
The APL faceplate opens the corresponding APL faceplate, here e.g. "MotSpdCL".
You call the Drive ES-specific contents via the button displayed in the faceplate.
Below you see an example representation with the "APL_MM4" button.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 47
General information on faceplates
4.1 Calling from the faceplate
APL_GS block
48 Function Manual, 03/2019, A5E39409145B AE
General information on faceplates
4.2 Scripts
4.2 Scripts
The following global C scripts are used to display the associated fault text for each fault number.
The setup installs all scripts.
The scripts "Drvpcs7_Sina_Err*" are used by the APL_GS block and the scripts
"Drvpcs7_G120*" are used by the block APL_G120.
Drvpcs7_G120_Err_txt_D.fct
The function "Drvpcs7_G120_Err_txt_D.fct" determines, based on the transferred fault number
of the SINAMICS G120, the German fault text stored in it.
Drvpcs7_G120_Err_txt_E.fct
The function "Drvpcs7_G120_Err_txt_E.fct" determines, based on the transferred fault number
of the SINAMICS G120, the English fault text stored in it
Drvpcs7_G120_Err_txt_F.fct
The function "Drvpcs7_G120_Err_txt_F.fct" determines, based on the transferred fault number
of the SINAMICS G120, the French fault text stored in it.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 49
General information on faceplates
4.2 Scripts
Drvpcs7_G120_Err_txt_I.fct
The function "Drvpcs7_G120_Err_txt_I.fct" determines, based on the transferred fault number
of the SINAMICS G120, the Italian fault text stored in it.
Drvpcs7_G120_Err_txt_S.fct
The function "Drvpcs7_G120_Err_txt_S.fct" determines, based on the transferred fault number
of the SINAMICS G120, the Spanish fault text stored in it.
APL_GS block
50 Function Manual, 03/2019, A5E39409145B AE
Module drivers/Maintenance station 5
5.1 Additional parameters at the control blocks
Description
Parameter Description
VALUE The VALUE parameter makes the control block recognizable to the module driver.
The parameter must be interconnected with the first input word of the drive axis to be
addressed.
Procedure:
1. Select the parameter VALUE.
2. Press the <F3> key.
3. Enter the address, e.g. EW512.
WH_MS_Days The WH_MS_Days and AH_MS_Days parameters of the control blocks determine
AH_MS_Days the maintenance alarms for the maintenance station. To deactivate the maintenance
alarm, "0" must be set at the corresponding input.
MS_Days
The MS_Days parameter reads back the time until the next maintenance alarm from
the automation system to avoid losing this time when a complete download occurs.
Also refer to the notes in the online help of the CFC.
RstMSOp The internal counter and the maintenance alarm are reset after completing mainte‐
RstMSLi nance work with the RstMSOp or RstMSLi parameter.
QC The QC parameter supplies the field device status to the downstream driver block
MOD_PAX0 or MOD_PAL0. This status is used to display symbols on the mainte‐
nance station according to the definition.
MODE The MODE parameter obtains the module status from the upstream DES_DIAG
ModeOut driver block. This status is forwarded to the ModeOut parameter.
The ModeOut parameter supplies the module status to the downstream driver block
MOD_PAX0 or MOD_PAL0. This status is used to display symbols on the mainte‐
nance station according to the definition.
Note
Running of operating hours counter
If the MOD_PAX0 or MOD_PAL0 blocks issue the message "Maintenance: medium
requirement" or "Maintenance: low requirement" in interaction with a drive, the operating hours
counter of the block must be checked for running and reset if necessary. This is done in the
faceplate of the Drive ES block (see also "Maintenance" area in the faceplate (Page 42)). The
time until the corresponding message is issued is set via parameters WH_MS_Days and
AH_MS_Days.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 51
Module drivers/Maintenance station
5.2 Symbols and their meaning
Description
Out of service Higher-level error (rack Status is detected in the controller: Message 2
failure = FC not on PB) Parameter requires
acknowl‐
RACKF = 1 or
edgement
PERAF = 1 or
MODF = 1
Local Automatic/local control Parameter at block: Message 3
operation switchover QREMOTE = 0
Maintenance: Freely parameterizable Additional input at the block, at which the user Message 6
low require‐ time on block can specify an appropriate time depending on requires
ment (type of operating hours the application acknowl‐
counter) Format: Integer/unit: Days edgement
Dependency on bit 2 in ZSW 1 (operation ena‐
bled):
ZSW 1 Bit 2 = TRUE → START operating hours
counter
ZSW 1 Bit 2 = FALSE → STOP operating hours
counter
APL_GS block
52 Function Manual, 03/2019, A5E39409145B AE
Module drivers/Maintenance station
5.2 Symbols and their meaning
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 53
Module drivers/Maintenance station
5.3 DES_DIAG block
Area of application
The block is installed automatically by the module driver and appropriately interconnected.
Type/number
FB628
The block number can be changed.
Function
The block evaluates all acyclic events that affect the drive:
● I/O access error
● Rack failure
● Module fault
It reports these to the downstream blocks:
● APL_GS
● APL_G120
● APL_MM4
The block also transfers the value status or, if available, the diagnostic information of the field
device to the standard blocks MOD_PAX0 (drive behind master system) or MOD_PAL0 (drive
behind Y-link).
Calling OBs
The cyclic interrupt OB in which you install the block, e.g. OB32 must be integrated in the run
sequence in the following OBs:
1. OB1 cyclic processing
2. OB82 diagnostic interrupt
3. OB83 hot swap interrupt
4. OB85 program execution error
5. OB86 rack failure
6. OB100 restart
Startup behavior
The block determines the startup and reports it to the OMODE output.
APL_GS block
54 Function Manual, 03/2019, A5E39409145B AE
Module drivers/Maintenance station
5.3 DES_DIAG block
Message behavior
The block does not send any messages.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 55
Module drivers/Maintenance station
5.4 I/O bar
Connections
The as-supplied state of the block representation in CFC is marked in the "Default" column:
Parameter name bold = connection is visible
Parameter name normal = connection is not visible
APL_GS block
56 Function Manual, 03/2019, A5E39409145B AE
Module drivers/Maintenance station
5.5 Block data
Block FB628
Name DES_DIAG
Version 7.1
Programming language SCL
Length Local data 172
MC7 code 1552
Load memory 2156
Working memory 1588
Length of instance DB Load memory 830
Working memory 402
Mapped variables -
Nesting depth 1
Called blocks RALARM
RDREC
RD_SINFO
RDSYSST
TIME_TCK
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 57
Module drivers/Maintenance station
5.5 Block data
APL_GS block
58 Function Manual, 03/2019, A5E39409145B AE
Feature bits of the APL block 6
The APL block MotSpdCL is used as the visualization interface for all drive blocks. Its behavior
can be customized using the feature bits.
Default setting
Below you see the default settings that are suitable for most use cases:
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 59
Feature bits of the APL block
APL_GS block
60 Function Manual, 03/2019, A5E39409145B AE
Adapting the telegram length 7
If the number of PZDs transferred by default is not sufficient, then the blocks provide the option
of increasing the number of PZDs. The number of the transferred PZDs can be parameterized
differently for setpoints and process values.
The telegram length is parameterized as follows:
● For the setpoint channel via the input MsgLen_SP
● For the process value channel via the input MsgLen_PV
These parameters are only read in and checked during startup. If the parameterized value is
less than the minimum value, then the minimum value is used for the telegram length. If the
value is too high, then the maximum value for the telegram length is used. No error message
will be generated.
In addition, you must parameterize the appropriate telegram length in the hardware
configuration and in the converter.
Number of PZDs
The table below shows the minimum/maximum number of PZDs that can be transferred:
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 61
Adapting the telegram length
APL_GS block
62 Function Manual, 03/2019, A5E39409145B AE
WebClient 8
If you use the blocks not only in an environment of SIMATIC WinCC, but also in an environment
of WebClient, you must convert the global functions of Drive ES into project functions.
Procedure
1. In SIMATIC WinCC, open the following directory: "<Installation directory>" > "aplib".
2. Select the directory "DriveES".
3. Move the directory "DriveES" into the directory "<Installation directory>" > "wincproj" > "OS-
Name" > "library".
4. Open the C-Editor in the "Global Script" directory.
5. Choose "Options" > "Re-generate header" to re-generate the header.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 63
WebClient
APL_GS block
64 Function Manual, 03/2019, A5E39409145B AE
Simulation 9
If the block MotSpdCL is switched to simulation mode, this information is transferred to the
Drive ES PCS7 APL blocks via the quality code of the output parameters.
WARNING
Exiting simulation mode
When exiting simulation mode, no OFF1 command is sent to the converter during manual
mode for the blocks from Drive ES PCS7 APL compared to the blocks from Drive ES PCS7.
Please remember to trigger an OFF1 command before exiting simulation mode. This OFF1
command prevents the converter starting automatically if the ON command pending in
simulation mode is sent to the converter.
Function
In simulation mode, the values of the following input parameters are used instead of the data
received from the drive.
● SimSW = Status word 1
● SimPV = Main process value
● SimCPV = Current process value
● SimPCD_x = Data that is transferred to PCD4 - PCD6
The above-named inputs are dependent on the actual quantity of data received from the drive.
The data which is transferred to the drive during normal operation is output at the outputs
SIMSTW (control word 1) and SIMSP (main setpoint). An external simulation block which
emulates the State Machine of the drive can be connected via the inputs and outputs referred
to above.
The simulation has highest priority. If the block is in simulation mode, QSIM = TRUE is set.
There is no longer any communication with the drive. The internal operating hours counter for
preventive maintenance is stopped.
In the block library DRVPCS7_APL, there is a simulation block for each supported drive. This
block, which is integrated into a project analog to the following figure, can simulate a drive.
A simple State Machine of the corresponding drive is integrated in the simulation blocks. The
block evaluates the bits of the STW 1, which are operated via the faceplate: STW 1 bit 0 - 3 and
7 and the direction of rotation bits.
This allows the simulation block to create the corresponding ZSW 1 so that all displayed
statuses are correctly supplied in the faceplate. In addition, the setpoint is directly (without
acceleration and deceleration ramp) fed back to the process value. For all other actual process
data, only inputs are provided on the simulation block which are written to the corresponding
outputs. There is no further processing of these values in the block.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 65
Simulation
In addition, there are inputs to create faults and warnings with their respective error numbers:
● FAULT
● WARNING
● FAULT_NO
● WARN_NO
The block does not check if the specified error numbers are correct. The error numbers are only
transmitted from the simulation block to the driver block and integrated in the message there.
A pending fault triggers a closing lockout in the operating state "Operation". An error is
acknowledged via the faceplate. The error number is not displayed in the "Drive fault" control
field.
The following inputs are reset once the error has been acknowledged:
● FAULT
● FAULT_NO
The input "WARNING" is automatically reset as long as the input is WARN_NO = 0.
If the input WARN_NO does not exist on the simulation block (FB1711 (SIM_MM4) and FB1714
(SIM_VIKN)), then you must manually reset the input WARNING.
The block is stored as an SCL source in the source container of the library and can be modified
as required.
APL_GS block
66 Function Manual, 03/2019, A5E39409145B AE
Simulation
Interconnection
The following shows an example of how the drive block is interconnected with an external
simulation block.
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 67
Simulation
APL_GS block
68 Function Manual, 03/2019, A5E39409145B AE
Appendix A
A.1 Status1
6WDWXV +LJK:RUG
8VHU6WDWXV
6WDWXV /RZ:RUG
/RFNRXW9DOXH
02')
3(5$)
5DFN(UU2XW9DOXH
)EN2II2XW9DOXH
)EN5XQ2XW9DOXH
6ZLWFK$FW9DOXH
)ZGB5HY9DOXH
*U(UU9DOXH
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 69
Appendix
A.2 Tips and tricks
Procedure
1. Establish the address of the static variables "sr_ERR_TIME_INI" in the instance data block.
2. You assign a symbolic name to the associated instance data block so that not only the
address but also the symbolic name of the variables will appear in the variable table.
3. Open the variable table and enter the established address.
4. Enter the desired time as a control value and activate this value.
APL_GS block
70 Function Manual, 03/2019, A5E39409145B AE
List of abbreviations B
B.1 Abbreviations
APL_GS block
Function Manual, 03/2019, A5E39409145B AE 71
List of abbreviations
B.1 Abbreviations
WR Inverter
ZSW 1.x Control word 1 bit x
APL_GS block
72 Function Manual, 03/2019, A5E39409145B AE