0% found this document useful (0 votes)
200 views224 pages

PAS CFC Bloques Específicos

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
200 views224 pages

PAS CFC Bloques Específicos

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Foreword, Table of Contents

Getting Started 1
SICAM PAS Basics 2
Commands 3
SICAM
Power Automation System Indications 4
Automation Blocks
Measured and Metered Values 5
Special Blocks 6
Sequence Blocks 7
Example 8
Appendix A
References, Index

Release: 14.01.04
E50417-H8976-C287-A1
Notes on Safety This manual does not constitute a complete catalog of all safety measures required for
operating the equipment (module, device) in question because special operating conditions
might require additional measures. However, it does contain notes that must be adhered
for your own personal safety and to avoid damage to property. These notes are highlighted
with a warning triangle and different keywords indicating different degrees of danger:

Danger
means that death, severe injury, or substantial damage to property will occur if the
appropriate safety measures are not taken.

Warning
means that death, severe injury, or substantial damage to property can occur if the appro-
priate safety measures are not taken.

Caution
means that minor injury or damage to property can occur if the appropriate safety measures
are not taken.

Note
is important information about the project, handling the product, or the part of the documen-
tation in question, to which special attention must be paid.

Qualified Personnel
Commissioning and operation of the equipment (module, device) described in this manual
must be performed by qualified personnel only. As used in the safety notes contained in this
manual, qualified personnel are those persons who are authorized to commission, release,
ground, and tag devices, systems, and electrical circuits in accordance with safety
standards.
Use as Prescribed
The equipment (device, module) must not be used for any other purposes than those
described in the Catalog and the Technical Description. If it is used together with third-party
devices and components, these must be recommended or approved by Siemens.
Correct and safe operation of the product requires adequate transportation, storage,
installation and mounting as well as appropriate use and maintenance.
During operation of electrical equipment, it is unavoidable that certain parts of this
equipment will carry dangerous voltages. Severe injury or damage to property can occur if
the appropriate measures are not taken:
• Before making any connections at all, ground the equipment at the PE terminal.
• Hazardous voltages can be present on all switching components connected to the
power supply.
• Even after the supply voltage has been disconnected, hazardous voltages can still be
present in the equipment (capacitor storage).
• Equipment with current transformer circuits must not be operated while open.
• The limit values indicated in the manual or the operating instructions must not be
exceeded; that also applies to testing and commissioning.

Disclaimer of Liability Copyright


Although we have carefully checked the contents of this publication Copyright  Siemens AG 2004 All Rights Reserved
for conformity with the hardware and software described, we cannot This document shall not be transmitted or reproduced, nor shall its
guarantee complete conformity since erorrs cannot be excluded. contents be exploited or disclosed to third persons without prior
The information provided in this User Manual is checked at regular written consent from Siemens. Infringements shall entitle to dam-
intervals and any corrections which might become necessary are age claims. All rights reserved, in particular in case of a patent grant
included in the next releases. Any suggestions for improvement are or utility model registration.
welcome. Registered Trademarks
SIMATIC®, SIMATIC NET®, SINAUT® and SICAM® are registered
The contents of this User Manual are subject to change without pri- trademarks of SIEMENS AG. All other product and brand names in
or notice. this User Manual may be trademarks, the use of which by third per-
5.00.00 sons for their purposes may infringe the rights of their respective
owners.

Siemens Aktiengesellschaft Document No. E50417-H8976-C287-A1


Foreword

Purpose of This manual is a reference document for the graphical and textual
this manual configuration of the SICAM PAS automation by means of the
SICAM PAS automation blocks. The basic knowledge required for the
work with the SICAM PAS automation blocks is provided in Chapter
Basics. The remaining chapters describe the functionality of the
automation blocks as well as the parameterization and connection of
the block inputs and outputs.

Target group This manual is mainly addressed to persons configuring and


parameterizing substation automation systems. These persons should
have already gained experience in the implementation of automation
tasks based on the IEC 61131-3 automation standard.

Scope of validity of This manual is valid for SICAM PAS automation blocks, version 5.0.
this manual

Standards The SICAM PAS automation blocks have been developed in


compliance with the guidelines of the ISO 9001:2000 standard.
The CFC/ST software is based on the international IEC 61131-3
standard for programming languages of programmable logic controllers.

Further support If you have any further questions regarding SICAM PAS automation
blocks, please contact your Siemens sales representative.

Hotline Our Customer Support Center offers you around-the-clock support.


Tel.: ++49 -180 - 5 24 70 00
Fax: ++49 -180 - 5 24 24 71
e-mail: [Link]@[Link]

Training courses If you are interested in our topical training program, please contact our
training center:
Siemens AG
Power Transmission and Distribution
PTD SE Training Center
Humboldtstr. 59
90459 Nuremberg
Germany
Phone: ++49 - 911 - 4 33 70 05
Fax: ++49 - 911 - 4 33 79 29
Internet: [Link]

SICAM PAS Automation Blocks iii


E50417-H8976-C287-A1
Foreword

iv SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Table of Contents

1 Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1.1 Configuration Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2 Starting the Soft PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.2.1 A Task in SICAM PAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

1.2.2 Specifying an Automation Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

1.2.3 Specifying a Command Block (With Interlock) . . . . . . . . . . . . . . . . . . . . . . 13

1.2.4 Soft PLC-Internal Command (Marker Command) . . . . . . . . . . . . . . . . . . . 15

1.3 Compiling the Project Data into the Target System . . . . . . . . . . . . . . . . . 16

1.4 Programming with the ST Programming Language . . . . . . . . . . . . . . . . . . 19

2 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2.1 Programs, Task in the Soft PLC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

2.2 SICAM PAS Process Data Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

2.2.1 Process Data Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.2.2 Components of the Process Data Structure. . . . . . . . . . . . . . . . . . . . . . . . 27

2.2.3 Displaying the Contents of the Process Data Structure . . . . . . . . . . . . . . . 29

2.2.4 Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

SICAM PAS Automation Blocks v


E50417-H8976-C287-A1
Table of Contents

2.3 Data Types Used in the Soft PLC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2.3.1 BOOL(BO) format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2.3.2 BYTE(BY) Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

2.3.3 WORD(W) Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

2.3.4 DWORD(DW) Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

2.3.5 INTEGER(I) Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

2.3.6 REAL(R) Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

2.3.7 TIME(TI) Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

2.3.8 SICAM PAS Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

2.4 Parameterization of the Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . 36

2.5 Checking PAS Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

2.6 CFC Chart-in-Chart Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

2.7 Reusability of Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

2.8 Online Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

3 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

3.1 Command Processing Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

3.1.1 Commands to the Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

3.1.2 System-Internal Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

3.2 PAS_CRCOM - Command Derivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

3.2.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

3.2.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

3.2.3 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

3.3 PAS_COMMCP - Command Output to the Process . . . . . . . . . . . . . . . . . 52

3.3.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

3.3.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

3.3.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

3.3.4 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

vi SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Table of Contents

3.4 PAS_SELC - Marker Command for the Soft PLC . . . . . . . . . . . . . . . . . . . 57

3.4.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

3.4.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

3.4.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

3.4.4 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

4 Indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

4.1 Concept of Indication Processing in the Soft PLC . . . . . . . . . . . . . . . . . . . 64

4.2 PAS_CRI - Creating Indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

4.2.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

4.2.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

4.2.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

4.2.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

4.3 PAS_TSP - Converting Double- into Single-Point Indications . . . . . . . . . . 69

4.3.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

4.3.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

4.3.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

4.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

4.4 PAS_ANDI and PAS_ORI - Logical Link of Indications . . . . . . . . . . . . . . . 72

4.4.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

4.4.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

4.4.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

4.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

4.5 PAS_INVER - Inverting Indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

4.5.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

4.5.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

4.5.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

4.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

SICAM PAS Automation Blocks vii


E50417-H8976-C287-A1
Table of Contents

4.6 PAS_DELAYI - Filtering an Indication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

4.6.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

4.6.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

4.6.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

4.6.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

4.7 PAS_GROUPI - Creating Group Indications . . . . . . . . . . . . . . . . . . . . . . . 83

4.7.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

4.7.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison . . . . . . . . . 85

4.8.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

4.8.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

4.8.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

4.8.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison . . . . . . . . . . . . 91

4.9.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

4.9.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

4.9.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

4.9.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

4.10 PAS_INDIC - Interlocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

4.10.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

4.10.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

4.10.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

4.10.4 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

5 Measured and Metered Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

5.1 Measured/Metered-Value Processing in the Soft PLC . . . . . . . . . . . . . . . . 104

viii SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Table of Contents

5.2 Analog-Value Normalization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

5.2.1 Measuring Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

5.2.2 Analog Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

5.3 PAS_NLC - Non-Linear Characteristic . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

5.3.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

5.3.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

5.3.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

5.4 PAS_ACQ - Metered-Value Processing . . . . . . . . . . . . . . . . . . . . . . . . . . 113

5.4.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

5.4.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

5.4.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

5.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring . . . . . . . . . . . . . . . . 117

5.5.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

5.5.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120

5.5.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

5.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

5.6 PAS_AVG - Mean Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

5.6.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

5.6.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

5.6.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

5.7 PAS_NRP - Slave Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

5.7.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

5.7.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

5.7.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

5.7.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

SICAM PAS Automation Blocks ix


E50417-H8976-C287-A1
Table of Contents

5.8 Arithmetical Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.8.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

5.8.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

5.8.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

5.9 PAS_CMP and PAS_CMPC - Comparison Blocks . . . . . . . . . . . . . . . . . . 138

5.9.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

5.9.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

5.9.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

6 Special Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

6.1 Concept of Special Blocks in the Soft PLC . . . . . . . . . . . . . . . . . . . . . . . . 144

6.2 PAS_SASC - Creating PAS Information . . . . . . . . . . . . . . . . . . . . . . . . . . 145

6.2.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

6.2.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

6.2.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

6.3 PAS_SASS - Splitting PAS Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

6.3.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

6.3.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150

6.3.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152

6.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152

6.4 PAS_TIMERSW - Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

6.4.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

6.4.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

6.4.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156

6.5 PAS_TIMES - Time Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

6.5.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

6.5.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158

6.5.3 Others. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

x SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Table of Contents

6.6 PAS_MUXTEL - Multiplexer for Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

6.6.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

6.6.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

6.6.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

7 Sequence Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163

7.1 PAS_STATE - State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

7.1.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

7.1.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

7.1.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

7.1.4 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

7.2 PAS_TRANS - Transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

7.2.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

7.2.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

7.2.3 Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169

7.2.4 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169

8 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171

8.1 Switchgear Interlock to the Busbar Feeder . . . . . . . . . . . . . . . . . . . . . . . . 172

8.2 Switching Sequences in the Soft PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

8.2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

8.2.2 General Example of Switching Sequences . . . . . . . . . . . . . . . . . . . . . . . . 177

8.3 Transformer Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

SICAM PAS Automation Blocks xi


E50417-H8976-C287-A1
Table of Contents

A Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

A.1 Components of the Process Data Structure . . . . . . . . . . . . . . . . . . . . . . . 188

A.1.1 Cause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

A.1.2 Cause Category . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

A.1.3 Additional Cause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

A.1.4 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

A.1.5 Extended Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

A.1.6 Value Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

A.1.7 Type of Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

A.1.8 Identification Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

A.1.9 Additional Information Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

A.2 Diagnostic Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196

A.3 Data Types of the SICAM PAS Process Data Structure . . . . . . . . . . . . . . 198

xii SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Getting Started 1
Overview This example in this chapter illustrates how to start the soft PLC and how
to connect and specify a block in the soft PLC.

Contents 1.1 Configuration Procedure 2

1.2 Starting the Soft PLC 3

1.3 Compiling the Project Data into the Target System 16

1.4 Programming with the ST Programming Language 19

SICAM PAS Automation Blocks 1


E50417-H8976-C287-A1
1 Getting Started

1.1 Configuration Procedure

The figure below explains the basic steps for the configuration of a
system using the SICAM PAS automation blocks.

SICAM PAS UI - Configuration


Insert a soft PLC
interface

SICAM PAS UI - Configuration SICAM PAS UI - Configuration


Specify values Open the automation
editor

Automation editor
Create the program

Automation editor
Compile the program

Automation editor SICAM PAS UI - Operation


Close Restart the soft PLC

Figure 1-1 Configuration Procedure

2 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

1.2 Starting the Soft PLC

Requirements The example in this chapter is based on the Getting Started chapter of
the SICAM PAS Configuration and Operation manual. For this reason,
the following requirements must be met before starting the soft PLC:
• A system has been created in SICAM PAS UI - Configuration.
• A soft PLC exists within this system.

[Link]

Figure 1-2 SICAM PAS UI - configuration window

SICAM PAS Automation Blocks 3


E50417-H8976-C287-A1
1 Getting Started

Opening SICAM • Open SICAM PAS UI - Configuration via the Windows start menu:
PAS UI - SICAM > PAS > PAS UI Configuration.
Configuration
• Click the Mapping tab.
and mapping
values • Click with the left mouse button to select and open SoftPLCMaster in
the mapping tree.
• Map the value monitoring direction and the value command direction.

[Link]

Figure 1-3 SICAM PAS UI - Configuration: Mapping

Note:
The CFC variable group and the CFC variable name must be assigned.
They are used as variable names for the PAS interface variables in the
soft PLC.

4 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

Opening the soft To change from the map view to the configuration view:
PLC user interface
• To open SICAM PAS PLCUI, select CFC from the configuration tree
and click Open in the context menu.
The SICAM PAS PLCUI window opens with a project including two empty
files:
• [Link]
This is an empty ST program (textual programming).
• [Link]
This file is always generated automatically. It includes the interface
variables selected in SICAM PAS UI - Configuration.

[Link]

Figure 1-4 SICAM PAS PLCUI

SICAM PAS Automation Blocks 5


E50417-H8976-C287-A1
1 Getting Started

Inserting a new • Select File → New from the pull-down menu.


CFC chart The Create a new file window is displayed.
• Enter a file name, such as CFCPlan, and select FBD/CFC to create
a CFC chart.
• Click OK to confirm.

[Link]

Figure 1-5 Inserting a new CFC chart

6 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

The CFC editor with the newly created chart "CFCPlan" opens.

[Link]

Figure 1-6 CFC editor with the new CFCPlan chart

SICAM PAS Automation Blocks 7


E50417-H8976-C287-A1
1 Getting Started

1.2.1 A Task in SICAM PAS

Task Tasks do not need to be configured within the framework of the


SICAM PAS soft PLC. A task exists, which considerably simplifies
parameterization. Each time the soft PLC is called up, all programs
specified within the framework of the automation are computed.
The task execution is event-controlled. The following events are
possible:
• New input indication/measured value/metered value
• New command/command acknowledgement
• Interlock request (The central distribution component of the
SICAM PAS - DSI server requests whether a command is interlocked;
Interlocks are specified by means of the soft PLC)
• Timeout (e. g. PAS_TIMERSW, PAS_TRANS)

CFC chart In SICAM PAS, the order of the automation blocks is not specified by any
numbering.
The sequence of execution is determined by the arrangement of the
blocks.
A CFC chart is always processed from top to bottom and from left to right.

8 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

1.2.2 Specifying an Automation Block

The example below explains how to parameterize a block in CFC.

Selecting • After creating a project, click with the right mouse button in the CFC
and inserting box of the CFC editor.
a block
• Select Insert block from the context menu to open the corresponding
window.
• Select the desired block from the Insert block window.
• Click OK to confirm.
• Click with the left mouse button to place the CFC block in the CFC
editor.

[Link]

Figure 1-7 Selecting a block

Note:
All PAS block names start with PAS_.

SICAM PAS Automation Blocks 9


E50417-H8976-C287-A1
1 Getting Started

Specifying the PAS Select values specified in SICAM PAS UI - Configuration for the
interface variable automation program.
(global variable)
• Double-click the left-hand margin bar to display the
Insert global variable window.
• Select a global variable and click Insert to confirm.
The Address and Comment columns in the window are not relevant.

[Link]

Figure 1-8 Selecting a global variable

The values selected in the Insert global variable window have the
following significance:
• Values starting with M_ are master values.
These values are defined by the soft PLC (e. g. group indications,
marker commands).
• Values starting with S_ are slave values.
These values are made available by protocol drivers and further
processed in the soft PLC (e. g. input indications for group indications,
derived commands).
• Values starting with G_ are group values.
Group values are special input values (refer to Slave) for the soft PLC.
They include several individual values. Group values can only be
parameterized in the incoming monitoring direction!

Margin bars in the The left-hand and right-hand margin bars in the CFC editor provide
CFC editor different functions.
The following functions are selected via the left-hand margin bar:
• Commands to the soft PLC
• Incoming indications, metered values and measured values to be
processed
The right-hand margin bar provides the following functions:
• Outgoing commands (command derivation, switching sequence)
• Indications generated by the soft PLC (e. g. group indications,
measured values, metered values)

10 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

Connecting The block is connected to the left-hand or right-hand margin bar or to


a block other blocks.
In the example below, a group indication is formed with PAS_ORI. (refer
to Figure 1-9)
• Double-click with the left mouse button to select a PAS interface
variable.
• Connect the input to the left-hand margin bar.
Select the input of the block and the corresponding indication in the
margin bar.
Select Insert > Connection from the menu. The input is connected.
• The output is connected in a similar way, but you connect the output
to a group indication in the right-hand margin bar.

[Link]

Figure 1-9 Example: Connection of a group indication to PAS_ORI

SICAM PAS Automation Blocks 11


E50417-H8976-C287-A1
1 Getting Started

Creating To describe blocks, you can insert text blocks in the CFC chart.
text blocks
• Select Insert Text Block from the menu bar.
• Click with the left mouse button to place the text block at the desired
location in the CFC chart.
If you want to arrange the text block in a different way, move it to the
desired location via Drag & Drop.
• Click the text block and click with the right mouse button.
Select Properties from the context menu to edit the text.

12 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

1.2.3 Specifying a Command Block (With Interlock)

The example below describes the parameterization of a command


interlock by adding a PAS_COMMCP command block to the CFCPlan
chart.

Inserting a block To insert another block:


into the chart
• Click in the CFC editor.
• Click Insert Block in the context menu to open the corresponding
window.
• Select the block and click OK to confirm.

Description The BVALUE output of the PAS_ORI block is connected to the LOCK
input of PAS_COMMCP. The OUT output is connected at
PAS_COMMCP. The REl_on, REL_OFF inputs for the general interlock
are set to 1. The LOCK input has the value 1.
The command always locks if a group indication is present.

[Link]

Figure 1-10 Example of a command interlock

SICAM PAS Automation Blocks 13


E50417-H8976-C287-A1
1 Getting Started

Grid in the The blocks are arranged in a grid in the CFC chart. They cannot be
CFC editor arranged freely. To simplify parameterization, this grid can be shown.
Select View > Grid (CFC) from the menu bar to show or hide the grid.

Specifying All inputs and outputs of the blocks are always displayed. The default
blocks value of the inputs is 0.
(There are two exceptions, refer to Preassignment of the PAS_SELC,
Table 3-5 on page 58 and PAS_CRCOM blocks, Table 3-1 on page 46).
To assign another value to an input:
• Select the input.
• Click with the right mouse button. Open the Properties window via
the context menu. Next, click the Default Value tab.
• Insert the new value and click OK to confirm.

[Link]

Figure 1-11 Assigning a value to the input of a block

14 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.2 Starting the Soft PLC

1.2.4 Soft PLC-Internal Command (Marker Command)

The example below illustrates the parameterization of a soft PLC-internal


command (marker command).

Inserting a block • The PAS_SELC command block is inserted as described in


into the chart Chapter 1.2.3 Specifying a Command Block (With Interlock).
• Assign the LOCK, REL_ON, REL_OFF and TERM_POS inputs with
values.

Connecting • Insert a command (master command) in the left-hand margin bar.


a block
• Select the IN input.
• Connect the command in the left-hand margin bar to the IN input.

[Link]

Figure 1-12 Example: Soft PLC-internal command

The PAS_SELC block is not connected completely. As an example,


the outputs may be used to start switching sequences.

SICAM PAS Automation Blocks 15


E50417-H8976-C287-A1
1 Getting Started

1.3 Compiling the Project Data into the Target System

Prior to the All programs which are to be processed must be linked first.
compilation
• Select the desired program from the project navigator via the Files
tab.
• Click with the right mouse button and select Link to Resource...
from the context menu.
• Select the Resources tab.
All programs which are to be compiled must be available in the project
navigator.

[Link]

Figure 1-13 Resources tab with successfully linked "CFCPlan" project

Note:
Each program must be selected individually and assigned to a resource.
Multiple selection is not possible.
This step is important for the soft PLC and must not be forgotten!

16 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.3 Compiling the Project Data into the Target System

Optimizing the The following options are available to optimize the compilation process
compilation and to adapt it to your requirements:
• Speed only
The machine code is generated directly - no debugging is possible
(fast execution).
• Size only
Interpreter code, debugging is possible (slow execution). This is the
default setting and is appropriate for test purposes. When all testing
and commissioning tasks have been completed, switch to the normal
setting.
• normal
This option corresponds to speed only.
This setting is performed via the Resources tab.
• Select Resource from the project navigator.
• Click with the right mouse button and select
Properties from the context menu.
Select the desired option from the Edit Resource Specifications
window which is now displayed.

Note:
As soon as all programming and test steps have been completed, the
system should be switched over to normal for performance reasons.

SICAM PAS Automation Blocks 17


E50417-H8976-C287-A1
1 Getting Started

Compilation The project is compiled as follows:


• Save all programs before the compilation.
• Call up the compilation.
• If an error occurs, you can fix it by clicking with the left mouse button
on the error in the output window. The cursor jumps to the error
location.
• Fix the error.
• Repeat the compilation process.
As soon as the compilation has been completed successfully, the
program and the project data are written automatically into the
PAS database.
The new program is used after a restart of the soft PLC driver.

[Link]

Figure 1-14 Successful compilation, compilation message displayed in the output window

18 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.4 Programming with the ST Programming Language

1.4 Programming with the ST Programming Language

In addition to the graphical CFC programming language, the textual ST


programming language is also available in SICAM PAS.
This allows both graphical and textual programming.
A group indication is specified with PAS_ORI here
(compare with CFCPlan, refer to Figure1-9).

[Link]

Figure 1-15 Programming with the ST programming language

SICAM PAS Automation Blocks 19


E50417-H8976-C287-A1
1 Getting Started

The following steps are required for programming with ST:


• Copy the required variables from [Link].
• Insert them in [Link] into the VAR_EXTERNAL variable zone, i. e.
into the upper window pane (refer to Figure 1-16).

[Link]

Figure 1-16 Programming with ST - variables declaration and program code window pane

20 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
1.4 Programming with the ST Programming Language

[Link]

Figure 1-17 ST selection window

To create a function block instance in the VAR variable zone:


• Enter the variable name with a colon, in this example FB_ORI:
• Select Insert > Function Block.
• Select the desired block from the Function Blocks window. (refer to
Figure 1-17).
• Terminate the row with a semicolon.
• Write the desired program code in ST (lower window).
• Select File > Check Syntax to check the created program for syntax
errors.
• If an error is displayed, double-click the error row in the
output window. The cursor jumps to the row including the error.
• Fix the error.

SICAM PAS Automation Blocks 21


E50417-H8976-C287-A1
1 Getting Started

22 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Basics 2
Overview This chapter defines rules and provides basic knowledge regarding the
graphical and textual configuration of SICAM PAS in the soft PLC. These
rules and basics are a prerequisite.

Configuration and consistency rules must be strictly followed to prevent


the creation of incorrect information or a data loss.
The following distinctions must be made for the consistency check of
PAS data types:
• Process information, indications, metered values, measured values,
derived commands (PASDATABLOCK)
• Group indications (PASGROUP)
• Commands (PASCOMMANDBLOCK)
The compiler outputs error messages if the SICAM data types are not
connected properly.

SICAM PAS UI - Config ensures that the variable names are unique.
An incorrect interconnection of process information (indications,
measured values and metered values) is prevented by the blocks.
Processing does not take place in this case.

Contents 2.1 Programs, Task in the Soft PLC 24

2.2 SICAM PAS Process Data Structure 25

2.3 Data Types Used in the Soft PLC 31

2.4 Parameterization of the Inputs and Outputs 36

2.5 Checking PAS Information 37

2.6 CFC Chart-in-Chart Technology 38

2.7 Reusability of Programs 39

2.8 Online Connection 40

SICAM PAS Automation Blocks 23


E50417-H8976-C287-A1
2 Basics

2.1 Programs, Task in the Soft PLC

Program A program is an executable program unit which corresponds a program


file on the file level. In the example, [Link] or [Link] would
be a program each.

Task One single task exists in the SICAM PAS soft PLC, which considerably
simplifies parameterization. During each execution of the soft PLC, all
linked programs are computed.
The task start is event-controlled. The following events are possible:
• New input indication/measured value/metered value
• New command/command acknowledgement
• An interlock request (the central distribution component of the
SICAM PAS - DSI server requests whether a command is interlocked;
interlocks are specified via the soft PLC)
• Timeout (e. g. PAS_TIMERSW, PAS_TRANS)
Cyclic sequences can be realized via PAS_TIMERSW.

24 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.2 SICAM PAS Process Data Structure

2.2 SICAM PAS Process Data Structure

General Die SICAM PAS process data of the PASDATABLOCK data type are
arranged according to a defined structure, the so-called SICAM PAS
process data structure (refer to Chapter 2.2.1).
The SICAM PAS process data structure is subdivided in individual,
uniquely positioned structure blocks. The structure blocks comprise
information and included additional information such as a time stamp,
status, cause, etc. The unique position of the structure blocks allows a
unique addressing of different items of partial information within the
SICAM PAS process data structure.
The SICAM PAS process data structure is mapped in the main memory
of the PAS hardware by means of a structured area. The information
mapped here and additional information is combined to PAS information
and distributed within the system, i. e. it is available at any location within
the PAS system.
Due to the unique structure, i. e. the unique position of the structure
blocks within the information structure, specific CFC blocks can be used
to filter partial information from PAS information. In this way, they are
available for logical links or additional processing steps.
The sections below provide basic information on the process data
structure.

SICAM PAS Automation Blocks 25


E50417-H8976-C287-A1
2 Basics

2.2.1 Process Data Structure

The process data structure for indications, measured values, metered


values and command derivations consists of the following components:

27 Change marker 28

223 216 231 224

A1) Cause T2) Origin

Status of the information Extended status

Additional cause Reserve byte

Value type Type of Ident. type Additional info


time type

27 Value 28

223 216 231 224

27 Time stamp 28

223 216 231 224

239 232 un sy so 245 240

ID number

Additional information

1) Address ref.: A=1 The information address refers to the source


A=0 The information address refers to the target
2) T=Test mode bit

Figure 2-1 SICAM PAS process data structure

26 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.2 SICAM PAS Process Data Structure

2.2.2 Components of the Process Data Structure

The table below explains the components of the process data structure.

Table 2-1 Components of the process data structure

Designation in Element Significance Values


CFC

MARKER Change marker The change marker is


incremented when the
CHANGE Change marker process data structure has
(Bit 0) been processed by a
block.

A A(ddress reference) - 0 to 1
determines whether the
information address refers
to the target address or to
the source address.
0: target-oriented
addressing
1: source-oriented
addressing

CAUSE Cause Cause of the information 0 to 127


transmission

TESTMODE T T(est), identifies whether 0 to 1


data have been created in
the normal mode or in the
test mode.

INITCAT Origin Origin of the telegram 0 to 127

STATUS Status 0 to 255


Status of the information
EXSTATUS Extended status 0 to 255

ADDCAUSE Additional cause Detailed cause 0 to 127


specification if required

Reserve byte Filler byte due to the even 0 to 255


word addresses

VALTYPE Type of the value Type of the value 0 to 255


0: irrelevant value

SICAM PAS Automation Blocks 27


E50417-H8976-C287-A1
2 Basics

Table 2-1 Components of the process data structure

Designation in Element Significance Values


CFC

TIMETYPE Time type Type of time 0 to 3


0: no time

IDTYPE Ident. type Type of the ID number 0 to 7


0: Irrelevant
ID number

SUPPTYPE Additional info type Type of additional 0 to 7


information
0: Irrelevant additional
information

DW_VALUE Value (INTEGER) Information whose 0 to 4294967295 for integer


structure is determined by 1.175494351 E – 38 to
R_VALUE Value (REAL) the value type
3.402823466 E + 38 for real

TIMELOW Time stamp Precision: 0.1 milliseconds 0 to


(Bit 16 to 47) The time in the overall 248-1
TIMEHIGH system is synchronized The count starts
Time stamp via the runtime system. as of Jan. 1, 1990 0.00 h
(Bit 0 to 15) The switch from
wintertime to summertime
is performed automatically
if a DCF 77-receiver
is used.

IDNO ID number Depending on the ID no. 0 to 65535


type:
- Fault number
- Feedback identification
- GI cycle

SUPPINFO Additional Depending on the type of 0 to 65535


information additional information:
- Relative time since the
beginning of the fault
- Cause source

An overview of the available component variants and their significance is


provided in Appendix A.1.

28 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.2 SICAM PAS Process Data Structure

2.2.3 Displaying the Contents of the Process Data Structure

Process data (indications, commands, etc.) to be further processed in the


soft PLC may consist of one or several process data structure blocks.

Indications, Indications, measured values, metered values or command derivations


measured values (PAS_CRCOM block) always consist of one process data structure
and metered values block. The PAS_SASS automation block splits PAS information and
displays the individual structure elements (refer to Chapter 6.3).

Commands Commands in the PASCOMMANDBLOCK SICAM PAS data format


consist of several process data structure blocks (composed command
structure).
Blocks for accessing the command structure are not available in PAS.

2.2.4 Pointers

General In SICAM PAS, a process data structure block is designated with


PAS information. Each item of PAS information is stored at a specific
location within the main memory of the soft PLC. This location is
assigned via a unique address and can be identified via this address.
For this reason, no data records are transmitted for the mapping of
PAS information via the CFC/ST. Pointers are set to the corresponding
addresses instead. In this way, the data transfer between the CFC blocks
or the task and the items of PAS information is limited to the transfer of
addresses, i. e. of scalable values.
This address transfer is represented via the graphical user interface of
the soft PLC:
‰ Only addresses are entered in the margin bars of the soft PLC user
interface, i. e. pointers are set.
‰ The pointers are connected to the inputs or outputs of the blocks.

Left-hand margin bar Right-hand margin bar

&A B &B C &C


&A &C

A
Pointer
PD structure

[Link]

Figure 2-2 Access to the process data structure via pointers

SICAM PAS Automation Blocks 29


E50417-H8976-C287-A1
2 Basics

Note:
In the following sections, the term pointer designates the address of an
item of PAS information (process data structure blocks) in the main
memory of the soft PLC.

30 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.3 Data Types Used in the Soft PLC

2.3 Data Types Used in the Soft PLC

General The inputs and outputs of the SICAM PAS automation blocks process
different data types depending on the type of the incoming or outgoing
signals. The following data types are possible:
‰ BOOL (BO)
‰ BYTE (BY)
‰ WORD (W)
‰ DWORD (DW)
‰ INTEGER (I)
‰ REAL (R)
‰ TIME (TI)
‰ PASDATABLOCK
‰ PASCOMMANDBLOCK
‰ PASGROUP
‰ PASSTATELINK

2.3.1 BOOL(BO) format

A variable of the data type BOOL has 1 Bit (internal representation with
32 bits; only one bit is visible for the user). The variable format required
for direct parameterization is indicated in the table below:

Table 2-2 BOOL variable format

Value Range Input Format Representation in the


from ... to Chart

0 or 1 0 FALSE
or FALSE

1 TRUE
or TRUE

False 0

True 1

SICAM PAS Automation Blocks 31


E50417-H8976-C287-A1
2 Basics

2.3.2 BYTE(BY) Format

A variable of the type BYTE consists of 8 bits. The variable format


required for direct parameterization is indicated in the table below:

Table 2-3 BYTE variable format

Value Range Input format Representation in the


from ... to (default: Dec.) Chart

0 to 255 dec. 28 28

2.3.3 WORD(W) Format

A variable of the type WORD consists of 16 bits. The variable format


required for direct parameterization is indicated in the table below:

Table 2-4 WORD variable format

Value Range Input Format Representation in the


from ... to (Default: Dec.) Chart

0 to 65535 dec. 41683 41683

2.3.4 DWORD(DW) Format

A variable of the type DWORD (double word) consists of 32 bits. The


variable format required for direct parameterization is indicated in the
table below:

Table 2-5 DWORD variable format

Value Range Input Format Representation in


from ... to (Default: Dec.) the Chart

0 to 4294967295 dec. 85000 85000

32 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.3 Data Types Used in the Soft PLC

2.3.5 INTEGER(I) Format

A variable of the type INTEGER consists of 16 bits. The variable format


required for direct parameterization is indicated in the table below:

Table 2-6 INTEGER variable format

Value Range Input Format Representation in the


from ... to (Default: Dec.) Chart

-32768 to 32767 dec. 4099 4099

2.3.6 REAL(R) Format

A variable of the type REAL consists of 32 bits. The variable format


required for direct parameterization is indicated in the table below:

Table 2-7 REAL variable format

Value Range Input Format Representation in the


from ... to (Default: Dec 10#..) Chart

-3,40282e+38 to 22.78 2.278e1


-1,1755e-
38,0,1,1755e-38 to
-1234522.456789 -1.2345224e6
3,40282e+38

-3.456e-3 -3.456e-3

2.573e19 2.573e19

SICAM PAS Automation Blocks 33


E50417-H8976-C287-A1
2 Basics

2.3.7 TIME(TI) Format

A variable of the type TIME consists of 32 bits. Entries must be performed


in the following format (during programming):

Table 2-8 TIME variable format

Value Range Input Format Representation in the


from ... to Chart

5h4m12s23ms T#5h4m12s23ms T#5h4m12s23ms

T#123456789ms T#3h25m45s678ms

1ms to 2147483647ms T#2h T#2h

T#32m5s T#32m5s

2.3.8 SICAM PAS Data Types

Data type Description

PASDATABLOCK Pointer to process


information

PASCOMMANDBLOCK Pointer to command


information

PASGROUP Pointer to group


information

PASSTATELINK Pointer to PAS_STATE


management structure

34 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.3 Data Types Used in the Soft PLC

Note:
For inputs and outputs of PAS blocks where pointers have been applied
to a PASDATABLOCK, PASCOMMANDBLOCK, PASGROUP or
PASSTATELINK, the compiler issues an error message if incorrect
connections have been programmed.
An error message is only issued in case of an erroneous interconnection
of the structure types. However, the compiler does not check if an
incorrect interconnection exists within the same structure type.

SICAM PAS Automation Blocks 35


E50417-H8976-C287-A1
2 Basics

2.4 Parameterization of the Inputs and Outputs

General The inputs and outputs can be parameterized directly. The permitted
variable format depends on the data type and is explained in the specific
data type sections (refer to Chapter 2.3).
Proceed as follows to directly specify the inputs of the SICAM PAS
blocks:

CFC • Select the block input to be parameterized from the CFC editor.
• Click with the right mouse button and select Properties from the
context menu.
• Select the Default Value tab in the displayed window.
• Enter the desired value in the Value input box (refer to Figure 1-11).
• Click OK to confirm your entries.

ST In the program code, the block is programmed via the function call-up.

Note:
When parameterizing and interconnecting block inputs and outputs, be
aware of the instructions provided in the description of the corresponding
automation blocks in Chapter 3 to Chapter 7 or Table A-11 on page 198.

36 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.5 Checking PAS Information

2.5 Checking PAS Information

Checking The following section explains how to check PAS information transmitted
to the automation blocks (process data structure block):
‰ Request of the change marker of the incoming PAS information. If no
change exists, the processing is aborted.
‰ Plausibility check of the input variables. The input variable type is
checked. Type errors are fatal errors.
‰ Processing of additional information:
The status byte is required to display warnings and errors. All warnings
and errors are added to the outgoing indication. If the input indication is
marked as INVALID, the output indication is also marked as INVALID.
Each modified item of PAS information starts the processing of the value.
For this reason, the time stamp of the incoming PAS information is
copied to the outgoing information.
‰ The value is calculated if no error status has been stated during the
processing of additional information. An overflow of the calculation is
detected as an error and the corresponding error status is set.

Error handling The system reaction depends on the error type:


‰ Fatal errors are mainly due to incorrect interconnections of the blocks,
e. g. if the mandatory interconnection of an input has not been
performed. If a fatal error occurs, the error information is output on the
DIAG output (refer to Appendix A.2). No information is processed in the
block.
‰ Errors occur if a PAS information on one of the inputs has an error status
or if an overflow occurs during the result calculation. If an error has
occurred, the value is not calculated - only the additional information is
processed.
‰ Warnings cannot prevent any calculation, but they can only be
forwarded to output indications.

SICAM PAS Automation Blocks 37


E50417-H8976-C287-A1
2 Basics

2.6 CFC Chart-in-Chart Technology

Compound Block To provide a comprehensive overview of the CFC charts, Compound


Blocks can be inserted like normal blocks in the CFC editor.
• Insert the Compound Block via Insert > Compound Block....
• Double-click the Compound Block.
The chart of the block is displayed. It is possible to define inputs/
outputs for this block.
• In the context menu select Level Up to return to the higher level.

38 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
2.7 Reusability of Programs

2.7 Reusability of Programs

Programs can be exported and imported to reuse them.

Export To export a program:


• Select the program from the project navigator.
• Select Export from the context menu.
The Select Folder To Export File window is displayed.
• The program can be saved in any directory.

Import To import a program:


• Select File > Import File.
The imported file is displayed in the project navigator.

Note:
The interconnection via the margin bar is an integral part of the CFC
chart. It is imported or exported automatically together with the chart.

SICAM PAS Automation Blocks 39


E50417-H8976-C287-A1
2 Basics

2.8 Online Connection

A Siemens online connection is established by default. This Siemens


online connection ensures that you can connect to a soft PLC on the
same computer. The settings of the connection must be adapted for
remote monitoring. Proceed as follows to change it if required:
• Select PLC Connection.
The Connection Setup window is displayed.
TCP is the default driver and permanently set on the local computer.

[Link]

Figure 2-3 Connection Setup window

In case of an online connection to another computer:


• Select Edit > Settings.
• Enter the new IP address (other computer).
• Click OK to confirm.
The online connection is now established.

[Link]

Figure 2-4 TCP Settings window

40 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Commands 3
Overview This chapter explains the SICAM PAS blocks of the command block
group. They are used for the creation and processing of commands. The
examples below illustrate the use of the individual blocks.

Contents 3.1 Command Processing Concept 42

3.2 PAS_CRCOM - Command Derivation 44

3.3 PAS_COMMCP - Command Output to the Process 52

3.4 PAS_SELC - Marker Command for the Soft PLC 57

SICAM PAS Automation Blocks 41


E50417-H8976-C287-A1
3 Commands

3.1 Command Processing Concept

Command processing in the soft PLC includes the following functions:


‰ Command check and command interlock
‰ General interlock
‰ Switching direction check
‰ Switchgear interlock
‰ Specifying command jobs to the command output.

Command jobs Two different groups of command jobs exist:


‰ Commands to the process
‰ Soft PLC-internal commands

3.1.1 Commands to the Process

Commands to the process include all commands which are output


directly to the equipment of the substation and which change the process
responsibility (parameterization via the PAS_COMMCP block). They are:
‰ Switching commands
for the control of circuit breakers, disconnectors and isolators.
‰ Tap commands
for setting higher or lower transformer taps.
‰ Set commands
with a parameterizable runtime for the control of e-coils.
‰ Specifying the switching authority
‰ Setting ADMIN variables

42 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.1 Command Processing Concept

3.1.2 System-Internal Commands

System-internal commands do not initiate any direct command output to


the process. They are used to enable system-internal functions for the
communication of status changes to the system or for their
acknowledgement (in case of a parameterization via the PAS_SELC
block).

Marker commands Marker commands are system-internal commands. They are set for
specifying the information value of system-internal objects, e. g.:
‰ In case of parameter changeovers or a clearing/pre-assignment of
metered values

SICAM PAS Automation Blocks 43


E50417-H8976-C287-A1
3 Commands

3.2 PAS_CRCOM - Command Derivation

CFC view

PAS_CRCOM.tif

Figure 3-1 PAS_CRCOM block

The following rule VAR


applies for ST: Block: PAS_CRCOM
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

3.2.1 Function

From Boolean input signals, the PAS_CRCOM block creates command


structures (CM) for the derivation of commands. The command
derivation depends on the input connection of the block. 3 inputs
(indication input, 2 Boolean inputs) are available, one of which must be
connected.

44 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.2 PAS_CRCOM - Command Derivation

Create command The command block is created on the output depending on the selected
input:
‰ Depending on the parameterization of the INVERT input, INDIC creates
a command block upon the appeareance (RAISED indication, INVERT =
0) or disappearance (CLEAR indication, INVERT = 1) of a single-point or
double-point indication.
‰ SEND
Creates a command block only with a rising edge, i. e. when the value of
the input changes from 0 to 1.
‰ CHANGE
Always creates a command block when the change marker changes, i. e.
from 0 to 1 or from 1 to 0.

Command To derive the created command, the OUTPUT must be connected with
derivation the COMM input of a downstream block PAS_COMMCP or PAS_ACQ
(restore of metered values) or PAS_SELC (derivation of soft PLC-
internal commands). To connect more than one PAS_CRCOM to a
command block, a PAS_MUXTEL is connected between (refer to
PAS_MUXTEL).
In addition to this, the IN input of this downstream block must be
connected to the left-hand margin bar of the soft PLC.
The OUT output of PAS_COMMCP must be connected to the right-hand
margin bar - CFC/output variable - ST of the automation.

SICAM PAS Automation Blocks 45


E50417-H8976-C287-A1
3 Commands

3.2.2 Connections

Inputs

Table 3-1 Inputs of the PAS_CRCOM command block

Name Data type Function/Note Pre-


Protocol type assignment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INDIC PASDATABLOCK Indication input for the initiation of a command 0


SP, DP (pointer to PAS information)

INVERT BOOL Parameterization input for the inversion of the 0


indication status
0 = No inversion
RAISED indication→ Command ON
CLEAR indication → Command OFF
1 = Inversion
RAISED indication→ Command OFF
CLEAR indication → Command ON

TRIGGER BOOL The indication input is used as a trigger for the 0


command output. The value of the command
is predefined by the DW_VALUE and
BO_VALUE inputs.

Note:
The indication value does not influence the
command value.

SEND BOOL If the value of the input changes from 0 to 1 0


(rising edge), a command block (CM) is
created.

Note:
Must be connected if CHANGE is not
connected and must not be connected if
CHANGE or INDIC are connected!

46 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.2 PAS_CRCOM - Command Derivation

Table 3-1 Inputs of the PAS_CRCOM command block

Name Data type Function/Note Pre-


Protocol type assignment

CHANGE BOOL Change marker 0


A command block is created if the value of the
change marker changes.

Note:
Must be connected to the CHANGE output of
another block if SEND is not connected. Must
not be connected if SEND or INDIC are
connected!

CAUSE BYTE Command cause 0

Note: (With
command 19)
Must be parameterized!

TESTMODE BOOL Test mode 0

INITCAT BYTE Command origin 4

ADDCAUSE BYTE Additional cause 0

STATUS BYTE Status 0

VALTYPE BYTE Value type 0

Note: The correct


value
Must be parameterized!
depending on
of the
command type
is specified in
this box.
(refer to the
Appendix).

TIMETYPE BYTE Type of time 0

IDTYPE BYTE Type of the ID number 0

SUPPTYPE BYTE Type of additional information 0

SICAM PAS Automation Blocks 47


E50417-H8976-C287-A1
3 Commands

Table 3-1 Inputs of the PAS_CRCOM command block

Name Data type Function/Note Pre-


Protocol type assignment

DW_VALUE DWORD The value is interpreted as a double word (32 0


bits) and the command is updated according
to this value.

Note:
Must be parameterized!
If the value of the command derivation is not
determined via the created indication (INDIC).

BO_VALUE BOOL Least significant bit of a value 0

Caution:
BO_VALUE
influences the
least-value bit
of DW_VALUE!

EXSTATUS BYTE Extended status 0

TIMELOW DWORD Time stamp (bit 16 to 47). 0

Note:
The internal system time is entered if the input
is not assigned.

TIMEHIGH WORD Time stamp (bit 0 to 15) 0

IDNO WORD ID number 0

SUPPINFO WORD Additional information 0

48 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.2 PAS_CRCOM - Command Derivation

Outputs

Table 3-2 Outputs of the PAS_CRCOM command block

Name Data type Function/Note


Protocol type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK The output issues a command structure.

Note:
Must be connected to the COMM input of a downstream
command block!

SICAM PAS Automation Blocks 49


E50417-H8976-C287-A1
3 Commands

3.2.3 Examples

Command In the example below, the Boolean logic controls the command
derivation derivation. When the Boolean signal rises, a switch ON or OFF occurs
after each second Boolean signal.

[Link]

Figure 3-2 Example of a command derivation

Description PAS_CRCOM block


The Boolean signal rises via the INDIC input of the block.
The EN input is assigned with the value 1, the CAUSE input with 19,
the INITCAT input with 4 and the VALTYPE input with 14.
The command derivation is performed via the OUTPUT to the COMM
input of the PAS_COMMCP block.
PAS_COMMCP block
The LOCK input is assigned with the value 0, whereas the REL_ON and
REL_OFF inputs are assigned with the value 1.
This block issues the command via the OUT output.

50 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.2 PAS_CRCOM - Command Derivation

Persistent In the example below, a persistent command is created from an


command indication.

[Link]

Figure 3-3 Example of a persistent command

Description PAS_CRCOM block


The following inputs are assigned with values: Input EN=1,
input CAUSE=19, input INITCAT=4, input VALTYPE=13.
An indication is present directly on the INDIC input. Depending on
whether the indication has been switched ON or OFF, a persistent
command is transmitted to the PAS_COMMCP block via OUTPUT. An
inverted output is performed if the INVERT input is assigned with 1.
PAS_COMMCP block
The LOCK input is assigned with the value 0 and the REL_ON and
REL_OFF inputs with the value 1. The persistent command is issued via
the OUT output.

SICAM PAS Automation Blocks 51


E50417-H8976-C287-A1
3 Commands

3.3 PAS_COMMCP - Command Output to the Process

CFC view

PAS_COMMCP.tif

Figure 3-4 PAS_COMMCP block

The following rule VAR


applies for ST: Block: PAS_COMMCP
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

3.3.1 Function

The PAS_COMMCP block has three tasks:


1. Transmission of commands in case of a command derivation (in
combination with PAS_CRCOM, PAS_STATE)
2. Interlock check for the PAS distribution system (DSI server; the DSI
server requests whether the LOCK, REL_ON, REL_OFF inputs allow
a switching of the command)
3. Parameterization of switchgear interlocks in the soft PLC.
In this case, the block receives a message when commands are
connected externally. It updates the OK, ERR and ACTIVE outputs
accordingly.
The PAS_COMMCP block is used for all commands (slave functionality)
transmitted by the soft PLC (to other drivers, command derivation) as
well as for the parameterization of interlocks.
The ACTIVE, OK and ERR outputs are updated both for commands
triggered by the automation, e. g. command derivation, and for
commands which are not triggered by the soft PLC, e. g. HMI.
The PAS_COMMCP block detects whether and which commands have
been activated.

52 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.3 PAS_COMMCP - Command Output to the Process

In SICAM PAS, the central DSI server monitors the command execution.
It ensures a consistent command execution and has a monitoring time
(PAS UI parameterization). Monitoring times are not parameterized in the
soft PLC!
The PAS_COMMCP block ensures the processing of command
interlocks. The interlock is independent of the command processing. If a
command which is to be connected as "to be locked" has been
parameterized in the PAS system, the DSI server transmits a request to
the soft PLC to find out whether the command has been released. A
PAS_COMMCP block must be specified for this command in the
automation. It processes the request and checks the OCK, REL_ON and
REL_OFF inputs. If they allow switching, the DSI server gets a positive
release. Otherwise, the response is negative. It is not relevant for the
interlock function whether a command is active or not.

Note:
All slave commands and interlocks are specified using
the PAS_COMMCP block.

SICAM PAS Automation Blocks 53


E50417-H8976-C287-A1
3 Commands

3.3.2 Connections

Inputs

Table 3-3 Inputs of the PAS_COMMCP command block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

LOCK BOOL General interlock 0


A 1-of-n check of the command output can be
realized via this input (1-active).

Note:
For the general interlock, the LOCK input must be
connected to one of the ION, IOFF or NOT_DBI
outputs of an INDIC block (depending on the circuit
logic) which determine the current status of a switch.
If 1 is present on the LOCK input, it is locked and an
incoming command job gets a negative
acknowledgement.
All commands are accepted if the LOCK input is not
connected.

REL_ON BOOL Switchgear interlock for ON command 0


0 = locked
1 = unlocked

Note:
Must be parameterized!

REL_OFF BOOL Switchgear interlock for OFF command 0


0 = locked
1 = unlocked
Note:
Must be parameterized!

COMM PASDATABLOCK Input for derived command structure (CM) 0

Note:
Can be connected to the OUTPUT of a
PAS_CRCOM block.

54 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.3 PAS_COMMCP - Command Output to the Process

Outputs

Table 3-4 Outputs of the PAS_COMMCP command block

Name Data Type Function/Note


Protocol Type

MARKER DWORD Number of commands transmitted to the block

OUT PASCOMMANDBLOCK The output sets a pointer to the address of a command


all command types structure (PAS information). It consists of several process
data structure blocks.

Note:
Must be interconnected, i. e. the output is connected to the
right-hand margin bar of the CFC!

ACTIVE BOOL As soon as a command is active, this output is TRUE.


Otherwise, it is FALSE.

OK BOOL After a command with a positive termination, this output is


TRUE during one call-up.

ERR BOOL After a command with a negative termination, this output is


TRUE during one call-up.

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

3.3.3 Others

Error handling Inputs without any connection are checked. If inputs which must be
connected to ensure the functionality of the block are not linked or linked
incorrectly, no information is processed in the block. The error
information is output on the DIAG diagnostic output (refer to
Appendix A.2).

SICAM PAS Automation Blocks 55


E50417-H8976-C287-A1
3 Commands

3.3.4 Example:

Issuing the For a PROFIBUS FMS bay device, a command must be derived for 2
switching switching sequences. The command derivation is connected via
command the COMM input and PAS_MUXTEL.

[Link]

Figure 3-5 Example: Issuing a switching command

Description PAS_MUXTEL block


The switching commands of the switching sequences are present on the
IN1 and IN2 inputs. The PAS_MUXTEL inputs have an OR operation,
i. e. as soon as a switching command is pending, it is forwarded via
the OUT output to the COMM input of a downstream command block.
PAS_COMMCP block
Via its COMM input, the block receives the derived command of the
switching sequences. As soon as a switching command appears, it is
forwarded via the OUT output, i. e. the output is linked to an item of
PAS information.

Note:
The derived commands are only issued if the interlock conditions do not
prevent this (LOCK, REL_ON, REL_OFF).
Each slave command mapped to the soft PLC automatically uses the DSI
server interlock check. Consequently, no interlock check can be
performed if a slave command is mapped to the soft PLC without being
connected to a PAS_COMMCP block.
The following rule applies: All slave commands of the soft PLC must be
interconnected with a PAS_COMMCP in a program.

56 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.4 PAS_SELC - Marker Command for the Soft PLC

3.4 PAS_SELC - Marker Command for the Soft PLC

CFC view

PAS_SELC.tif

Figure 3-6 PAS_SELC block

The following rule VAR


applies for ST: Block: PAS_SELC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

3.4.1 Function

This block is used for soft PLC-internal commands such as marker


commands, setpoint commands (e. g. command with setpoint
specification to the soft PLC logic) or commands for starting a switching
sequence. It cannot be used for slave commands.
The block sets a trigger pulse for each valid pending command. This
pulse is reset during the next trigger of the task. To obtain a trigger pulse
only for a positive or negative edge, an AND_operation must be
performed with the BO_VALUE output.
Two special inputs control the command end:
• TERM_POS (preassignment 1)
• TERM_NEG (preassignment 0)

SICAM PAS Automation Blocks 57


E50417-H8976-C287-A1
3 Commands

A command is terminated if either the TERM_POS input (command


successful) or the TERM_NEG input (command negative) is set to
TRUE. This has the advantage that the command does not need to be
terminated in the same task sequence (e. g. switching sequence) in
which the command was triggered. The command is only completed
when the signal rises.
If TERM_POS is set to TRUE, each command can be terminated
positively still in the same task call-up.
After the termination of a command, the ACTIVE output switches back to
FALSE.
To prematurely cancel running commands which have not yet been
acknowledged positively or negatively, the PAS_SELC block can
process cancel commands. The current command is cancelled by means
of a cancel command. The ACTIVE output is set to FALSE and
the TRM_TRIG output for this task sequence is set to TRUE.
Due to the cancel option, the PAS_SELC block is well suited for
switching sequence commands.
The actual switching sequence is realized by means of the PAS_STATE
and PAS_TRANS blocks. The PAS_SELC block initiates this network.

3.4.2 Connections

Inputs

Table 3-5 Inputs of the PAS_SELC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

LOCK BOOL General interlock, 1-of-n-check (1-active) 0

Note:
May be interconnected with the ACTIVE
output of other command blocks!

REL_ON BOOL Switchgear interlock for ON command 0


0 = locked
1 = unlocked

Note:
Must be parameterized!

58 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.4 PAS_SELC - Marker Command for the Soft PLC

Table 3-5 Inputs of the PAS_SELC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

REL_OFF BOOL Switchgear interlock for OFF command 0


0 = locked
1 = unlocked

Note:
Must be parameterized!

COMM PASDATABLOCK Input for derived commands 0

Note:
Can be connected to the OUTPUT of a
PAS_CRCOM block!

IN PASCOMMANDBLOCK Input for commands 0


all command types (pointer to PAS information)

Note:
Must be connected!

TERM_POS BOOL TERM_POS = TRUE 1


The command is terminated successfully.
By default, this value is set to 1, i. e. a positive
command acknowledgement is output with
Command Positive / Command Termination
Positive after the reception.

TERM_NEG BOOL TERM_POS = TRUE 0


The command is terminated with a negative
acknowledgement.

R_VALUE REAL REAL value output 0

SICAM PAS Automation Blocks 59


E50417-H8976-C287-A1
3 Commands

Outputs

Table 3-6 Outputs of the PAS_SELC block

Name Data type Function/Note Pre-


Protocol assign
type ment

ACTIVE BOOL After the termination of a command:


Changeover from TRUE to FALSE.

MARKER DWORD Change marker


The marker is increased by 1 when a command is received.

CMD_CHG BOOL Alternates with every successful command initiation.

BO_VALUE BOOL Value output least significant bit

DW_VALUE DWORD Value output Double word

CMD_TRIG BOOL Upon the start of a command:


Changeover from ACTIVE to TRUE.
Only applies for the duration of a call-up.

TRM_TRIG BOOL A running command is canceled prematurely:


Changeover from ACTIVE to FALSE.
TRM_TRIG = TRUE
Only applies for the duration of a call-up.

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

60 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
3.4 PAS_SELC - Marker Command for the Soft PLC

3.4.3 Others

Error handling Inputs without a connection are checked. If inputs which must be
connected to ensure the functionality of the block are not linked or linked
incorrectly, no information is processed in the block. The error
information is output on the DIAG diagnostic output (refer to
Appendix A.2).

3.4.4 Example:

Refer to Chapter 8.3, Transformer Switching,


refer to Chapter 8.2, Switching Sequences in the Soft PLC

SICAM PAS Automation Blocks 61


E50417-H8976-C287-A1
3 Commands

62 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Indications 4
Overview This chapter explains the SICAM PAS automation blocks of the indication
processing. They are divided into two groups: Indication blocks and
comparison blocks. They are used for the creation and processing of
indications. The examples in this chapter illustrate the application of the
blocks.

Contents 4.1 Concept of Indication Processing in the Soft PLC 64

4.2 PAS_CRI - Creating Indications 65

4.3 PAS_TSP - Converting Double- into Single-Point Indications 69

4.4 PAS_ANDI and PAS_ORI - Logical Link of Indications 72

4.5 PAS_INVER - Inverting Indications 76

4.6 PAS_DELAYI - Filtering an Indication 79

4.7 PAS_GROUPI - Creating Group Indications 83

4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison 85

4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison 91

4.10 PAS_INDIC - Interlocks 97

SICAM PAS Automation Blocks 63


E50417-H8976-C287-A1
4 Indications

4.1 Concept of Indication Processing in the Soft PLC

Jobs Indication processing in the field of soft PLC includes the following
functions:
‰ Derivation of indications
‰ Splitting of indications
‰ Conversion of indications
‰ Linkage of indications (formation of group indications)
‰ OR operation
‰ AND operation
‰ Inversion of indications
‰ Delay of indications
‰ Comparison of indications
‰ Transformer tap indications
‰ Bit pattern indications
‰ Derivation of interlocks

Appendix A.1 provides an overview of the permissible input values and


their significance.

64 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.2 PAS_CRI - Creating Indications

4.2 PAS_CRI - Creating Indications

CFC view

PAS_CRI.tif

Figure 4-1 PAS_CRI block

The following rule VAR


applies for ST: Block: PAS_CRI
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.2.1 Function

Single-point, double-point and event indications are created by means of


the PAS_CRI block. The indication created by the block is always
transmitted when the value on the SEND or CHANGE input changes.

SICAM PAS Automation Blocks 65


E50417-H8976-C287-A1
4 Indications

4.2.2 Connections

Inputs

Table 4-1 Inputs of the PAS_CR indication block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

SEND BOOL Creates an indication during the change from 0 to 1 0


(pointer to PAS information)

Note:
Must be connected if CHANGE is not connected and
must not be connected if CHANGE is connected!

CHANGE BOOL Change marker 0


Creates an indication with each change
(pointer to PAS information).

Note:
Must be connected if SEND is not connected and
must not be connected if SEND is connected!

CAUSE BYTE Cause of the indication 0


Should be normally set to the value 1
(spontaneous change).

STATUS BYTE Status byte 0

INDICTYP BYTE This parameter specifies the type of the indication to 0


be created.
2 = real-time double-point indication
3 = real-time single-point indication
4 = real-time event indication

Note:
Must be parameterized!

SIGNAL_1 BOOL Logical value of the indication 0


Single-point indication Double-point indication
1 = ON 0 = ON
0 = OFF 1 = OFF

66 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.2 PAS_CRI - Creating Indications

Table 4-1 Inputs of the PAS_CR indication block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

SIGNAL_2 BOOL Logical value of the indication 0


Single-point indication Double-point indication
0 = ON/OFF 1 = ON
0 = OFF

EXSTATUS BYTE Extended status byte 0

TIMEHIGH WORD Time stamp (bit 32 to 47) If the inputs are left 0
free, the internal system
time is entered.
TIMELOW DWORD Time stamp (bit 0 to 31) 0

Outputs

Table 4-2 Outputs of the PAS_CRI indication block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

INDIC PASDATABLOCK The indication structure block is present on this output


SP, DP, EVENT (pointer to PAS information).

Note:
Must be connected, i. e. the output is connected to the right-
hand CFC margin bar or set as an output variable in the ST
program!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

SICAM PAS Automation Blocks 67


E50417-H8976-C287-A1
4 Indications

4.2.3 Others

Error handling If you specify an incorrect indication type, the default value is set for the
type. The INVALID bit is set to TRUE in the status byte.

4.2.4 Example

The example below illustrates how an indication is created from the


combination of four Boolean values.

Bsp_ANDI_CRI.tif

Figure 4-2 Example of a PAS_ANDI and PAS_CRI block

Description AND block


The inputs of the PAS_ANDI block are assigned with PASDATABLOCK
indications. The output signal of the PAS_ANDI block is present on the
SIGNAL_1 input of the PAS_CRI block.

Block PAS_CRI
An indication is created if the signal on the SIGNAL_1 input changes.
After its creation, this indication is connected to the right-hand margin bar
(or to the input of the downstream block).

Further examples Refer to Example of a PAS_CMPT and PAS_CRI block, page 90,
refer to Example of a PAS_CMPT and PAS_CRI block, page 96.

68 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.3 PAS_TSP - Converting Double- into Single-Point Indications

4.3 PAS_TSP - Converting Double- into Single-Point


Indications

CFC view

PAS_TSP.tif

Figure 4-3 PAS_TSP block

The following rule VAR


applies for ST: Block: PAS_TSP
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.3.1 Function

The PAS_TSP block is used for the conversion of double-point


indications into single-point indications. The time of the causing
indication is applied for the result indication.

SICAM PAS Automation Blocks 69


E50417-H8976-C287-A1
4 Indications

4.3.2 Connections

Inputs

Table 4-3 Inputs of the PAS_TSP block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

IN PASDATABLOCK The address of an indication structure is applied to 0


DP this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs

Table 4-4 Outputs of the PAS_TSP block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

INDIC PASDATABLOCK The converted indication


SP structure block is present on this output.

Note:
Must be connected, i. e. the input is linked to an item of
PAS information!

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15) of the result calculation

TIMELOW DWORD Time stamp (bit 16 to 47) of the result calculation

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

70 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.3 PAS_TSP - Converting Double- into Single-Point Indications

4.3.3 Others

Error handling A fatal error is output if the inputs are connected to the incorrect
indication type (e. g. event indication).

4.3.4 Example

In the chart below, a double-point group indication is converted to a


single-point indication.

Bsp_ANDI_TSP.tif

Figure 4-4 Example of a PAS_ANDI and PAS_TSP block

Description PAS_ANDI block


Double-point indications appear on the IN1, IN2, IN3 and IN 4 inputs of
the PAS_ANDI block. The indications are logically linked in the block.
The result, a group double-point indication, is output as an indication
structure block on the INDIC output.

PAS_TSP block
The indication structure block on the output of the PAS_ANDI block is
connected to the IN input of the PAS_TSP block. The incoming double-
point indication is converted to a single-point indication and output as
PAS information via the INDIC output.

SICAM PAS Automation Blocks 71


E50417-H8976-C287-A1
4 Indications

4.4 PAS_ANDI and PAS_ORI - Logical Link of Indications

CFC view

PAS_ANDI.tif

Figure 4-5 PAS_ANDI block

PAS_ORI.tif

Figure 4-6 PAS_ORI block

The following rule VAR


applies for ST: Block: PAS_ANDI or block: PAS_ORI
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

72 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.4 PAS_ANDI and PAS_ORI - Logical Link of Indications

4.4.1 Function

PAS_ANDI The PAS_ANDI block realizes AND operations for group indications of
single-point and/or double-point indications. The block can perform an
AND operation of maximally 4 indications at the same time. If several
indications exist, it can be cascaded.

PAS_ORI The PAS_ORI block realizes OR operations for group indications of


single-point and/or double-point indications. The block can perform an
OR operation of maximally 4 indications at the same time. If several
indications exist, it can be cascaded.
The blocks link the logical values of indications. As an example, they
form one logical value (e. g. 01 becomes 0) of the value of a double-point
indication and perform a logical link for this value. A pointer to the result
indication (PAS information) is output.
The result indication always has the type "double-point indication". For
the result indication, the cause of the transmission is always set to
SPONTANEOUS.

PAS_ANDI AND operation


The group indication is set as soon as all indications are present
(RAISED). When the first of the linked indications disappears, the group
indication is cleared, i. e. it is set to CLEAR. The time of the indication
which was present last or the time of the indication which disappeared
first is applied for the result indication.
The startup indication is transmitted as soon as the startup indications of
all inputs have been received.

PAS_ORI OR operation
The group indication is set as soon as the first linked indication is present
(RAISED). When the last of the linked indications disappears, the group
indication is cleared, i. e. set to CLEAR. The time of the indication which
rises first or is cleared last is applied for the result indication.
The startup indication is transmitted as soon as the startup indications of
all inputs have been received.

SICAM PAS Automation Blocks 73


E50417-H8976-C287-A1
4 Indications

4.4.2 Connections

Inputs

Table 4-5 Inputs of the PAS_ANDI and PAS_ORI link blocks

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

IN1 PASDATABLOCK The address of an indication structure which is to be 0


SP, DP linked is applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Maximally up to

IN4 PASDATABLOCK The address of an indication structure which is to be 0


DP linked is applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs

Table 4-6 Outputs of the PAS_ANDI and PAS_ORI link blocks

Name Data Type Function/Note


Protocol Type

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

EN_EVENT BOOL TRUE in the case of a value change (bVALUE), otherwise


FALSE

ALARM BOOL PAS_ANDI:


Toggeling for new CLEAR indication, with indication status
topical
PAS_ORI:
Toggeling with new RAISED indication

bVALUE BOOL Current link value

74 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.4 PAS_ANDI and PAS_ORI - Logical Link of Indications

Table 4-6 Outputs of the PAS_ANDI and PAS_ORI (Forts.) link blocks

Name Data Type Function/Note


Protocol Type

INDIC PASDATABLOCK The address of the result indication is present on this output.
DP
Note:
Must be connected, i. e. the input is linked to an item of
PAS information!

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15) of the result indication

TIMELOW DWORD Time stamp (bit 16 to 47) of the result indication

4.4.3 Others

Error handling All incoming indications are checked for plausibility.

4.4.4 Example

Refer to Example of a PAS_ANDI and PAS_TSP block, page 71,


refer to Example of a PAS_ANDI-, PAS_ORI and PAS_INVER block,
page 78.

SICAM PAS Automation Blocks 75


E50417-H8976-C287-A1
4 Indications

4.5 PAS_INVER - Inverting Indications

CFC view

PAS_INVER.tif

Figure 4-7 PAS_INVER block

The following rule VAR


applies for ST: Block: PAS_INVER
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.5.1 Function

With the PAS_INVER block, you can invert single-point and double-point
indications, i. e. RAISED indications are inverted to CLEAR indications
and vice-versa. Incoming indications are checked for validity before they
are processed.

76 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.5 PAS_INVER - Inverting Indications

4.5.2 Connections

Inputs

Table 4-7 Inputs of the PAS_INVER block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

IN PASDATABLOCK The address of an indication structure block is 0


SP, DP applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs

Table 4-8 Outputs of the PAS_INVER block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

INDIC PASDATABLOCK The address of the result indication is present on this output.
SP, DP
Note:
Must be connected, i. e. the input is linked to an item of
PAS information!

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15) of the result indication

TIMELOW DWORD Time stamp (bit 16 to 47) of the result indication

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

SICAM PAS Automation Blocks 77


E50417-H8976-C287-A1
4 Indications

4.5.3 Others

Error handling All incoming indications are checked for validity.

4.5.4 Example

The example below shows a logical link of five error indications. The
logical result of the outgoing indication may only be TRUE (1) if the
following conditions are met:
‰ At least one of the first four error indications is set to TRUE.
‰ The fifth error indication must be set to FALSE.

Bsp_ANDI_ORI_INVER.tif

Figure 4-8 Example of a PAS_ANDI-, PAS_ORI and PAS_INVER block

Description PAS_ORI block


The PAS_ORI block is assigned with the four error indications. If at least
one of the present error indications is TRUE, the indication present on
the INDIC output gets the logical value TRUE.

PAS_INVER block
The PAS_INVER block is activated with EN = TRUE. The IN input of the
PAS_INVER block is connected to the fifth error indication. The inverted
indication is present on the INDIC output, i. e. the logical value of the
indication is inverted.

PAS_ANDI block
The PAS_ANDI block checks whether both above-mentioned conditions
are met. If the conditions are met, the output indication on the INDIC
output gets the logical value TRUE; otherwise it is FALSE.

78 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.6 PAS_DELAYI - Filtering an Indication

4.6 PAS_DELAYI - Filtering an Indication

CFC view

PAS_DELAYI.tif

Figure 4-9 PAS_DELAYI block

The following rule VAR


applies for ST: Block: PAS_DELAYI
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.6.1 Function

This block filters single-point, double-point or event indications. Via the


Boolean inputs RAISED_I, CLEAR_I and UNDEF_I, you can be specify
for which indication criteria the filter time responds - except for event
indications which can only be filtered without a filter time.
If the filter time is set to zero, the indication is suppressed when the
parameterized filter criterion appears.

SICAM PAS Automation Blocks 79


E50417-H8976-C287-A1
4 Indications

4.6.2 Connections

Inputs

Table 4-9 Inputs of the PAS_DELAYI block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

IN PASDATABLOCK The address of an indication structure block is 0


SP, DP applied to this input.

Note:
The data type of the input indication
(protocol type SP or DP) must correspond to the
data type of the result indication on the INDIC
output.
Must be connected, i. e. the input is linked to an item
of PAS information!

EVENT Is only valid if the filter time = 0

TIME_IN TIME Filter time 0


Time during which the indication must be present
before being transmitted.
0 = Filtering without time
> 0 = Filter time

Note:
Responds to specified filter criteria.

RAISED_I BOOL Filter criterion for RAISED indication. 0

CLEAR_I BOOL Filter criterion for CLEAR indication. 0

UNDEF_I BOOL Filter criterion for fault indication 0

Note:
Only valid for double-point indications.

80 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.6 PAS_DELAYI - Filtering an Indication

Table 4-9 Inputs of the PAS_DELAYI block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

UDF_MODE BYTE This input specifies how the fault position is output: 0
0 = Display fault position without change
1 = Display fault position as 00
2= Display fault position as 11

Outputs

Table 4-10 Outputs of the PAS_DELAYI block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

INDIC PASDATABLOCK The address of the result indication is present on this output.
SP, DP
Note:
The data type of the result indication
(protocol type SP or DP) must correspond to the data type of
the input indication on the IN output.
Must be connected, i. e. the input is linked to an item of
PAS information!

EVENT Is only valid if the filter time = 0

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

4.6.3 Others

Error handling Incorrectly connected inputs trigger a fatal error.

SICAM PAS Automation Blocks 81


E50417-H8976-C287-A1
4 Indications

4.6.4 Example

The example below displays the connection and parameterization of


the PAS_DELAYI block for filtering a RAISED indication. This indication
is forwarded after a parameterized period of time.

Bsp_PAS_DELAYI.tif

Figure 4-10 Example of the PAS_DELAYI block

Description The incoming indication is present on the IN input. A presence period of


10 ms is parameterized on the TIME_IN input. To filter RAISED
indications, the RAISED_I input must be assigned with 1.
As the CLEAR_I (CLEAR indication) and UNDEF_I (fault indication)
inputs are parameterized with 0, only RAISED indications are filtered.
They are output on the INDIC output after a presence period of 10 ms.
CLEAR and fault indications are not considered, i. e. they are forwarded
immediately (INDIC output) without pending a certain period.

82 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.7 PAS_GROUPI - Creating Group Indications

4.7 PAS_GROUPI - Creating Group Indications

CFC view

PAS_GROUPI.tif

Figure 4-11 PAS_GROUPI block

The following rule VAR


applies for ST: Block: PAS_GROUPI
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.7.1 Function

The PAS_GROUPI block is a group indication block. It allows the fast


parameterization of a group indication with an OR operation. The
parameterization is performed via groups in the PAS UI.
The individual values in an automation program do not need to be
connected. Only a connection from the PASGROUP data type to a
PAS_GROUPI block is performed.
The block processes single-point and double-point indications. If one of
the present values is ON, the bVALUE output value is TRUE; otherwise
it is FALSE. If a new modification occurred with the value ON at the time
of the block call-up, the ALARM alternates. This does not necessarily
mean that the bVALUE output value has changed!
If a bVALUE value change exists or a value changed during the startup,
a new output indication is generated (INDIC).
With each new output indication, the EN_EVENT is set to TRUE for this
call-up of the automation program.

SICAM PAS Automation Blocks 83


E50417-H8976-C287-A1
4 Indications

4.7.2 Connections

Inputs

Table 4-11 Inputs of the PAS_GROUPI block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

IN PASGROUP Indication input (group) 0

Outputs

Table 4-12 Outputs of the PAS_GROUPI block

Name Data Type Function/Note


Protocol Type

SIZE WORD Number of integrated indications

MARKER DWORD Change marker for the output indication

EN_EVENT BOOL TRUE for value change (bVALUE)

ALARM BOOL Toggeling with new RAISED indication

bVALUE BOOL Current link value

INDIC PASDATABLOCK Output for result indication (pointer to PAS information)


DP
Note:
Must be connected!

DIAG WORD Diagnostic value

84 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison

4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison

CFC view

PAS_CMPT.tif

Figure 4-12 PAS_CMPT block

PAS_CMPTC.tif

Figure 4-13 PAS_CMPTC block

The following rule VAR


applies for ST: Block: PAS_CMPT or block: PAS_CMPTC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

SICAM PAS Automation Blocks 85


E50417-H8976-C287-A1
4 Indications

4.8.1 Function

The following blocks are used to compare transformer tap indications.


The comparison can be performed both between two transformer tap
indications and between a transformer tap indication and a constant:
‰ PAS_CMPT: Comparison of two transformer tap indications
‰ PAS_CMPTC: Comparison between a transformer tap indication and a
constant.
Depending on the comparison status, the Boolean outputs are set to
1 or 0 (1-active).
The corresponding indication is derived from the result of a comparison
of the transformer tap indications by means of an interconnection with the
CRI block. The time stamp is applied by the transformer tap indication
which has been received last.

86 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison

4.8.2 Connections

Inputs of the PAS_CMPT block

Table 4-13 Inputs of the PAS_CMPT block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

IN1 PASDATABLOCK The address of a 0


ST 1st transformer tap indication is applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

IN2 PASDATABLOCK The address of a 2nd transformer tap indication is 0


ST applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs of the PAS_CMPT block

Table 4-14 Outputs of the PAS_CMPT block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

GREATER BOOL IN1 is greater than IN2

GR_EQ BOOL IN1 is greater than or equal to IN2

EQUAL BOOL IN1 is equal to IN2

LE_EQ BOOL IN1 is less than or equal to IN2

LESS BOOL IN1 is less than IN2

SICAM PAS Automation Blocks 87


E50417-H8976-C287-A1
4 Indications

Table 4-14 Outputs of the PAS_CMPT block

Name Data Type Function/Note


Protocol Type

STATUS BYTE Status byte

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15)

TIMELOW DWORD Time stamp (bit 16 to 47)

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

Inputs of the PAS_CMPT block

Table 4-15 Inputs of the PAS_CMPT block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

INDIC PASDATABLOCK The address of a transformer tap indication is 0


ST applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

CONST BYTE This parameter specifies the constant with which the 0
transformer tap indication is compared.

Note:
Must be parameterized!

88 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.8 PAS_CMPT & PAS_CMPTC - Transformer Tap Comparison

Outputs of the PAS_CMPT block

Table 4-16 Outputs of the PAS_CMPTC block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

GREATER BOOL INDIC is greater than the constant

GR_EQ BOOL INDIC is greater than or equal to the constant

EQUAL BOOL INDIC is equal to the constant

LE_EQ BOOL INDIC is less than or equal to the constant

LESS BOOL INDIC is less than the constant

STATUS BYTE Status byte

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15)

TIMELOW DWORD Time stamp (bit 16 to 47)

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

4.8.3 Others

Error handling Indications with an incorrect type or non-connected inputs cause a fatal
error. Indications with the correct type cause an error if they include
incorrect information. The Boolean outputs are set to 0 in both cases.

SICAM PAS Automation Blocks 89


E50417-H8976-C287-A1
4 Indications

4.8.4 Example

The example below illustrates the monitoring of two transformers. An


indication is displayed if the transformer taps of the two transformers are
identical.

Bsp_PAS_CMPT_CRI.tif

Figure 4-14 Example of a PAS_CMPT and PAS_CRI block

Description PAS_CMPT block


A transformer tap indication from Transformer 1 is present on IN1 input.
A transformer tap indication from Transformer 2 is present on IN2. If the
two transformer tap indications are identical, the output is
EQUAL = TRUE.

PAS_CRI block
The EQUAL output of the PAS_CMPT block is connected to
the SIGNAL_1 input of the PAS_CRI block. Via the TIMEHIGH and
TIMELOW inputs, it gets the time stamp of the transformer tap indication
which was received last in the PAS_CMPT block.
The type of the derived indication (single-point indication = 3) is
parameterized on the INDICTYP input. The indication is issued on
the INDIC output.

90 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison

4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison

CFC view

PAS_CMPB.tif

Figure 4-15 PAS_CMPB block

PAS_CMPB.tif

Figure 4-16 PAS_CMPBC block

The following rule VAR


applies for ST: Block: PAS_CMPB or block: PAS_CMPBC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

SICAM PAS Automation Blocks 91


E50417-H8976-C287-A1
4 Indications

4.9.1 Function

The following blocks are used to compare bit pattern indications. The
comparison can be performed both between two bit pattern indications
and between a bit pattern indication and a constant:
‰ PAS_CMPB: Comparison of two bit pattern indications
The absolute values of bit pattern indications are
compared. As an example, bit pattern 1001 (= 9) is
greater than 0111 (= 7).
‰ PAS_CMPBC: Comparison of the bit pattern indication with a constant.
Depending on the comparison status, the Boolean outputs are set to
1 or 0 (1-active).
To derive an indication from the result of the evaluation, connect a
PAS_CRI block downstream. The time stamp is applied by the bit pattern
indication which has been received last.

92 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison

4.9.2 Connections

Inputs of the PAS_CMPB block

Table 4-17 Inputs of the PAS_CMPB block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

IN1 PASDATABLOCK The address of a 0


BO 1st bit pattern indication is applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

IN2 PASDATABLOCK The address of a 0


BO 2nd bit pattern indication is applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs of the PAS_CMPB block

Table 4-18 Outputs of the PAS_CMPB block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

GREATER BOOL IN1 is greater than IN2

GR_EQ BOOL IN1 is greater than or equal to IN2

EQUAL BOOL IN1 is equal to IN2

LE_EQ BOOL IN1 is less than or equal to IN2

LESS BOOL IN1 is less than IN2

SICAM PAS Automation Blocks 93


E50417-H8976-C287-A1
4 Indications

Table 4-18 Outputs of the PAS_CMPB block

Name Data Type Function/Note


Protocol Type

STATUS BYTE Status byte

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15)

TIMELOW DWORD Time stamp (bit 16 to 47)

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

Inputs of the PAS_CMPBC block

Table 4-19 Inputs of the PAS_CMPBC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

INDIC PASDATABLOCK The address of a bit pattern indication is applied to 0


BO this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

CONST BYTE This parameter specifies the constant with which the 0
bit pattern indication is compared.

Note:
Must be parameterized!

94 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.9 PAS_CMPB and PAS_CMPBC - Bit Pattern Comparison

Outputs of the PAS_CMPBC block

Table 4-20 Outputs of the PAS_CMPBC block

Name Data Type Function/Note


Protocol
Type

ENO BOOL Looped-through EN input

GREATER BOOL INDIC is greater than the constant

GR_EQ BOOL INDIC is greater than or equal to the constant

EQUAL BOOL INDIC is equal to the constant

LE_EQ BOOL INDIC is less than or equal to the constant

LESS BOOL INDIC is less than the constant

STATUS BYTE Status byte

EXSTATUS BYTE Extended status byte

TIMEHIGH WORD Time stamp (bit 0 to 15)

TIMELOW DWORD Time stamp (bit 16 to 47)

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

4.9.3 Others

Error handling Indications with an incorrect type or non-connected inputs cause a fatal
error. Indications with the correct type cause an error if they include
incorrect information. The Boolean outputs are set to FALSE in both
cases.

SICAM PAS Automation Blocks 95


E50417-H8976-C287-A1
4 Indications

4.9.4 Example

The example below illustrates the comparison between the setpoint


value and the actual value of bit pattern indications. An indication is
derived from the result on the EQUAL output by means of a connection
with a PAS_CRI block.

Bsp_PAS_CMPB_CRI.tif

Figure 4-17 Example of a PAS_CMPT and PAS_CRI block

Description PAS_CMPB block


The setpoint value is present on the IN1 input, whereas the actual value
is present on the IN2 input. If the bit pattern values are identical, the
output is EQUAL = TRUE.

PAS_CRI block
The EQUAL output of the PAS_CMPB block is connected to
the SIGNAL_1 input of the PAS_CRI block.
The CHANGE input is parameterized with 1, i. e. an indication is created
if the signal on the SIGNAL_1 input changes. Via the TIMEHIGH and
TIMELOW inputs, it gets the time stamp of the bit pattern value which
arrived last in the PAS_CMPB block.
The type of the derived indication (single-point indication = 3) is
parameterized on the INDICTYP input. The indication is issued on the
INDIC output.

96 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.10 PAS_INDIC - Interlocks

4.10 PAS_INDIC - Interlocks

CFC view

PAS_INDIC.tif

Figure 4-18 PAS_INDIC block

The following rule VAR


applies for ST: Block: PAS_INDIC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

4.10.1 Function

The status and the state of single-point and double-point indications are
displayed via the PAS_INDIC block. Interlock links are realized with the
Boolean outputs by means of Boolean logic blocks.
The IOFF, ION, NOT_DBI, DBI0 and DBI1 outputs are set to 1 or to 0
depending on the state of the indication on the input of the PAS_INDIC
block (e. g. indication via the switching state of a switching device).
If the input indication is a single-point indication, the DBI0 and DBI1
outputs are not assigned, i. e. they are set to 0.

SICAM PAS Automation Blocks 97


E50417-H8976-C287-A1
4 Indications

4.10.2 Connections

Inputs

Table 4-21 Inputs of the PAS_INDIC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INDIC PASDATABLOCK The address of an indication structure block is 0


SP, DP applied to this input.

Note:
Must be connected, i. e. the input is linked to an item
of PAS information!

Outputs

Table 4-22 Outputs of the PAS_INDIC block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

IOFF BOOL Switch OFF (1-active)


1 = Single-point/double-point indication CLEAR

ION BOOL Switch ON (1-active)


1 = Single-point/double-point indication RAISED

NOT_DBI BOOL 1 = No fault position

DBI0 BOOL 1 = Fault position for double-point indication (1-active)

DBI1 BOOL 1 = Fault position for double-point indication (1-active)

PROINBLK BOOL Process input blocking (1-active)

EXTERR BOOL External error (1-active)

98 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.10 PAS_INDIC - Interlocks

Table 4-22 Outputs of the PAS_INDIC block

Name Data Type Function/Note


Protocol Type

NOTACTUA BOOL Not up to date (1-active)

SUBSTVAL BOOL Manually updated (1-active)

CHATDIS BOOL Chatter blocking (1-active)

BAYBLOCK BOOL Transmission blocking (1-active)

INVALID BOOL Invalid (1-active)

OVERFLOW BOOL Overflow (1-active)

VALTISTB BOOL Clock status bit valid (1-active)

RESTOREB BOOL Restore bit (toggle bit)

INTERRB BOOL Internal error (1-active)

TOTCOUNT BOOL Total count (1-active)

4.10.3 Others

Error handling Non-connected inputs are checked. If inputs which must be connected to
ensure the functionality of the block are not linked, no information is
processed in the block.

SICAM PAS Automation Blocks 99


E50417-H8976-C287-A1
4 Indications

4.10.4 Example:

Switchgear In the example below, Boolean signals are derived from a pulse
interlock command for the logical control of an interlock.

[Link]

Figure 4-19 Example of a switchgear interlock

100 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
4.10 PAS_INDIC - Interlocks

Description PAS_INDIC
An input indication is present on the INDIC input of each of the two
PAS_INDIC blocks. The EN input is assigned with 1 for each of them.
The ION output of the first and the second PAS_INDIC block is
connected to the IN0 or IN1 input of the Boolean block.
AND block
The input indications of this blocks are subject to an AND operation, i. e.
• if both indications = 1, the command to the PAS_COMMCP block is
locked.
• if one or no indication = 1, switching is still possible.
PAS_COMMCP
The Boolean signal is received on the LOCK input and output via
the OUT output.

Indication type Feedback Output Otherwise

Double-Point ON01 ON= 1 OFF = 0


Indication DBI0 = 0
DBI1 = 0

OFF10 OFF= 1 ON = 0
DBI0 = 0
DBI1 = 0

Fault00 DBI0= 1 ON = 0
OFF= 0
DBI1 = 0

Fault11 DBI1= 1 ON = 0
OFF= 0
DBI0 = 0

Single-Point ON1 ON= 1 OFF = 0


Indication
OFF0 OFF= 1 ON = 0

SICAM PAS Automation Blocks 101


E50417-H8976-C287-A1
4 Indications

102 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Measured and Metered Values 5
Overview This chapter explains the SICAM PAS automation blocks for measured-
value and metered-value processing. They are divided into the following
groups:
• Measured-value / metered-value blocks
• Arithmetical blocks
• Comparison blocks
The examples in this chapter illustrate the application of the more
complex blocks.

Contents 5.1 Measured/Metered-Value Processing in the Soft PLC 104

5.2 Analog-Value Normalization 105

5.3 PAS_NLC - Non-Linear Characteristic 107

5.4 PAS_ACQ - Metered-Value Processing 113

5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring 117

5.6 PAS_AVG - Mean Value 123

5.7 PAS_NRP - Slave Pointers 126

5.8 Arithmetical Blocks 130

5.9 PAS_CMP and PAS_CMPC - Comparison Blocks 138

SICAM PAS Automation Blocks 103


E50417-H8976-C287-A1
5 Measured and Metered Values

5.1 Measured/Metered-Value Processing in the Soft PLC

The jobs of the measured-value and metered-value processing are


divided in three block groups:
‰ Measured-value and metered-value blocks
‰ Arithmetical blocks
‰ Comparison blocks
The blocks are used to process measured and metered values
independently of the acquisition sources (bay and protection devices,
internally formed measured and metered values).

An overview of the possible input values and their significance is


provided in Appendix A.2.

104 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.2 Analog-Value Normalization

5.2 Analog-Value Normalization

5.2.1 Measuring Ranges

The measured values of the input blocks or devices are normalized as


follows for the transmission to the automation system:

Bay and protection Bay and protection devices of the SIPROTEC series as well as bay and
devices protection devices connected via PROFIBUS FMS transmit the
measured values normalized to a defined 100% reference value:
Transmission: − 240.0 to + 240.0

Reference 100% reference value


variable:

These measured values are transmitted in the REAL 32bit format.


IEC 60870-5-103 devices produce measured values in the following
format:
Resolution: 12bit + sign

Transmission: − 32768 to + 32760 (two's compliment)

Reference ± 120% or 240% of the measuring range


variable:

These measured values are transmitted in the INTEGER 16bit format.


With the IEC61850 protocol, measured values are transmitted as INT32
or as FLOAT32 depending on the device type.
Additional formats depend on the protocol.

SICAM PAS Automation Blocks 105


E50417-H8976-C287-A1
5 Measured and Metered Values

5.2.2 Analog Value

100% absolute The 100% absolute value corresponds to the maximum value range of
value the output variable, e. g.:
Value range of the Input parameter
output level

100 V 100

20 mA 20

100% acquisition The parameterization of the 100% acquisition value depends on the
value maximum transmission value and on the reference variable of the
acquisition device.

106 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.3 PAS_NLC - Non-Linear Characteristic

5.3 PAS_NLC - Non-Linear Characteristic

CFC view

PAS_NLC.tif

Figure 5-1 PAS_NLC block

The following rule VAR


applies for ST: block: PAS_NLC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

5.3.1 Function

The PAS_NLC block is used to linearize acquisition values which have


been read in. Some measuring transducers have a non-linear measuring
transducer characteristic, i. e. a certain measuring range is mapped with
a high resolution (zoom effect), whereas the remaining range has a
significantly lower resolution.
The PAS_NLC block is able to linearize the acquisition values of
measuring transducer characteristics with different measuring
resolutions (maximally 5 salient points), e. g.:
‰ Stretched start range
‰ Stretched end range
‰ Zero offset
‰ Salient points

SICAM PAS Automation Blocks 107


E50417-H8976-C287-A1
5 Measured and Metered Values

Stretched start
range
mvOUTPUT

120%
1320

100%
KP3

20%
KP2
mvINPUT

KP1 80% 100% 120%


(32760)

Figure 5-2 Stretched start range

Stretched
end range
mvOUTPUT

120%
1320

100%
KP3
80%
KP2

mvINPUT

KP1 20% 100% 120%


(32760)

Figure 5-3 Stretched end range

108 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.3 PAS_NLC - Non-Linear Characteristic

Zero offset

mvOUTPUT

120%
1320

100%
KP2
80%

mvINPUT

KP1 20% 100% 120%


(32760)

Figure 5-4 Zero offset

5 salient points
mvOUTPUT

120%
1320

100% KP5

55% KP4

28%
KP3

6% KP2 mvINPUT

KP1 35% 60% 83% 100% 120%


(32760)

Figure 5-5 A characteristic curve with max. 5 salient points can be


parameterized

SICAM PAS Automation Blocks 109


E50417-H8976-C287-A1
5 Measured and Metered Values

5.3.2 Connections

Inputs

Table 5-1 Inputs of the PAS_NLC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Pointer to input measured-value telegram 0


ME_FL, ME_I (Real or integer)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

VALTYPE BYTE Output data type Protocol type 0


28 = Real (Protocol type ME_FL)
30 = Integer (Protocol type ME_I)

BREAK_NR BYTE This parameter specifies the number of salient 0


points. Maximally 5 can be parameterized.

SYMMETRY BYTE This parameter specifies the characteristic symmetry 0


(zero offset).
0 = Characteristic only in the 1st quadrant
1 = Characteristic symmetric to the zero point
2 = Characteristic symmetric to the y axis

MAX_X REAL This parameter specifies the maximum input value. 0

Note:
Must be parameterized!

MAX_XP REAL Percent value corresponding to the maximum input 0


value.

Note:
Must be parameterized!

110 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.3 PAS_NLC - Non-Linear Characteristic

Table 5-1 Inputs of the PAS_NLC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

MAX_Y REAL This parameter specifies the maximum output value. 0

Note:
Must be parameterized!

MAX_YP REAL Percent value corresponding to the maximum output 0


value.

Note:
Must be parameterized!

X1 REAL X coordinate of KP1 in percent 0

Y1 REAL Y coordinate of KP1 in percent 0

X2 REAL X coordinate of KP2 in percent 0

Y2 REAL Y coordinate of KP2 in percent 0

X3 REAL X coordinate of KP3 in percent 0

Y3 REAL Y coordinate of KP3 in percent 0

X4 REAL X coordinate of KP4 in percent 0

Y4 REAL Y coordinate of KP4 in percent 0

X5 REAL X coordinate of KP5 in percent 0

Y5 REAL Y coordinate of KP5 in percent 0

SICAM PAS Automation Blocks 111


E50417-H8976-C287-A1
5 Measured and Metered Values

Outputs

Table 5-2 Outputs of the PAS_NLC block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Pointer to output measured-value telegram


ME_FL, ME_I (Real or integer)

Note:
Must be connected, i. e. the output must be connected to the
right-hand CFC margin bar or set as an output variable in the
ST program!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

5.3.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

112 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.4 PAS_ACQ - Metered-Value Processing

5.4 PAS_ACQ - Metered-Value Processing

CFC view

PAS_ACQI.tif

Figure 5-6 PAS_ACQ block

The following rule VAR


applies for ST: Block: PAS_ACQ
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

5.4.1 Function

Using the PAS_ACQ block you can realize a metered-value processing


of counters with reset within the soft PLC. Absolute metered values are
rejected by the PAS_ACQ block. The output is performed as a metered
value with reset, absolute metered value or as a mixed version of both.
The metered value to be processed can be preset, also during operation
(32bit setpoint). The presetting for the startup is parameterized
separately.
The metered values are summed up and restored per telecontrol, HMI or
at cyclic intervals. If a cyclic restore was parameterized, restore
commands can also be processed. However, they are not considered
when counting the restore processes for the clear cycle
(parameterization on the WITH_CLR input) of the internal counter
content, i. e. the PAS_ACQ restores the current counter content without
clearing.

Note:
Exception: When parameterizing the WITH_CLR input with 1 (number of
the restore processes = 1), the counter content is cleared after each
restore.

SICAM PAS Automation Blocks 113


E50417-H8976-C287-A1
5 Measured and Metered Values

5.4.2 Connections

Inputs

Table 5-3 Inputs of the PAS_ACQ block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Pointer to metered-value telegram 0


IT (PAS information)

Note:
Must be connected, i. e. the input is connected
with the left-hand CFC margin bar or indicated
as a call parameter within the framework of the
ST programming!

COMM PASDATABLOCK Input for derived restore commands 0

Note:
Can be connected to the OUTPUT of
a PAS_CRCOM block.

SEND PASCOMMANDBLOCK Input for restore command 0


CI (pointer to PAS information)

Note:
Must be connected if COMM, CYCLE is not
parameterized!

VALUE PASCOMMANDBLOCK Metered value preset via digital 32bit setpoint 0


SE_D (pointer to PAS information)

Note:
The internal metered value can be predefined
during operation.

114 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.4 PAS_ACQ - Metered-Value Processing

Table 5-3 Inputs of the PAS_ACQ block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

CYCLE TIME Time for periodic restore in ms. 0

Note:
Must be parameterized if SEND, COMM is not
connected!

WITH_CLR BYTE Restore with clearing after n restore 0


processes.
0 = absolute metered value

STARTVAL DWORD Start value for metered value during the 0


startup

Outputs

Table 5-4 Outputs of the PAS_ACQ block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Metered value output


IT (pointer to PAS information)

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

5.4.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 115


E50417-H8976-C287-A1
5 Measured and Metered Values

5.4.4 Example

In the example below, a counter with reset is restored and cleared at


cyclic intervals every 30 minutes (referred to the full hour). A start value
for the startup is predefined via WinCC.

Bsp_PAS_ACQ.tif

Figure 5-7 Example of a PAS_ACQ block

Description PAS_ACQ block


The block must be parameterized as follows for the above-mentioned
basic conditions:
‰ The cycle time of 30 minutes is parameterized on the CYCLE input.
‰ The WITH_CLR input must be set to 1 to reset the metered value after
the restore.
‰ The STARTVAL input is parameterized with 5. This is the start value
used during the system startup.
The presetting of the counter content, i. e. a 32bit setpoint value
command, is specified on the VALUE input for the running operation.
The metered value added in the buffers of the PAS_ACQ block is present
on the INPUT. The result of the addition is output every 30 minutes on
the OUTPUT .

116 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring

5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring

CFC view

PAS_LIMU.tif

Figure 5-8 PAS_LIMU block

PAS_LIML.tif

Figure 5-9 PAS_LIML block

The following rule VAR


applies for ST: Block: PAS_LIMU or block: PAS_LIML
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

5.5.1 Function

The PAS_LIMU and PAS_LIML blocks are used for limit value
monitoring. If the blocks exceed the specified limit, a limit value indication
(single-point indication) is triggered or a Boolean value is produced.
Limit value overranges are output as RAISED indications (otherwise
CLEAR) or with the Boolean value 1 (otherwise 0).
A hysteresis can be specified for limit value processing.

SICAM PAS Automation Blocks 117


E50417-H8976-C287-A1
5 Measured and Metered Values

PAS_LIMU This block monitors the parameterizable upper limit. If a hysteresis has
been parameterized, the limit value overrange is only reset when the
measured value or metered value falls below the limit value, reduced by
the hysteresis value.
The diagram displays the functioning of the PAS_LIMU block:

IN_100_ABS

LIMVALUE
1050
HYSVALUE
1000

SIGNAL

Figure 5-10 Upper limit monitoring

118 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring

PAS_LIML This block monitors the parameterizable lower limit. If a hysteresis has
been parameterized, the limit value underrange is only reset when the
measured value or metered value has exceeded the limit value,
increased by the hysteresis value.
The diagram displays the functioning of the PAS_LIML block:

IN_100_ABS

HYSVALUE
1050
LIMVALUE
1000

SIGNAL

Figure 5-11 Lower limit monitoring

SICAM PAS Automation Blocks 119


E50417-H8976-C287-A1
5 Measured and Metered Values

5.5.2 Connections

Inputs

Table 5-5 Inputs of the PAS_LIMU and PAS_LIML limit value blocks

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 1


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Input for measured or metered value 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

LIMVALUE REAL Limit value, input as absolute value. 0

Note:
Must be parameterized!

HYSVALUE REAL Hysteresis value, absolute value of the difference to 0


the limit value

Note:
Must be parameterized!

IN_100 REAL 100% acquisition value, depending on the maximum 0


transmission value and the reference variable of the
acquisition device.

Note:
Must be parameterized for measured values and is
irrelevant for metered values!

IN_100_ABS REAL 100% absolute value, corresponds to the maximum 0


value of the output variable.

Note:
Must be parameterized for measured values and is
irrelevant for metered values!

120 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.5 PAS_LIMU and PAS_LIML - Limit-Value Monitoring

Outputs

Table 5-6 Outputs of the PAS_LIMU and PAS_LIML limit value blocks

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

SIGNAL BOOL Output for the derivation of the limit value indication:
1 = Limit value exceeded

INDIC PASDATABLOCK Output for limit value indication with time stamp of the incoming
SP measured value or metered value (pointer to PAS information).

Note:
Must be connected, i. e. the output must be connected to the
right-hand CFC margin bar or set as an output variable in the ST
program!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

5.5.3 Others

Analog-value Refer to Chapter 5.2, Analog-Value Normalization.


Normalization

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 121


E50417-H8976-C287-A1
5 Measured and Metered Values

5.5.4 Example

The example below illustrates a voltage monitoring. An indication is


created in case of an overvoltage.

Bsp_PAS_LIMU.tif

Figure 5-12 Example of the PAS_LIMU block

Description PAS_LIMU block


The measured value of the voltage to be monitored is present on
the INPUT.
The following basic conditions are valid for the above-mentioned
example:
‰ A 10 V voltage range is set during the acquisition of a measured value,
i. e. the 100% absolute value is 10.
‰ The transmission variable is a 16bit integer value. It amounts to 32760
with a reference value of 120%, i. e. the 100% acquisition value is 27306
(two's complement).
‰ The limit value is 9 V, i. e. you parameterize the value 9.
‰ The hysteresis amounts to 2 V, i. e. you parameterize the value 2.
A RAISED indication is created on the INDIC output whenever the
measured value is greater than 9 V. If the voltage falls again below 7 V
(limit value - hysteresis), a CLEAR indication is created on the INDIC
output.

122 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.6 PAS_AVG - Mean Value

5.6 PAS_AVG - Mean Value

CFC view

PAS_AVG.tif

Figure 5-13 PAS_AVG block

The following rule VAR


applies for ST: Block: PAS_AVG
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

5.6.1 Function

This block provides a mean value formation. Either periodic mean values
(mean value formation after N values each) or continuous mean values
(mean value formation over the last N values) can be determined with a
fix number N. The number N is parameterized on the MEAN_NO input,
whereas the mean value type (periodic or continuous) is parameterized
on the CONTIN input.
To read in a new measured value for the mean value formation, a valid
measured value must be connected to the INPUT and a Boolean pulse
must be triggered on the VAL_TRIG input. In this context, the block does
not evaluate the rising edge, but only the value 1. As a rule,
the VAL_TRIG input should be triggered at cyclic intervals (e. g. via the
TIMER_SW block).
If a bay blocking is defined on the device which produces the measured
value, the PAS_AVG block transmits a new mean value with the value 0
and the bay blocking status. When the bay blocking is undone, another
mean value is transmitted with the value 0, but with the OK status. The
internal mean value formation is reset and restarted.
The current sum and number of read-in values are visualized the
VAL_SUM and VAL_CNT outputs (e .g. for diagnosis or further
processing).
With each new mean value which is not transmitted via a reset or a bay
blocking, a Boolean pulse is output on the VAL_NEW output.

SICAM PAS Automation Blocks 123


E50417-H8976-C287-A1
5 Measured and Metered Values

5.6.2 Connections

Inputs

Table 5-7 Inputs of the PAS_AVG block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Input metered value / measured value 0


ME_FL, ME_I, (pointer to PAS information)
IT
Note:
Must be connected!

VAL_TRIG BOOL Read in signal for measured value. If a 1 is present 0


during the call-up of the block, the current measured
value for the mean value formation is read in.

MEAN_NO DWORD Number of values for the formation of the mean 0


value.

CONTIN BOOL Mean value type: 0


0 = periodic
1 = continuous

RESET BOOL Reset input. If a 1 is present, the current mean value 0


formation is reset.

124 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.6 PAS_AVG - Mean Value

Outputs

Table 5-8 Outputs of the PAS_AVG block

Name Data Type Function/Note


Protocol Type

ENO BOOL Enable Output

OUTPUT PASDATABLOCK Mean value measured value/metered value output


ME_FL, ME_I, (pointer to PAS information)
IT

VAL_SUM REAL Actual sum of the measured values read in.

VAL_CNT DWORD Actual number of measured values read in.

VAL_NEW BOOL Outputs a Boolean pulse when a new mean value is formed
(not for reset or bay blocking).

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

5.6.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 125


E50417-H8976-C287-A1
5 Measured and Metered Values

5.7 PAS_NRP - Slave Pointers

CFC view

PAS_NRP.tif

Figure 5-14 PAS_NRP block

The following rule VAR


applies for ST: Block: PAS_NRP
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

5.7.1 Function

You can realize a slave pointer function via the PAS_NRP block. This so-
called slave pointer function saves the current maximum or minimum of
the corresponding measured or metered value
The slave pointer value is reset via the Boolean RESET input and can
be triggered via a marker command (siehe Kapitel 3.4), an indication, etc.
For this purpose, the slave pointer value is determined as follows:
‰ with the maximum function to the smallest possible value
‰ with the minimum function to the highest possible value

126 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.7 PAS_NRP - Slave Pointers

5.7.2 Connections

Inputs

Table 5-9 Inputs of the PAS_NRP measured-value block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Input for measured or metered value 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

RESET BOOL Trigger input for a slave pointer value reset 0

Note:
When 1 is present, the slave pointer is set to the
current value.

MAX_MIN BOOL This parameter specifies whether the minimum or 1


the maximum value is saved.
0 = Minimum value
1 = Maximum value

SICAM PAS Automation Blocks 127


E50417-H8976-C287-A1
5 Measured and Metered Values

Outputs

Table 5-10 Outputs of the PAS_NRP measured-value block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Output for measured or metered value information


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the output is connected to the right-
hand CFC margin bar or set as an output variable in the ST
program!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

5.7.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

128 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.7 PAS_NRP - Slave Pointers

5.7.4 Example

In the example below, a maximum current input is captured and stored.


The capture starts after a motor startup phase of 5 s.

Bsp_PAS_INDIC_PAS_TIMERSW_PAS_NRP.tif

Figure 5-15 Example of a maximum current input

Description PAS_INDIC block


A start indication for the motor is present on the INDIC input of the block.
It is transmitted to the F_TRIG block via the Boolean output.
F_TRIG block
F_TRIG is a standard block and pulse generator. The block transmits the
pulse to the PAS_TIMERSW.
PAS_TIMERSW block
A start/reset timer (Mode2) is started via the rising edge R_TRIG
(indication appeared) and is active for a period of 5 seconds. This active
signal is used to permanently reset the PAS_NRP block during these
5 seconds.
PAS_NRP block
The measured value of the motor current capture is present on
the INPUT of the PAS_NRP block. To capture the maximum current, the
MAX_MIN input must be parameterized with the value 1.
The maximum motor current is captured and output on the OUTPUT.

SICAM PAS Automation Blocks 129


E50417-H8976-C287-A1
5 Measured and Metered Values

5.8 Arithmetical Blocks

CFC view

PAS_ADD.tif

Figure 5-16 PAS_ADD block

PAS_ADDC.tif

Figure 5-17 PAS_ADDC block

PAS_SUB.tif

Figure 5-18 PAS_SUB block

PAS_SUBC.tif

Figure 5-19 PAS_SUBC block

PAS_MUL.tif

Figure 5-20 PAS_MUL block

130 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.8 Arithmetical Blocks

PAS_MULC.tif

Figure 5-21 PAS_MULC block

PAS_DIV.tif

Figure 5-22 PAS_DIV block

The following rule Example:


applies for ST:
VAR
Block: PAS_ADD or block: PAS_ADDC or
Block: PAS_SUB or block: PAS_SUBC or
Block: PAS_MUL or block: PAS_MULC or
Block: PAS_DIV
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

SICAM PAS Automation Blocks 131


E50417-H8976-C287-A1
5 Measured and Metered Values

5.8.1 Function

These blocks can be used to apply simple arithmetical functions to


measured values and metered values.
The blocks perform the following functions:
‰ Addition of measured or metered values
‰ Subtraction of measured or metered values
‰ Multiplication of measured or metered values
‰ Multiplication of a measured or metered value with a constant
‰ Division of measured or metered values
The measured values can be processed both in the REAL 32bit format
(value type 28) and in the INTEGER 16bit format (value type 30).
Metered values are always processed in the INTEGER 32bit format
(value type 30).

PAS_ADD This block adds 2 to max. 4 metered or measured values in the REAL
format (value type 28) or in the INTEGER format (value type 30).
In the sequence of execution, PAS_ADD must always follow the blocks
generating the measured or metered values. This means that the values
must have been processed before the addition. Otherwise, a connection
error is created. The first value specifies the output data type.

PAS_ADDC This block adds a metered or measured value in the REAL format (value
type 28) or INTEGER format (value type 30) with a constant.
In the sequence of execution, PAS_ADDC must always follow the blocks
generating the measured or metered values. This means that the values
must have been processed before the addition. Otherwise, a connection
error is created.

PAS_SUB The PAS_SUB block can subtract two measured or metered values and
create an item of PAS information. The data type of the created
PAS information corresponds to the data type of the PAS information
which is present on the MINU input.

PAS_SUBC This block subtracts a metered or measured value in the REAL format
(value type 28) or INTEGER format (value type 30) with a constant.
In the sequence of execution, PAS_SUBC must always follow the blocks
generating the measured or metered values. This means that the values
must have been processed before the subtraction. Otherwise, a
connection error is created.

132 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.8 Arithmetical Blocks

PAS_MUL This block multiplies 2 to max. 4 metered or measured values in the


REAL format (value type 28) or in the INTEGER format (value type 30).
In the sequence of execution, PAS_MUL must always follow the blocks
generating the measured or metered values. This means that the values
must have been processed before the multiplication. Otherwise, a
connection error is created. The first value specifies the output data type.

PAS_MULC The PAS_MULC block can multiply a measured or metered value with a
constant and create an item of PAS information. The data type of the
created PAS information corresponds to the data type of the
PAS information which is present on the INPUT input.

PAS_DIV The PAS_DIV block can divide two measured or metered values and
create an item of PAS information. The data type of the created
PAS information corresponds to the data type of the PAS information
which is present on the NUMER input.

SICAM PAS Automation Blocks 133


E50417-H8976-C287-A1
5.8.2 Connections

Inputs of the PAS_ADD and PAS_MUL blocks

Table 5-11 Inputs of the PAS_ADD and PAS_MUL blocks

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

IN1 PASDATABLOCK Input for measured or metered value 1 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

IN2 PASDATABLOCK Input for measured or metered value 2 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

Maximally up to

IN4 PASDATABLOCK Input for measured or metered value 4 0


ME_FL, ME_I, IT (pointer to PAS information)

SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.8 Arithmetical Blocks

Outputs of the PAS_ADD and PAS_MUL blocks

Table 5-12 Outputs of the PAS_ADD and PAS_MUL blocks

Name Data Type Function/Note


Protocol Type

OUTPUT PASDATABLOCK Output for result (pointer to PAS information)


ME_FL, ME_I, IT
Note:
Must be connected, i. e. the output must be connected to the
right-hand CFC margin bar or set as an output variable in the ST
program!

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

Inputs of the PAS_SUB and PAS_DIV and PAS_SUBC blocks

Table 5-13 Inputs of the PAS_SUB and PAS_DIV blocks

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

MINU/ PASDATABLOCK Input for measured or metered value 1 0


NUMER ME_FL, ME_I, IT (minuend/dividend)
(pointer to PAS information).

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

SUBTR/ PASDATABLOCK Input for measured or metered value 2 0


DENOM/ ME_FL, ME_I, IT (minuend/dividend)
CONST (pointer to PAS information).

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

SICAM PAS Automation Blocks 135


E50417-H8976-C287-A1
5 Measured and Metered Values

Inputs of the PAS_SUB and PAS_DIV and PAS_SUBC blocks

Table 5-14 Outputs of the PAS_SUB and PAS_DIV blocks

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Output for result (pointer to PAS information)


ME_FL, ME_I, IT
Note:
Must be connected, i. e. the output must be connected to the
right-hand CFC margin bar or set as an output variable in the
ST program!

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

Inputs of the PAS_MULC and PAS_ADDC blocks

Table 5-15 Inputs of the PAS_MULC and PAS_ADDC blocks

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Input for measured or metered value 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

CONST REAL Constant 0

Note:
Must be parameterized!

136 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.8 Arithmetical Blocks

Outputs of the PAS_MULC and PAS_ADDC blocks

Table 5-16 Outputs of the PAS_MULC and PAS_ADDC blocks

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Output for result


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the output must be connected to the
right-hand CFC margin bar or set as an output variable in the ST
program!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

5.8.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 137


E50417-H8976-C287-A1
5 Measured and Metered Values

5.9 PAS_CMP and PAS_CMPC - Comparison Blocks

CFC view

PAS_CMP.tif

Figure 5-23 PAS_CMP block

PAS_CMPC.tif

Figure 5-24 PAS_CMPC block

The following rule VAR


applies for ST: Block: PAS_CMP or PAS_CMPC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

138 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.9 PAS_CMP and PAS_CMPC - Comparison Blocks

5.9.1 Function

PAS_CMP This block compares 2 metered or measured values in the REAL format
(value type 28) or INTEGER format (value type 30). The result of the
comparison is output on the corresponding Boolean output (value = 1).

PAS_CMPC This block compares a metered/measured value with a constant in the


REAL format (value type 28) or INTEGER format (value type 30). The
result of the comparison is output on the corresponding Boolean output
(value = 1). The second value is set as a constant via the CONST input.

5.9.2 Connections

Inputs

Table 5-17 Inputs of the PAS_CMP block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INPUT1 PASDATABLOCK Input for measured or metered value 1 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected to the
left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

INPUT2 PASDATABLOCK Input for measured or metered value 2 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected to the
left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

SICAM PAS Automation Blocks 139


E50417-H8976-C287-A1
5 Measured and Metered Values

Inputs

Table 5-18 Inputs of the PAS_CMPC block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL Enable Input 0

INPUT PASDATABLOCK Input measured value 0


ME_FL, ME_I, IT (pointer to PAS information)

Note:
Must be connected, i. e. the input is connected to the
left-hand CFC margin bar or indicated as a call
parameter within the framework of the ST
programming!

CONST REAL 0

Outputs

Table 5-19 Outputs of the PAS_CMP and PAS_CMPC blocks

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

GREATER BOOL INPUT1 is greater than INPUT2

GR_EQ BOOL INPUT1 is greater than or equal to INPUT2

EQUAL BOOL INPUT1 is equal to INPUT2

LE_EQ BOOL INPUT1 is less than or equal to INPUT2

LESS BOOL INPUT1 is less than INPUT2

STATUS BYTE Status byte


OR operation
EXSTATUS BYTE Extended status byte

140 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
5.9 PAS_CMP and PAS_CMPC - Comparison Blocks

Table 5-19 Outputs of the PAS_CMP and PAS_CMPC blocks

Name Data Type Function/Note


Protocol Type

TIMEHIGH WORD Time stamp (bit 0 to 15)


Operand
modified last
TIMELOW DWORD Time stamp (bit 16 to 47)

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

5.9.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the corresponding block.

SICAM PAS Automation Blocks 141


E50417-H8976-C287-A1
5 Measured and Metered Values

142 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Special Blocks 6
Overview This chapter explains the SICAM PAS automation blocks of the special
block group. They are important tools for the connection and processing
of PAS information in the SICAM PAS.
The examples in this chapter illustrate the application of the blocks.

Contents 6.1 Concept of Special Blocks in the Soft PLC 144

6.2 PAS_SASC - Creating PAS Information 145

6.3 PAS_SASS - Splitting PAS Information 149

6.4 PAS_TIMERSW - Timer 153

6.5 PAS_TIMES - Time Block 157

6.6 PAS_MUXTEL - Multiplexer for Input 160

SICAM PAS Automation Blocks 143


E50417-H8976-C287-A1
6 Special Blocks

6.1 Concept of Special Blocks in the Soft PLC

Tasks Special blocks are required for the internal processing of process data
and signals in the SICAM PAS and provide the following functions:
‰ Creating PAS information from process data structure blocks
‰ Dividing PAS information into process data structure blocks
‰ Realizing a timer

Appendix A.1 provides an overview of possible input values and their


significance.

144 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.2 PAS_SASC - Creating PAS Information

6.2 PAS_SASC - Creating PAS Information

CFC view

PAS_SASC.tif

Figure 6-1 PAS_SASC block

The following rule VAR


applies for ST: Block: PAS_SASC
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

6.2.1 Function

The PAS_SASC block is used to form an item of PAS information (data


type PASDATABLOCK) from the individual components of
PAS information. In addition to this, you output this item of
PAS information for processing in other blocks.
This option can e. g. be used to simulate PAS information for testing
certain states of the automation blocks.
The PAS_SACS block can be used to compose process information.
However, the PAS_SASC block cannot derive indications or commands.
The PAS_CRI (refer to Chapter 4.2) or PAS_CRCOM blocks (refer to
Chapter 3.2) are available for this purpose.

SICAM PAS Automation Blocks 145


E50417-H8976-C287-A1
6 Special Blocks

6.2.2 Connections

Inputs

Table 6-1 Inputs of the PAS_SASC special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment is 0


forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

SEND BOOL Creates an item of PAS information during the change 0


from 0 to 1.
0 = No PAS information
1 = PAS information is created

Note:
Must be connected if CHANGE is not connected and
must not be connected if CHANGE is connected!

CHANGE BOOL Change marker 0


Creates an item of PAS information during each
change.

Note:
Must be connected if SEND is not connected and must
not be connected if SEND is connected!

CAUSE BYTE Cause of the PAS information 0

TESTMODE BOOL Test mode bit 0

INITCAT BYTE Cause category 0

STATUS BYTE Status byte 0

ADDCAUSE BYTE Additional cause 0

VALTYPE BYTE Value type 0

TIMETYPE BYTE Type of time 0

IDTYPE BYTE Type of the ID number 0

146 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.2 PAS_SASC - Creating PAS Information

Table 6-1 Inputs of the PAS_SASC special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

SUPPTYPE BYTE Type of additional information 0

DW_VALUE DWORD The value is interpreted as a double word (32 bits) and 0
the command is updated for this value.

Note:
The use depends on the parameterized value type.

R_VALUE REAL The value is interpreted as real and the information is 0


updated based on this value.

Note:
The use depends on the parameterized value type.

EXSTATUS BYTE Extended status byte 0

TIMELOW DWORD Time stamp (bit 16 to 47) 0

Note:
The internal system time is used if the input is not
assigned.

TIMEHIGH WORD Time stamp (bit 0 to 15) 0

IDNO WORD ID number 0

SUPPINFO WORD Additional information 0

SICAM PAS Automation Blocks 147


E50417-H8976-C287-A1
6 Special Blocks

Outputs

Table 6-2 Outputs of the PAS_SASC special block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

OUTPUT PASDATABLOCK Output for the created PAS information.

6.2.3 Others

Error processing Non-connected inputs are checked. If inputs which must be connected to
ensure the functionality of the block are not linked, no information is
processed in the block.

148 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.3 PAS_SASS - Splitting PAS Information

6.3 PAS_SASS - Splitting PAS Information

CFC view

PAS_SASS.tif

Figure 6-2 PAS_SASS block

The following rule VAR


applies for ST: Block: PAS_SASS
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

6.3.1 Function

The PAS_SASS block splits the structure of an item of PAS information,


a variable of the type PASDATABLOCK, into individual components. The
block can e. g. be used as a diagnostic tool to check the connection in
the SICAM PAS.
The block cannot indicate any command structures!

SICAM PAS Automation Blocks 149


E50417-H8976-C287-A1
6 Special Blocks

6.3.2 Connections

Inputs

Table 6-3 Inputs of the PAS_SASS special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. 0


The input assignment is forwarded to the ENO
output.
0 = Block deactivated
1 = Block activated

INPUT PASDATABLOCK Input for PAS information 0

Note:
Must be connected, i. e. the input is connected with
the left-hand CFC margin bar of the CFC editor or
connected with an upstream PAS block!

Outputs

Table 6-4 Outputs of the PAS_SASS special block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

CHANGE BOOL Change marker


In case of an indication change the marker changes from 0
to 1 and vice-versa.

MARKER DWORD Change marker


In case of an indication change the marker is increased by 1
(cycle-wise).

CAUSE BYTE Cause of the PAS information

TESTMODE BOOL Test mode bit

INITCAT BYTE Cause category

STATUS BYTE Status byte

150 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.3 PAS_SASS - Splitting PAS Information

Table 6-4 Outputs of the PAS_SASS special block (Forts.)

Name Data Type Function/Note


Protocol Type

ADDCAUSE BYTE Additional cause

VALTYPE BYTE Value type

TIMETYPE BYTE Type of time

IDTYPE BYTE Type of the ID number

SUPPTYPE BYTE Type of additional information

DW_VALUE DWORD The value is output as a double word.

Note:
The use depends on the parameterized value type.

R_VALUE REAL The value is output as real.

Note:
The use depends on the parameterized value type.

EXSTATUS BYTE Extended status byte

TIMELOW DWORD Time stamp (bit 16 to 47)

TIMEHIGH WORD Time stamp (bit 0 to 15)

IDNO WORD ID number

SUPPINFO WORD Additional information

SICAM PAS Automation Blocks 151


E50417-H8976-C287-A1
6 Special Blocks

6.3.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

6.3.4 Example

Refer to Example of a switchgear interlock, page 100 (PAS_INDIC and


PAS_COMMCP)

152 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.4 PAS_TIMERSW - Timer

6.4 PAS_TIMERSW - Timer

View

PAS_TIMERSW.tif

Figure 6-3 PAS_TIMERSW block

The following rule VAR


applies for ST: Block: PAS_TIMERSW
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

6.4.1 Function

The PAS_TIMERSW block provides a timer block for the soft PLC. With
every sequence of the timer, the task is initiated again to perform
potential calculations.
To start the PAS_TIMERSW block already during the startup of SICAM
PAS, the START input must be specified to 1 (TRUE). In this case, the
TIMER is started within the framework of the startup process.
The PAS_TIMERSW block makes available 4 different modes: As long
as the START input is set to 1, a pulse is generated at cyclic intervals in
the Cyclic Pulse mode. In addition to this, the pulse interval is set to 0:00
h in case of a Synchronous Pulse. The Start/Reset Timer mode
describes a timer with start and a possible reset signal. If the Delay is
used, it is checked whether a signal is present without interruption during
a parameterized time.

SICAM PAS Automation Blocks 153


E50417-H8976-C287-A1
6 Special Blocks

Cyclic pulse mode

Figure 6-4 Cyclic pulse mode

Synchronized
pulse mode

Figure 6-5 Synchronized pulse mode

Start/Reset Timer
mode

Figure 6-6 Start/Reset timer mode

Delay mode

Figure 6-7 Delay mode

154 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.4 PAS_TIMERSW - Timer

6.4.2 Connections

Inputs

Table 6-5 Inputs of the PAS_TIMERSW special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment is 0


forwarded to the ENO output.
0 = Block deactivated
1 = block activated

MODE BYTE Mode for timer block: 0


0 = Cyclic pulse
1 = Synchronized pulse
2 = Start/Reset timer
3 = Delay

RESET BOOL Reset input 0


(significance depending on the mode)

START BOOL Start input 0


(significance depending on the mode)

TTIME TIME Time setting 0


Input in T#5min10s

Outputs

Table 6-6 Outputs of the PAS_TIMERSW special block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

CHANGE BOOL The value changes from 0 to 1 with each successful timer
sequence.

OUT BOOL The output for the current sequence is set to 1 with every
successful timer run.

ACTIVE BOOL This output is set to 1 as long as a timer is active.

SICAM PAS Automation Blocks 155


E50417-H8976-C287-A1
6 Special Blocks

Table 6-6 Outputs of the PAS_TIMERSW special block

Name Data Type Function/Note


Protocol Type

ERR BOOL The output for the current sequence is set to 1 with every incorrect
timer run (reset or abortion).

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

6.4.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

156 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.5 PAS_TIMES - Time Block

6.5 PAS_TIMES - Time Block

CFC view

PAS_TIMES.tif

Figure 6-8 PAS_TIMES block

The following rule VAR


applies for ST: Block: PAS_TIMES
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

6.5.1 Function

This block splits the system-internal time format into individual


components. The T_MODE input provides the following options:
‰ Output of the current time stamp at the time of the block poll.
‰ Output of the present time via the two TIMEHIGH and TIMELOW
inputs.
‰ Output of the time of the present PAS information.
‰ Output of the time stamp at the time of the trigger pulse.

SICAM PAS Automation Blocks 157


E50417-H8976-C287-A1
6 Special Blocks

6.5.2 Connections

Inputs

Table 6-7 Inputs of the PAS_TIMES special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL This input activates the block. The input assignment 0


is forwarded to the ENO output.
0 = Block deactivated
1 = Block activated

T_MODE BYTE Source of the displayed time: 0


0: Current time
1: Time from TIMEHIGH and TIMELOW
2: Time from PAS information
3: Time stamp for trigger pulse

TRIGGER BOOL Triggers a time stamp with a rising-edge pulse 0

Note:
Active when T_Mode = 3 !

INPUT PASDATABLOCK PAS information 0


(pointer to PAS information)

Note:
Must be connected if T_Mode = 2 !

TIMEHIGH WORD Time stamp (bit 0 to 15) 0

Note:
Must be connected if T_Mode = 1 !

TIMELOW DWORD Time stamp (bit 16 to 47) 0

Note:
Must be connected if T_Mode = 1 !

158 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.5 PAS_TIMES - Time Block

Outputs

Table 6-8 Outputs of the PAS_TIMES special block

Name Data Type Function/Note


Protocol Type

ENO BOOL Looped-through EN input

T_INV BOOL Time status bit: Invalid

T_SYNC BOOL Time status bit: Synchronized

YEAR INT Years

MONTH INT Months

DAY INT Day

HOUR INT Hours

MINUTE INT Minutes

SECOND INT Seconds

MIL_SEC INT Milliseconds

DIAG WORD This output visualizes diagnostic information


(refer to Appendix A.2).

6.5.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 159


E50417-H8976-C287-A1
6 Special Blocks

6.6 PAS_MUXTEL - Multiplexer for Input

CFC view

PAS_MUXTEL.tif

Figure 6-9 PAS_MUXTEL block

The following rule VAR


applies for ST: Block: PAS_MUXTEL
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

6.6.1 Function

This block allows the connection of several sources of information to one


automation block. It maps up to 4 items of information to the input of the
other block.
The PAS_MUXTEL block is mainly used by the command derivation if
several triggers may possibly exist (e. g. switching sequence).

160 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
6.6 PAS_MUXTEL - Multiplexer for Input

6.6.2 Connections

Inputs

Table 6-9 Inputs of the PAS_MUXTEL special block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

IN1 PASDATABLOCK Input for information structure 1 0


(pointer to PAS information)

IN2 PASDATABLOCK Input for information structure 2 0


(pointer to PAS information)

Maximally up to

IN4 PASDATABLOCK Input for information structure 4 0


(pointer to PAS information)

Outputs

Table 6-10 Outputs of the PAS_MUXTEL special block

Name Data Type Function/Note


Protocol Type

OUT PASDATABLOCK Output for information structure


(pointer to PAS information)

Note:
Must be connected!

DIAG WORD This output visualizes diagnostic information (refer to


Appendix A.2).

6.6.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

SICAM PAS Automation Blocks 161


E50417-H8976-C287-A1
6 Special Blocks

162 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Sequence Blocks 7
Overview This chapter explains the SICAM PAS automation blocks of the
sequence block group. This block is used to realize functional sequences
and switching sequences.

Contents 7.1 PAS_STATE - State 164

7.2 PAS_TRANS - Transition 167

SICAM PAS Automation Blocks 163


E50417-H8976-C287-A1
7 Sequence Blocks

7.1 PAS_STATE - State

CFC view

PAS_STATE.tif

Figure 7-1 PAS_STATE block

The following rule VAR


applies for ST: Block: PAS_STATE
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

7.1.1 Function

The PAS_STATE block performs the job of a state e. g. within the


framework of the parameterization of a state machine (refer to Petri
networks). An action is triggered when activating a state. It is
parameterized on the SACTION input. The block is activated via a
Boolean 1 on the ACTIVATE input.
PAS_TRANS blocks are used to parameterize transitions to another
state (connection via CONNECT). In the sequence of execution, a
PAS_STATE block is always located ahead of its assigned PAS_TRANS
blocks. If a transition is performed via a transition PAS_TRANS block, the
previous and the following state are activated.
The subsequent transitions ( PAS_TRANS block) are connected to the
state ( PAS_STATE block) via the CONNECT inputs/outputs.
The step type can be parameterized on the SACTION input (refer to table
below). Upstream transitions communicate to the PAS_STATE block via
the ACTIVATE block when it becomes active. The parameterized action
is executed via the SACTION input after each activation. The START
input of the corresponding PAS_STATE block must be activated for the
start state of the Petri network model.

164 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
7.1 PAS_STATE - State

7.1.2 Connections

Inputs

Table 7-1 Inputs of the PAS_STATE block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL Enable Input 0

START BOOL Identifies the start state. 0

Note:
Only one PAS_STATE block should be defined as
start state.

ACTIVATE DWORD The parameterized action is executed as soon as this 0


input is activated and the state becomes active.

SACTION DWORD 0 = Command OFF 0


1 = Command ON
2 = Single-point indication RAISED
3 = Single-point indication CLEAR
4 = Double-point indication ON
5 = Double-point indication OFF
255 = No action

Outputs

Table 7-2 Outputs of the PAS_STATE block

Name Data Type Function/Note


Protocol Type

ENO BOOL Enable Output

CONNECT PASSTATELINK This output is connected to the CONNECT input of


PAS_TRANS blocks.

OUT PASDATABLOC Telegram output - depending on the parameterized action, this is


K an indication, a command, etc. (refer to SACTION input) (pointer
to PAS information).
As a rule, it is used on the COMM input of a PAS_COMMCP or
connected directly to the margin bar (indication).

ACTIVE BOOL Indicates which state is active or has been activated via the
START or ACTIVATE input.

SICAM PAS Automation Blocks 165


E50417-H8976-C287-A1
7 Sequence Blocks

Table 7-2 Outputs of the PAS_STATE block

Name Data Type Function/Note


Protocol Type

DIAG DWORD Diagnostic information

7.1.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

7.1.4 Example:

Refer to Transformer Switching, page 179.

166 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
7.2 PAS_TRANS - Transition

7.2 PAS_TRANS - Transition

CFC view

PAS_TRANS.tif

Figure 7-2 PAS_TRANS block

The following rule VAR


applies for ST: Block: PAS_TRANS
END_VAR
Program code:
Block(<Input name>:=xxx, .....)
Read outputs:
xxx:=block.<Output name>;

7.2.1 Function

The PAS_TRANS block performs the task of a transition e. g. within the


framework of the parameterization of a Petri network. The transition is
connected to the upstream states (PAS_STATE block) via
the CONNECT input. The transition switches as soon as the OK
condition is met. The downstream states (PAS_STATE block) are
activated via the ACTIVATE output.
Depending on the individual setting, the PAS_TRANS block calls again
the task via the STARTTASK input. In this way, blocks which are
positioned ahead of the PAS_TRANS block in the sequence of execution
are computed again.
The call-up of the task is parameterized via the STARTTASK input. In
this context, TRUE = 1 and FALSE = 0.

SICAM PAS Automation Blocks 167


E50417-H8976-C287-A1
7 Sequence Blocks

7.2.2 Connections

Inputs

Table 7-3 Inputs of the PAS_TRANS block

Name Data Type Function/Note Pre-


Protocol Type assign-
ment

EN BOOL Enable Input 0

CONNECT PASSTATELINK Connection to the upstream state block. 0

Note:
The transition can only switch if the upstream state is
active.

OK BOOL Switching condition for transition. The transition 0


switches if 1 is present.

STARTTASK BOOL Call-up of the task: 0


TRUE = task call
FALSE = do not call task

Outputs

Table 7-4 Outputs of the PAS_TRANS block

Name Data Type Function/Note


Protocol Type

ENO BOOL Enable Output

ACTIVATE BOOL This output is set to 1 when the transition switches.

MARKER DWORD Number of transition switching operations.

DIAG DWORD Diagnostic information

168 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
7.2 PAS_TRANS - Transition

7.2.3 Others

Error handling If inputs which must be connected to ensure the functionality of the block
are not linked, no information is processed in the block.

7.2.4 Example:

Refer to Transformer Switching, page 179.

SICAM PAS Automation Blocks 169


E50417-H8976-C287-A1
7 Sequence Blocks

170 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Example 8
Overview This chapter illustrates and explains a solution for frequently occurring
task definitions.

Contents 8.1 Switchgear Interlock to the Busbar Feeder 172

8.2 Switching Sequences in the Soft PLC 176

8.3 Transformer Switching 179

SICAM PAS Automation Blocks 171


E50417-H8976-C287-A1
8 Example

8.1 Switchgear Interlock to the Busbar Feeder

In the example below, a switchgear interlock is implemented for a busbar change


(refer to Figure 8-1) triggered by the control center.

Busbar SS1

Busbar SS2

Disconnector Q1 Disconnector Q2

Circuit breaker Q0

Figure 8-1 Busbar feeder

Switching The following switching conditions must be met for the busbar change represented
conditions in Figure 8-1:
‰ The Q0 circuit breaker may only be switched if the Q1 and Q2 disconnectors are
not in a fault position.
‰ The Q1 and Q2 disconnectors may only be switched if the Q0 circuit breaker is
switched OFF.

Logical equations The following logical equations apply for the above-mentioned switching
conditions:

(I) Q0 ON = ( Q1 ON or Q1 OFF ) and ( Q2 ON ( or ) Q2 OFF )

(II) Q1 ( ON ) ⁄ ( OFF ) = Q0 OFF

(III) Q2 ( ON ) ⁄ ( OFF ) = Q0 OFF

172 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.1 Switchgear Interlock to the Busbar Feeder

➊ ➏

➋ ➐

➌ ➑

[Link]

Figure 8-2 Interlock for busbar feeder (Section1)

SICAM PAS Automation Blocks 173


E50417-H8976-C287-A1
8 Example

Description PAS_INDIC local control


This block locks the busbar feeder via the control center if the switching
authority is local (key switch - INDIC ➍ input).
PAS_COMMCP Q1/Q2
The PAS_COMMCP1 Q1 and PAS_COMMCP2 Q2 blocks monitor the
issue of the switching commands to the Q1 and Q2 disconnectors for
both switching directions (ON and OFF) depending on the signals on the
REL_ON and REL_OFF enable inputs. Both are 1-active.
The command output is performed on the OUT outputs (➏, ➐).
PAS_COMMCP Q0
PAS_COMMCP Q0 monitors the issue of the switching command for the
Q0 circuit breaker for the ON switching direction in relation to the signal
on the REL_ON enable input (1-active).
The command output is performed on the OUT ➑ output.

AND
The AND block performs an AND operation of the logical equation (I).
For this purpose, an AND operation of fault position indications is
performed via the PAS_INDIC Q1 and Q2 blocks and assigned to the
REL_ON enable input of the PAS_COMMCP Q0 block.

PAS_INDIC Q1/PAS_INDIC Q2
If required, these blocks derive the fault position indication of the Q1 and
Q2 disconnectors. For this purpose, the PAS_INDIC inputs are
connected to the INDIC outputs of the PAS_COMMCP Q1 and
PAS_COMMCP Q2 blocks.
The fault position indication is output on the NOT_DBI outputs.

PAS_INDIC Q1/Q2 switchgear interlock


This block produces the enable or interlock signal for the PAS_COMMCP
Q1 and PAS_COMMCP Q2 blocks depending on the logical equations
(II) and (III). For this purpose, the INDIC input of the block is
connected to the INDIC output of the PAS_COMMCP Q0 block.
Whenever the Q0 circuit breaker is switched OFF, the OFF output is
TRUE (1). It controls the enable inputs of the PAS_COMMCP Q1 and
PAS_COMMCP Q2 blocks.

174 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.1 Switchgear Interlock to the Busbar Feeder

Connection with ➊ Q2 process feedback


margin bars
➋ Q1 process feedback
➌ Q0 process feedback
➍ Indication local control
➏ Q2 command
➐ Q1 command
➑ Q0 command

SICAM PAS Automation Blocks 175


E50417-H8976-C287-A1
8 Example

8.2 Switching Sequences in the Soft PLC

8.2.1 Overview

Several block types are used to specify a switching sequence in the soft
PLC. The following information must be specified by means of these
blocks within the framework of parameterization:
‰ Information on the execution of the switching sequence
‰ Control of the switching sequence, check of switching conditions and
generation of the commands
‰ Issue of the commands
This chapter explains how these items are implemented in the soft PLC.
The example Release Circuit Breaker for Maintenance is used for this
purpose. Table 8-1 illustrates the structure on which this example is
based.

Table 8-1 Contents of the example switching sequence


Release Circuit Breaker for Maintenance

Step of the Action Command


switching sequence

1 Circuit breaker OFF Command OFF

2 Open disconnector 1 Command OFF

3 Open disconnector 2 Command OFF

4 Close ground electrode 1 Command ON

5 Close ground electrode 2 Command ON

176 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.2 Switching Sequences in the Soft PLC

8.2.2 General Example of Switching Sequences

Description A function block is written in ST or CFC (see Figure 8-3, see Figure 8-4).
This block corresponds to the processing of a command of a switching
sequence. It has a OUT command output for the connection of the
command.
After the termination of the command (positive or negative) the
corresponding output is triggered to initiate another step or to terminate
the switching sequence (CONT, ERR).
A small switching sequence with a switching sequence start command
(PAS_SELC block) including two command steps (see Figure 8-5) is
included in the switching sequence. In the two steps, two commands are
switched OFF consecutively (CACTION = 0, refer to SACTION for
PAS_STATE).

[Link]

Figure 8-3 Example of switching sequences. Switching step in ST.

SICAM PAS Automation Blocks 177


E50417-H8976-C287-A1
8 Example

[Link]

Figure 8-4 Example of switching sequences. Switching step in CFC.

[Link]

Figure 8-5 Example of a switching sequence with a switching sequence start command

178 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.3 Transformer Switching

8.3 Transformer Switching

The example below illustrates the implementation of a transformer


switching initiated by the control center by means of a
command with setpoint input.

Method of The switching is distributed to the individual sheets of the CFC chart
operation according to the corresponding basic function:
‰ Sheet 1 (see Figure 8-6):
Main chart: Command or indication preprocessing and control logic
for the transformer tap
‰ Sheet 2 (see Figure 8-7):
Transformer tap command with value conversion: Chart-in-chart
technology.
This is the TR_SET block of the main chart.
‰ Sheet 3 (see Figure 8-8):
Read in of the current transformer indication and comparison with the
step value. Logic for evaluation purposes. Chart-in-chart technology.
This is the TR_CHECK block of the main chart.
‰ Sheet 4 (see Figure 8-9):
Step-down of the transformer and evaluation of the process feedback:
Chart-in-chart technology.
This is the TR_DOWN block of the main chart.
‰ Sheet 5 (see Figure 8-10):
Step-up of the transformer and evaluation of the process feedback:
Chart-in-chart technology.
This is the TR_UP block of the main chart.

Sheet 1 On sheet 1 of the main chart (see Figure 8-6), the set command for the
transformer tap is transmitted to the CFC logic (TR_SET block). The set
command remains active until the process is terminated with a negative
or positive result. The setpoint value of the transformer tap is transmitted
to the TR_CHECK block via the TR_SET output (TR_SET block).
In the TR_CHECK block, the setpoint value is further processed for a
value comparison with the actual value. The resulting action is initiated.
The transformer tap is controlled via the PAS_MUXTEL and
PAS_COMMCP blocks. The TR_DOWN and TR_UP blocks trigger the
transformer commands and TR_CHECK evaluates the new process
feedback.

Sheet 2 The transformer tap command with value conversion is realized on


sheet 2 (see Figure 8-7). The PAS_SELC block is used for this purpose.
The set command is read in and the setpoint value is extracted in this
block. Afterwards, it is forwarded to the TR_CHECK block.

SICAM PAS Automation Blocks 179


E50417-H8976-C287-A1
8 Example

Sheet 3 On sheet 3 (see Figure 8-8), the current transformer indication is read in
and the comparison with the setpoint value is realized. The sequence is
started via the PAS_STATE block. The PAS_INDIC block reads out the
transformer indication, whereas the comparison is performed via
the PAS_CMPTC block. The scheduled value and the actual value are
evaluated here. Depending on the tap position, additional blocks are
activated with the output signals (TR_DOWN, TR_UP) or the switching
sequence is terminated.
Four switching conditions (transitions):
‰ TAP TOO SMALL
‰ TAP TOO LARGE
‰ TAP OK
‰ TAP NOT TOPICAL.
A TRANS block is used for each switching condition.
The switching conditions are checked when the CHECK TAP state
becomes active. Depending on the switching condition met, the
STEP UP status (on sheet 5) or the STEP DOWN status (on sheet 4)
is activated or the command is terminated:
‰ POSITIVE: SETPOINT=ACTUAL reached or
‰ NEGATIVE:ERROR DURING SWITCHING SEQUENCE.

Sheet 4 The logic for the step down of the transformer tap is realized on sheet 4
(see Figure 8-9) with the STEP DOWN state. The STATE block is used
for this purpose.
Two switching conditions (transitions) exist in the STEP DOWN state:
CMD OK and CMD_ERROR. A TRANS block is used for each switching
condition.
If the STEP DOWN state becomes active, the STATE block performs
the action which has been previously parameterized on the ACTION
input: The transformer tap is controlled via the OUT output.
Next, the switching conditions (transitions) are checked. Depending on
the switching condition met, the CHECK STEP state (on sheet 3) is
activated.

Sheet 5 The logic for the step-up of a transformer tap is implemented with the
STEP UP state. The STATE block is used for this purpose.
Two switching conditions (transitions) exist in the STEP UP state:
CMD OK and CMD_ERROR. A TRANS block is used for each switching
condition.
When the STEP UP state becomes active, the STATE block performs
the action parameterized on the ACTION input: The transformer tap is
controlled via the OUT output.
Next, the switching conditions (transitions) are checked. Depending on
the switching condition met, the CHECK STEP state (on sheet 3) is
activated.

180 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.3 Transformer Switching

[Link]

Figure 8-6 Command or indication preprocessing and control logic for the transformer tap

SICAM PAS Automation Blocks 181


E50417-H8976-C287-A1
8 Example

[Link]

Figure 8-7 Transformer tap command with value conversion

182 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.3 Transformer Switching

[Link]

Figure 8-8 Read in of the current transformer indic. & comparison with the step value. Evaluation logic.

SICAM PAS Automation Blocks 183


E50417-H8976-C287-A1
8 Example

[Link]

Figure 8-9 Step down of the transformer tap (state)

184 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
8.3 Transformer Switching

[Link]

Figure 8-10 Step up of the transformer tap (state)

SICAM PAS Automation Blocks 185


E50417-H8976-C287-A1
8 Example

186 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Appendix A
In the appendix The appendix provides information on the following topics:

Contents A.1 Components of the Process Data Structure 188

A.2 Diagnostic Information 196

A.3 Data Types of the SICAM PAS Process Data Structure 198

SICAM PAS Automation Blocks 187


E50417-H8976-C287-A1
A Appendix

A.1 Components of the Process Data Structure

A.1.1 Cause

Table A-1 Values of the cause information

Group Value (dec. code) Significance

Data 0 Irrelevant

1 Spontaneous

2 Cyclic, periodic

3 Initialized/default

Interrogations 8 General interrogation

9 Interrogation

10 Metered-value interrogation

Command execution 16 Command select

17 Command select positive

18 Command select negative

19 Command execution

20 Command acceptance positive

21 Command acceptance negative

25 Cancellation

26 Cancellation positive

27 Cancellation negative

34 Feedback information because of command

35 End of command execution positive

188 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.1 Components of the Process Data Structure

Table A-1 Values of the cause information (continued)

Group Value (dec. code) Significance

36 End of command execution negative

Organizational data 32 Organizational information

Bit 7 Direction bit

A.1.2 Cause Category


Table A-2 Cause category values

Value (dec. code) Significance

Bit 7 Test mode

0 Irrelevant

1 Local operation (directly on the device)

2 Local operation (in the station)

3 Remote operation

4 Automatic (internal, from the CFC)

10 DIGSI operation

20 Release internal, invalid

21 Release internal, blocked

SICAM PAS Automation Blocks 189


E50417-H8976-C287-A1
A Appendix

A.1.3 Additional Cause

Table A-3 Cause category values

Value (dec. code) Significance

0 No error

32 Hardware error on release relay


engerization

33 HW error on command termination

34 Duration outside the permissible range

35 Error during the command output


period

36 Error in the output time control

37 Hardware channel unknown

38 Maximum number of parallel


commands exceeded

39 Incorrect command type

40 Incorrect data type

41 Command substep sequence incorrect

64 Hardware check on output

65 Readback of the output command


results in incorrect value

66 Voltage to energize output relay


missing

67 Release relay could not be terminated

68 Incorrect output value

80 Output switching current check;


external voltage present

190 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.1 Components of the Process Data Structure

Table A-3 Cause category values (continued)

Value (dec. code) Significance

81 Output switching current check;


resistance incorrect

82 Signaling relay does not exist

83 Command output voltage missing


(substation battery)

96 Interlock found

97 Operator error protection interlock

98 Parameter error

99 Violation of switching authority

100 Command too old

101 No process output object or reserved


object

102 Output block set

103 Hardware error module

104 Hardware error I/O channel

105 Overload (no free resources)

112 Upper limit reached

113 Lower limit reached

114 Plausibility error

115 Necessary synchronization missing

116 Device state does not permit command

117 SETPOINT = ACTUAL

118 Monitoring time elapsed (timeout)

SICAM PAS Automation Blocks 191


E50417-H8976-C287-A1
A Appendix

Table A-3 Cause category values (continued)

Value (dec. code) Significance

119 Acquisition block set

120 Chatter disable active

121 1-out-of-error (software)

A.1.4 Status
Table A-4 Values of the status bytes

Value Significance

Bit 0 Process input block

Bit 1 External error

Bit 2 Not updated (not topical)

Bit 3 Manually updated (substituted)

Bit 4 Chatter disable

Bit 5 Transmission block

Bit 6 Invalid

Bit 7 Overflow

192 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.1 Components of the Process Data Structure

A.1.5 Extended Status

Table A-5 Values of the extended status bytes

Value Significance

Bit 0 --

Bit 1 --

Bit 2 --

Bit 3 --

Bit 4 Clock time bit valid

Bit 5 Restore bit

Bit 6 Internal error bit

Bit 7 Counter content

A.1.6 Value Type


Table A-6 Value types of the information items

Value (dec. code) Significance

1 Organizational indication

2 Double-point indication

3 Single-point indication

4 Event indication

5 Transformer tap position feedback

6 Indication with value

7 Bit pattern indication, 8 bits

8 Bit pattern indication, 16 bits

9 Bit pattern indication, 24 bits

SICAM PAS Automation Blocks 193


E50417-H8976-C287-A1
A Appendix

Table A-6 Value types of the information items (continued)

Value (dec. code) Significance

10 Bit pattern indication, 32 bits

11 Organizational acknowledgement

12 Metered value

13 Persistent switching command

14 Pulse switching command

15 Continuous command

16 Auto reclose command

17 Transformer tap command

18 Setpoint value digital, 8 bits

19 Setpoint value digital, 16 bits

20 Setpoint value digital, 24 bits

21 Setpoint value digital, 32 bits

22 Setpoint value analogue, floating

24 Setpoint value analogue, integer

25 GI request

26 Restore command

27 Organizational command

28 Measured value, floating point

30 Measured value, fixed point

31 Sequence

194 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.1 Components of the Process Data Structure

A.1.7 Type of Time

Table A-7 Values of the time type

Value (dec. code) Significance

0 Time irrelevant

1 Absolute time in 1/10 ms since Jan. 1, 1990

A.1.8 Identification Number

Table A-8 Values of the identification number type

Value (dec. code) Significance

0 Identification number irrelevant

1 Defined implicitly by the information

2 Feedback identification, interrogation cycle

3 Fault number

The identification number is no longer used in SICAM PAS.

A.1.9 Additional Information Type


Table A-9 Additional Information

Value (dec. code) Significance

0 Additional information irrelevant

1 Defined implicitly by the information

2 Relative time with respect to an event in ms

3 Cause source (source address)

The additional information is no longer used in SICAM PAS.

SICAM PAS Automation Blocks 195


E50417-H8976-C287-A1
A Appendix

A.2 Diagnostic Information

The diagnostic byte (DIAG output) of the CFC blocks visualizes


diagnostic information and is used for the monitoring and analysis of the
internal states of CFC blocks. You can use this information to search for
an error, for example.
The diagnostic byte (DIAG output) of the PAS_COMMCP and
PAS_SELC command blocks and all blocks of the following CFC block
groups may have the decimal values listed in Table A-10:
‰ Special blocks
‰ Indication blocks
‰ Arithmetical blocks
‰ Measured-value and metered-value blocks
‰ Comparison blocks
‰ Sequence Blocks

Table A-10 Diagnostic value (DIAG output)

Value (dec. Significance


code)

0 No error, normal process sequence

1 CPU (block not yet in RUN)

2 Unconnected input which must be connected, e. g.


with...I

3 Block deactivated via ENABLE input

4 Timer event

5 Output error

6 No change (block idling)

7 Internal error (block-internal)

8 Input error (block inputs)

9 Error in dynamic memory reservation

10 Value outside the valid range

196 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.2 Diagnostic Information

Table A-10 Diagnostic value (DIAG output) (continued)

Value (dec. Significance


code)

11 Overflow (underflow)

12 Signal error (error status)

13 Division by zero

14 Incorrect parameter (block parameterization)

15 Bay blocking active

SICAM PAS Automation Blocks 197


E50417-H8976-C287-A1
A Appendix

A.3 Data Types of the SICAM PAS Process Data Structure

Table A-11 Data types in the SICAM PAS PD structure and their use

Designation (in Hardware Protocol Type Automation Blocks


Config) Table

Single-point indication SP PAS_CRI


PAS_ANDI
PAS_ORI
PAS_INVER
PAS_DELAYI
PAS_INDIC

Double-point indication DP PAS_TSP


PAS_CRI
PAS_ANDI
PAS_ORI
PAS_INVER
PAS_DELAYI
PAS_INDIC

Event indication EVENT PAS_CRI


PAS_DELAYI

Bit pattern indication BO PAS_CMPB


(8 bits) PAS_CMPBC

Bit pattern indication BO PAS_CMPB


(16 bits) PAS_CMPBC

Bit pattern indication BO PAS_CMPB


(24 bits) PAS_CMPBC

Bit pattern indication BO PAS_CMPB


(32 bits) PAS_CMPBC

Transformer tap position ST PAS_CMPT


indication PAS_CMPTC

198 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
A.3 Data Types of the SICAM PAS Process Data Structure

Table A-11 Data types in the SICAM PAS PD structure and their use

Designation (in Hardware Protocol Type Automation Blocks


Config) Table

Metered value acquisition IT PAS_LIMU


Metered value PAS_LIML
PAS_ADD
PAS_SUB
PAS_MUL
PAS_DIV
PAS_CMP
PAS_NRP
PAS_ACQ
PAS_MULC
PAS_AVG

Measured Value ME_FL PAS_LIMU


(with event buffer entry) ME_I PAS_LIML
PAS_ADD
PAS_SUB
PAS_MUL
PAS_DIV
PAS_CMP
PAS_NRP
PAS_NLC
PAS_MULC
PAS_AVG

Digital output Setpoint SE_D PAS_SELC,


value PAS_COMMCP,
PAS_ACQ

Analog output Setpoint SE_AI, PAS_SELC,


value SE_AFL PAS_COMMCP

Digital output Persistent STATIC_SC PAS_SELC,


command STATIC_DC PAS_COMMCP

Command output Pulse PULSE_SC PAS_SELC,


command PULSE_DC PAS_COMMCP

Restore command CI PAS_ACQ

Command - PAS_SELC
PAS_COMMCP

SICAM PAS Automation Blocks 199


E50417-H8976-C287-A1
A Appendix

200 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
References

/1/ SIMATIC HMI WinCC V6 Basic Documentation


6AV6392-1XA06-0BA0
/2/ SICAM PAS, Overview
E50417-X8900-C044-A5
/3/ SICAM PAS, Installation Manual
E50417-M8900-C045-A5
/4/ SICAM PAS, Configuration and Operation
E50417-P8900-C046-A5
/5/ SICAM PAS, Manual Human Machine Interface SICAM PAS CC
E50417-H8900-C284-A1
/6/ SICAM, Manual Measured/Metered Value Processing Utility
SICAM Valpro
E50417-H8900-C285-A1
/7/ SICAM, Manual Fault Record Processing Utility SICAM Recpro
E50417-H8900-C286-A1
/8/ SICAM PAS, Automation Blocks
E50417-H8900-C287-A1

SICAM PAS Automation Blocks 201


E50417-H8976-C287-A1
References

202 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Index

Numerics C
100 % absolute value CFC chart 8
Analog value normalization 106 Setting the grid 14
100 % acquisition value Text blocks 12
Analog value standardization 106 CFC chart-in-chart technology
Compund Block 38
A CFC editor
Additional information 195 Margin bars 10
Analog value normalization CFC Variable Group 4
100 % absolute value 106 CFC Variable Name 4
Analog value processing Checking PAS information 37
Analog value standardization 105 Command authorization 44
Analog value standardization Command blocks
100 % acquisition value 106 PAS_COMMCP 52
Analog values 106 PAS_CRCOM 44
Bay and protection devices 105 PAS_SELC 57
Measuring Ranges 105 Command interlock 13
Arithmetical blocks Command processing
Diagnosis 196 Commands to the process 42
PAS_ADD 132 Concept 42
PAS_ADDC 132 System-internal commands 43
PAS_DIV 133 Commands
PAS_MUL 133 PD structure 29
PAS_MULC 133 Comparison blocks
PAS_SUB 132 Diagnosis 196
PAS_SUBC 132 Comparison of measured or metered
Automation Block values 138
Inserting 9 Compilation
Selecting 9 of the project 18
Specifying 9 Compile
Automation block project data 16
Connecting 11 Compiling project data 16
Components
B PD structure 188
Bay and protection devices Compund Block
Analog value standardization 105 CFC chart-in-chart technology 38
Bit pattern comparison Configuration Procedure 2
PAS_CMPB 91 Connection of a group indication with
PAS_CMPBC 91 PAS_ORI 11
Blocks Converting
Parameterizing 14 Double-Point to Single-Point
BOOL 31 Indications 69
BYTE 32 Create
PAS information 145

SICAM PAS Automation Blocks 203


E50417-H8976-C287-A1
Index

Text blocks 12 PAS_DELAYI 82


Creating a CFC project PAS_INDIC 100
CFC editor 7 PAS_INVER 78
CFCPlan 6 PAS_LIMU 122
Creating group indications 83 PAS_ORI 78
Cyclic pulse mode PAS_TSP 71
PAS_TIMERSW 154 Persistent command 51
Soft PLC-internal command 15
D Switchgear interlock 100
Data Type Switchgear interlock Busbar Feeder 172
Module 198 Switching sequence with switching se-
Protocol Type Table 198 quence start command 178
SICAM PAS PD structure 198 Switching sequences - switching step in
Use 198 CFC 178
Data types Switching sequences - switching step in
BOOL 31 ST 177
BYTE 32 Switching Sequences in the Soft PLC 176
DWORD 32 Transformer switching 179
INTEGER 33
REAL 33 F
SICAM PAS 34 Fatal errors 37
TIME 34 Fault 37
WORD 32
Delay mode G
PAS_TIMERSW 154 Group indication
Derive AND operations 73
Commands 44 OR operations 73
Determining the maximum of measured or Group values 10
metered values 126
Determining the minimum of measured or I
metered values 126 Identification number 195
DIAG output 196 Indication blocks
Diagnostic information 196 Diagnosis 196
DWORD 32 PAS_ANDI 72, 73
PAS_CMPB 91
E PAS_CMPBC 91
Error handling PAS_CMPT 85
Fatal errors 37 PAS_CMPTC 85
Fault 37 PAS_CRI 65
Warnings 37 PAS_DELAYI 79
Examples PAS_GROUPI 83
Command derivation 50 PAS_INDIC 97
Command interlock 13 PAS_INVER 76
Connection of a group indication with PAS_ORI 72, 73
PAS_ORI 11 PAS_TSP 69
Issuing a switching command 56 Indication processing
Maximum current input 129 Concept 64
PAS_ACQ 116 Tasks 64
PAS_ANDI 68, 71, 78 Indications
PAS_CMPB 96 create 65
PAS_CMPT 90 filter 79
PAS_COMMCP 100 Inputs and outputs
PAS_CRI 68, 90, 96 Parameterizing 36

204 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Index

INTEGER 33 Zero offset 109


Interlock of indication blocks 97
Issuing a switching command 56 O
Online connection 40
L Opening the soft PLC user interface
Limit value monitoring [Link] 5
PAS_LIML 117 [Link] 5
PAS_LIMU 117 Optimizing the compilation
List of Tags Normal 17
invert 76 Options 17
logically linking 72 size only 17
speed only 17
M
[Link] 5 P
Margin bars Parameterizing
Functionality 10 Blocks 14
Interconnection 39 Inputs and outputs 36
Marker command PAS blocks
Soft PLC-internal command 15 Name designation 9
Marker command for the soft PLC 57 PAS_ACQ
Master values 10 Error handling 115
Maximum current input Example 116
Example 129 Function 113
Mean 123 Inputs 114
Measured and Metered Value Processing Outputs 115
Concept 104 Process metered value 113
Measured and metered values PAS_ADD
PD structure 29 Addition of measured or metered
Measured or metered values values 132
Adding 132 Fault processing 137
Division 133 Function 132
Multiplication 133 Inputs 134
Multiplication with constant 133 Outputs 135
Subtraction 132 PAS_ADDC
Measured-value / metered-value blocks Addition of measured or metered
Diagnosis 196 values 132
PAS_ACQ 113 Fault processing 137
PAS_AVG 123 Function 132
PAS_CMP 138 Inputs 136
PAS_CMPC 138 Outputs 137
PAS_LIML 117 PAS_ANDI
PAS_LIMU 117 AND operation for group indication 73
PAS_NLC 107 Error handling 75
PAS_NRP 126 Example 68, 71
Metered values Example: 78
Edit 113 Function 73
Multiplexer for input 160 Inputs 74
Logical link of indications 72
N Outputs 74
Non-linear characteristic 107 PAS_AVG
Stretched end range 108 Error handling 125
Stretched start range 108 Function 123
with salient points 109 Inputs 124

SICAM PAS SICAM PAS 205


E50417-H8976-C287-A1
Index

Mean 123 Function 44


Outputs 125 Inputs 46
PAS_CMP Outputs 49
Comparison blocks 138 Persistent command 51
Error handling 141 PAS_CRI
Function 139 Creating indications 65
Inputs 139 Error handling 68
Outputs 140 Example 68
PAS_CMPB Example: 90, 96
Bit pattern comparison 91 Function 65
Error handling 95 Inputs 66
Example 96 Outputs 67
Function 92 PAS_DELAYI
Inputs 93 Error handling 81
Outputs 93 Example 82
PAS_CMPBC Filter indications 79
Bit pattern comparison 91 Function 79
Error handling 95 Inputs 80
Function 92 Outputs 81
Inputs 94 PAS_DIV
Outputs 95 Division of measured or metered
PAS_CMPC values 133
Comparison blocks 138 Fault processing 137
Fault processing 141 Function 132
Function 139 Inputs 135
Inputs 140 Outputs 136
Outputs 140 PAS_GROUPI
PAS_CMPT Creating group indications 83
Error handling 89 Function 83
Example 90 Inputs 84
Function 86 Outputs 84
Inputs 87 PAS_INDIC
Outputs 87 Error handling 99
Transformer tap comparison 85 Example 100
PAS_CMPTC Function 97
Error handling 89 Inputs 98
Function 86 Interlocks 97
Inputs 88 Outputs 98
Outputs 89 PAS_INVER
Transformer tap comparison 85 Error handling 78
PAS_COMMCP Example: 78
Command output to the process 52 Function 76
DIAG output 196 Inputs 77
Error handling 55 Invert indications 76
Example: 100 Outputs 77
Function 52 PAS_LIML
Inputs 54 Fault processing 121
Outputs 55 Function 117
PAS_CRCOM Inputs 120
Command authorization 44 Limit value monitoring 117
Command derivation 44, 45, 50 Lower limit monitoring 119
Create command 45 Outputs 121
Examples 50 PAS_LIMU

206 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Index

Error handling 121 PAS_SASS


Example 122 Error handling 152
Function 117 Function 149
Inputs 120 Inputs 150
Limit value monitoring 117 Outputs 150
Monitor upper limit value 118 Splitting PAS information 149
Outputs 121 PAS_SELC
PAS_MUL DIAG output 196
Fault processing 137 Error handling 61
Function 132 Function 57
Inputs 134 Inputs 58
Multiplication of measured or metered Marker command for soft PLC 57
values 133 Outputs 60
Outputs 135 PAS_STATE 164
PAS_MULC Error handling 166
Fault processing 137 Function 164
Function 132 Inputs 165
Inputs 136 Outputs 165
Multiplication of a measured or metered State (e. g. Petrinetz model) 164
value with a constant 133 PAS_SUB
Outputs 137 Fault processing 137
PAS_MUXTEL Function 132
Error handling 161 Inputs 135
Function 160 Outputs 136
Inputs 161 Subtraction of measured or metered
Multiplexer for input 160 values 132
Outputs 161 PAS_SUBC
PAS_NLC Fault processing 137
Error handling 112 Function 132
Function 107 Inputs 135
Inputs 110 Outputs 136
Non-linear characteristic 107 Subtraction of measured or metered
Outputs 112 values 132
PAS_NRP PAS_TIMERSW
Error handling 128 Cyclic pulse mode 154
Function 126 Delay mode 154
Inputs 127 Error handling 156
Outputs 128 Function 153
Slave pointer function 126 Inputs 155
PAS_ORI Outputs 155
Error handling 75 Start/ResetTimer mode 154
Example: 78 Synchronized pulse mode 154
Function 73 Timer for software level 153
Inputs 74 PAS_TIMES
Logical link of indications 72 Error handling 159
OR operation for group indication 73 Function 157
Outputs 74 Inputs 158
PAS_SASC Outputs 159
Create PAS information 145 Time block 157
Error handling 148 PAS_TRANS 167
Function 145 Error handling 169
Inputs 146 Function 167
Outputs 148 Inputs 168

SICAM PAS SICAM PAS 207


E50417-H8976-C287-A1
Index

Outputs 168 SICAM PAS UI - Configuration


Transition (e. g. Petrinetz model) 167 Mapping values 4
PAS_TSP Open 4
Converting double-point to single-point Slave pointer function 126
indications 69 Slave values 10
Error handling 71 Soft PLC
Example 71 Programs 24
Function 69 Task 24
Inputs 70 Soft PLC-internal command 15
Outputs 70 Marker command 15
[Link] 5 Special Blocks
PD component Concept 144
Additional cause 190 Diagnosis 196
Cause 188 PAS_MUXTEL 160
Cause Category 189 Tasks 144
Extended status 193 Special blocks
Status 192 PAS_SASC 145
PD structure PAS_SASS 149
Additional information 195 PAS_TIMERSW 153
Commands 29 PAS_TIMES 157
Components 27, 188 Specifying a PAS interface variable 10
Filtering, splitting 29 Split
Identification number 195 PAS information 149
Indications 29 ST
Measured and metered values 29 Programming 19
Pointer 29 Start/ResetTimer mode
Process data structure 188 PAS_TIMERSW 154
Type of time 195 Starting the Soft PLC
Value type 193 Requirements 3
Pointer to PD structure 29 Switchgear interlock
Process data structure Example 100
PD structure 188 Switchgear interlock Busbar Feeder
Process data structure / PD structure 25 Example 172
Programming Switching authority check 44
ST 19 Switching sequences
Programs Example 176
Export 39 Synchronized pulse mode
Import 39 PAS_TIMERSW 154
Reuse 39
T
R Task
REAL 33 Event-controlled 8
Possible Events 8
S Text blocks
Sequence Blocks Create 12
Diagnosis 196 TIME 34
PAS_STATE 164 Transformer switching 179
PAS_TRANS 167 Example 179
Sequence of execution 8 Method of operation 179
Setting the grid Transformer tap comparison
CFC CHART 14 PAS_CMPT 85
SICAM PAS PAS_CMPTC 85
Data types 34

208 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
Index

V
Value type 193
Variable Name 4

W
Warnings 37
WORD 32

SICAM PAS SICAM PAS 209


E50417-H8976-C287-A1
Index

210 SICAM PAS Automation Blocks


E50417-H8976-C287-A1
To:
Siemens AG
PTD PA D DM
Postfach 4806
90026 Nürnberg, Germany

From:
Your name : ..........................................................................................................
Your title : ..........................................................................................................
Your company : ..........................................................................................................
Department : ..........................................................................................................
Street : ..........................................................................................................
City, State : ..........................................................................................................
☎: ..........................................................................................................
FAX : ..........................................................................................................

Please indicate your area of work with a checkmark:

‰ Automation ‰ Building services, air conditioning


‰ Mining (incl. strip mining) ‰ Heavy machine constr., handling syst.
‰ Chemical industry ‰ Pipelines
‰ Power generation ‰ Shipbuilding, navigation
‰ Power distrib., power system managem. ‰ Environmental technology
‰ Gas/water/sanitary utilities ‰ Traffic and transportation
‰ Other
Comments / Suggestions

Your comments and suggestions will help us to improve the usability of our
documentation. Please fill out this questionnaire and mail or fax it back to Siemens
(FAX number +49 911 433-8518).

Title of the Manual: SICAM PAS User Manual


Order no. of the Manual: E50417-H8976-C287-A1

Please answer the following questions by giving a rating between 1 = good and 5 =
poor.

1. Do the contents cover your requirements? ................


2. Were you able to find the information you need easily? ................
3. Did you find the texts easy to understand? ................
4. Does the technical information depth meet your requirements? ................
5. How do you rate the quality of the illustrations? ................

If you have encountered any specific problems, please give us a concise description
below:

..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................

Release: 14.01.04
E50417-H8976-C287-A1
SICAM PAS
SICAM
Power Automation System
Automation Blocks
Foreword, Table of Contents
Siemens Aktiengesellschaft
Document No. E50417-H8976-C287-A1
Disclaimer of Liability
Although we have carefully checked the c
iii
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
Foreword
Purpose of 
this manual
This manual is a reference document for
Foreword
iv
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
v
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
Table of Contents
1
Getting Started. . . . . . . . . . . . . . . . . . . .
Table of Contents
vi
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
2.3
Data Types Used in the Soft PLC. . . . . . . . . .
Table of Contents
vii
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
3.4
PAS_SELC - Marker Command for the Soft PLC  . . .
Table of Contents
viii
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
4.6
PAS_DELAYI - Filtering an Indication . . . . . .
Table of Contents
ix
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
5.2
Analog-Value Normalization. . . . . . . . . . . . .
Table of Contents
x
SICAM PAS Automation Blocks
E50417-H8976-C287-A1
5.8
Arithmetical Blocks . . . . . . . . . . . . . . . .

You might also like