39
https://support.industry.siemens.com/cs/ww/en/view/109480495 Description of application 11/2015 Synchronization of two-panel and independent platform screen doors with SIDOOR ATE530S PROFINET EC door drive and S7-1500 CPU via TIA Portal

Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

https://support.industry.siemens.com/cs/ww/en/view/109480495

Description of application 11/2015

Synchronization of two-panel and

independent platform screen doors with SIDOOR ATE530S PROFINET EC door drive and S7-1500 CPU via TIA Portal

Page 2: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

Warranty and liability

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 2

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Warranty and liability

Note The application examples are non-binding and do not claim to be complete regarding configuration and equipment as well as all eventualities. The application examples do not represent customer-specific solutions but are intended to merely serve as an aid for typical tasks. You are responsible for proper operation of the described products. These application examples do not release you from the obligation of safe handling during application, installation, operation and maintenance. By using these application examples, you accept that we are not liable for any damages beyond the scope of the described liability provision. We reserve the right to make changes to these application examples at any time without prior notice. In case of deviations between the proposals in this application example and other Siemens publications, such as catalogs, the content of the other documentation has priority.

We are not liable for information contained in this document. Our liability for damages resulting from using the examples, notes, programs, configuration and performance data, etc. described in this application example regardless of the legal background is excluded unless required by law, e.g. in cases of willful misconduct, gross negligence, personal injury or death, failure to achieve guaranteed characteristics, fraudulent concealment of a defect or in case of breach of fundamental contractual obligations. The liability in case of a breach of fundamental contractual obligations, however, is limited to the foreseeable damages typical of the contract, unless intention or gross negligence are present or in case of mandatory liability due to injuries to life, body or health. A change in the burden of proof to your disadvantage is not associated with this provision. Distribution or reproduction of these application examples or excerpts thereof is not permitted unless expressly granted by Siemens Industry Sector.

Security information

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens’ products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.

For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products used should also be taken into consideration. You can find more information about industrial security at http://www.siemens.com/industrialsecurity.

To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on this at http://support.automation.siemens.com.

Page 3: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

Table of contents

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 3

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Table of contents Warranty and liability ................................................................................................... 2

1 Task ..................................................................................................................... 4 2 Hardware and software components ............................................................... 8

2.1 Validity .................................................................................................. 8 2.2 Components used ................................................................................ 8

3 Installation and commissioning ..................................................................... 10

4 Solution............................................................................................................. 12

4.1 Overview............................................................................................. 12 4.2 Devices and network .......................................................................... 12 4.3 Program structure ............................................................................... 15 4.4 Program blocks .................................................................................. 16 4.4.1 OB1 - Main ......................................................................................... 16 4.4.2 FC - PSG_APPLICATION .................................................................. 16 4.4.3 FB - PSG_CNTRL .............................................................................. 17 4.4.4 FB - SIDOOR_PN_DCU_CNTRL ...................................................... 21 4.4.5 FB - PSG_BLOCK_SYNC .................................................................. 26 4.4.6 FC - PSG_UPDATE_INPUT_SIGNALS ............................................. 27 4.4.7 FC - PSG_UPDATE_OUTPUT_SIGNALS ......................................... 28 4.4.8 FC - DCU_DECODE_EVENT_LIST .................................................. 29 4.5 PLC tags ............................................................................................. 30 4.6 PLC data types ................................................................................... 31 4.6.1 UDT - DCU_CMD_DAT ...................................................................... 31 4.6.2 UDT - DCU_EVENT_DAT .................................................................. 31 4.6.3 UDT - PSG_CONDITION_MONITOR_DAT....................................... 31 4.6.4 UDT - PSG_FAULT_MONITOR_DAT ............................................... 32 4.6.5 UDT - PSG_INPUT_SIGNALS_DAT ................................................. 33 4.6.6 UDT - PSG_OUTPUT_SIGNALS_DAT ............................................. 33 4.6.7 UDT - PSG_STATUS_MONITOR_DAT ............................................. 34 4.6.8 UDT - SIDOOR_CDAT ....................................................................... 35 4.6.9 UDT - SIDOOR_SDAT ....................................................................... 36 4.6.10 UDT - SIDOOR_PLST_ENTRY ......................................................... 38 4.6.11 UDT – PSG_BLK_SYNC.................................................................... 38

5 Literature references ....................................................................................... 39

6 Contact.............................................................................................................. 39

7 History............................................................................................................... 39

Page 4: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

1 Task

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 4

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

1 Task Introduction

The SIDOOR ATE53xS series (e.g. ATE530S) are "intelligent" door drives with which platform screen doors (PSD) and platform screen gates (PSG) can be operated in a safety-oriented manner and according to customer specifications. The EC motor technology used ensures high reliability and is maintenance-free. Platforms, on the one hand, represent a potential danger to passengers and train drivers and, on the other hand, act as restrictors to the logistic flows in rail transportation. These and further problems can be solved by using partitions between the platform and the track bed. Corresponding platform screen doors then ensure safe and fast passenger embarking and disembarking. Siemens has presented a new control and drive solution that can be realized without major engineering effort. For fast and efficient integration of the SIDOOR ATE53xS door control units with PROFINET interface in the railway operation's control system, the platform automation is demonstrated using an S7-1500 CPU and the TIA Portal engineering framework in this application example. The PROFINET module integrated in the SIDOOR controller enables standardized and certified connection to PROFINET IO systems. The SIDOOR IO device hereby satisfies the requirements of a PROFINET IO application according to conformance classes C (CC-C). The configuration (content and structure) of the cyclic process data/user data largely corresponds to the specifications for the cyclic data exchange via PROFIBUS ("variable-speed drives" PROFIBUS profile). This ensures that users can use the same standardized mechanisms to access the process data (control/status words and setpoints/actual values) and parameters of a device. The ATE53xS SIDOOR controllers have an extensive safety package at their disposal. The safety functions fulfill the requirements according to EN 62061 SIL 2 (Safety Integrity Level) as well as to DIN EN ISO 13849-1 Cat 2 PL d (Performance Level). This allows the main requirements for functional safety to be implemented simply and economically. The scope of the safety functions includes: • Safe stopping process • Safe force output • Safe speed observance • Safe monitoring of the rotor position • Safe reading of digital control signals

Page 5: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

1 Task

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 5

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Additional features of the SIDOOR ATE530S platform screen door controller are: • Integration in the TIA Portal using certified GSD files and the function blocks

provided • Fully automatic learn run with automatic calculation of friction, door width and

mass. • Custom energy limitation • Automatic overload protection for control unit and motor • Adjustable output of an unlocking sequence • Flexible protection function against vandalism • Safe control signals according to Safety Integrity Level 2 (SIL2) and

Performance Level d (PLd) • Individually configurable obstruction behavior and dynamic obstruction

detection • Sequential control system for intelligent switching between offline mode,

service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors (DCOPS) • Door widths between 35 cm and 5 m • Retentive event history • Comprehensive diagnostics concept

Page 6: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

1 Task

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 6

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

System concept – PSG Half-height double-panel independent platform screen doors are mainly used in the PSG (platform screen gates) application. Two SIDOOR ATE530S controllers and two motors (for example, MED280) are always used for each access system. The following figure shows the main components of the automation task:

Figure 1-1 Platform system concept

Main components of the automation task: • Safety-related signaling and controlling • Synchronization and management of drive and control parameters • Diagnostics management • Monitoring and troubleshooting • Data management and preparation • Configuration • Synchronization of the door panels when obstructions occur

Page 7: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

1 Task

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 7

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Objective of the application This application example describes the automated synchronization of the door panels, for example, after one of the panels is obstructed. The application described here outlines the use of already provided function blocks "PSG_CNTRL", "SIDOOR_PN_DCU_CNTRL" and "PSG_BLOCK_SYNC" for S7-1500 CPU in the TIA Portal. The use of the auxiliary functions "PSG_UPDATE_INPUT_SIGNALS", "PSG_UPDATE_OUTPUT_SIGNALS" and "DCU_DECODE_EVENT_LIST" is also described. The focus of this description of application does not include cyclic processing of control and status data or the configuration and commissioning of a SIDOOR controller. For more information on these topics, refer to the compact operating instructions \9\ and the system manual \3\. Take into account the application example for PSD (platform screen door) systems for central opening or linked access systems; see \10\.

Advantages Care was taken to make the solution presented here as structured and easily expandable as possible. It aims to demonstrate as many examples as possible relating to the automation of the SIDOOR ATE530S platform screen door controller. • Optimized by symbolic access • Structuring by corresponding data types • Easy to expand thanks to its modular configuration and meaningful grouping

Data exchange The exchange of user data between SIMATIC and the SIDOOR controller is divided into two areas: • Parameter area (PKW)

The PKW area handles the parameter transfer. This involves, for example, reading and writing parameter values.

• Process data area (PZD) The PZD area comprises all signals, control words and setpoints as well as status words and actual values required for the automation.

The contents of the parameter and process data area are defined by the SIDOOR controller. This interface is completely abstracted through the provided "SIDOOR_PN_DCU_CNTRL" function block.

Page 8: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

2 Hardware and software components

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 8

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

2 Hardware and software components 2.1 Validity

This application applies to: • TIA Portal V13 SP1 • S7-1500 CPU

2.2 Components used

This application example with two PSG systems was created with the following components (the specific number of each component must be determined according to the application).

Hardware components for example configuration Table 2-1 Standard hardware components

Component Order number Note

SIDOOR

SIDOOR ATE530S 6FB1231-3BM10-7AT0

SIDOOR MED280 6FB1203-0AT12-7DA0 EC motor, max. 280 kg door weight

SIDOOR transformer 6FB1112-0AT20-2TR0 Optional direct voltage supply provided by customer

S7-1500 system

CPU 1516-3 PN/DP 6ES7 516-3AN00-0AB0 Optional other S7-1500 CPU

DI 16/DQ 16x24VDC 6ES7 523-1BL00-0AA0 Or similar

S7 MEMORY CARD, 2 MB 6ES7954-8LB01-0AA0 Optional more memory

Distributed I/O

ET200SP IM 155-6 PN ST 6ES7 155-6AU00-0BN0

Optional other distributed I/O components

DI 16x24VDC ST 6ES7 131-6BH00-0BA0

DQ 4x24VDC/2A ST or DQ 4x24VDC/0.5A ST

6ES7 132-6BD20-0BA0 6ES7 132-6BH00-0BA0

Other

IE FC RJ45 Plug 180 4X2 6GK1 901-1BB11-2AB0

Connector with axial cable outlet (180°) for connection of SIDOOR control devices to the PROFINET bus cable

IE FC TP Standard Cable GP 6XV1878-2A PROFINET cable

Page 9: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

2 Hardware and software components

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 9

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Optional SIDOOR hardware components Table 2-2 Optional SIDOOR hardware components

Component Note

SIDOOR motor mounting bracket

Refer to the SIDOOR system manual \3\.

SIDOOR motor holder

SIDOOR rubber-metal anti-vibration fastening

SIDOOR deflector pulley

SIDOOR deflector unit

SIDOOR door clutch holder

SIDOOR toothed belt

Note The example project was created with the hardware components listed here. Alternatively, other functionally equivalent components can be used. A different parameter assignment or wiring of components may be required for this.

Software components Table 2-3 Standard software components

Target system Component Quantity Order number Note

S7 – 1500 SIMATIC STEP 7 Professional V13 SP1

1 6ES7822-1xx03-xxxx 1) Floating license

1) The order number depends on the type of license (license agreement, update service, floating license etc.). For the fully qualified order number, contact your Siemens sales partner or select the required software/license in the Siemens Industry Mall \1\.

Example files and projects The following list includes all files and projects that are used in this example. Table 2-4 Files and projects

Component Note

ATE530S PROFINET GSD file \8\

109480495_ATE530S_PSG_APP(de).pdf / 109480495_ATE530S_PSG_APP(en).pdf This document, description of application

For TIA Portal Version V13 SP1

PlatformScreenGates_V13_SP1.zip STEP 7 project Example project

PlatformScreenGates_V13_SP1.zip STEP 7 library Function blocks and data types

Page 10: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

3 Installation and commissioning

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 10

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

3 Installation and commissioning The SIDOOR controller shall be commissioned according to the supplied compact operating instructions, see \9\. • Installing the SIDOOR controller and distributed I/O • Connecting the MED280 EC motor • Connecting digital signals • Performing a learn run • Wiring PROFINET connectors • PROFINET node naming

WARNING

Risk of injury

Adhere to the installation steps described in the operating instructions and all safety instructions.

Node naming Assign the PROFINET name "ate530s_1A" to the first SIDOOR and the name "ate530s_1B" accordingly to the second SIDOOR. Each ATE530S control system is assigned a distributed I/O in this application example. Use the name "et200sp_1A" for the first ET200SP and "et200sp_1B" for the second ET200SP (number, distribution and assignment of distributed I/Os may vary based on the design). Use a configuration tool, such as TIA Portal, to do this. The device name is not "case-sensitive". The following IP addresses are used in the example project: Table 3-1 IP addresses and device names

Component Device name IP address

S7-CPU 1516-3 PLC_1 192.168.0.1

ET-200SP et200sp_1A 192.168.0.2

ET-200SP et200sp_1B 192.168.0.4

SIDOOR ate530s_1A 192.168.0.3

SIDOOR ate530s_1B 192.168.0.5

PG/PC - 192.168.0.110

The subnet mask is always 255.255.255.0. No router address is defined.

Page 11: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

3 Installation and commissioning

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 11

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Topology-based naming In addition, the device name can be assigned by the IO controller on the basis of the topology. This requires the topology to be structured as planned and all the devices involved to fulfill at least Class B (support of LLDP and SNMP). In addition, the new device has to have the factory settings (IP address = 0.0.0.0 and device name = "").

Note PROFINET option <Replacing an IO device without exchangeable medium>

Subject to certain conditions, IO devices can also receive their device names without the insertion of an exchangeable medium (such as memory card) or without a programming device. For this purpose, the IO controller uses Ethernet mechanisms (LLDP protocol; Link Layer Discovery Protocol) to analyze the relationships between the individual IO devices and the IO controller. From these relationships, the IO controller detects which IO device was replaced and assigns the configured device name to it.

PROFINET option <Permit overwriting of PROFINET device name>

With S7-1500 CPUs as of firmware version V1.5, you can overwrite PROFINET device names of IO devices during the startup of the CPU. This option reduces the effort during automatic commissioning, for example, when replacing a device.

Page 12: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 12

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4 Solution You can use the presented blocks as a basis for your own application.

4.1 Overview

Limitation This application contains no description: • The general drive functions of the SIDOOR controller • SIMATIC S7-CPU Basic knowledge of these topics is assumed or can be found in the corresponding manuals. Refer to SIDOOR system manual \3\.

Knowledge required Basic knowledge about configuring PROFINET systems with SIMATIC S7 controllers and the TIA Portal engineering system is assumed. Information and important instructions on installing the SIDOOR controller is available in the SIDOOR ATE530S operating instructions \9\.

4.2 Devices and network Figure 4-1 Hardware configuration – Network view

Page 13: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 13

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Module name The names of the modules are defined as follows: Table 4-1 Hardware configuration – Module names

Module name Type Name

PLC_1 DI 16/DQ 16x24VDC/0.5A BA PLC_1_DI16_DQ16_1

et200sp_1A DI 16x24VDC ST et200sp_DI16_1

DQ 4x24VDC/2A ST et200sp_DQ4_1

et200sp_1B DI 16x24VDC ST et200sp_DI16_1

DQ 4x24VDC/2A ST et200sp_DQ4_1

ate530s_1A 22-byte IO ATE530S_EA

ate530s_1B 22-byte IO ATE530S_EA

Module configuration The system functions DPRD_DAT and DPWR_DAT are used to update the process data. These instructions ensure that the data of a DP standard slave are read and written consistently. The I/O addresses of the module "DI 16x24VDC ST", "DQ 4x24VDC/2A ST" and "22-byte IO" are configured as follows in this project: Figure 4-2 Module configuration DI 16x24VDC ST (ET200SP IM 155-6 PN ST)

Figure 4-3 Module configuration DQ 4x24VDC/2A ST (ET200SP IM 155-6 PN ST)

Page 14: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 14

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Figure 4-4 Module configuration 22-byte IO (SIDOOR ATE530S)

Note All other modules use the standard configuration to automatically update the process image.

Page 15: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 15

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.3 Program structure

The figure below describes the program structure of the application example. Only the relevant blocks are deliberately listed. Additional information on the specific blocks is available in the section Program blocks.

Page 16: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 16

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4 Program blocks

Note You can individually change the numbers of the described function blocks.

4.4.1 OB1 - Main

The organization block OB1 is used to control the global digital output signals ENABLE, /ENABLE and OPEN. The PLC tags DCUs_Enable, DCUs_Open are used for this purpose. The function PSG_APPLICATION is also called in OB1 to control the configured door systems. As an additional function, OB1 provides the option of activating cyclic opening and closing of door systems. This function can be easily enabled with the PLC tag EnableCycleRun.

4.4.2 FC - PSG_APPLICATION

The function PSG_APPLICATION is used to call all functions and function blocks in logical order per door system. The function block PSG_BLOCK_SYNC is called to synchronize the two door panels of the PSG-1 (Platform Screen Gate 1). Then the function PSG_UPDATE_INPUT_SIGNALS is called to read all inputs signals of the door system's distributed I/O. In the next step, the function block PSG_CNTRL is called for parameter assignment, control and monitoring of the door system. After the function block has been called, the function PSG_UPDATE_OUTPUT_SIGNALS is called to update the output signals.

Page 17: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 17

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.3 FB - PSG_CNTRL

Concept The function block PSG_CNTRL is used for the parameter assignment, control and monitoring of the door system. The function block implements the control logic of a platform screen door and processes both the SIDOOR controller signals and the signals of the platform control system or the control center. Figure 4-5 Concept PSG_CNTRL

Block interface The block fist verifies in each call the validity of the digital input signals InputSignals. If the data of the digital input signals is marked as invalid, automatic door mode is enabled and an isolation of the door system is disabled. For the description of the data type, see UDT - PSG_INPUT_SIGNALS_DAT. Prepared faults/warnings, system conditions and status messages of the addressed system are provided via the output structures Faults, Conditions and Status. The function block PSG_CNTRL is controlled via the command interface DCUCmd. The additionally required status information from the platform's or platform screen door's sensors and control elements is made available to the block logic via the input structure InputSignals. Figure 4-6 FB - PSG_CNTRL

Page 18: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 18

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Table 4-2 Parameter FB - PSG_CNTRL

Parameter Declaration Data type Description

SIDOOR_ADDR INPUT HW_SUBMODULE Hardware identifier of the SIDOOR controller's "22-byte I/O" submodule.

DCUCmd INPUT DCU_CMD_DAT Source area for the door command to be transferred

InputSignals INPUT PSG_INPUT_SIGNALS_DAT Source area for the data of the digital input signals.

DisableClosingSounder INPUT Bool DisableClosingSounder = 1: Disables the signal for acoustic/visual signaling when door is closing.

LCPActive INPUT Bool LCPActive = 1: The global digital output signs are set by a local control panel. The PLC's digital outputs are invalid.

OutputSignals OUTPUT PSG_OUTPUT_SIGNALS_DAT Source area for the data of the digital output signals.

Faults OUTPUT PSG_FAULT_MONITOR_DAT Destination area for the fault monitoring data.

Conditions OUTPUT PSG_CONDITION_MONITOR_DAT Destination area for the state monitoring data.

Status OUTPUT PSG_STATUS_MONITOR_DAT Destination area for the status monitoring data.

ERROR OUTPUT Word Error code (corresponds to Table 4-3 Error information FB - SIDOOR_PN_DCU_CNTRL).

EXTNERR OUTPUT Word Detailed information on the error code.

LoadCustomDCUParams IN_OUT Bool LoadCustomDCUParams = 1: Request to write the customer-specific parameter set. The value is automatically reset to 0 after the parameter set has been written.

FaultAck IN_OUT Bool FaultAck = 1: Acknowledgment of a pending fault. The value is reset after the door control unit accepts the fault acknowledgment.

You can find more information on specific data types under PLC data types.

FB error information The function block PSG_CNTRL calls the SIDOOR communication block SIDOOR_PN_DCU_CNTRL as multi-instance and forwards its errors via the output parameters ERROR and EXTNERR. It defines no additional error codes.

Page 19: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 19

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Intention The logic that is implemented in the function block is the basis/template for a user-specific development. As many functions as possible of the SIDOOR controller are therefore described using a representative example.

Sequential control system The operation of the internal sequential control system of the SIDOOR ATE530S is an essential component in the logic of the PSG_CNTRL function block. When an inhibit command (DCUCmd.Inhibit) is pending, the SIDOOR-internal sequential control system automatically sets the control unit to the state S3:READY_TO_OPERATE. In the case of a command such as Learn run (DCUCmd.StartLearnRun) or Open (DCUCmd.Open), the sequential control system is automatically switched to the state S4:S4:OPERATING. The assigned SIDOOR controller is automatically enabled by the logic of the function block, i.e. set to the state S3:READY_TO_OPERATE or S4:S4:OPERATING if the following conditions are met: • LCP in Automatic mode • Enable request DCUCmd.Enable active • ATE530S not in ERM mode • ATE530S requests PLC control To detect incorrect operation or incomplete evaluation of the SIDOOR status messages, the Faults.OperatingFailed error is set if the sequential control system does not switch from the S1:SWITCH_ON_DISABLED state to the S2:READY_TO_SWITCH_ON state within 2s.

Fault acknowledgement An example logic for acknowledging a pending fault on the SIDOOR controller is implemented in the function block PSG_CNTRL; see Output Faults.DCUFault and InOut flag FaultAck.

Signal logic and troubleshooting The faults of the structure UDT - PSG_FAULT_MONITOR_DAT are derived, by way of example, via the implemented logic from the status information of the SIDOOR controller and the platform. This is done both time-driven and event-driven according to the fault.

Application-specific parameter assignment and cyclic parameter query The function block PSG_CNTRL contains a state machine that processes the example parameter job lists sWriteParamList, sReadParamList and sReadEventList in an event-driven manner. These lists are UDT - SIDOOR_PLST_ENTRY type and can be dynamically extended, modified, moved (to another data block) or centralized.

Note A breakdown into different lists is possible but not necessary.

Each individual entry of a parameter job list defines the specific job type . As a result, read and write jobs can be combined in a list.

The parameter job lists are transferred as pointers to the communication block FB - SIDOOR_PN_DCU_CNTRL and can therefore be moved to any other data blocks.

Page 20: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 20

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Information and further details about the corresponding parameters can be found in the "Parameters" section of the system manual \3\. sWriteParamList: This list contains 8 parameter write entries that are executed via the rising edge at input LoadCustomDCUParams. For example, all application-specific parameters that are to be changed in the SIDOOR controller during commissioning can be entered there. In the application example, the following parameters are changed via the list sWriteParamList: (1) p90 = 1 (Disable door command for service buttons) (2) p1220 = 7 (Configuration of unlocking sequence) (3) p1221 = 250 (On delay door command open/learn run) (4) p1222 = 750 (On period signal UNLOCK0) (5) p1223 = 750 (On period signal UNLOCK1) (6) p1224 = 0 (On delay signal UNLOCK1) (7) p3660 = 12 (Creep distance OPEN) (8) p3663 = 200 (Slow end distance CLOSE) sReadParamList: The sReadParamList list contains 5 parameter read jobs that are updated and evaluated every 30s (defined via the constant TIME_PARAM_READ). (1) p2100[22] (Motor temperature) (2) p2100[23] (Temperature of the controller) (3) p2150[0] (Firmware Version - Major) (4) p2150[1] (Firmware Version - Minor) (5) p2150[2] (Firmware Version - Build/Revision) sReadEventList: Event history for faults and warnings of the SIDOOR controller are read out and decoded cyclically every 30s (defined via the constant TIME_PARAM_READ) with the help function FC - DCU_DECODE_EVENT_LIST using the sReadEventList. The events are written in the array sEventDataList; the first eight fields contain the faults and the last 8 fields contain the warnings.

Synchronization interface An interface for synchronizing the travel characteristics of two door panels is provided in the PSG_CNTRL function block. The interfaces are defined by the data type UDT – PSG_BLK_SYNC and operated by function block FB - PSG_BLOCK_SYNC.

Page 21: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 21

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.4 FB - SIDOOR_PN_DCU_CNTRL

Description Parameter jobs are not individually created at the function blocks, but instead combined in a parameter job list. The complete parameter job list is transferred to the function block via a pointer and automatically processed step-by-step after this. The figure below shows the described concept.

Figure 4-7 SIDOOR communication module concept

Principle of operation The SIDOOR function block takes over the data processing of exactly one SIDOOR controller. Therefore, the block must be called with one data instance for each SIDOOR bus node. The selected SIDOOR bus node is localized by specifying a HW address identifier. At each call of the function block, the control data is transferred to the controller according to the structure UDT - SIDOOR_CDAT and the current status data updated according to the structure UDT - SIDOOR_SDAT . In addition, the availability of the SIDOOR bus node is checked and the node diagnostics data is updated. Parameter jobs are processed acyclically over several call cycles by the SIDOOR function block. The inputs PKW_PLST, PKW_TIMEOUT and PKW_BACKUP are evaluated only in combination with a rising edge at the input parameter PKW_REQ. Therefore, all "PKW" parameters can be set to 0 or NIL if the parameter channel is inactive or not to be used. In the case of a rising edge at PKW_REQ, the parameter job list referenced at PKW_PLST is checked. If the list is valid, PKW_CURRLSTID is reset and the processing starts with the first parameter job in the list. When a job from the list is completed, the result is entered directly in the list (FAILED, ACK_DIV and REPORT). If a job was executed, the output PKW_CURRLSTID is incremented. The parameter job list is processed asynchronously and requires several cycles (the duration depends on the length of the list, the block call cycle and the cycle time of the SIDOOR internal bus). The output PKW_REQ remains active as long as processing is in progress. The PKW_REQ output is automatically reset when a communication or diagnostics error occurs during the processing of the job list or when the processing of the list is completed.

Page 22: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 22

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

An active job can be canceled at any time by resetting the input PKW_REQ (the output PKW_CURRLSTID indicates the ID of the last successfully completed job of the parameter job list).

Note After a job, the parameter channel is automatically reset by an empty job. The user does not have to perform this.

The FB can be called in any cycle. However, note that the parameter channel is processed step-by-step. Exactly one step of the parameter job processing is executed with each block call.

1. Checking and starting the parameter job data according to the current list position.

2. Waiting for feedback from the addressed node. 3. Evaluating the feedback and enabling the job interface.

The timeout per parameter list job is limited via the input parameter PKW_TIMEOUT. Depending on the job, the SIDOOR controller requires at least 30 ms for the processing (including feedback) of a parameter job.

Response in the event of fault If the communication or the block is faulty (ERROR ≠ 0000hex and ≠ 0500hex), no parameter job is accepted. The REPORT and FAILED fields of the parameter job list remain unchanged. All SIDOOR control data (CData) is discarded and all fields of the SIDOOR status data (SData) are set to 0.

Page 23: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 23

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

FB error information If an error or a warning occurs during the processing of the function block, the output parameter ERROR contains one of the following error codes. Table 4-3 Error information FB - SIDOOR_PN_DCU_CNTRL

Error code* (W#16#...)

Explanation

0000 Without error, all parameters are valid

0001 Internal block execution was disturbed

0003 Area referenced with PKW_PLST does not have the Byte type

0004 Field size referenced via PKW_PLST is invalid

0005 Destination area referenced with PKW_PLST is not in a data or instance data block

0006 Block referenced with PKW_PLST is write-protected

0010 Error in calling the SFC117 GET_DIAG EXTNERR contains the error code from SFC117

0040 Error in calling the SFC14 DPRD_DAT EXTNERR contains the error code from SFC14

0050 Error in calling the SFC15 DPWR_DAT EXTNERR contains the error code from SFC15

0100 Job timeout, the specified timeout (PKW_TIMEOUT) was exceeded unanswered parameter job

0200 Response cannot be assigned, contains a deviating/mismatched parameter number

0400 PKW_AK (Task ID) Unknown – job canceled

0500 Warning: At least one of the list's parameter jobs could not be executed by the node, EXTNERR contains the exact number of the parameter jobs that could not be executed

2000 A diagnostics interrupt is pending

* The error codes can be displayed as integer or hexadecimal values in the program editor.

AK – Parameter job identifier Table 4-4 Parameter request/job identifier

Job identifier Description Access

0 No job / empty job

1 Request/read PWE parameter value

2 Change/write PWE parameter value 16-bit

3 Change/write PWE parameter value 32-bit

4 Request PBE (parameter description element) *[1]

5 Change PBE (parameter description element) *[1]

6 Request/read PWE parameter value *[2] Array

7 Change/write PWE parameter value *[2] Array, 16-bit

8 Change/write PWE parameter value *[2] Array, 32-bit

9 Request/read number of array elements

*[1] The element number used is transferred in the IND array subindex. *[2] The position in the array is stated in the IND array subindex.

Page 24: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 24

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

PBE – Parameter description Refer to SIDOOR system manual \3\. The notation of the parameter description (PBE) states the element number of the parameter description in the subindex IND array.

Response error code If parameter jobs cannot be executed, the SIDOOR controller sends the response ID "Job not executable", and transfers the corresponding error ID in the parameter value (PWE). In this case, the FAILED bit of the corresponding parameter job is set. Table 4-5 Error IDs cannot be executed for job

Error ID Description

0 Impermissible parameter ID

1 Parameter value cannot be changed.

2 Parameter limits not observed

3 Sub-index outside the array

4 Parameter is not an array

5 Parameter type is invalid (mismatch word and double word)

102 Communication channel too small for the required response

104 Invalid value, parameter allows only certain values.

106 Request not observed or task not supported.

Page 25: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 25

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Block interface Figure 4-8 FB - SIDOOR_PN_DCU_CNTRL

Table 4-6 Parameter FB - SIDOOR_PN_DCU_CNTRL

Parameter Declaration Data type Description

LADDR INPUT HW_SUBMODULE Hardware identifier of the SIDOOR controller's "22-byte I/O" submodule.

PKW_PLST INPUT Any Pointer to the source area of the parameter job list (array of type SIDOOR_PLST_ENTRY). The pointer must have the Byte type and must reference only data or instance data blocks. When the job starts (with rising edge at PKW_REQ) the value is buffered inside the block.

PKW_TIMEOUT INPUT Time Maximum processing time per parameter job, before the current parameter job is terminated with a timeout error (default: 500 ms).

PLST_BACKUP INPUT Bool ATTENTION: PLST_BACKUP = 1 this option is used to enable the Backup mode of the function block. In Backup mode, the PWE field of the current job is overwritten with the read parameter value if the read jobs are successful the REPORT and PWE arrays are synchronized.

CData INPUT SIDOOR_CDAT Source area of the SIDOOR control data, see UDT - SIDOOR_CDAT.

ERROR OUTPUT Word FB error information

EXTNERR OUTPUT Word Detailed FB error information

PKW_CURRLSTID OUTPUT Int List position of the last successfully processed parameter job (0 if none were processed).

SData OUTPUT SIDOOR_SDAT Destination area of the SIDOOR status data, see UDT - SIDOOR_SDAT.

PKW_REQ IN_OUT Bool PKW_REQ=1 starts the processing of the referenced parameter job list. PKW_REQ=0 terminates the current processing of the referenced parameter job list. Is automatically reset when the processing is completed or an error occurs during processing.

Page 26: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 26

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.5 FB - PSG_BLOCK_SYNC

The SIDOOR ATE530S controller has an automatic obstruction detection and response system. The "PSG_BLOCK_SYNC" function block is used to synchronize the individually configured response after an obstruction is detected in a PSG system with two independent door panels.

Block interface The function block processes the status data of the two SIDOOR ATE530S controllers to be synchronized and operates the synchronization interface provided by "PSG_CNTRL" function block. Figure 4-9 FB – PSG_BLOCK_SYNC

Table 4-7 Parameter FB - PSG_BLOCK_SYNC

Parameter Declaration Data type Description

SDAT_A INPUT SIDOOR_SDAT Source area of the SIDOOR status data of door panel A assigned to the PSG.

SDAT_B INPUT SIDOOR_SDAT Source area of the SIDOOR status data of door panel B assigned to the PSG.

BLKSyncCls_A OUTPUT PSG_BLK_SYNC Destination area for the data of the synchronization interface of door panel A assigned to the PSG.

BLKSyncCls_B OUTPUT PSG_BLK_SYNC Destination area for the data of the synchronization interface of door panel B assigned to the PSG.

Configuration/adaptation The following constants are defined in the function block and can be customized depending on the application: • BLK_CLS_DIST_SLOW_SPEED: the area around the obstruction location

given as a percentage at which the slow door profile is switched. If the constants are set to the value 0, the slow approach to an obstruction point is not synchronized.

• BLK_CLS_DIST_SYNC_DEC: the area given as a percentage at which the slow door profile is switched for a reverse reaction. This area is dynamic and refers to the current position of the blocked door panel.

• BLK_CLS_MAX_ACTION: indicates the maximum number of obstruction responses at an obstruction in the PSG system. In this example, the counter is reset when both door panels assigned to the PSG system are closed.

Page 27: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 27

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.6 FC - PSG_UPDATE_INPUT_SIGNALS

In this application example, the digital control signals of the "Interconnect Board" are read in via the distributed I/O (ET200SP) for each platform screen door, see Figure 1-1 Platform System Concept. The function PSG_UPDATE_INPUT_SIGNALS reads the process data from the addressed digital input module (DI 16x24VDC ST- 6ES7 131-6BH00-0BA0) and returns a structure of type UDT - PSG_INPUT_SIGNALS_DAT. For this purpose, each of the digital input models is to be assigned as follows: Table 4-8 Channel assignment for distributed I/O (digital inputs)

Channel Local signal Channel Local signal

a.0 Automatic mode a.1 Isolate

a.2 Manual mode a.3 Open

a.4 Close a.5 Unlock 1

a.6 Unlock 2 a.7 Closed 1

b.0 Closed 2 b.1 Emergency exit 1 closed

b.2 Emergency exit 1 locked b.3 Emergency exit 2 closed

b.4 Emergency exit 2 locked b.5 -

b.6 - b.7 -

Figure 4-10 FC - PSG_UPDATE_INPUT_SIGNALS

Table 4-9 Parameter FC - PSG_UPDATE_INPUT_SIGNALS

Parameter Declaration Data type Description

DP_INPUTS_ADDR INPUT HW_SUBMODULE Hardware ID of the digital input module (DI 16x24VDC ST)

InputSignals OUTPUT PSG_INPUT_SIGNALS_DAT Destination area for the decoded input data of the digital input module

ERROR OUTPUT Word Error code

EXTNERR OUTPUT Word Detailed information on the error code

FC error information If an error or a warning occurs while the function is being executed, the o parameter ERROR contains one of the following error codes. Table 4-10 Error codes FC - PSG_UPDATE_INPUT_SIGNALS

Error code* (W#16#...)

Explanation

0000 No error occurred.

0040 An error was detected during read access to the addressed module. Error in calling the SFC14 DPRD_DAT EXTNERR contains the error code from SFC14.

* The error codes can be displayed as integer or hexadecimal values in the program editor.

Page 28: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 28

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.7 FC - PSG_UPDATE_OUTPUT_SIGNALS

In this application example, the digital status signals are read in via the the distributed I/O (ET200SP) for each platform screen door, see Figure 1-1 Platform System Concept. The function PSG_UPDATE_OUTPUT_SIGNALS writes data of type UDT - PSG_OUTPUT_SIGNALS_DAT to the process image from the addressed digital output module (DQ 4x24VDC ST – 6ES7 132-6BD20-0BA0 / 6ES7 132-6BH00-0BA0). For this purpose, each of the digital output modules is to be assigned as follows: Table 4-11 Channel assignment for distributed I/O (digital outputs)

Channel Local signal Channel Local signal

0 Signalization: Door open 1 Signalization: Door closes

2 Signalization: Ready to depart 3 -

Figure 4-11 FC - PSG_UPDATE_OUTPUT_SIGNALS

Table 4-12 Parameter FC - PSG_UPDATE_OUTPUT_SIGNALS

Parameter Declaration Data type Description

DP_OUPUTS_ADDR INPUT HW_SUBMODULE Hardware ID of the digital output module (DQ 4x24VDC ST).

OutputSignals INPUT PSG_OUTPUT_SIGNALS_DAT Source area for the data to be written to the task output group.

ERROR OUTPUT Word Error code

EXTNERR OUTPUT Word Detailed information on the error code

FC error information If an error or a warning occurs while the function is being executed, the o parameter ERROR contains one of the following error codes. Table 4-13 Error codes FC - PSG_UPDATE_OUTPUT_SIGNALS

Error code* (W#16#...)

Explanation

0000 No error occurred.

0050 An error occurred during write access to the addressed module. Error in calling the SFC15 DPWR_DAT EXTNERR contains the error code from SFC15.

* The error codes can be displayed as integer or hexadecimal values in the program editor.

Page 29: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 29

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.4.8 FC - DCU_DECODE_EVENT_LIST

Description All the system faults and warnings are retentively stored in an event list in the SIDOOR controller so that all the events can still be called up chronologically even after a power failure. Each event has a time stamp based on the system start of the SIDOOR controller.

32-bit event list entry

24-bit 8-bit

Seconds since the event entry was added. 0 s if the event entry was added before the last system start. Event code

The function DCU_DECODE_EVENT_LIST decodes a parameter read job element of the type UDT - SIDOOR_PLST_ENTRY in an element of the type UDT - DCU_EVENT_DAT. The function automatically checks the job status and returns an empty DCU_EVENT_DAT element in case of a fault (all data fields are hereby 0 and the status code field contains the ASCI character 0x20). Figure 4-12 FC - DCU_DECODE_EVENT_LIST

Table 4-14 Parameter FC - DCU_DECODE_EVENT_LIST

Parameter Declaration Data type Description

EventParam INPUT SIDOOR_PLST_ENTRY Source area for the data of an parameter job list entry which is to be decoded in a SIDOOR event list entry.

EventData OUTPUT DCU_EVENT_DAT Destination area for the data of the decoded SIDOOR event list entry.

Page 30: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 30

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.5 PLC tags The use and interconnection of the following PLC tags is only an example and can be adjusted or extended according to the target application. Table 4-15 PLC tags

Tag Data type Description Address

Platform

DCUs_Enable Bool Global Enable signal for all platform screen doors.

M3.0

DCUs_Open Bool Global open signal for all platform screen doors.

M3.1

LCP_Active Bool The global digital control signals are set by a local control panel. The PLC's digital outputs are invalid local control panel is active.

M3.7

LCP_Enable Bool Enable signal from local control panel M4.5

LCP_Open Bool Open signal from local control panel M4.6

DisableClosingSounder Bool Disables the signal for acoustic/visual signaling when door is closing.

M4.7

Platform screen door 1

DCU_1_Inhibit Bool Platform screen door 1 is set to inhibit. M5.0

DCU_1_StartLearnRun Bool Requests a learn run for platform screen door 1. (requirement must be active for around 3 seconds at the start of the learn run).

M5.2

Platform screen door 2

DCU_2_Inhibit Bool Platform screen door 2 is set to inhibit. M5.1

DCU_2_StartLearnRun Bool Requests a learn run for platform screen door 2 (requirement must be active for around 3 seconds at the start of the learn run).

M5.3

Commissioning / testing

EnableCycleRun Bool Enables cyclic test run via global digital signals. Attention: Sets "DCUs_Enable" signal and toggles the "DCUs_Open" signal every 7s.

M5.5

Page 31: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 31

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6 PLC data types

4.6.1 UDT - DCU_CMD_DAT

The following table shows the data elements of the PLC data type "DCU_CMD_DAT" and their descriptions: Table 4-16 Structure UDT - DCU_CMD_DAT

Element Data type

Description

Enable Bool Enable = 1: Activation of the enable signal for controlling the door.

Open Bool Open = 1: Activation of the signal for opening the door. Otherwise, the door will be closed.

Inhibit Bool Inhibit = 1: Activation to inhibit any controlling of the door.

StartLearnRun Bool StartLearnRun = 1: A rising edge signal of at least 3 seconds start the learn run of the door control unit. The enable signal "Enable" must be set.

4.6.2 UDT - DCU_EVENT_DAT

The following table shows the data elements of the PLC data type "DCU_EVENT_DAT" and their descriptions: Table 4-17 Structure UDT - DCU_EVENT_DAT

Element Data type Description

Days Int Number of days after system start since the event occurred.

Hours Int Number of hours after system start since the event occurred.

Minutes Int Number of minutes after system start since the event occurred.

Seconds Int Number of seconds after system start since the event occurred.

StatusCode Char Event status code

4.6.3 UDT - PSG_CONDITION_MONITOR_DAT

The following table shows the data elements of the PLC data type "PSG_CONDITION_MONITOR_DAT" and their descriptions: Table 4-18 Structure UDT - PSG_CONDITION_MONITOR_DAT

Element Data type

Description

OpeningBlockCnt USInt Number of obstructions in the opening direction.

ClosingBlockCnt USInt Number of obstructions in the closing direction.

OpenTimeExceedsLimit Bool OpenTimeExceedsLimit = 1: Opening time > 3.5 s

CloseTimeExceedsLimit Bool CloseTimeExceedsLimit = 1: Closing time > 3.5 s

MotorTemp Real Motor temperature

DCUTemp Real Control unit temperature

OpenProfileExceedsLimit Bool OpenProfileExceedsLimit = 1: Limits of the opening profile are exceeded

CloseProfileExceedsLimit Bool CloseProfileExceedsLimit = 1: Limits of the closing profile are exceeded

VandalismProtectionActive Bool VandalismProtectionActive = 1: Continuous door monitoring was enabled.

Page 32: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 32

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.4 UDT - PSG_FAULT_MONITOR_DAT

The following table shows the data elements of the PLC data type "PSG_FAULT_MONITOR_DAT" and their descriptions: Table 4-19 Structure UDT - PSG_FAULT_MONITOR_DAT

Element Data type

Description

EnableFault Bool EnableFault = 1: Illegal state of safe ENABLE signal of door control unit is active.

OpenFault Bool OpenFault = 1: The OPEN signal of the door control unit was enabled without valid ENABLE signal.

EnableCmdFault Bool EnableCmdFault = 1: The Remote enable command failed.

OpenCmdFault Bool OpenCmdFault = 1: The Remote open command failed.

DoorFailedToOpen Bool DoorFailedToOpen = 1: It could not be opened within a defined period.

DoorFailedToClose Bool DoorFailedToClose = 1: It could not be closed within a defined period.

ERMFault Bool ERMFault = 1: The safe digital input of emergency unlocking on the SIDOOR device is faulty.

ERMInhibitFault Bool ERMInhibitFault = 1: After the off delay of the emergency unlocking, no door motion is detected despite a valid enable or open/close signal.

CommFaul Bool CommFaul = 1: Faulty PROFINET communication.

OperatingFailed Bool OperatingFailed =1: The door control unit could not switch to the "ReadyToOperate" state within the defined time.

LearnRunFault Bool LearnRunFault = 1: Error detected during learn run.

DCUFault Bool DCUFault = 1: Fault detected in the door control unit. An acknowledgment of the fault is required.

DCUWarning Bool DCUWarning = 1: Warning detected in the door control unit. An acknowledgment of the warning is not required.

HomingError Bool HomingError = 1: The door control unit could not switch to normal mode after POR.

Page 33: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 33

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.5 UDT - PSG_INPUT_SIGNALS_DAT

The following table shows the data elements of the PLC data type "PSG_INPUT_SIGNALS_DAT" and their descriptions. Table 4-20 Structure UDT - PSG_INPUT_SIGNALS_DAT

Element Data type

Description

DataValid Bool DataValid =1: All elements in the data type are valid.

AutoModeActive Bool AutoModeActive = 1: Automatic mode of door system is enabled.

Isolated Bool Isolated =1: Door system is isolated from the entire system.

ManualMode Bool ManualMode = 1: Manual mode of door system is enabled.

OpenSignal Bool OpenSignal =1: Door-opening signal is enabled.

CloseSignal Bool CloseSignal =1: Door-closing signal is enabled.

Unlocked1 Bool Unlocked1 = 1: Unlocking sensor 1 enabled for door panel.

Unlocked2 Bool Unlocked2 = 1: Unlocking sensor 2 enabled for door panel.

Closed1 Bool Closed = 1: End position sensor 1 enabled for closed position.

Closed2 Bool Closed = 1: End position sensor 2 enabled for closed position.

EmerDoor1Closed Bool EmerDoor1Closed = 1: Emergency door 1 closed.

EmerDoor1Locked Bool EmerDoor1Locked = 1: Emergency door 1 locked.

EmerDoor2Closed Bool EmerDoor2Closed = 1: Emergency door 2 closed.

EmerDoor2Locked Bool EmerDoor2Locked = 1: Emergency door 2 locked.

4.6.6 UDT - PSG_OUTPUT_SIGNALS_DAT

The following table shows the data elements of the PLC data type "PSG_OUTPUT_SIGNALS_DAT" and their descriptions. Table 4-21 Structure UDT - PSG_OUTPUT_SIGNALS_DAT

Element Data type

Description

ClosingSounder Bool ClosingSounder = 1: Signal for acoustic/visual signaling when door is closing. The signal has the value 1 until the door is closed.

OpeningLight Bool OpeningLight = 1: Signal for acoustic/visual signaling when door is opening. The signal has the value 1 until the door is closed.

ReadyToDepart Bool This signal is not currently occupied and can be freely used.

Page 34: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 34

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.7 UDT - PSG_STATUS_MONITOR_DAT

The following table shows the data elements of the PLC data type "PSG_STATUS_MONITOR_DAT" and their descriptions. Table 4-22 Structure UDT - PSG_STATUS_MONITOR_DAT

Element Data type Description

UnlockOutputSet Bool UnlockOutputSet = 1: The SIDOOR device has set the digital output for door unlocking.

DoorFullyOpen Bool DoorFullyOpen = 1: The door has reached the open position and is fully open.

DoorObstructed Bool DoorObstructed =1: The door was obstructed in opening or closing direction.

ERMActive Bool ERMActive = 1: The safe digital input of emergency unlocking on the SIDOOR device was enabled.

OpenCmd Bool OpenCmd = 1: The digital input for opening the door on the SIDOOR device was enabled.

EnableCmd Bool EnableCmd = 1: The safe digital input for enabling the door on the SIDOOR device was enabled.

AutoMode Bool AutoMode = 1: The digital input for reading in the automatic mode at the distributed I/O was enabled.

IsolateMode Bool IsolateMode = 1: The digital input for reading in the isolation mode at the distributed I/O was enabled.

ManualMode Bool ManualMode = 1: The digital input for reading in the manual mode at the distributed I/O was enabled.

DoorClosed Bool DoorClosed =1: The door has reached the closed position and is fully closed.

DoorClosing Bool DoorClosing = 1: The door travels from the open position to the closed position.

DoorOpening Bool DoorOpening = 1: The door travels from the closed position to the open position.

DateSet Bool DateSet = 1: The open and closed positions were determined by SIDOOR devices.

DoorInhibit Bool DoorInhibit = 1: Alarm to inhibit a door from opening.

RemoteEnableCmd Bool RemoteEnableCmd = 1: Remote enable signal to the SIDOOR device is enabled.

RemoteOpenCmd Bool RemoteOpenCmd = 1: Remote open signal to the SIDOOR device is enabled.

LearnRunComplete Bool LearnRunComplete = 1: Confirmation from SIDOOR device that the learn run was completed successfully.

SoftwareVersionNumber Array[0..2] of Word

Software version of SIDOOR device based on major version, minor version and build version.

Page 35: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 35

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.8 UDT - SIDOOR_CDAT

The data type SIDOOR_CDAT maps the process data structure of the SIDOOR control data. Refer to the SIDOOR system manual \3\ TSW0-1 (technology control words). Table 4-23 Structure UDT - SIDOOR_CDAT

Element Data type Description

CrlW Struct Control word 1 (STW1)

ON_OFF1 Bool ON_OFF1 = 1 Switch drive ready to operate (master switched on and voltage ready) ON_OFF1 = 0 Not ready to switch on (master switched off and voltage off) switch-off according to defined ramp → corresponds to stop Note: The positive edge is decisive (0 → 1).

NoOFF3 Bool NoOFF3 = 1 OFF 3 command is canceled NoOFF3 = 0 Fast stop of the drive, pause motor, i.e. stop

EnableOperation Bool EnableOperation = 1 Enable operation, execution of the door commands (evaluation of technology control words) EnableOperation = 0 No execution of the door commands

AckFault Bool AckFault = 1 Acknowledge fault AckFault = 0 No meaning Note: The positive edge is decisive (0 → 1).

CtrlFromPLC Bool CtrlFromPLC = 1 PLC control (IO controller) Process data is marked as valid and thus accepted and put into effect CtrlFromPLC = 0 No PLC (IO controller) control, process data invalid, local operation, possible signs-of-life are excluded from this (master monitoring) Note: First set to bit to 1 when control has been requested from IO device (ZSW1 Bit 9 = 1)

DCMD Byte Door command / drive order (enumerative)

DCMDExten Struct Extension/modification of the door commands

SlowActive Bool Slow door profile

SpecialActive Bool Special mode

DCOPSActive Bool Door Closed / Opened Position Sensor

DRSActive Bool Reversing function

BLKSync Bool Synchronization request after obstruction

DESTPos Word Position specification in [mm] (only valid in combination with specific drive order)

Page 36: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 36

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.9 UDT - SIDOOR_SDAT

The data type SIDOOR_SDAT maps the process data structure of the SIDOOR status data. Refer to SIDOOR system manual \3\ TZW0-5 (Technology status words). Table 4-24 Structure UDT - SIDOOR_SDAT

Element Data type Description

StatW Struct Status word (StatW)

ReadyToSwitchOn Bool Ready to switch on

ReadyToOperate Bool Ready to operate

OperationEnabled Bool Operation enabled

Fault Bool Fault (fault active)

NoOFF3 Bool No OFF 3 (no fast stop)

SwitchOnInhibit Bool Switch-on inhibited

Warning Bool Warning (warning active)

PLCCtrlRequested Bool PLC control requested

CmdDiscrepancy Bool Command discrepancy

DStat Byte Current door state (enumerative)

DMode Byte Current door mode (enumerative)

WaitCmd Bool WaitCmd = 1The system suppresses the current door command and waits for a door command change.

MotMode Bool MotMode = 1 Motor energized.

ERM Bool ERM = 1 Emergency unlocking mode active, system is freewheeling and motor de-energized.

DReverse Bool DReverse = 1 Door reverses, the controlled direction of movement is inverted.

FINHIBCLS Byte Deviation of the inhibiting force in the closing direction against the friction determined in the last learn run as a percentage (enumerative).

FINHIBOP Byte Deviation of the inhibiting force in the opening direction against the friction determined in the last learn run as a percentage (enumerative).

DBlk Struct Obstruction of the door

BlkOpeningActive Bool BlkOpeningActive = 1 Obstruction in the opening direction was detected.

BlkClosingActive Bool BlkClosingActive = 1 Obstruction in the closing direction was detected.

BlkStat Bool BlkStat = 1 Configured response to a detected obstruction is active (e.g. door reversed).

StatCode Byte Current status code of the status display. (Signal contains the ASCII code of the character for operating state display)

DIn Struct Digital inputs

InputActive_0 Bool InputActive_0 = 1 Input 0 active (DIN0)

InputActive_1 Bool InputActive_1 = 1 Input 1 active (DIN1)

InputActive_2 Bool InputActive_2 = 1 Input 2 active (DIN2)

InputActive_3 Bool InputActive_3 = 1 Input 3 active (DIN3)

InputActive_4 Bool InputActive_4 = 1 Input 4 active (DIN4)

Page 37: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 37

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

Element Data type Description

SDIn Struct Status of safe digital input signals

SDIn0_Active Bool SDIn0_Active = 1 Output safe FBLOCK SAND0 is active

SDIn1_Active Bool SFIn1_Active = 1 Output of safe FBLOCK SAND1 is active

SDInFault Struct Error status of safe digital input signals

SDIn0_Active Bool SDIn0_Active = 1 Safe FBLOCK SAND0 in "Fault"

SDIn1_Active Bool SDIn1_Active = 1 Safe FBLOCK SAND1 in "Fault"

SFIn Struct Status of safe frequency-based input signals

SFIn0_Active Bool SFIn1_Active = 1 Output of safe FBLOCK FRQ0 is active

SFIn1_Active Bool SFIn1_Active = 1 Output of safe FBLOCK FRQ1 is active

SFInFault Struct Error status of safe frequency-based input signals

SFIn0_Failed Bool SFIn0_Failed = 1 Safe FBLOCK FRQ0 in "Fault"

SFIn1_Failed Bool SFIn1_Failed = 1 Safe FBLOCK FRQ1 in "fault"

DOut Struct Digital outputs

OutputActive_0 Bool OutputActive_0 = 1 Output 0 active (DQ0)

OutputActive_1 Bool OutputActive_1 = 1 Output 1 active (DQ1)

SysLoad Byte Current total system load in [%] (comprised from motor and control unit together)

DPos Byte Door position in % (note: The value is only valid in normal mode.) The door positions 100% and 0% can only be reached in combination with the "Open" and "Close" door commands. The door positions 99% and 1% correspond to fully open and fully closed without an active door command. Values between 99% and 1% specify the door position as a percentage. If no valid position value is available, 127 is transferred (> 100%).

VMon1 Word Variable monitoring value 1 (configured via parameter p4700).

VMon2 Word Variable monitoring value 2 (configured via parameter p4701).

Page 38: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

4 Solution

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 38

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

4.6.10 UDT - SIDOOR_PLST_ENTRY

The data type SIDOOR_PLST_ENTRY maps the structure of a parameter list entry. After the parameter job provided via the elements AK, NUM, IND and PWE has been processed, the elements FAILED, ACK_DIV and REPORT are written by the function block SIDOOR_PN_DCU_CNTRL. Table 4-25 Structure UDT - SIDOOR_PLST_ENTRY

Element Data type Description

AK Byte Parameter job identifier, see AK – Parameter job identifier.

NUM Int Parameter number (ID)

IND Byte Field index

PWE DInt Parameter value (only relevant for write jobs AK=2,3,5,7,8)

FAILED Bool FAILED = 1 Parameter job not executable by node, REPORT element contains the corresponding response error code, see Response error code.

ACK_DIV Bool Acknowledgment value in the REPORT element deviates from job value PWE (with write job AK=2,3,5,7,8 only)

REPORT DInt For read job (AK=1,4,6,9) read parameter value For write job (AK=2,3,5,7,8) written parameter value (acknowledgment) For job error (FAILED=TRUE) Response error code

4.6.11 UDT – PSG_BLK_SYNC

The following table shows the data elements of the PLC data type "PSG_BLK_SYNC" and their descriptions. Table 4-26 Structure UDT - PSG_BLK_SYNC

Element Data type Description

Slow_req Bool Slow door profile requested

Sync_state UInt Synchronization state

Page 39: Synchronization of two-panel and independent platform ... · service mode and platform mode (remote) • Freely configurable input signal logic • Support of end position sensors

5 Literature references

SIDOOR PSG Automatisierung Entry ID: 109480495, V1.0, 11/2015 39

S

iem

ens

AG 2

015

All r

ight

s re

serv

ed

5 Literature references Topic Title

\1\ Siemens Industry Online Support

http://support.automation.siemens.com

\2\ Download page of the entry

https://support.industry.siemens.com/cs/de/en/view/109480495

\3\ SIDOOR system manual

http://support.automation.siemens.com/WW/view/en/109477185

\5\ TIA Portal SP1 https://support.industry.siemens.com/cs/ww/en/view/109311724 \7\ SIMATIC S7-1500 http://support.automation.siemens.com/WW/view/en/59191792 \8\ ATE530S

PROFINET GSD file

http://support.automation.siemens.com/WW/view/de/109477258

\9\ Compact operating instructions

http://support.automation.siemens.com/WW/view/de/109477187

\10\ Application example PSD system

https://support.industry.siemens.com/cs/de/en/view/109477186

6 Contact Siemens AG Division Digital Factory Postfach 23 55 90713 Fürth Germany Email: [email protected]

7 History Version Date Change

V1.0 11/2015 First edition