LogicEditor enUS
LogicEditor enUS
Basic Operation 1
Assistance 2
SICAM
Projects 3
Logic Editor A8000
Signals and Settings 4
V03.80 Configuring Function Charts (CFC) 5
Configuring CFC Trend View 6
Help
Customizing Trend View Display 7
Configuring User-Defined Function Blocks 8
Data Types and Data Structures 9
Instructions (Blocks) 10
Documentation 11
Project 12
Function Charts (CFC) 13
Analyzing Function Charts (CFC) 14
SICAM A8000 Devices 15
Redundancy 16
User Interface 17
Index
NOTE
i For your own safety, observe the warnings and safety instructions contained in this document, if available.
Table of Contents
1 Basic Operation.......................................................................................................................................... 11
1.1 Getting to Know the User Interface....................................................................................12
1.1.1 User Interface.............................................................................................................. 12
1.1.2 Project Tree................................................................................................................. 13
1.1.3 Working Area...............................................................................................................16
1.1.4 Inspector Window........................................................................................................16
1.1.5 Task Card.................................................................................................................... 16
1.1.6 Editor Window.............................................................................................................18
1.1.7 Object Bar................................................................................................................... 19
1.2 Adjusting View of User Interface and Contents.................................................................. 19
1.2.1 Adjusting Working Area............................................................................................... 19
1.2.2 Adjusting Rows and Columns....................................................................................... 20
1.2.3 Sorting Column Content.............................................................................................. 23
1.2.4 Filtering Column Content.............................................................................................23
2 Assistance................................................................................................................................................... 24
2.1 Overview on the Logic Editor Information System..............................................................25
2.2 Using Logic Editor Help..................................................................................................... 25
2.3 Icons in the Info Tab..........................................................................................................27
2.4 Copying and Deleting Messages........................................................................................ 27
3 Projects....................................................................................................................................................... 29
3.1 Managing Projects............................................................................................................ 30
3.1.1 Overview of Projects.................................................................................................... 30
3.1.2 Opening a Project........................................................................................................ 30
3.1.3 Saving a Project........................................................................................................... 30
3.1.4 Closing a Project.......................................................................................................... 30
3.1.5 Deleting a Project........................................................................................................ 31
3.1.6 Printing Project Data.................................................................................................... 31
11 Documentation.........................................................................................................................................174
11.1 Document - General........................................................................................................ 175
11.2 Text Box – General.......................................................................................................... 175
11.3 Text - View......................................................................................................................176
11.4 Printing Data...................................................................................................................177
11.4.1 Starting the Printing.................................................................................................. 177
11.4.2 Determining the Scope of Printing............................................................................. 178
11.4.3 Selecting Print Options.............................................................................................. 178
11.4.4 Print Options............................................................................................................. 179
11.5 Using Print Preview......................................................................................................... 180
11.5.1 Overview of the Print Preview.................................................................................... 180
11.5.2 Opening the Print Preview......................................................................................... 180
11.5.3 Selecting Preview Options......................................................................................... 181
11.5.4 Scaling a View........................................................................................................... 181
11.5.5 Navigating in the Print Preview.................................................................................. 183
11.5.6 Starting the Printout.................................................................................................. 184
12 Project.......................................................................................................................................................185
12.1 User Information.............................................................................................................186
12.2 Project Conversion.......................................................................................................... 186
16 Redundancy.............................................................................................................................................. 224
16.1 Display of Redundant Devices..........................................................................................225
16.2 Possible Operations of Redundant Devices/Resources.......................................................226
Index.........................................................................................................................................................251
Everything you need to configure and operate A8000 devices is seamlessly integrated in the user interface of
the Logic Editor. The user interface of the SICAM Device Manager Logic Editor consists of several windows.
The following figure shows an example of the components of the Logic Editor user interface:
[le_le_ui, 1, en_US]
• 17.2.2 Signals
• 17.2.4 Testing
• 17.2.3 Variables
• 17.2.5 Instructions
• 17.2.1 Libraries
Certain tabs contain the Information palette. If you highlight an
element, for example in the library, this palette shows detailed
information about this element.
8 Task card The 1.1.5 Task Card contains the contents of various tabs
depending on the content of the working area. These tabs enable
actions such as searching, or contain structured elements in libra-
ries and catalogs, for example blocks for function charts (CFC).
9 Inspector window The 1.1.4 Inspector Window shows additional information about
an element highlighted in the working area or on actions
executed. This information includes the properties of an element,
for example.
10 Object bar The 1.1.7 Object Bar contains buttons for all open editors, tables,
input and output areas. You can switch swiftly between open tools
with these buttons.
Related Topics
1.2.1 Adjusting Working Area
The SICAM Device Manager Logic Editor manages the components of a system and all the data associated with
it in relation to the project. The project tree gives you access to all data and tools. The following figure shows
the project tree.
[sc_le_project_tree, 2, en_US]
The figure shows the symbol for a SICAM A8000 device. Further entries are subordinate to this, giving you
access to device data. Double-clicking on the symbol in the lowermost level of a branch opens an editor or a
setting sheet or executes a certain action in the working area.
Some examples will explain these mechanisms:
• The CFC_1 entry is an access point to an editor. Double-clicking this entry opens the 17.1.1 Function-
Chart (CFC) Editor. The entry name can be defined by the user.
• The Add new chart entry is an action. This lets you open a dialog enabling you to add a new CFC chart.
Among other things, you can perform the following actions with the project-tree function:
• Open the 17.1.1 Function-Chart (CFC) Editor to create a User-Defined Function Block (UFB).
• Open the Trend Display and Dynamic Display (6.12 Watching Values in Trend/Dynamic Display while
CFC Online Analysis (Monitoring) is in Progress) for viewing values in Online Test mode.
• Open the Force table for one ressource to force block IO inputs and outputs.
• Open the 9.4 User-Defined Structures editor for creating and modifying user-defined structures.
The following figure shows an example of the components comprising the project tree:
Related Topics
1.1.1 User Interface
1.2.1 Adjusting Working Area
3.1.1 Overview of Projects
The editors that you open to edit elements are displayed within the working area.
You can open several tools simultaneously in the working area. The 1.1.7 Object Bar then contains one button
for each opened tool. You can switch between the individual tools with these buttons.
You can split the working area horizontally or vertically. In this way, you can display 2 tools simultaneously in
the working area. You find more information about this under 1.2.1 Adjusting Working Area.
Related Topics
1.1.1 User Interface
Additional information about a selected element or actions executed is displayed in the Inspector window.
The following figure shows the components of the Inspector window:
[le_le_inspector_window, 1, en_US]
Related Topics
1.1.1 User Interface
1.2.1 Adjusting Working Area
Depending on the object edited or selected, tabs are available in the task card for execution of further actions.
[le_le_taskcard, 3, en_US]
The following tabs are available depending on the relevant working situation:
• 17.2.2 Signals
• 17.2.4 Testing
• 17.2.3 Variables
• 17.2.5 Instructions
• 17.2.1 Libraries
Related Topics
1.1.1 User Interface
1.2.1 Adjusting Working Area
The Editor window supplements the 1.1.2 Project Tree. When the Editor window is open, the content of the
folder currently selected in project tree is displayed in the 1.1.3 Working Area.
You can perform the following actions in the Editor window:
[le_le_editor_window, 1, en_US]
Related Topics
1.1.1 User Interface
1.2.1 Adjusting Working Area
The object bar contains one button for each tool opened in the 1.1.3 Working Area. In certain cases, the object
bar groups several buttons into one single button, for example when you have opened several display pages.
A list box expands when you click such a button. Out of this list box, you can then select the required content
and display it in the working area.
The following figure shows an example of the object bar:
Related Topics
1.1.1 User Interface
1.1.3 Working Area
The task card, the project tree, and the Inspector windows are expanded.
The object displayed in the working area before clicking, and the object that corresponds to the next button in
the object toolbar are displayed among each other.
The object displayed in the working area before clicking, and the object that corresponds to the next button in
the object toolbar are displayed among each other.
Related Topics
² 1.1.1 User Interface
You can adjust the columns and rows of tables in different ways:
[sc_le_adjusting1, 2, en_US]
[sc_le_adjusting2, 2, en_US]
The subordinate rows are shown if the arrow tip points to the right before clicking. The subordinate rows are
hidden if the arrow tip points down before clicking.
² To show or hide all rows, right-click any point within the table.
² In the context menu, click Display all elements or Reduce elements.
If you select Display all elements, the rows belonging to all hierarchy levels are displayed. If you select
Reduce elements, now only the rows belonging to the top hierarchy levels are displayed.
Related Topics
² 1.2.3 Sorting Column Content
² 1.2.4 Filtering Column Content
You can sort the content of tables and matrices. To do this, select a column as the reference. You can select an
alphabetically ascending or descending sort order for the content of this column. The order of the rest of the
column content is adjusted automatically. You cannot sort columns independently from one another.
Related Topics
² 1.2.4 Filtering Column Content
² 1.2.2 Adjusting Rows and Columns
You can filter the tables of the signal and variables task card. Filtered tables show only the rows that comply
with the selected criteria. You can filter the entire data using a text based filter. This can be entered above the
respective list. It is also possible to enter Wildcards (*) in the filter box.
Canceling Filtering
² In the textbox containing the string which is applied for filtering, just remove the string in order to stop
filtering.
Related Topics
² 1.2.3 Sorting Column Content
² 1.2.2 Adjusting Rows and Columns
• Logic Editor Help, which you currently have open before you
Info Tab
The 17.3.1 Info tab displays messages with which you can monitor states, sequences, and results of actions.
An icon classifies each message in the Info tab. You find more information about this icons under 2.3 Icons in
the Info Tab.
The messages in the Info tab are divided thematically into 5 further tabs:
• 17.3.2 General
• 17.3.3 Compile
- or -
²
To get to the Help homepage, click the button in the Logic Editor toolbar: .
Advanced Search
² Combine 2 or more search terms with the AND operator to find only Help topics that contain all words in
the text that you are looking for.
² Combine 2 or more search terms with the OR operator to find only Help topics that contain one of the
words in the text that you are looking for.
² Combine 2 or more search terms with the NEAR operator to find only Help topics in which the search
terms are directly related (8 words).
² To exclude Help topics that contain a certain word from the search, place the NOT operator before the
word.
Printing Information
² Click the Print button.
The table of contents opens in a window of its own.
² In Print help topics dialog, mark the folders and help topics you want to print with a checkmark.
² Click the Print button.
The marked information is printed.
Related Topics
² 2.1 Overview on the Logic Editor Information System
• Icon
This icon indicates the message pertaining to a total action that is completed normally. An example of
such a message is Project Manhatten South opened. The icon is used in the 17.3.2 General tab and in
the 17.3.3 Compile tab.
• Icon
This icon indicates the message to a partial action. The partial action can occur successfully. An example
is Memory size for variables: 16 byte (maximum size: 4096 byte). The icon is used in the General and
Compile tabs.
• Icon
This icon indicates the message to a critical procedure or state. An example of such a message is The
signal ‘Signal 1.VALUE’ is not available (anymore). The icon is used in the General and Compile tabs.
• Icon
This icon shows warnings, e.g. The data types of the input 'ctd_1_CD' and the connected signal
'AI_CI102.VALUE' are not fully compatible. The icon is used in the 17.3.2 General tab and in the
17.3.3 Compile tab.
Related Topics
2.1 Overview on the Logic Editor Information System
Related Topics
² 2.1 Overview on the Logic Editor Information System
Logic Editor manages all data related to CFC charts for a certain device of the A8000 family in a project. The
project is created automatically when opening the Logic Editor from the SICAM Device Manager. If you have
opened a project, the project will be displayed in a hierarchical structure in the 1.1.2 Project Tree. The symbols
and text boxes in the project tree provide you with access to all of the project data and the actions associated
with it.
Related Topics
3.1.2 Opening a Project
3.1.3 Saving a Project
3.1.5 Deleting a Project
3.1.6 Printing Project Data
NOTE
i You cannot open a project directly using the Logic Editor. The project can be opened using the SICAM
Device Manager which will start the Logic Editor automatically. For further assistance refer to the SICAM
Device Manager help.
If changes have been made in the Logic Editor, these can be saved and transmitted to the SICAM Device
Manager.
Saving a Project
² In the Project menu, click Save.
- or -
²
In the 17.5.1 Logic Editor Toolbar, click the button.
All changes in the project are saved under the current project name.
NOTE
i If Logic Editor loses connection to the SICAM Device Manager, it is recommended to save the changes done
in SICAM Device Manager, close the application, restart the application, and save changes again in order
to synchronize the changes with the SICAM Device Manager.
Related Topics
² 3.1.1 Overview of Projects
You can close a project during any phase of the project planning.
Closing a Project
² In the Project menu, click Exit.
If you have changed the project since last saving it, a confirmation prompt appears. Select one of the
following options:
² If you save changes in the current project and wish to close the project, click Yes.
- or -
² If you wish to close the project without saving the last changes in the project, click No.
- or -
² If you wish to cancel closing the project, click Cancel. In this case the project remains open.
Related Topics
² 3.1.1 Overview of Projects
NOTE
i Deleting a project is handled within the SICAM Device Manager software. For further assistance refer to
the SICAM Device Manager help.
Related Topics
3.1.1 Overview of Projects
You can print out all project data or data from individual categories.
Before starting the printing process, you can create and adapt print templates with the Documentation func-
tion. You can prepare project data as a standardized circuit manual and give it a uniform layout.
Related Topics
² 3.1.1 Overview of Projects
• Spontaneous
• Periodical
• System
Every signal contains several signal elements as child nodes based on the signal type (e.g. TI37).
Signal Name
The original name identifies the original signal. An example for this is AI_MVfloat100. You cannot change the
original name. The system can always identify the original signal, even if the signal name has been changed in
the SICAM Device Manager.
Related Topics
4.2.1 Overview of the Signal Catalog
4.2.2 Open the Signal Catalog and Adjust View
Signals are information, in general process information, which (from the application's point of view) come
from outside and are read by the application or are output from the application and go outwards.
The signal catalog can be modified in the SICAM Device Manager.
You can add signals from the signal catalog in the display page or the function chart with drag and drop.
Related Topics
4.1 Overview of Signals
4.2.2 Open the Signal Catalog and Adjust View
5.5.3 Interconnecting a Block with a Signal
The signal catalog is part of the 17.2.2 Signals tab. This tab is available if
Related Topics
² 4.2.1 Overview of the Signal Catalog
In order to use a signal in a display page or a function chart, you must select the signal from the signal catalog
in the 17.2.2 Signals tab. Use drag and drop to add signals from the signal catalog to the display page or the
function chart. You can find information about this in the following topics: 5.5.3 Interconnecting a Block with
a Signal
Signal Element
A signal element is a sub-structure element of a signal:
[le_le_signal_element, 1, en_US]
(1) Signal
(2) Signal Element
✧ In the task card, open the 17.2.2 Signals tab. You find more information about this under 4.2.2 Open
the Signal Catalog and Adjust View.
The signals of the respective device to which a display page or a function chart is associated are displayed in
the signal catalog, embedded in the signal list.
✧ If necessary, use the Filter Textbox at the top of the signal list to apply a filter on the signal list. You find
more information about this under 1.2.4 Filtering Column Content.
✧ Open further levels in the signal list until you are able to select the desired signal element.
✧ Highlight the required signal element.
You can now drag the highlighted signal element to the display page of the function chart.
[sc_signallist_usedbytypes, 1, en_US]
It is also possible to drag and drop a complete signal instead of only a signal element. In this case, the Logic
Editor automatically selects and connects a signal element (preferably the Value signal element, if available).
Symbol Representation
For each signal element, the signal catalog shows a symbol to indicate whether the signal element is used as
an input or output in any plan (chart or user-defined function block) and a number how often it is used as
input or output (columns In and Out).
The same applies to a signal. In this case, the columns In and Out display the accumulated number of signal
elements used as input or output.
Symbol Description
The element is not used in any plan.
[sc_signallist_usedby, 1, en_US]
[sc_usedby_result, 1, en_US]
Related Topics
4.2.1 Overview of the Signal Catalog
CFC stands for Continuous Function Chart. With a CFC, the automation engineer can implement the control
functionality.
With the 17.1.1 Function-Chart (CFC) Editor, you can create function charts (CFC). For this, you use a library
with preassembled blocks that you interconnect for the overall function. This eliminates the programming of
blocks and reduces the frequency of errors.
In order to create the connection to the process or also to other CFC functions, you can use either so-called
connectors or sidebars. Through these 2 elements, you can interconnect blocks with signals or settings from
the signal catalog. On the one hand, signals and settings serve as input information for the CFC function. On
the other hand, signals act as output indications that are created as the result of a CFC function.
When you have completely configured the function charts, the Logic Editor creates an executable program for
an A8000 series device.
Related Topics
5.1.3 Function Chart
5.1.4 Block
5.1.7 Naming Conventions
5.1.6 Flow Model
5.1.5 Configuration Strategy
If the device supports Extended Processing, you can see an entry for each Extended Processing in the tree.
The name of an Extended Processing is defined by the device and cannot be changed by the user. For each
Extended Processing, the entries for charts, trend view, UFBs, and user-specific structures are available.
The names of charts, UFBs, structures, and trend views must be unique within an Extended Processing. All
objects of an Extended Processing are only valid and usable within this Extended Processing.
Signals can be used in several Extended Processings.
Depending on the level which is selected in the tree, you can compile a single Extended Processing or all
Extended Processings.
The appropriate icon in the tree indicates if the Extended Processing has to be compiled.
If you are online with an Extended Processing, this is also indicated by an icon in the tree. All editors of other
Extended Processings are automatically closed. Only the current chart stays open.
Related Topics
5.1.3 Function Chart
5.1.4 Block
5.1.7 Naming Conventions
5.1.6 Flow Model
5.1.5 Configuration Strategy
You can always create CFC functions within a Continuous Function Chart. Such a CFC can consist of a number
of sheets. The sheet size is also variable.
Refer also to 8.1 Brief Introduction to User-Defined Function Blocks.
A Continuous Function Chart (CFC) always belongs to one particular device. The CFCs of a device are hence
saved within the project structure in the device folder. Here, you find the Charts folder. All function charts are
saved in this folder.
Related Topics
5.1.1 Meaning of CFC
5.1.7 Naming Conventions
5.1.5 Configuration Strategy
5.2.6 Switching between Control Flow and Data Flow
5.1.4 Block
For the configuration of a Continuous Function Chart, you use predefined function blocks. You can use various
block types for this purpose.
Block Type
A block type is a type-coded block that can be used multiple times. A block receives all the required data to
complete its task from the block inputs. The block algorithm processes the input values and displays the
returned results as the output.
Each block type has a type definition, which contains the following:
• Type name
The type name describes the function of the block. For example, ADD is used for adding values.
• Algorithm
The algorithm is a sequence of instructions for processing a task, for example, adding multiple values.
Block Instance
A block instance is the use of a block type in the Continuous Function Chart. You can create multiple blocks
from a single block type in consideration of the resource consumption. Each block instance receives a unique
name within a CFC. The block instance inherits the default settings of the block type as a standard, for
example, the initial values of the inputs.
During configuration, you can enter individual initial values, change the name of the block instance, and inter-
connect the block instances.
[sc_le_block_toggle, 1, --_--]
Related Topics
5.1.1 Meaning of CFC
5.1.7 Naming Conventions
5.1.6 Flow Model
You can configure charts graphically via the drag and drop feature.
Optimizing Performance
NOTE
i In order to keep the function charts (CFC) clearly represented, Siemens recommends using user-defined
function blocks (UFBs) to structure the tasks if possible. Structuring tasks of the function chart by using
user-defined function blocks has the following benefits:
• You have the advantage of reusing the UFBs easily in other plans.
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
The execution model describes when and in which order the configured blocks in the Continuous Function
Charts are executed.
2 factors characterize the execution model:
• High
• Normal
• Low
Task
The target system is providing one Task. The cycle time is configurable via Chart sequence & extras > Task
assignment, then a right-click on the desired Task to open its Properties.
The resource consumption of the created CFC chart can be viewed in the Testing task card (refer to 17.2 Tabs
in the Task Area).
[sc_le_flowmodel_task, 2, en_US]
[sc_le_flowmodel_task_805x, 2, en_US]
NOTE
i Empty function charts and unused subcharts consume resources and they also contribute to the system
resource consumption. Siemens recommends deleting empty function charts and unused subcharts.
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
5.1.4 Block
Allowed Characters
The following characters are allowed:
• 0-9
• a-z
• A-Z
• _ (underscore)
Forbidden Characters
The following characters are not allowed:
• Umlauts
• Comma
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
5.1.4 Block
You can add function chart to each Extended Processing of a device depending on its type (e.g. CMIC only
supports 1 CFC plan). A new function-block diagram does not yet contain any blocks or interconnections. To
add a new function chart, use the 1.1.2 Project Tree.
Related Topics
² 5.1.3 Function Chart
² 5.2.2 Opening a CFC
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.4 Copying a CFC
² 5.2.5 Deleting CFCs
CFCs are related to the device. That is why a function chart within the project structure is always filed in a
device folder. To open a function chart, use the 1.1.2 Project Tree.
Related Topics
² 5.1.3 Function Chart
² 5.3.2 Scaling the View
² 5.3.1 Adjusting the Layout in the CFC Data Flow View
² 5.3.4 Adjusting Sheet Bars
² 5.3.5 Showing and Hiding the Grid
² 5.2.6 Switching between Control Flow and Data Flow
If you add a function chart (CFC), it is automatically given a consecutively numbered (ascending) default
name. You can change this name. The names of function charts (CFC) must be unique within an Extended
Processing.
You can change the name of a CFC in its properties or in the project tree.
Related Topics
² 5.1.3 Function Chart
² 5.2.1 Adding a CFC
NOTE
i If you use the Cut option from the context menu to move the CFCs, the CFC is deleted from the source
destination before being pasted to the target destination. For a protected function chart, you can use the
Copy/Paste option, but it is not possible to use the Cut option.
NOTE
i Instead of the Copy command, you can also use the Cut command. The function charts (CFC) are then
deleted from the source device.
Related Topics
² 5.1.3 Function Chart
You can delete one or more function charts (CFC) that have been selected. Always delete function charts using
1.1.2 Project Tree.
NOTE
i If you delete a CFC, the cross-chart interconnections will also be deleted. In this case, the block connections
concerned receive standard values predefined by the block type.
Selecting CFCs
² In the project tree, open the Charts folder in the offline configuration from which you want to delete
function charts.
You see the names of all available function charts (CFC).
² In order to delete an individual CFC, mark the name of this CFC.
- or -
² In order to delete a number of CFCs, mark the names of these CFCs. This is done by holding down either
the SHIFT key or the <CTRL> key, depending on the selection method.
Deleting CFCs
² In the project tree, right-click a marked function chart (CFC).
² Click Delete in the context menu.
A confirmation prompt is displayed.
² Click Yes.
This confirms your action.
The marked function charts (CFC) are deleted from the project.
Related Topics
² 5.1.3 Function Chart
² 5.2.1 Adding a CFC
With the 17.1.1 Function-Chart (CFC) Editor, you can configure the functions in the form of Continuous Func-
tion Charts (CFC). The Function-Chart Editor also contains the 2 views 17.1.2 Data Flow and 17.1.3 Control
Flow. In order to change between these views, you have the following possibilities.
Related Topics
² 5.1.3 Function Chart
You can print a single function chart, a selected number of function charts, or all function charts of an
Extended Processing – or all charts of the device by printing the complete project. You cannot select several
charts of different Extended Processings, multiple selection is only possible within an Extended Processing.
NOTE
i To utilize the print space efficiently and to avoid printing any blank pages, you can adjust the layout
settings in the Sheet Bars/Layout group before printing. You can find these settings under the Properties
tab of the Inspector window of the function chart. For additional information regarding this topic, refer to
5.3.1 Adjusting the Layout in the CFC Data Flow View .
Selecting CFCs
² Open the 1.1.2 Project Tree.
- or -
² In the project, open the offline configuration for which you want to print the display pages.
² In this offline configuration, double-click Diagrams.
You see the names of all function charts (CFC) available.
² In order to print an individual CFC, mark the name of this CFC.
- or -
² In order to print a number of CFCs, mark the names of these CFCs. To do so, hold down either the
<SHIFT> key or the <CTRL> key, depending on the selection method.
- or -
² In order to print all CFCs, mark the CFCs folder.
Related Topics
² 5.1.3 Function Chart
You can import a CSV file. The information in this CSV file is used to create CFCs automatically and to connect
signals (spontaneous/periodic), system signals, and constants with CFC blocks (standard and UFBs).
[sc_cfc_auto_menu, 1, en_US]
[sc_cfc_automatic, 1, en_US]
Examples
The following examples are taken from the rows in Figure 5-3.
The Constant 1 will be connected in Resource M, in Folder System, in Chart SYS_BOOL, with Task 1, to input
(Block-IO) in_4 of Instance BOOL_1 of Block uSysBOOL.
NOTE
i Error handling
If the import fails, the Inspector window refers to a log file with the same format (CSV) containing details
regarding the error in column Result.
• If column U is named Chart-Layout, i.e. the old format, the functionality is as before.
However, you can still use Chart-Layout, old CSV files can still be read.
And you still can write files with Chart-Layout (but then without using the new functionality).
• If column U is named Layout, i.e. the new format, the additonal functionality is provided.
The following entries are possible in column Layout:
Entry Description
An empty field means that the default settings are used:
Partition ID = 1
Chart-Layout = 3×2
<digit> A number between 1 and 6 providing the maximum partition ID:
The chart is created with the number of partitions given. For each partition, the default
chart layout is used (3×2).
4×1 Only the chart layout is defined (here: 4×1)
5,3×2 The number before the comma (here: 5) is the partition ID; valid values are 1 to 6.
The term behind the comma (here: 3×2) defines the chart layout; valid values are 1 to
6, where the product of the 2 values must be ≤ 6.
Mixing old and new format is not allowed: as soon as the column name is Layout, the new format is expected.
If non-uniform layouts are used, the layout of the first line is used in each case; the layout of all further lines
for a chart is ignored (as before), only the partition ID is taken into account and additional partitions are
created if necessary.
If Partition ID = 6 is entered, then all partitions are created, i.e. also partitions 1, 2, 3, 4, 5, 6 (where partition 1
is always present by default after a chart is created), even if it is not explicitly specified in the import file.
Example – Partition ID = 4
The partitions 1 to 4 are created, i.e. the "target partition" and all previous partitions. Partition 1 is generated
by default.
Deleting Charts
If a chart is entered with the prefix "~", it gets automatically deleted. To keep the overview, this is reasonably
done at the beginning of the file.
[sc_con-file, 1, en_US]
NOTE
i If you reduce the sheet size or the sheet count again, all objects from non-available areas are automatically
positioned on the remaining area. If the area is not adequate for all objects, the objects are placed in the
upper left of the CFC. In this case, expand the sheet count and manually place the objects.
Related Topics
² 5.1.3 Function Chart
² 5.3.2 Scaling the View
You can change the display size of the Continuous Function Chart and thus adjust it to the respective situa-
tion.
You have the following possibilities for scaling the view:
• You can adjust the CFC to fit the size of the working area.
NOTE
i If the maximum or minimum display size is reached, the respective button is inactive.
Using a Tree
² As soon as the CFC is visible in the working area, an icon will be shown in the lower right corner of the
working area. Click this icon.
A small window opens. The window displays a smaller view of the CFC. The mouse pointer changes into a
rectangular searcher.
² Move the searcher to the area of the CFC that should be displayed in the working area.
The CFC is immediately updated by moving the mouse.
² Release the mouse button as soon as you have reached the desired display.
Related Topics
² 5.1.3 Function Chart
² 5.3.1 Adjusting the Layout in the CFC Data Flow View
² 5.3.4 Adjusting Sheet Bars
² 5.3.5 Showing and Hiding the Grid
² 5.3.3 Overview of Sheet Bars
² 5.2.6 Switching between Control Flow and Data Flow
If you interconnect blocks with sheet bars, you link the function with signals or settings.
For the display of sheet bars, you can select between the following variants:
• No Sheet Bars
[sc_le_fixed_sidebars, 1, en_US]
The width of the sheet bars is variable. However, both sheet bars always have the same width.
NOTE
i Connections between blocks which cross a sheet area are split and shown in the sheet bar as cross-sheet
interconnections.
The width of the sheet bars is variable. However, both sheet bars always have the same width.
[sc_le_dynamic_sidebars, 1, en_US]
No Sheet Bars
The CFC is shown without sheet bars. Instead, so-called connectors show the interconnections to the signals
or to the settings. The connectors are placed next to the block interface. Cross-sheet interconnections are
displayed as if they are on one sheet.
NOTE
i Blocks on sheet borders are not completely illustrated when printed. Thus, when configuring without side-
bars, make sure that you did not place blocks on sheet borders. In order to do so, show the sheet borders
when configuring.
[sc_le_CFC_without_sidebars, 1, en_US]
[sc_le_sidebarexpansion, 1, en_US]
By clicking the arrow, you change to the sheet-bar expansion. The sheet-bar expansion is displayed slightly
offset from the sheet bar. The following figure shows a sheet-bar expansion.
[sc_le_sidebarexpansion_2, 1, en_US]
In order to return to the sheet bar, click the arrow on the upper edge.
Related Topics
5.1.3 Function Chart
5.3.4 Adjusting Sheet Bars
If you interconnect blocks with sheet bars, you link the function with signals or settings.
For the display of sheet bars, you can select between the following variants:
• No Sheet Bars
With more settings, you can influence the width of the sheet bar and select between 1-line and 2-line sheet-
bar entries. This is how you get more space in the sheet bar in the horizontal or vertical direction.
You can change the settings for the sheet bars in the CFC properties. The CFC can still be visible in the working
area. In this case, you can also switch between the 3 views with the help of the 17.5.2 Toolbar Data Flow.
However, the CFC must not be opened. In this case, use the project tree in order to display the properties.
NOTE
i If you execute the following changes in the Properties dialog, confirm this with OK.
Depending on the state, you can switch to the next sheet-bar view. The sequence when changing is
Static sheet bars > Dynamic sheet bars > No sheet bars > Static sheet bars.
- or -
² In the Data flow view toolbar, click the following symbol:
Depending on the current state, the sheet bar changes from the 1-line display to the 2-line display or the other
way.
Related Topics
² 5.1.3 Function Chart
² 5.3.3 Overview of Sheet Bars
A grid helps you with visual alignment of the blocks in the CFC. You can show and hide this grid.
If the grid is hidden, your action shows the grid. If the grid is shown, your action hides the grid.
Related Topics
² 5.1.3 Function Chart
² Adjusting the Sheet Count Automatically, Page 53
The basic instructions contain all instructions that you can use to create the Continuous Function Chart for a
CFC function.
The block types are summarized in the following categories:
• Arithmetic
• Compare
• Edge Detect
• Flip-Flops
• Logic
• Selection
• Trigonometry
• Conversion
• Target System
Detailed information about the individual block types is found in the topic area 17.2.5 Instructions.
Related Topics
5.4.2 Adding a Block in a CFC
17.2.5 Instructions
The block library contains all blocks that you can use to create the Continuous Function Chart for a CFC func-
tion.
You have the following possibilities of adding a block from the block library in the CFC:
NOTE
i Blocks are displayed under the following conditions without interconnections and in a different color:
• With automatic placement: There is not enough space in the sheet of a CFC for all blocks.
• With manual placement: You can position blocks on top of each other, on an interconnection or on a
sheet border.
Interconnections to incompletely displayed blocks are executed as connectors. If blocks are on top of each
other, the lowest block is displayed completely. All of the blocks above this are partially displayed.
Related Topics
² 5.1.3 Function Chart
² 5.4.7 Deleting Elements from the CFC
² 5.4.6 Aligning Elements in the Data Flow View in the CFC
You can give each block an individual name. The type name of the block remains unchanged by this.
You have the following possibilities to change the name of a block:
NOTE
² Press <Enter>.
You confirm your entry with these 2 actions.
The name is updated in the block and all reference points.
Related Topics
² 5.4.1 Basic Instructions
You have the following possibilities to copy elements like blocks and text boxes:
• You can copy the elements to a different CFC. The other CFC can also be in a different SIPROTEC 5 device
or in another project.
If you copy a block on a cross-device or cross-project basis, the affiliated block type is copied as well. If there is
a block with the same name at the destination, the added block automatically receives a new name.
If you copy a block with an interconnection to an external value, the connector will also be copied with the
name of the external value. However, a new name will be created for the value in the copy of the connector.
Correct the name in order to avoid errors when compiling the CFC.
NOTE
i When copying, you can also work between 2 CFCs via the context menu.
Related Topics
² 5.4.1 Basic Instructions
5.4.5 Adding and Editing a Text Box in a CFC in the Data Flow View
Use the text boxes in order to add additional information to the CFC. With this, for example, you can docu-
ment a signal characteristic.
You have the following possibilities to configure a text box:
The text box is now in the background level. Thus, you can also position interconnections and blocks through
the text box.
Related Topics
² 5.1.3 Function Chart
² 5.4.7 Deleting Elements from the CFC
² 5.4.6 Aligning Elements in the Data Flow View in the CFC
You can align and place elements such as blocks and text boxes together in the CFC.
For this, mark at least 2 elements and select one of the following possibilities:
• Align left
• Center horizontally
• Align right
• Align top
• Center vertically
• Align bottom
Mark at least 3 elements and select one of the following possibilities:
• Distribute horizontally
• Distribute vertically
The reference element which is used for orienting the other elements is automatically determined.
• Aligning
The marked elements are aligned together. The element whose position is closest to the desired align-
ment is used as a reference element. Example: If you wish to align the 3 elements to the right, the
elements are aligned to that element which is furthest to the right.
• Distributing
The marked elements are distributed equally. The position average of all marked elements is used as a
base value.
Aligning Elements
² Mark at least 2 elements in the CFC.
² Right-click a marked element. Click Align in the context menu.
A submenu is displayed.
² Select one of the actions listed from this submenu.
The marked elements are aligned or distributed.
Related Topics
² 5.1.3 Function Chart
You can delete blocks in the 17.1.2 Data Flow and in the 17.1.3 Control Flow. You can only delete text boxes
in the Data flow view.
NOTE
i If you delete an interconnected block, you also delete the interconnections. The interfaces of the originally
interconnected blocks are set to the standard values of the block type.
Related Topics
² 5.1.3 Function Chart
When configuring interconnections, you only determine which block output is interconnected with which
block input. The exact route is created automatically. Other elements in the CFC are bypassed in the process. If
you have specified a text box as Text box in background, this will be ignored during routing of the connec-
tion line. The connection lines can also be above this text box. If you move interconnected blocks, the auto-
matic routing adjusts the interconnections.
The following figure displays the routing of an interconnection around a 3rd block:
Connectors with the same numbers represent the interconnection. With multiple connectors, the numbers are
numbered continually.
If you interconnect 2 blocks, then you always interconnect a block output with a block input. If you point to a
block during the interconnection, possible destination positions are marked in color.
[sc_le_interconnecting_blocks, 1, en_US]
A block output and a block input can be connected if their data types are the same or compatible. Compatible
data types are not the same, but they can be converted. The conversion of compatible data types takes place
automatically. Other information about data types and its conversion are found under 5.5.10 Converting Data
Types.
The following rules apply for interconnecting blocks:
• You can interconnect blocks in the 17.1.2 Data Flow . In this case, you can interconnect the blocks with
drag and drop.
• You can interconnect blocks in the 17.1.3 Control Flow. In this case, you can interconnect the blocks
through text entry.
You can interconnect a block output with a number of block inputs. In order to create such multiple intercon-
nections, connect the block output with the different inputs of the destination blocks. One or more intercon-
nection nodes arise depending on the positions of the destination blocks. Place the blocks with multiple inter-
connections on the CFC so that only a few interconnection nodes arise.
Canceling Interconnection
² Click in an open area of the CFC.
- or -
² Press <Esc>.
In both cases, the interconnection line between the block output and the mouse pointer will be hidden.
Related Topics
² 5.5.1 Displaying Interconnections
² 5.5.7 Displaying the Interconnections of a Block
² 5.5.4 Negating a Block Input
² 5.5.3 Interconnecting a Block with a Signal
² 5.5.10 Converting Data Types
² Open further levels in the signal structure until you can select the desired signal or signal element (refer
to Selecting a Signal Element, Page 34).
Related Topics
² 5.5.1 Displaying Interconnections
You can negate the input of a type BOOL block. The block must be interconnected as a prerequisite. If you
move or copy the negated interconnection, the negation remains intact. You can deactivate the negation at
any time.
[sc_le_negate_kreis, 1, --_--]
In order to negate a block input or to remove the negation, you have the following possibilities:
• You can enable or disable the negation with the context menu from an interconnection.
Depending on the previous state, the block input will be negated or the negation will be disabled.
Depending on the previous state, the block input will be negated or the negation will be disabled.
Related Topics
² 5.5.1 Displaying Interconnections
You can change the interconnections afterwards. In order to change an interconnection, use the processing
areas of the interconnection. If you place the mouse on an interconnection, these processing areas will be
automatically marked.
The following figure shows the processing areas for a multiple interconnection:
Related Topics
5.5.1 Displaying Interconnections
You can delete an individual block interconnection or multiple block interconnections simultaneously. The
deletion of an interconnection disables the negation of a block input.
- or -
² Mark one or more interconnections that you wish to delete.
²
Click the button in the 17.5.1 Logic Editor Toolbar.
Related Topics
² 5.5.1 Displaying Interconnections
You can display the interconnections that leave from or lead to a block.
Related Topics
² 5.5.1 Displaying Interconnections
In order to create more space in the CFC to display blocks or interconnections, you can hide the block connec-
tions. If the block connections are hidden, then the affiliated interconnection lines are not visible. Connectors
replace the lines. This is how you can arrive at a better overview in the CFC.
Triangle symbols on the lower edge of the block inform you about hidden connections - separately for inputs
and outputs. A filled triangle means that one or more Interconnected connections are hidden. A triangle
contour means that one or more Not interconnected connections are hidden.
If blocks have a number of inputs of the same type, only 2 of them are visible by default. However, logic
blocks like AND or NOR each have 10 inputs. If these inputs are shown, you can usually avoid the cascading of
blocks.
For showing and hiding connections, you can use the 17.1.2 Data Flow and the 17.1.3 Control Flow.
However, you can only see the descriptive symbols in the Data flow view.
NOTE
i If you interconnect an output with an input from the same block and hide both connections, the intercon-
nection is invisible. Only the symbols on the block refer to interconnected, hidden connections. Siemens
recommends not to hide any interconnected block connections.
NOTE
i If a block input is hidden, this is still effective. For example, hidden inputs set to 0 of an AND block result in
an error. Therefore, hidden inputs are always initialized neutrally by default, that is, with 1 for AND blocks
and with 0 for OR blocks.
Related Topics
² 5.5.1 Displaying Interconnections
² 5.5.7 Displaying the Interconnections of a Block
If you add a block in a CFC, the connections are preassigned with the current standard values for the block
type. If the standard values for the block type change, these values are transmitted to the block in the CFC.
If you set parameters to the block connections, the inheritance of the standard values to the block type will be
disrupted. You can reactivate the propagation at any time. The start value of the block instance then replaces
the parameterized value.
When setting parameters, the entered value is checked for plausibility and syntax depending on the data type.
You can optionally select a unit for the value for each connection.
For the parameterization of connections, you can use both the 17.1.2 Data Flow and the 17.1.3 Control Flow.
If you wish to set parameters for the connections with a number of blocks, Siemens recommends using the
Control flow view to save time.
² Mark the check box to the right of the Value text box.
The value of the block connection is restored to the standard value. The inheritance is reactivated.
Related Topics
² 5.5.8 Showing/Hiding Block Connections
The CFC blocks process data types depending on the supported data types listed in 9 Data Types and Data
Structures.
If you wish to connect 2 connections with different data types to each other, there is an automatic test to see
if a type conversion is possible. If that is the case, you can connect both of the connections with each other.
You do not have to add a conversion block. The data types are automatically converted during the compilation
of the CFC.
When connecting, green markings show that a conversion is possible. If a data type cannot be converted into
a different type, you also cannot combine the corresponding connections with each other.
• The block output and the block input to be connected have the same data type.
A valid connection is highlighted – like when drawing connections within a plan.
After drawing the inter-chart connection, there is an entry displayed in the sidebars of each plan. This entry is
no distinct element, but only a placeholder for the connection. The name cannot be changed, it is automati-
cally derived from plan name, block name, input, and output.
[sc_icc, 1, en_US]
Values of a block IO can be changed to test the runtime behaviour or to search for errors without having to
compile and upload several times. To force a value, the value has to be added to the forcing in the offline
mode and activated in the online mode.
The options for the forcing functionality can be found in several places:
Adding forcing
You are in the offline mode.
² Open the CFC.
² Select the block IO.
² Select the Add forcing option.
The value is written to the Force table.
A green rectangle appears at the corresponding value in the Data flow view.
Related Topics
² 5.6.2 Forcing Multiple Block IO Inputs and Outputs
In case you want to test multiple values with the forcing function, the use of the Force table is recommended.
To force a value, the value has to be added to the forcing in the offline mode and activated in the online
mode.
Adding forcing
You are in the offline mode.
² Open the CFC.
² Select the block IO.
² Navigate to the Charts - Trend/dynamic display & force table display folder.
² Select the Force table.
² Enter the desired value in the Force value field.
² Select Activate forcing.
A red rectangle appears at the corresponding value in the Data flow view.
The value is written to the device.
² Navigate to the Charts - Trend/dynamic display & force table display folder.
² Select the Force table.
² Enter the desired value in the Value field.
The value is written to the device.
Related Topics
² 5.6.1 Forcing Single Block IO Inputs and Outputs
The order in which you add the blocks in the CFC determines the running sequence within the overall func-
tion. They recognize the running sequence by the so-called sequence number, which can be displayed in the
block. You can show or hide these numbers for all blocks in general.
If you add blocks in a different sequence than that in which these blocks should be processed, also change the
running sequence retrospectively. You can change the running sequence in the 17.1.3 Control Flow.
You can identify a block in the running sequence as the position for the block insertion. Newly added blocks
are then integrated in the running sequence after this block position.
Depending on the current state, the sequence numbers in the blocks are shown or hidden.
Related Topics
² 5.1.6 Flow Model
² 5.1.3 Function Chart
² 5.7.2 Optimizing the Running Sequence Automatically
The running sequence can be optimized automatically. Automatic optimization of the running sequence is
based on the fact that blocks whose output values serve as input values for different blocks are executed first.
A prerequisite for optimization is that blocks be completely interconnected. You then determine which CFCs
should be optimized.
Related Topics
² 5.1.6 Flow Model
² 5.1.3 Function Chart
² 5.7.1 Adjusting the Running Sequence of Blocks
NOTE
i If the Optimize chart option is selected for a chart, the optimization of this chart is always performed
during the compilation. The option is selected by default.
If you execute an action during the creation of a chart, the result of this action will be checked for consistency.
Depending on the type of action, the inspection will occur directly after the action or during the translation of
the Continuous Function Chart. In both cases, you will receive notifications about inconsistencies in the form
of warnings or error indications. These indications are entered in a list in the Translate tab.
The following list shows possible causes for warning or error indications:
• An element in the sheet bar is not available or has an incorrect data type.
• An incompatible block type for this level is being used on an task level.
• The output of a block is interconnected with the input of a block that has already been processed in the
running sequence (feedback path).
Related Topics
² 5.8.2 Compiling the CFC
To use CFC in the device, the function charts have to be compiled into an executable program and transferred
to the device as part of the configuration.
You can compile all function charts by clicking Compile in the toolbar. If you load the configuration to the
device, you will be warned if the configuration has not yet been compiled.
Depending on the level you have selected in the tree, you can compile a single chart, all charts of an Extended
Processing, or all charts of the device.
During compilation, consistency checks are done. If any inconstancy is found, an error message is added in the
Compile tab of the Info window and the compilation is canceled. A device configuration with inconsistencies
in function charts cannot be loaded to the device.
Furthermore, the resource consumption of the created charts is calculated and written in the Compile tab.
Starting Compilation
² Click the Compile icon in the toolbar.
NOTE
i Compiling will compile all the available plans, except the ones with deactivated Code generation (see
13.4 Advanced).
NOTE
i The Compile icon is active if a tree node is selected in the Project tree that is capable of compiling.
The compilation process starts. An indication informs you about the status of the compilation. Possible
warning or error indications are entered in a list in the Compile tab.
NOTE
i If the Optimize chart option is selected for a chart, the optimization of this chart is always performed
during the compilation. The option is selected by default.
Bumpless Reload is supported for the device types CP-8031 and CP-8050.
Prerequisite
Target system and Logic Editor are synchronized, that means there was at least 1 successful compilation
loaded into the target system.
Workflow
The button Compile as well as the context menu entries Compile on device and resource level contain the
bumpless reload functionality.
Via Upload to Device the bumplessly reloadable code gets loaded into the target system.
Exceptions
In the context menues at resource and device level, there is the additional context menu entry Compile
without reload code. If a resource is compiled using this command, it loses the ability of bumpless reloading.
The values in the CFC are initialized with their initial values.
The password is only used to protect against unintentional editing of the CFC plan. It is not intended to
increase access security.
The password provides
[sc_cfc_accessprot, 1, en_US]
A protected CFC plan is displayed with a small lock in the 1.1.2 Project Tree:
Related Topics
8.14 UFB Access Protection
• The trend display configured in the editor window consists of the following objects:
– Definition table
– Trend window with operator controls and trend chart
• The values are assigned to digital and analog axes and displayed. A trend display may contain several
digital and analog axes.
• The values of the trend chart can be exported or imported in CSV format.
• You can print the dynamic display from the project tree. In the offline mode, the offline values are
printed, while the online mode prints the online values.
Data Storage
The data of trend and dynamic display as well as for test data are stored in a way so that they are preserved in
Logic Editor even if, for example, a device has been renamed or copied via the SICAM Device Manager.
However, since these data are not stored in the device itself, they are not available anymore when you retrieve
the data from the device.
[sc_le_add_trend_display, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
[sc_le_add_dyn_display, 1, en_US]
Related Topics
² 17.1.5 Dynamic Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
The analog axis is created and displayed with the default name Axis_1.
[sc_le_add_analog_axis, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
The digital axis is created and displayed with the default name Digital axis_1.
[sc_le_add_digital_axis, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
[sc_le_adding_analog_IO_terminals, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
² Drag and drop the digital terminals from the CFC blocks to the digital axis in the trend display editor.
Digital IO terminals are successfully added to the digital axis.
[sc_le_adding_digital_io_terminals, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
[sc_le_assigning_between_trend_displays, 1, en_US]
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
[sc_le_assigning_to_dynamic, 1, en_US]
NOTE
i You cannot monitor a signal element, but only the block input or output of an instruction.
NOTE
i You can add struct type IO terminals in the 17.1.5 Dynamic Display Editor only via the Properties tab. You
can also assign the IO terminals directly from the Properties tab of the Inspector window or the Control
Flow editor.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
² 6.12 Watching Values in Trend/Dynamic Display while CFC Online Analysis (Monitoring) is in Progress
6.11 Deleting CFC Block/CFC Chart after Assigning their Terminals to the
Trend Display/Dynamic Display Editor
To confirm deletion of the CFC block or CFC chart after assigning their IO terminal to the trend display or
dynamic display, proceed as follows:
² Open the 17.1.4 Trend Display Editor or 17.1.5 Dynamic Display Editor assigned with IO terminals of CFC
blocks or charts.
² Right-click the CFC block or chart whose IO terminals are assigned to the trend display or the dynamic
display.
² Click Delete in the context menu.
The CFC block or the chart along with the assigned terminals in the 17.1.4 Trend Display Editor or
17.1.5 Dynamic Display Editor is deleted.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
[sc_digsi_trenddisplayonline, 1, en_US]
Figure 6-1 Trend Display with CFC Online Analysis in Progress - Sample
[sc_le_watching_values_dynamicdisplay, 1, en_US]
Figure 6-2 Dynamic Display with CFC Online Analysis in Progress - Sample
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
NOTE
i You cannot use the same name for different axes. You cannot rename the Tag name.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
7.3 Changing the Color of the Trend in the Trend View Display
To change the color of the trend in the 17.1.4 Trend Display Editor , proceed as follows:
² Open the 17.1.4 Trend Display Editor with the configured trend display.
² Select the desired color in the Trend color column.
² Start the CFC online analysis
The trend graph appears with the selected color in the trend view display.
NOTE
i If you select the check box option under the Emphasis column for any trend, the trend graph gets high-
lighted in bold.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
² Click OK.
The trend view graph is printed.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
The selected file is imported and displayed in the trend view display.
Related Topics
² 17.1.4 Trend Display Editor
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
NOTE
Related Topics
5.1.3 Function Chart
5.2.5 Deleting CFCs
5.2.3 Renaming a Function Chart (CFC)
5.2.2 Opening a CFC
5.2.4 Copying a CFC
17.1.2 Data Flow
Related Topics
17.1.4 Trend Display Editor
5.1.3 Function Chart
5.2.5 Deleting CFCs
5.2.3 Renaming a Function Chart (CFC)
5.2.2 Opening a CFC
5.2.4 Copying a CFC
² Right-click the user-defined function block in the Data flow view of the parent function chart and select
Open from the context menu.
The user-defined function block is displayed in the working area.
Related Topics
² 8.2 Adding a User-Defined Function Block
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
• Name
The interface can be renamed if the name is selected. The interface names has to be unique for the
subchart. Therefore the name is expanded automatically by adding a number if the added or changed
name is already used. The name must not contain commas.
• Type
The data type of the interface can be defined here.
• Value
In column Value, you can set a default value for the interface. The default value is used if the interface is
not connected in the parent function chart. If the interface is already connected in the parent function
chart, the Value is shown as empty and you cannot set the Value.
• Comment
In the Comment field, you can add a comment to the subchart interface which may be helpful if the
subchart is used as a template. If you select the subchart in the parent chart, you can see the interface
Comment in the Interface tab of the Properties page. The interface Comment is also shown if you
select the terminal of the subchart in the parent chart in the General tab of the Properties page.
• Input
In the column Input the amount of input assignments of the current element is shown.
• Output
In the column Output the amount of output assignments of the current element is shown.
[sc_le_defining_interface_io, 1, en_US]
[sc_le_defining_interface_jump, 1, en_US]
Sorting
To sort the inputs and outputs of a UFB, use the Sort order column. Here you can enter a number which
defines the sort order. Default is the order in which the elements have been created.
Figure 8-2 New Sorting According to Manually Entered Sort Order Numbers
Related Topics
² 17.1.2 Data Flow
² 8.2 Adding a User-Defined Function Block
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
• CSV
NOTE
Examples
Here are examples for a CSV and a JSON file:
[sc_csv, 2, en_US]
[sc_json, 2, en_US]
After importing the above file, the following inputs and outputs appear in the interface:
[sc_inouts, 1, en_US]
² Right-click on the line input, add an interface input, and name your interface as you like.
² Select your user-defined structure as Type in drop-down menu. The defined variables in the user-defined
structure will be displayed below the structure.
NOTE
i The values of a user-defined structure can only be modified in the structure editor itself.
NOTE
i Changing the structure will automatically change the interfaces where the structure is used.
Related Topics
² 17.1.2 Data Flow
² 8.2 Adding a User-Defined Function Block
² 5.1.3 Function Chart
² 5.2.5 Deleting CFCs
² 5.2.3 Renaming a Function Chart (CFC)
² 5.2.2 Opening a CFC
² 5.2.4 Copying a CFC
NOTE
i The online analysis of user-defined function blocks is the same as the one described for Function Charts
(refer to 14.1 Analyzing Function Charts (CFC)).
² A specific instance of a user-defined function block can be opened for analysis directly from the CFC chart
where the block is inherited. To do so, right-click on the function block and select Open....
- or -
² Open the function-chart block via the project navigator tree and select the relevant instance from the list
box above the function-chart plan.
NOTE
i For selecting the specific instance of a user-defined function block, a connection to the device is necessary.
NOTE
i If a terminal which is used in a user-defined function block is added to a dynamic list, the value which is
displayed in the dynamic list depends on the currently selected instance of the user-defined function block.
If the selection changes, it is necessary to click the update data icon in the watch list in order to see the
values of the selected instance.
Related Topics
² 5.5.1 Displaying Interconnections
NOTE
i Each usage of a user-defined function block inside a chart will create an instance of the function block.
NOTE
i If changes are made in the user-defined function block, all used instances will be changed accordingly.
Related Topics
² 8.1 Brief Introduction to User-Defined Function Blocks
² 8.2 Adding a User-Defined Function Block
ST Code Editor
When you click in the ST code editor, you can zoom in and out by holding <Ctrl> and moving the mouse
wheel.
When you right-click in the ST code editor, a context menu appears providing the functions Copy, Paste, Cut,
Undo, Redo, and Select all.
NOTE
i If errors occur during compilation, an error message is displayed in the Inspector window, showing line and
position of each error.
You can jump to the corresponding position in the code by double-clicking the error message.
Import interface… is possible with both CFC and ST UFBs. The menu item is available if the interface is empty.
Import ST code… is only possible with ST UFBs (but dimmed for CFC UFBs). Multiple import is possible;
however, a new import overwrites the text in the ST code editor with the content of the imported file.
You can create user-defined structures as interface variables (input and output) for an ST UFB.
[sc_le_struct_interface, 1, en_US]
NOTE
i Changing the structure will automatically change the interfaces where the structure is used.
You can create structures as local variables within an ST UFB. Supported data types are BOOL, DWORD, DINT,
REAL, LREAL (only usable locally), TIME, and IEC60870DT.
Local variables of type STRUCT have to be declared in the VAR section, for example:
VAR
x, y : BOOL
a : STRUCT // supported (anonymous type)
b : STRUCT
c : REAL
END_STRUCT;
d : DINT;
END_STRUCT;
k : Struct_1; // not supported
l : TI30; // not supported
END_VAR;
y := IN.Simple; // supported
x := IN.Signal.Value; // supported
You can create local variables of type LREAL within an ST UFB in order to execute calculations requiring higher
precision.
Using this value outside of the ST UFB is only possible with an interface variable of type REAL. In this case you
have to pay attention to the value ranges of the data types used.
Exceptions
No. 12 ATAN2(y, x)
Exceptions
No. 7 MOVE(IN)
use assignment ":=" instead
Exceptions
No. 1 MOVE(IN)
use assignment ":=" instead
Additionally Supported
Blink
Other
Exceptions
No. 2 Supported for standard functions
No. 3 Dereference
Exceptions
No. 1b Variables and expression of different elementary data types with implicit type
conversion according Figure 11
No. 1c Variable and expression of user-defined type
No. 1d Instances of function block type
No. 2a Function call – supported for standard functions
No. 2b Function block call and FB output usage – supported for standard functions
No. 2c Method call
No. 3 RETURN
Notation 4
The input variables are assigned separately and are accessed by formal names, similar to the access to struc-
ture members. The output variables are accessed separately after the call. This is according to IEC 61131-3,
table 42, no. 6a and 7.
Example
TON_1.IN := Eingang;
TON_1.PT := Zeit;
TON_1();
Ausgang := TON_1.Q;
Function Calls
Notation 1
The input variables are given by formal names. Variables do not need to be complete. Variables not given in
the call will get the default value. This is according to IEC 61131-3, table 20, no. 1b.
Example
A := LIMIT(IN := B, MX := 5);
Notation 2
The input variables are given by position/order. Variables need to be complete. This is according to IEC
61131-3, table 20, no. 2.
Example
A := LIMIT(B, 0, 5);
VAR
Var1 : BOOL;
Var2 : BOOL := TRUE;
END_VAR
VAR RETAIN
Var3 : BOOL;
Var4 : BOOL := TRUE;
END_VAR
VAR CONSTANT
Con1 : BOOL := FALSE;
END_VAR
[sc_ufb_accessprot_en, 1, en_US]
A protected UFB is displayed with a small lock in the 1.1.2 Project Tree:
Related Topics
5.9 CFC-Plan Access Protection
8.1 Brief Introduction to User-Defined Function Blocks
NOTE
i There might be signals used in SICAM Device Manager with a specific Type Identification (TI) with a value
range that does not match the supported data types in Logic Editor.
This has to be considered when implementing and testing the CFC logic.
Related Topics
9 Data Types and Data Structures
Related Topics
9 Data Types and Data Structures
Related Topics
9 Data Types and Data Structures
- or -
² You can modify variables in an easy manner by editing the variable content in the editor.
NOTE
i A message box opens to inform you that also the connections used in plans will be deleted.
Related Topics
² 9.1 Basic Data Types
NOTE
i Since user-defined libraries are not stored in the Device Manager, but on any storage device, you have to
take care about them yourself.
[sc_le_udlib, 1, en_US]
Figure 9-1 Exchanging UFBs and Structures between Project Navigation Tree and Global Library
The handling of the user-defined libraries is quite sophisticated, in order to support you best.
• For a more clearly arranged library structure, you can create folders.
• You can store user-defined function blocks and user-defined structures from the project tree to the
library, for example via drag and drop.
NOTE
i If a user-defined function block or structure contains dependencies, i.e. references further user-defined
function blocks or structures, these dependent items are also stored in the library within the same folder
level.
NOTE
i If a chain of user-defined function blocks/structures is stored to the library and some of the blocks/struc-
tures already exist, these existing items will be updated. The not yet existing items will be stored as new
entries.
• You can copy user-defined function blocks/structures from a loaded library into the project tree, for
example via drag and drop.
NOTE
i If a user-defined function block or structure contains dependencies, i.e. references further user-defined
function blocks or structures, these dependent items are also stored in the project navigation tree and are
distributed into the corresponding project-tree folders.
NOTE
i If a chain of user-defined function blocks/structures is stored to the project navigation tree and some of the
user-defined function blocks/structures already exist, these existing items will be updated. The not yet
existing items will be stored as new entries.
NOTE
i Already existing or equally named user-defined function blocks and structures are not identified via name,
but via internal ID (see Properties in the Inspector window).
10.1 Logic
10.1.1 BOOL
10.1.1.1 OR
The OR block links binary input values via the logical OR function.
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
uncheck the relevant boxes in the Hidden column in the block properties.
NOTE
Detailed Description
The block connects the values at the inputs IN1 to IN10 with the logical OR function. The block then displays a
1 at the OUT output only if the value of at least one input is 1. Only if the values of all inputs are 0 then also
the OUT output is 0.
Input IN1 Input IN2 Output OUT
0 0 0
0 1 1
1 0 1
1 1 1
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.2 XOR
The XOR block links binary input values via the logical XOR function.
Detailed Description
The block connects the values at the inputs IN1 and IN2 with the logical XOR function. The block then displays
a 1 at the OUT output only if just 1 input has an input value of 1. Otherwise, the OUT output is 0.
Value Table
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.3 NOR
The NOR block links binary input values via the logical NOR function.
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
uncheck the relevant boxes in the Hidden column in the block properties.
NOTE
Detailed Description
The block connects the values at the inputs IN1 to IN10 with the logical OR function. The block then displays a
1 at the OUT output only if the values of all inputs are 0.
Input IN1 Input IN2 Output OUT
0 0 1
0 1 0
1 0 0
1 1 0
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.4 AND
The AND block links binary input values via the logical AND function.
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
uncheck the relevant boxes in the Hidden column in the block properties.
NOTE
Detailed Description
The block connects the values at the inputs IN1 to IN10 with the logical AND function. The block then displays
a 1 at the OUT output only if the input values of all inputs are 1. Otherwise, the OUT output is 0.
Value Table
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.5 NAND
The NAND block links binary input values via the logical NAND function.
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
uncheck the relevant boxes in the Hidden column in the block properties.
NOTE
Detailed Description
The block connects the values at the inputs IN1 to IN10 with the logical NAND function and displays the
output value OUT as 1 only if at least one of the input values is 0. Otherwise, the OUT output value is 0.
Value Table
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.6 NOT
The NOT block (formerly NEG) inverts the binary input value with the logical NOT function.
Value Table
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2 WORD
10.1.2.1 AND_DW
The AND_DW block links the 2 32-bit input values bit by bit using the logical AND function.
Detailed Description
The block performs the logical AND function for the 2 input bit patterns IN1 and IN2 for each pair of corre-
sponding bits. The block supplies the result as a bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.4 AND
10.1.2.2 NAND_DW
The NAND_DW block links the 2 32-bit input values bit by bit using the logical NAND function.
Detailed Description
The block performs the logical NAND function for the 2 input bit patterns IN1 and IN2 for each pair of corre-
sponding bits. The block supplies the result as a bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.5 NAND
10.1.2.3 OR_DW
The OR_DW block links the 2 32-bit input values bit by bit using the logical OR function.
Detailed Description
The block performs the logical OR function for the 2 input bit patterns IN1 and IN2 for each pair of corre-
sponding bits. The block supplies the result as a bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.1 OR
10.1.2.4 XOR_DW
The XOR_DW block links the 2 32-bit input values bit by bit using the logical XOR function.
Detailed Description
The block performs the logical XOR function for the 2 input bit patterns IN1 and IN2 for each pair of corre-
sponding bits. The block supplies the result as a bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.2 XOR
10.1.2.5 NOR_DW
The NOR_DW block links the 2 32-bit input values bit by bit using the logical NOR function.
Detailed Description
The block performs the logical NOR function for the 2 input bit patterns IN1 and IN2 for each pair of corre-
sponding bits. The block supplies the result as a bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.3 NOR
10.1.2.6 NOT_DW
The NOT_DW block inverts the 32-bit input value using the logical NOT function.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.1.6 NOT
10.1.2.7 SHL_DW
The SHL_DW block shifts the bits of the 32-bit input value IN (DWORD) to the left by the number of bit posi-
tions specified by input N (DINT).
Detailed Description
The block shifts the bits of the input value IN to the left. The input N indicates how many bit positions are
shifted. This shift is equivalent to multiplying by 2n. Empty bit positions resulting from the shift are filled with
0.
The block supplies the result as a 32-bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2.8 SHR_DW
The SHR_DW block shifts the bits of the 32-bit input value IN (DWORD) to the right by the number of bit posi-
tions specified by input N (DINT).
Detailed Description
The block shifts the bits of the input value IN to the right. The input N indicates how many bit positions are
shifted. This shift is equivalent to dividing by 2n. Empty bit positions resulting from the shift are filled with 0.
The block supplies the result as a 32-bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2.9 ROL_DW
The ROL_DW block rotates the bits of the 32-bit input value IN (DWORD) to the left by the number of bit posi-
tions specified by input N (DINT).
Detailed Description
The block rotates the bits of the input value IN to the left. The input N indicates how many bit positions are
rotated.
The block supplies the result as a 32-bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2.10 ROR_DW
The ROR_DW block rotates the bits of the 32-bit input value IN (DWORD) to the right by the number of bit
positions specified by input N (DINT).
Detailed Description
The block rotates the bits of the input value IN to the right. The input N indicates how many bit positions are
rotated.
The block supplies the result as a 32-bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2.11 MERGE_DW
The MERGE_DW block combines up to 32 Boolean input values into 1 32-bit pattern (DWORD).
Detailed Description
The block combines up to 32 Boolean input values to form a 32-bit pattern (DWORD). The 1st Boolean input
value becomes the least significant bit of the output value. Unassigned input values are set to 0 by default.
The block supplies the result as a 32-bit pattern at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.1.2.12 SPLIT_DW
The SPLIT_DW block splits a 32-bit pattern (DWORD) into 32 individual Boolean output values.
Detailed Description
The block splits a 32-bit pattern into 32 individual Boolean output values. The least significant bit of the input
value becomes the 1st Boolean output value.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.2 Arithmetic
10.2.1 ABS
The ABS block calculates the absolute value of an input value of type ANY_NUM.
Detailed Description
The block calculates the absolute value of the value at the IN input. The result of the function is available at
the OUT output.
The instruction uses the basic data type which is assigned to the input also for the output (e.g., Input = DINT
→ Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.2.2 ADD
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
uncheck the relevant boxes in the Hidden column in the block properties.
Detailed Description
The block adds the values at the inputs IN1 to IN10. The result of the addition is available at the OUT output.
The instruction uses the basic data type which is assigned to IN1 also for the calculation (i.e., inputs IN2 to
IN10 have to use the same basic data type like IN1) and for the output (e.g., Input = DINT → Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.2.3 DIV
The DIV block divides an input value of data type ANY_NUM (numerator) by a 2nd input value (denominator)
of the same basic data type.
Detailed Description
The block divides the value at the IN input (numerator) by the value at the INDIV input (denominator). The
result of the division is available at the OUT output.
The instruction uses the basic data type which is assigned to IN also for the calculation (i.e., INDIV has to use
the same basic data type like IN) and for the output (e.g., Input = DINT → Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.2.4 MOD
The MOD block calculates the modulo from 2 input value of data type ANY_INT. Modulo is a remainder opera-
tion which generates the whole-number remainder from a whole-number division. For example, with 10
modulo 3 the remainder is 1.
Detailed Description
The block divides the value at the IN input (numerator) by the value at the IND input (denominator) and
outputs the remainder of the division. The result of the modulo function is available at the OUT output. You
can use the modulo function to check, for example whether a number is even. If x mod 2 = 0, then x is even.
The instruction uses the basic data type which is assigned to IN also for the calculation (i.e., IND has to use the
same basic data type like IN) and for the output (e.g., Input = DINT → Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.2.5 MUL
The MUL block multiplies up to 10 input values of data type ANY_NUM (factors).
Once the block has been inserted into the chart, only 2 of the 10 inputs are visible. If you need more inputs,
add inputs in the general tab in the block properties.
Detailed Description
The block multiplies the values at the inputs IN1 to IN10. The result of the multiplication is available at the
OUT output.
If the value is exceeded in either direction, the value of the output stops at the maximum or minimum value.
The instruction uses the basic data type which is assigned to IN1 also for the calculation (i.e., inputs IN2 to
IN10 have to use the same basic data type like IN1) and for the output (e.g., Input = DINT → Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.2.6 SUB
The SUB block subtracts an input value of data type ANY_MAGNITUDE (subtrahend) from a 2nd input value of
data type ANY_MAGNITUDE (minuend).
Detailed Description
The block subtracts the value at the INSUB input from the value at the IN input. The result of the subtraction is
available at the OUT output.
If the value is exceeded in either direction, the value of the output stops at the maximum or minimum value.
The instruction uses the basic data type which is assigned to IN also for the calculation (i.e., input INSUB has
to use the same basic data type like IN) and for the output (e.g., Input = DINT → Output = DINT).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3 Compare
10.3.1 LT
The LT block compares 2 input values of data type ANY_NUM. If input value 1 is less than input value 2, the
block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
less than the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.2 LIMIT
Detailed Description
The block compares the value at the IN input with the upper and lower limits MN and MX. If the input value is
below or above the defined limits, the block sets the output to the reached limit. If not, the block sets the
output to the IN value.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.3 LE
The LE block compares 2 input values of data type ANY_NUM. If input value 1 is less than or equal to input
value 2, the block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
less than or equal to the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.4 GE
The GE block compares the values of 2 inputs of data type ANY_NUM. If input value 1 is greater than or equal
to input value 2, the block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
greater than or equal to the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.5 GT
The GT block compares 2 inputs of data type ANY_NUM. If input value 1 is greater than input value 2, the
block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
greater than the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.6 EQ
The EQ block compares 2 input values of data type ANY_ELEMENTARY. If input value 1 is equal to input value
2, the block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
equal to the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.7 NE
The NE block compares 2 input values of data type ANY_ELEMENTARY. If input value 1 is not equal to input
value 2, the block sets the output to 1.
Detailed Description
The block compares the value at the IN1 input with the value at the IN2 input. If the value at the IN1 input is
not equal to the value at the IN2 input, the block sets the OUT output to 1.
The following table shows how the block processes special values. These special values include values with a
positive or negative overflow, as well as invalid values. An example is used to illustrate how to read this table.
A value with a negative overflow at the IN1 input is less than a value with a positive overflow at the IN2 input.
Input IN2 Input IN1
Positive Overflow Negative Overflow Invalid Value Valid Value
Positive Over- Not equal to, not less Less than Not equal to, not less Less than
flow than, not greater than than, not greater than
Negative Greater than Not equal to, not less Not equal to, not less Greater than
Overflow than, not greater than than, not greater than
Invalid Value Not equal to, not less Not equal to, not less Not equal to, not less Not equal to,
than, not greater than than, not greater than than, not greater than not less than,
not greater
than
Valid Value Greater than Less than Not equal to, not less ---
than, not greater than
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.3.8 LIMIT_UPPER_HYS
Detailed Description
In this block the output variable OUT gets true if the input variable IN exceeds a preset limit value LIMIT. Input
of a hysteresis HYS influences the resetting of the output OUT; this means the resetting value is diminished by
the hysteresis HYS. In case of negative hysteresis HYS, zero is assumed.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.3.9 LIMIT_LOWER_HYS
Detailed Description
In this block the output variable OUT gets true if the input variable IN falls below a preset limit value LIMIT.
Input of a hysteresis HYS influences the resetting of the output OUT; this means the resetting value is
increased by the hysteresis HYS. In case of negative hysteresis HYS, zero is assumed.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.4.1 TOF
The TOF block delays falling edges of a binary signal in the millisecond range.
Detailed Description
The block forwards a state change from 0 to 1 at the IN input to the Q output directly. The block displays a
state change from 1 to 0 at the Q output, delayed by time PT. If the IN input adopts a value of 1 again while
the time delay is still ongoing, the Q output remains at 1.
The block has an additional ET output. You can use this output to check the time delay which has already
elapsed. The value at the ET output increases in small stages during the PT time delay from 0 up to the PT
value. One stage and, consequently, the rate of increase in the value depend on the cycle time. This depend-
ency means that you may only interconnect this output in cyclic task levels.
The following figure illustrates the way in which the block works:
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.4.2 TON
The TON block delays rising edges of a binary signal in the millisecond range.
Detailed Description
A state change from 0 to 1 at the IN input is displayed by the block at the Q output, delayed by time PT. The
block forwards a state change from 1 to 0 to the Q output directly. If the IN input adopts a value of 0 again
while the time delay is still ongoing, the Q output remains at 0.
The block has an additional ET output. You can use this output to check the time delay which has already
elapsed. The value at the ET output increases in small stages during the PT time delay from 0 up to the PT
value. One stage and, consequently, the rate of increase in the value depend on the cycle time. This depend-
ency means that you may only interconnect this output in cyclic task levels.
The following figure illustrates the way in which the block works:
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.4.3 TP
The TP block is a timer for short-time intervals in the second range that cannot be interrupted.
Detailed Description
You set the length of the time interval at the PT input with a resolution of 1 ms.
A state change from 0 to 1 at the IN input starts the time interval PT. The Q output adopts a value of 1. A
further state change at the IN input does not affect the progress of the time interval. Once the time interval
has elapsed, the Q output is set to 0. Only then can you start a new time interval.
The block has an additional output ET. You can use this output to check the time which has already elapsed.
The value at the ET output increases in small stages during the PT time interval from 0 up to the PT value. A
stage and, consequently, the rate of increase in the value depend on the cycle time. This dependency means
that you may only interconnect this output in cyclic task levels.
The following figure illustrates the way in which the block works:
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.4.4 BLINK
The BLINK block generates a continuous state change from 0 to 1 and from 1 to 0 at the output. Therefore,
the block is suitable for controlling LEDs which are intended to flash, for example.
Detailed Description
The block always starts with the ON phase. As long as the START input has a value of 1, the Q output changes
its state from 0 to 1 and from 1 to 0 in accordance with the set times.
You can set the lengths for the ON and OFF phases separately. In order to do this, use the TH and TL inputs.
NOTE
i The resolution for the lengths of the ON and OFF phases is 100 ms. This means that, depending on the
start time, the first ON phase can follow up to 99 ms after the set TH value.
If a cyclic task level has been set for the block, the minimum possible phase length corresponds to the dura-
tion of 1 cycle.
Related Topics
5.1.4 Block
10.4.5 CTD
The CTD (Count Down) block counts down, starting at a defined start value. The current counter value
decreases by 1 with every counting step. You can select from various tripping criteria to start the count.
Detailed Description
The value at the PV input equates to the start value. As soon as the value at the LD input is 1, the block adopts
this start value as the value for the CV output. The downward-counting procedure is controlled using the CD
input. If the value at the LD input is 1, the block stops the count and sets the Q output to 0, the CV output to
the value of the PV input.
The value at the EDGE input determines the counting criterion. You can select from the following counting
criteria:
• EDGE = 0
The block decreases the metered value each time there is a state change from 0 to 1 (rising edge) at the
CD input.
• EDGE = 1
The block decreases the metered value each time there is a state change at the CD input.
• EDGE = 2
The block decreases the metered value each time a chart is executed. On a cyclic task level, therefore, the
metered value changes with every cycle. As a precondition for this tripping criterion, the value at the CD
input must be static 1.
If the value 0 is reached when counting down, the block sets the Q output to 1. However, the count continues
as long as all criteria are met. The block has a counting range which is defined by the PVmin and PVmax limiting
values which you cannot change. Once the lower limiting value PVmin is reached, the block cannot count
down any further. However, the current counter value at the CV output is retained until the value at the LD
input is 1.
Related Topics
5.1.4 Block
10.4.6 CTU
The CTU (Count Up) block counts up to a defined final value, starting at 0. The current counter value increases
by 1 with every counting step. You can select from various tripping criteria to start the count.
Detailed Description
The value at the PV input equates to the final value. The upward counting procedure is controlled using the
CU input. If the value at the R input is 1, the block stops the count and sets all outputs to 0.
The value at the EDGE input determines the counting criterion. You can select from the following counting
criteria:
• EDGE = 0
The block increases the metered value each time there is a state change from 0 to 1 (rising edge) at the
CU input.
• EDGE = 1
The block increases the metered value each time there is a state change at the CU input.
• EDGE = 2
The block increases the metered value each time a chart is executed. On a cyclic task level, therefore, the
metered value changes with every cycle. As a precondition for this tripping criterion, the value at the CU
input must be static 1.
If the final value is reached when counting up, the block sets the Q output to 1. However, the count continues
as long as all criteria are met. The block has a counting range which is defined by the PVmin and PVmax limiting
values which you cannot change. Once the upper limiting value PVmax is reached, the block cannot count up
any further. However, the current counter value at the CV output is retained until the value at the R input is 1.
Related Topics
5.1.4 Block
10.4.7 CTUD
The CTUD (Count Up and Down) block counts up starting from 0 or down starting from a definable start value.
You can select from various tripping criteria to start the count.
Detailed Description
If the block is to count up, the value at the PV input equates to the final value. If the block is to count down,
the value at the PV input equates to the start value. As soon as the value at the LD input is 1, the block adopts
this start value.
The upward counting procedure is controlled using the CU input. The downward counting procedure is
controlled using the CD input.
The value at the EDGE input determines the counting criterion. You can select from the following counting
criteria:
• EDGE = 0
The block increases the metered value each time there is a state change from 0 to 1 (rising edge) at the
CU or CD input.
• EDGE = 1
The block increases the metered value each time there is a state change at the CU or CD input.
• EDGE = 2
The block increases the metered value each time a chart is executed. On a cyclic task level, therefore, the
metered value changes with every cycle. As a precondition for this tripping criterion, the value at the CU
or CD input must be static 1.
If the final value is reached when counting up, the block sets the QU output to 1. If the value 0 is reached
when counting down, the block sets the QD output to 1. However, in both cases the count continues as long
as all criteria are met. The block has a counting range which is defined by the PVmin and PVmax limiting values
and which you cannot change. Once the lower limiting value PVmin is reached, the block cannot count down
any further. Once the upper limiting value PVmax is reached, the block cannot count up any further. However,
the current counter value at the CV output is retained until the value at the R or LD input is 1.
Under the following conditions, the block does not count up or down:
• The value at the R input is 1. In this case, the value at the CV output is 0.
• The value at the R input is 0 and the value at the LD input is 1. In this case, the CV output adopts the
value at the PV input.
• The values at the R and LD inputs are 0 and the values at the CD and CU inputs are 1.
Related Topics
5.1.4 Block
10.5 Flip-Flops
10.5.1 SR
Detailed Description
If a 1 is present at the S input, the block sets the OUT output to a value of 1. This value is retained until the R
input adopts a value of 1. The block also sets the output if the S and R inputs adopt a value of 1 at the same
time. When the device is restarted, the value at the output is lost.
Related Topics
5.1.4 Block
10.5.2 RS
10.5.2 RS
Detailed Description
If a 1 is present at the S input, the block sets the OUT output to a value of 1. This value is retained until the R
input adopts a value of 1. The block also resets the output if the S and R inputs adopt a value of 1 at the same
time. When the device is restarted, the value at the output is lost.
Related Topics
5.1.4 Block
10.5.1 SR
5.5.9 Setting Parameters for Block Connections
10.6.1 R_TRIG
The R_TRIG block detects the rising edge of a binary signal at the input and sets the output to 1. This block
also detects very brief state changes.
Detailed Description
When there is a state change from 0 to 1 at the CLK input, the block sets output Q to 1. The output retains the
value 1 until the block is processed again during the chart run. At this point the block sets the output back to
0, irrespective of what value is present at the input at that time.
The time that elapses before the block is processed again depends on the task level selected for the block or
chart. With cyclic Measurement task level, the time is 500 ms. With event-triggered task levels, the time
cannot be forecast.
Related Topics
5.1.4 Block
10.6.2 F_TRIG
10.6.2 F_TRIG
The F_TRIG block detects the falling edge of a binary signal at the input and sets the output to 1. This block
also detects very brief state changes.
Detailed Description
When there is a state change from 1 to 0 at the CLK input, the block sets output Q to 1. The output retains the
value 1 until the block is processed again during the chart run. At this point the block sets the output back to
0, irrespective of what value is present at the input at that time.
The time that elapses before the block is processed again depends on the task level selected for the block or
chart. With cyclic Measurement task level, the time is 500 ms. With event-driven task levels, the time cannot
be forecast.
Related Topics
5.1.4 Block
10.6.1 R_TRIG
5.5.9 Setting Parameters for Block Connections
10.7 Selection
10.7.1 MIN
The MIN block uses up to 10 input values of data type ANY_NUM to determine the minimum value.
Detailed Description
The block determines the minimum value from those at the inputs IN1 to IN10. This minimum value is then
available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.7.2 MAX
The MAX block uses up to 10 input values of data type ANY_NUM to determine the maximum value.
Detailed Description
The block determines the maximum value from those at the inputs IN1 to IN10. This maximum value is then
available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.7.3 MUX
Depending on a selection value, the MUX block transmits exactly 1 out of up to 10 input values of data type
ANY_ELEMENTARY to the output.
Detailed Description
Depending on the value of input K, the block selects the value of the corresponding input (IN0 to IN9) and
outputs it at OUT.
NOTE
i If K is outside the range (0 to 9), there is a device-specific behavior which you have to check.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.7.4 SEL
Detailed Description
If the input G is true, input IN1 will be used as output OUT for the block, else the input IN0 will be used as
output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.7.5 MOVE_B
Detailed Description
The MOVE_B block connects an input value with an output value of type BOOL without changes.
Alternative Instructions
If you have to process floating-point numbers, use the MOVE_R block instead of MOVE_B.
If you have to process integer numbers, use the MOVE_D block instead of MOVE_B.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.6 MOVE_D
Detailed Description
The MOVE_D block connects an input value with an output value of type DINT without changes.
Alternative Instructions
If you have to process boolean values, use the MOVE_B block instead of MOVE_D.
If you have to process floating-point numbers, use the MOVE_R block instead of MOVE_D.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.7 MOVE_R
Detailed Description
The MOVE_R block connects an input value with an output value of type REAL without changes.
Alternative Instructions
If you have to process boolean values, use the MOVE_B block instead of MOVE_R.
If you have to process integer numbers, use the MOVE_D block instead of MOVE_R.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.8 MOVE
Detailed Description
The MOVE block connects an input value with an output value without changes.
Alternative Instructions
The block should not be used for type BOOL, because during the online test boolean values might not be
shown at the output. If you have to process boolean values, use MOVE_B block instead.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.9 MOVE_T
Detailed Description
The MOVE_T block connects an input value with an output value of type TIME without changes.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.10 MOVE_S
Detailed Description
The MOVE_S block connects 2 structures of the same type.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.7.11 MOVE_DW
Detailed Description
The MOVE_DW block connects an input value with an output value of type DWORD without changes.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.8.1 LOG
The LOG block calculates the common logarithm of an input value of data type ANY_REAL.
Detailed Description
The block calculates the common logarithm of the value at the IN input. The common logarithm is the loga-
rithm with base 10. The result of the logarithm function is available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.8.2 LN
The LN block calculates the natural logarithm of an input value of data type ANY_REAL.
Detailed Description
The block calculates the natural logarithm of the value at the IN input. The natural logarithm is the logarithm
with base e. The result of the logarithm function is available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.8.3 EXP
The EXP block calculates the natural exponential function of an input value of data type ANY_REAL (expo-
nent).
Detailed Description
The EXP block calculates the natural exponential function of the value at the IN input. The natural exponential
function is the exponential function with base e. The result of the exponential function is available at the OUT
output.
If the representable number area (0<= (IN*LD(e)) <=2^15) is underrun/exceeded, the smallest/largest repre-
sentable value is output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.8.4 EXPT
The EXPT block calculates the exponential function of an input value of data type ANY_REAL (exponent) to a
2nd input value of data type ANY_REAL (base).
Detailed Description
The block calculates the exponential function of the exponent IN_EXP to the base INBASE. The result of the
exponential function is available at the OUT output.
If the representable number area is underrun/exceeded, the smallest/largest representable value is output.
If a negative value is entered for INBASE, the output is set to 0.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.8.5 SQRT
The SQRT block calculates the square root of an input value of data type ANY_REAL (radicand).
Detailed Description
The block calculates the square root of the value at the IN input. The result of the square-root extraction is
available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9 Trigonometry
10.9.1 SIN
The SIN block calculates the sine of an input value of data type ANY_REAL (angle).
Detailed Description
The block calculates the sine of the value at the IN input. The result of the sine function is available at the OUT
output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9.2 ASIN
The ASIN block calculates the arcsine of an input value of data type ANY_REAL.
Detailed Description
The block calculates the arc sine of the value at the IN input. The arc sine is the inverse function of the
restricted sine function. The result of the arc-sine function is available at the OUT output.
The value at the input IN must be in the area from -1 to +1.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9.3 COS
The COS block calculates the cosine of an input value of data type ANY_REAL (angle).
Detailed Description
The block calculates the cosine of the value at the IN input. The result of the cosine function is available at the
OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9.4 ACOS
The ACOS block calculates the arccosine of an input value of data type ANY_REAL.
Detailed Description
The block calculates the arc cosine of the value at the IN input. The arccosine is the inverse function of the
restricted cosine function. The result of the arccosine function is available at the OUT output.
The value at the input IN must be in the area from -1 to +1.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9.5 TAN
The TAN block calculates the tangent of an input value of data type ANY_REAL (angle).
Detailed Description
The block calculates the tangent of the value at the IN input. The result of the tangent function is available at
the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.9.6 ATAN
The ATAN block calculates the arctangent of an input value of data type ANY_REAL.
Detailed Description
The block calculates the arc tangent of the value at the IN input. The arc tangent is the inverse function of the
restricted tangent function. The result of the arc-tangent function is available at the OUT output.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.10 Conversion
10.10.1 ANY_TO_D
The ANY_TO_D block converts an input value of data type ANY_TYPE to type DINT.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.10.2 ANY_TO_B
The ANY_TO_B block converts an input value of data type ANY_TYPE to type BOOL.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.10.3 ANY_TO_R
The ANY_TO_R block converts an input value of data type ANY_TYPE to type REAL.
Related Topics
5.1.4 Block
10.10.4 ANY_TO_T
The ANY_TO_T block converts an input value of data type ANY_TYPE to type TIME.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.10.5 ANY_TO_DW
The ANY_TO_DW block converts an input value of data type ANY_TYPE to type DWORD.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.10.6 SPLIT_IEC60870DT
The SPLIT_IEC60870DT block splits up a IEC60870 DateTime into its individual components.
Detailed Description
The block splits up the value at the IN into its individual components. The result of the function is available at
the different outputs.
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.10.7 MERGE_IEC60870DT
Detailed Description
The block combines different inputs to a TimeStamp to a IEC60870 DateTime. The result of the function is
available at the output.
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
10.11 Extended
10.11.1 DEADZONE_HYS
Detailed Description
In this block the output OUT follows the input IN according to the equation of the straight line (OUT = IN),
unless the abscissa value (= input value of the block) is between the lower threshold value X_L and the upper
threshold value X_U of the dead zone. If the abscissa value is between the lower and the upper threshold
value of the dead zone, the output OUT does no longer follow the input IN according to the equation of the
straight line (OUT = IN), but the ordinate value (= output value of the block) remains equal, that is on the
value of the midpoint X_M of the dead zone (without consideration of the hysteresis). The hysteresis HYS is
always operative when the abscissa value approaches the midpoint of the dead zone. If unreasonable input
values are supplied, the lower and upper threshold values are ignored, and the equation of the straight line
(OUT = IN) is applied for the complete range. The hysteresis HYS is also ignored in case it is negative.
Functional logics:
OUT = IN if IN < X_L or IN > X_U else OUT = X_M
Marginal condition:
X_U ≥ X_M ≥ X_L
HYS < (X_U – X_M) and HYS < (X_M – X_L)
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
The PIDT1 Controller block is used for the calculation or control of a specific control distance or size with the
help of a proportional, integral, and differential portion.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.11.3 PT1_CONTROLLER
Detailed Description
This block realizes the transfer function of a proportional element with a lag of the first order. If the values are
exceeded in either direction, the value of the output remains on the maximum or minimum value. If the
smoothing constant T1 is less than the cycle time, zero or negative, the PT1-function turns into a pure P-func-
tion.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.11.4 CONTROL_PULLUP
Detailed Description
This block creates an output variable at the output OUT which does not perform abrupt changes in the normal
run. The output variable OUT reaches a certain target value (= input variable TV) via preset gradients G_U and
G_D. The presetting of the gradients can be performed separately for positive (runup) and negative (return)
direction change via the gradient variables G_U and G_D. By doing so, both the gradient for the runup G_U as
well as the one for the return G_D can take either sign in certain cases. The two enabling inputs EN_U and
EN_D serve to lock or enable the runup or return. The state true of one of these inputs means enabling and
false means locking the runup or return. The input variable QE serves for the quick equalizing, i. e. abrupt
pulling up of the output variable OUT to the target value which is preset as the input variable TV. To perform a
quick equalizing this variable QE must be true. The output variable EQU gets true when the output variable
OUT has reached the target value (small hysteresis).
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.11.5 Curves
The Curves block is used for the calculation of the function y = f(x, z) for families of curves by means of linear
interpolation.
[sc_assign_curve_params, 1, en_US]
• Delimiter is ";"
[sc_curves_tab1, 1, --_--]
[sc_curves_tab2, 1, --_--]
The output behavior when exceeding the input value limits is derived from the file name:
• Suffix _KEEP
Keep last value at the output (Sample_KEEP.csv).
• Suffix _LIMIT
Set output to limit (Sample_LIMIT.csv).
If no suffix is specified, the default is LIMIT.
Case does not matter.
The name of the imported CSV file is stored in the Comment field of the Instance data of the module.
[sc_curves_comment, 1, en_US]
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.12.1 SET_DIAG_ERROR
Detailed Description
With this module, a diagnostic bit can be set (input State = 1) or reset (input State = 0) with a user defined
text (input Text) of the class Error from the function chart. The number of diagnostic bits for the class Error is
defined by the destination system. There, diagnostic bits from 0 to 31 (input ID) are available for each
resource.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.12.2 SET_DIAG_WARNING
Detailed Description
With this module, a diagnostic bit can be set (input State = 1) or reset (input State = 0) with a user defined
text (input Text) of the class Warning from the function chart. The number of diagnostic bits for the class
Warning is defined by the destination system. There, diagnostic bits from 0 to 31 (input ID) are available for
each resource.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.12.3 GENERAL_INTERROG_SEND
Detailed Description
This block is used for generating an Image General-Interrogation message from the application program.
A rising edge at the input SEND causes an Image-GI message to be generated. CASDU1 and CASDU2 have to
be connected to inputs CASDU1 and CASDU2.
The value 255 for CASDU1 and CASDU2 means "Image-GI for all".
During Monitoring, the General-Interrogation is not generated.
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.12.4 COUNTER_INTERROG_SEND
Detailed Description
This block is used for generating a Counter-Interrogation message from the application program.
A rising edge at the input SEND causes a Counter Interrogation to be generated. For this, the REGION
number, COMPONENT number, BSE number, and the interrogation identifier QCC are to be established at the
respective inputs.
During Monitoring, the Counter Interrogation message is not generated.
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
10.12.5 COUNTER_INTERROG_REC
Detailed Description
This block is used for evaluating a received Counter-Interrogation message from the application program. Via
the inputs of the function block, counter interrogation messages can be filtered with the criteria explained in
the table above.
If
QCC: Qualifier of counter interrogation command in the message (Type Identification 101 according to
IEC 60870-5-101/104)
If values for FRZ or RQT are received which are not included in this table, the message will be discarded. In
this case, no information is transferred to the application. The output COT is only valid in combination with
the TRANSMIT signal.
During Monitoring the output values are always 0.
Cause of Transmission (COT)
<37> requested by general counter request reqcogen (all groups)
<38> requested by group 1 counter request reqco1
<39> requested by group 2 counter request reqco2
<40> requested by group 3 counter request reqco3
<41> requested by group 4 counter request reqco4
[sc_counter_interrog_rec_example, 1, en_US]
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
10.12.6 IECCMD_SET_CTRLLOC
The IECCMD_SET_CTRLLOC block enables selective control locations for the IEC command function.
Detailed Description
This block allows the adjustment of the control locations for the processing of IEC commands. For each block,
up to 4 control locations can be selected at the inputs CTRLLOC_x. The control location will be moved if the
input is in the range between 0 and 255. For more than 4 control locations, the block can be used several
times. Up to 256 control locations can be selected.
If the block IECCMD_SET_CTRLLOC is not used in the application, the control-location check is disabled (i.e. all
locations are valid).
This block activates functions in the target system, i.e. during Monitoring the control location is not set.
Supported Systems
This block is supported in the CP-805x system.
Related Topics
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
9.3 Generic Data Types
Document
Name This field contains the name of the currently selected template. You cannot change
this name.
Orientation The field tells you the orientation of the template, that is, portrait or landscape. You
cannot change the orientation.
Paper size This field shows the standardized name for the paper format of the template, for
example, Letter or A4. You cannot change this name.
Width This field contains the current template width as a numerical value. You see the
corresponding unit in the Rulers and grid group. If you select a different unit from
the Unit list box there, the value for the width will be updated.
Height This field contains the current template height as a numerical value. You see the
corresponding unit of measurement in the Rulers and grid group. If you select a
different unit of measurement from the Unit list box there, the value for the height
will also be updated.
Text Box
Text Enter the text in this text box that will appear in the text box.
Element Explanation
Style
Font With this list box, you select a font for the text in the text box. The selected font
applies to the entire text.
Font size With this list box, you select a character size for the text in the text box. The selected
character size applies to the entire text.
Font style
Bold If you select this check box, the entire text in the text box will be shown in bold type.
Italic If you select this check box, the entire text in the text box will be shown in italics.
Underline If you select this check box, the entire text in the text box will be shown underlined.
Orientation With this list box, you select the orientation to Horizontal or Vertical for the text in
the text box.
Alignment
Horizontal With this list box, you select the horizontal alignment of the text in the text box. The
selected alignment applies to the entire text.
You see the unit for the values in the Rulers and grid group. If you select a different
unit from the Unit list box there, the values for the margins will also be updated.
Vertical With these list boxes, you select the vertical alignment of the text in the text box.
The selected alignment applies to the entire text.
Before starting the printing process, decide on one of the 3 basic possibilities:
• You want to print an individual data category, for example, the function settings or the single-line config-
uration. In this case, mark the assigned entry in the project tree. Some data categories must be displayed
in the working area. You can find more information in the respective topic descriptions.
• You want to print a number of data categories or all data from a SICAM A8000 device. In this case, mark
in the 1.1.2 Project Tree the name of the concerned SICAM A8000 device.
• You want to print a number of data categories or all data from the current project. In this case you mark
the project name in the project tree.
NOTE
i You can still cancel printing when it is in progress, by clicking the button in the object bar.
Starting the Printing Process for the Data from a SICAM A8000 Device or from the Project
² Open the project tree.
² Mark the project name or a device name in the project.
² Click Print in the Project menu.
The 17.4.4 Print dialog opens.
² Use this dialog to select a printer, a document layout, and the properties. You find more information
about this under 11.4.3 Selecting Print Options.
² Click Print.
The Print dialog closes, the printing progress is displayed in the object bar and the selected data is printed.
NOTE
i You can still cancel printing when it is in progress, by clicking the button in the object bar.
Related Topics
² 11.4.2 Determining the Scope of Printing
If you want to print a number of data categories or all data from a SICAM A8000 device or from the project,
you can determine the scope of printing. For this, you can use the dialog 17.4.4 Print. This dialog is displayed
when you mark the project name or a device name in the 1.1.2 Project Tree and then click Print in the Project
menu.
Related Topics
² 11.4.3 Selecting Print Options
² 11.4.4 Print Options
Before the printout is started, select a printer, a document template and a cover page. For this, you can use
the dialog 17.4.4 Print.
This dialog is displayed after one of the following actions:
• You have marked an individual data category in the project tree or opened the data in the working area
and then clicked Print in the Project menu.
• You have predefined the scope of printing and then clicked Print button from the Logic Editor toolbar.
• You have predefined the print options in the 11.4.4 Print Options and then clicked Print button from the
Logic Editor toolbar.
NOTE
i The scope of print options available in the Print dialog vary depending on the elements to be printed.
Related Topics
² 11.4.4 Print Options
² 11.4.1 Starting the Printing
Related Topics
11.4.2 Determining the Scope of Printing
11.4.3 Selecting Print Options
Before printing, you can check the expected print result with 17.4.3 Print Preview.
The print preview offers the following possibilities:
• You can start the document print directly from the print preview.
Related Topics
11.5.2 Opening the Print Preview
11.5.4 Scaling a View
11.5.5 Navigating in the Print Preview
11.4.1 Starting the Printing
Before opening 17.4.3 Print Preview, you must decide on one of the 3 basic possibilities:
• Use the print preview to check an individual data category, for example, the function settings or the
single-line configuration. In this case, you mark the assigned entry in the project tree. In the case of a few
data categories it is necessary to have the data displayed in the working area. More information about
this can be found in the respective topic descriptions in this Help.
• You want to check a number of data categories or all data from a SICAM A8000 device with the print
preview. In this case you mark the name of the SICAM A8000 device concerned in the project tree.
• You want to check a number of data categories or all data from the current project with the print
preview. In this case you mark the project name in the project tree.
Checking the Data from a SICAM A8000 Device or the Project with the Print Preview
² Mark the project name or a device name in the project tree.
² Click Print Preview in the Project menu.
The 17.4.3 Print Preview dialog opens.
² Use this dialog to select the document layout and the properties. You find more information about this
under 11.5.3 Selecting Preview Options.
² Click Preview.
The Print preview dialog closes. The print preview is displayed in the working area.
Related Topics
² 11.5.1 Overview of the Print Preview
² 11.5.4 Scaling a View
² 11.5.5 Navigating in the Print Preview
Before the print preview is started, select the document layout and the properties. For this, you can use the
dialog 17.4.3 Print Preview.
This dialog is displayed after one of the following actions:
• You have marked an individual data category in the project tree and then clicked Print preview in the
Project menu.
• You have marked the data in the working area and then clicked Preview in the Project menu.
• You have predefined the preview scope with the dialog 17.4.3 Print Preview and then clicked Preview.
Related Topics
² 11.5.1 Overview of the Print Preview
You can scale the view of the 17.4.3 Print Preview and thus change the display size of the document.
NOTE
NOTE
i When the maximum or minimum display size is reached, the respective button becomes inactive.
Related Topics
² 11.5.1 Overview of the Print Preview
In order to get from one page of the document to the next, you have the following possibilities:
• You can move the pages vertically with the scroll bar.
• You can move the pages vertically with the hand tool.
NOTE
i Please observe the difference between the previous/next page and the previous/next view. For pages, the
terms Previous and Next relate to the 2 bordering pages that are located before and after the currently
visible page. With views, the terms relate to the previous display process. If you navigate through a docu-
ment, the sequence of the displayed pages is documented in a list. With the Previous view and Next view
actions, you can navigate within this list and display the corresponding pages.
- or -
²
In order to display the 1st page of the document, click the button in the Print preview toolbar.
- or -
²
In order to display the next page of the document, click the button in the Print preview toolbar.
- or -
²
In order to display the last page of the document, click the button in the Print preview toolbar.
Corresponding with your respective action, the appropriate page is displayed in the print preview.
- or -
²
In order to display the next view, click the button in the Print preview toolbar.
Corresponding with your respective action, the appropriate page is displayed in the print preview.
The button in the toolbar is marked and the mouse pointer changes into a hand symbol.
² Click on the document in the display area and hold the mouse button.
² Move the document in a vertical direction.
Related Topics
² 11.5.1 Overview of the Print Preview
If you are satisfied with the expected print result, you can start the printout. Before the document is printed,
select a printer.
Related Topics
² 11.5.1 Overview of the Print Preview
² 11.4.3 Selecting Print Options
Related Topics
3.1.1 Overview of Projects
• V03.60 to V03.70:
For XOR blocks (BOOL and DWORD), the inputs of X1/X2 are renamed to IN1 and IN2.
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
5.2.3 Renaming a Function Chart (CFC)
5.1.6 Flow Model
5.7.2 Optimizing the Running Sequence Automatically
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
Sheet Bars
Static sheet bars If you select this option, a permanent area will be
reserved in the function-block diagram on the right
and left. This area is exclusively for sheet-bar entries,
for example for interconnections throughout the
function-block diagram.
Dynamic sheet bars If you select this option, the sheet-bar entries will
only be shown in the function-block diagram when
necessary.
A function-block diagram configured in this way
differs from a function-block diagram with fixed sheet
bars by way of the following properties:
Layout
Vertical With this list box, you increase or reduce the number
of sheets of the function-block diagram in the vertical
direction. This is done by clicking the arrow buttons
of the list box. Alternatively, you can enter a value in
the entry field of the list box.
Horizontal With this list box, you increase or reduce the number
of sheets of the function-block diagram in the hori-
zontal direction. This is done by clicking the arrow
buttons of the list box. Alternatively, you can enter a
value in the entry field of the list box.
Sheet size With this list box, you select a sheet size. You can
select between the formats A3, A4, and A5.
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
5.3.3 Overview of Sheet Bars
13.4 Advanced
This group provides advanced properties for a function chart (CFC).
Related Topics
5.1.1 Meaning of CFC
5.4.5 Adding and Editing a Text Box in a CFC in the Data Flow View
Border
Border width This entry field contains the current line width in pixels. The default value after inser-
tion of the text box is 0. To modify the width of the line, enter a value in the entry
field.
Border color With this list box, you can select a color for the border line.
Related Topics
5.1.1 Meaning of CFC
5.4.5 Adding and Editing a Text Box in a CFC in the Data Flow View
Related Topics
5.1.1 Meaning of CFC
5.4.5 Adding and Editing a Text Box in a CFC in the Data Flow View
13.7 Text
This group contains the text properties of a text box in a function chart (CFC).
Related Topics
5.1.1 Meaning of CFC
5.4.5 Adding and Editing a Text Box in a CFC in the Data Flow View
Instance Data
Name This text box contains a consecutively numbered default name for the block instance.
Enter another name for the block instance if necessary.
Comment You have the option of entering a comment in this text box.
Element Explanation
Add forcing This column contains 1 check box. If you select this check box in the offline mode, a
force value can be added to the block IO in the online mode. This check box has to be
selected before starting the online analysis.
Forcing active This column contains 1 check box. If you select this check box in the online mode, the
force value will be written to the device.
Force value This column contains 1 field. This field contains the value that is written to the device
when forcing is activated.
Type Data
Type This field contains the type of the block, for example, AND. You cannot change this
block type.
Comment This field contains a comment about the block that has been preset in the factory. You
cannot change this comment.
Author This field contains the user name by which you are logged on to the operating system
when the insertion was made. You cannot change this name.
Version This field contains a version number of the block that has been preset in the factory.
You cannot change this version number.
Family With this field you can structure function blocks.
Created on This field contains the date on which the block was inserted into the function-block
diagram. You cannot change this date.
Changed by This field contains the user name by which you are logged on to the operating system
when the change was made. You cannot change this name.
Call (Type) Type of the used function block.
Related Topics
5.1.1 Meaning of CFC
5.1.4 Block
5.4.1 Basic Instructions
13.9 Interface
This group contains the terminals properties of a component in a function chart (CFC).
Element Explanation
Type This column contains the data types for the inputs and outputs of the block. You
cannot change these data types.
The following data types are possible: BOOL, DINT, REAL, TIME, STRUCT.
Add forcing This column contains 1 check box for each input and output. If you select this check
box in the offline mode, a force value can be added to the block IO in the online
mode. This check box has to be selected before starting the online analysis.
Forcing active This column contains 1 check box for each input and output. If you select this check
box in the online mode, the force value will be written to the device.
Force value This column contains 1 field for each input and output. This field contains the value
that is written to the device when forcing is activated.
Section This column contains the information for each connection as to whether it is an input
or an output. You cannot change this information.
Invisible This column contains 1 check box for each block connection. If you select this check
box, the connection will be hidden on the block. To show the block connection again,
remove the selection.
The check box will be synchronized with the check box in the properties of the block
connection. The conditions of the 2 check boxes are therefore always identical.
For test This column contains one check box for each block connection. If you select this check
box, the connection will be taken into account for function chart analysis.
The check box will be synchronized with the check box in the properties of the block
connection. The conditions of the 2 check boxes are therefore always identical.
Comment This column contains 1 text box for each connection. You have the option of entering
a comment in this text box.
The comment will be synchronized with the comment in the properties of the block
connection. The contents of the 2 text boxes are therefore always identical.
Comment (type) This field contains a comment preset in the factory. You cannot change this comment.
Related Topics
5.1.1 Meaning of CFC
5.1.4 Block
5.5.8 Showing/Hiding Block Connections
5.5.9 Setting Parameters for Block Connections
Element Explanation
Type This column contains the data types for the inputs and outputs of the block. You
cannot change these data types. The following data types are possible: BOOL, DINT,
INT, REAL.
Section This column contains the information for each connection as to whether it is an input
or an output. You cannot change this information.
Comment This column contains one text box for each connection. You have the option of
entering a comment in this text box.
The comment will be synchronized with the comment in the properties of the block
connection. The contents of the 2 text boxes are therefore always identical.
Comment (type) This field contains a comment preset in the factory. You cannot change this comment.
Related Topics
5.1.1 Meaning of CFC
5.1.4 Block
Instance Data
Name This field contains the name of the block connection. You cannot change this name.
Value This entry field contains the current value of the block connection. You can change
this value. Click the entry field and enter a new value. A plausibility and syntax verifi-
cation checks the value. If the value is permissible, it is accepted. Otherwise, you will
receive a warning.
The value will be synchronized with the value in the properties of the block connec-
tion. The values in the 2 entry fields are therefore always identical.
To the right of the entry field, there is a check box. If the value entered is valid, the
selection of the check box will automatically be removed. If you select the check box
again, the value of the block connection will be reset to the default value. The Value
field in the Type data area shows the default value of the block connection.
Unit With this list box, you can select a unit for the block connection. The unit will be
synchronized with the unit in the properties of the block connection. The selected
units are therefore always identical.
To the right of the list box, there is a check box. As soon as you select a unit, the
selection of the check box will automatically be removed. If you select the check box
again, the unit of the block connection will be reset to the default unit. The Unit field
in the Type data area shows the default value of the block connection.
Invisible If you select this check box, the block connection will be hidden on the block. To
show the block connection again, remove the selection.
The check box will be synchronized with the check box in the connection properties
of the block. The conditions of the 2 check boxes are therefore always identical. The
Invisible check box in the Type data area shows the default value of the block
connection.
Element Explanation
For test If you select this check box, the block connection will be taken into account for func-
tion chart analysis.
The check box will be synchronized with the check box in the connection properties
of the block. The conditions of the 2 check boxes are therefore always identical. The
For test check box in the Type data area shows the default value of the block
connection.
Comment You have the option of entering a comment in this text box.
The comment will be synchronized with the comment in the connection properties
of the block. The contents of the 2 text boxes are therefore always identical.
Type Data
Type This field contains the data type of the block connection. The following data types
are possible: BOOL, DINT, REAL, TIME, STRUCT.
Value This field contains the default value of the block connection.
If you insert a block into a function-block diagram, the block connection will be
preset to the default value for the connection type. If the default value of the
connection type changes, it will propagate the new value to the block connection in
the function-block diagram.
If you set parameters for the block connections, propagation of the standard value to
the connection type will be interrupted. You can reactivate the propagation. This
requires that you select the check box next to the Value field. The standard value of
the connection instance then replaces the parameterized value again.
Unit This field contains the default unit of the block connection.
If you insert a block into a function-block diagram, the block connection will be
preset to the default unit for the connection type. If the default unit of the connec-
tion type changes, it will propagate the new unit to the block connection in the func-
tion-block diagram.
If you set parameters for the block connections, propagation of the standard unit to
the connection type will be interrupted. You can reactivate the propagation. This
requires that you select the check box next to the Unit field. The standard value of
the connection instance then replaces the parameterized value again.
Invisible The state of this check box indicates the default setting for the visibility of the block
connection.
For test The state of this check box indicates the default setting for the test of the block
connection.
Comment This field contains a comment about the block connection that has been preset in
the factory.
Configurable The state of this check box indicates the default setting for the parameterizability of
the block connection.
Interconnectable The state of this check box indicates the default setting for the interconnectability of
the block connection.
Section This field contains the information as to whether the block connection is an input or
an output.
Related Topics
5.1.1 Meaning of CFC
5.1.4 Block
5.5.9 Setting Parameters for Block Connections
13.12 Interconnection
This group contains the general properties of an interconnection in a function chart (CFC).
Related Topics
5.1.1 Meaning of CFC
5.5.1 Displaying Interconnections
5.5.4 Negating a Block Input
Related Topics
5.1.1 Meaning of CFC
[sc_le_cfc-analysis_sample_view, 1, en_US]
• Logic Editor must be able to connect to the device as guest or administrator user. Also consider the limi-
tation of the amount of logged on users to the device.
• The configuration must be loaded to the device before starting the Online analysis.
² In the project tree of an offline configuration, open any configured function chart (CFC) and select any
CFC block which needs to be analyzed.
² Select the For Test option of the input/output variable to watch its runtime value in the following ways:
You can select the individual terminal and select the option For Test under the General group in the
Properties tab.
You can select the entire block and select the option For Test under the Interface group in the Proper-
ties tab.
NOTE
i During runtime of online analysis, you still can add or remove terminals for test as well as probe a terminal
by positioning the mouse pointer over the terminal.
The Online test of function charts window displays the progress status and after completion, the values for
input/output terminals are displayed in the working area. The title bar changes to orange color indicating that
the editor is in the online mode. The real-time values from the device are displayed at the terminals continu-
ously until you stop the analysis.
NOTE
i While the CFC online analysis is in progress, you can still add or remove the terminals for the online analysis
and view the values available at the terminal. Other CFC operations, like creating a new logic and modifica-
tion of any existing logic, are not possible while CFC online analysis is in progress.
² Click the Control flow tab to add/remove values for watching and also watch the values for already
added terminals in the tabular view.
² To stop the CFC online analysis, click the symbol in the menu bar again or select Stop function chart
(CFC) analysis from the Tools menu.
NOTE
i During runtime of offline analysis, you still can add or remove terminals for test as well as probe a terminal
by positioning the mouse pointer over the terminal.
The Starting simulation... dialog displays the progress status and after completion, the values for input/
output terminals are displayed in the working area. The title bar changes to orange color indicating that the
editor is in the offline mode. The values are displayed at the terminals continuously until you stop the analysis.
² To stop the CFC offline analysis, click the symbol in the menu bar again.
Related Topics
² 5.1.1 Meaning of CFC
² 5.1.3 Function Chart
² 5.1.5 Configuration Strategy
² 5.2.1 Adding a CFC
² 5.2.2 Opening a CFC
Task Assignment
² In the Project Tree, double-click Add new chart.
The Add new chart dialog opens.
The Task Assignment cannot be changed, there is only 1 fixed task level.
Task Cycle-Time
² In the Project Tree, double-click Chart sequence & extras.
² Switch to the Task assignment tab and select the task. In the corresponding Properties tab below, set
the Cycle Time.
Related Topics
² 5.1.6 Flow Model
² 5.1.3 Function Chart
Task Assignment
NOTE
i With V03.50 and higher it is also possible to set up a device of type CP-8031 in the Device Manager.
A CP-8031 is basically a CP-8050 with some restrictions (e.g. no multiple resources and redundancy).
In the Task assignment, there are 3 task levels available. When you create the chart you can assign the
desired task level.
Additionally, the Task assignment can also be changed later in the 17.1.1 Function-Chart (CFC) Editor.
Task Properties
² In the Project Tree, double-click Chart sequence & extras.
² Switch to the Task assignment tab and select the task. In the corresponding Properties tab below, set
the Cycle Time.
Related Topics
² 5.1.6 Flow Model
² 5.1.3 Function Chart
² 5.8.3 Bumpless Reload
Forcing is a user intervention in the logic of the simulated program by changing the value of a variable.
• Right-click a single signal and select Add for test from the context menu to add this single signal.
• Right-click anywhere in the plan and select Add all input signals of this chart to forcing list or Add all
output signals of this chart to forcing list from the context menu to add all input or output signals at
once.
Forcing Table
The forcing table is available in the Testing taskcard.
The forcing table is a central point in Logic Editor to influence the execution of the CFC plan. The force list
shows all signals which are added to the list and can be used for forcing.
Within the table you can:
[sc_le_forcingtable, 2, en_US]
The symbol changes to . You can now edit the Chart value of each value of the selected signal and they are
now visible in the forcing list.
[sc_le_forcing_add, 2, en_US]
NOTE
The symbol changes to and the selected signal is removed from the forcing list.
[sc_le_forcing_remove, 2, en_US]
NOTE
i Setting the Forced option can only be done during monitoring mode. Furthermore, stopping monitoring
mode will disable all forcings set during your last monitoring session.
NOTE
i Output signals can only be forced if the plan is paused (Operation menu).
NOTE
i If Forced has been enabled for a signal, it is not possible to disable the forcing during the currently active
monitoring session.
NOTE
i Setting the Disconnected option can only be done during monitoring mode.
Related Topics
² 13 Function Charts (CFC)
² 17.2.4 Testing
² 5.4 Adding and Processing Elements in the Function Chart
² 15.2 Testing SICAM A8000 Devices
When using redundancy, the Operation panel shows a redundancy-related area for redundant resources.
Redundancy State
If a redundant device is in online operation and its Redundancy state is unknown and/or its Synchronized
state is unknown, the connection to the device may be interrupted or the device does not send an intelligible
answer.
During start-up of the Logic Editor Redundancy state and Synchronized state can be displayed as unknown
for a short time, but should not during online operation.
Redundancy state and Synchronized state are cyclically interrogated during online operation and are auto-
matically updated in case of any change of the device's state.
Synchronized State
Depending on the Synchronized state the following actions are possible or not.
Action Synchronized: Yes Synchronized: No
Cold/Warm Start no yes
Halt/Continue/Cycle Step no yes
Disconnect/Reconnect of input/ no yes
output signals
Force input/output signals no yes
The corresponding buttons are active or inactive depending on the Synchronized state.
Start/Stop Synchronization
NOTE
i When the synchronization is stopped, the redundant devices show different states, because they work on
different process images.
Simulation
In simulation mode the behavior is like during online operation, though the Redundancy state is displayed as
unknown.
[sc_test_inputwiring_example, 1, --_--]
[sc_test_outputwiring_halt, 2, en_US]
[sc_test_inputwiring_halt_chart, 1, --_--]
In this case, all actual input process values (Input PI) are written to the input signals in the chart and are visible
in the online test. The chart processing is halted, all input-signal values (signals 1 to 5) are not processed, so
the output signals 6 and 7 remain unchanged.
Example: When switching X1, the value Switch 1 is copied from the Input Process Image (Input PI) to signal 1
in the chart. When modifying the value of potentiometer P1, the current value Pot 1 is copied to signal 4 in
the chart.
[sc_test_inputwiring_disconnect, 2, en_US]
[sc_test_inputwiring_disconnect_chart, 1, --_--]
NOTE
i In this case the input wiring and the chart are tested.
All input process values (Input PI) are written to the according input signals in the chart. These values are
processed in the chart and the output signals in the chart are filled with the calculated values.
However, all output signals are disconnected from the process, so all calculated values are NOT written to the
Output PI (process image), thus the output process is not influenced (Relay 1 and Motor 1 remain
unchanged).
Related Topics
15.2 Testing SICAM A8000 Devices
[sc_test_inputwiring_disconnect, 2, en_US]
[sc_test_inputwiring_disconnect_chart, 1, --_--]
If you use the real values from the input process, the input signals are NOT disconnected from the process.
Now you can modify the input process values (e.g. switch X1, X2, X3, potentiometer P1, P2). These values are
written to the input signals of the chart and, furthermore, the signals are calculated and the calculated values
are written to the output signals (6 and 7).
[sc_test_chart_dis_inout_en, 1, en_US]
[sc_test_chart_disconnect_inout_chart, 1, --_--]
Now you can modify (force) the values of all input signals (1 to 5) in the chart and check if these values are
calculated properly (check the calculated output signals 6 and 7).
You can connect individual signals to the process. For example, if you want to use the real value from the
potentiometer P1, reconnect signal 4 to the process (deactivate Forcing – see 15.2.1 Testing Signals
(Forcing)):
[sc_test_chart_signal4_chart, 1, --_--]
Now the input signal 4 receives the real value from the potentiometer P1.
Related Topics
15.2 Testing SICAM A8000 Devices
[sc_test_outputwiring_halt, 2, en_US]
[sc_test_inputwiring_halt_chart, 1, --_--]
In this case, signal 6 and signal 7 are not overwritten by the chart values.
Now you can force the values for signal 6 and signal 7, so these values are written to the output process
(Relay 1 and Motor 1). Details see 15.2.1 Testing Signals (Forcing).
[sc_test_outputwiring_halt_signals6u7, 1, en_US]
In case of a cycle step or when continuing the chart processing, all output signals are overwritten by the calcu-
lated values of the chart.
Related Topics
15.2 Testing SICAM A8000 Devices
[sc_test_inputwiring_example, 1, --_--]
Related Topics
15.2 Testing SICAM A8000 Devices
5.8.3 Bumpless Reload
[sc_test_inputwiring_example, 1, --_--]
Related Topics
15.2 Testing SICAM A8000 Devices
5.8.3 Bumpless Reload
[sc_test_inputwiring_example, 1, --_--]
Related Topics
15.2 Testing SICAM A8000 Devices
5.8.3 Bumpless Reload
• In the Project Navigation, device A and device B are dislayed with separate icons.
[sc_redundancy_display, 1, en_US]
Icon Description
Device A
Device B
Resource (editable)
Compiling Device/Resource
You can compile the complete device or a single resource via the context menu.
Redundant resources in device B cannot be compiled.
[sc_res_redundant_compile, 1, en_US]
For Test
When using redundancy, it is possible to set or clear "For test" for all inputs/outputs of a block on the level of:
• device
• resource
• chart
• UFB
This bulk operation affects all inputs/outputs of function blocks and functions contained in charts beneath the
selected context-menu level.
[sc_redundant_fortest, 1, en_US]
For device A you have the possibility to set or clear "For test" for single values via the Control flow tab.
[sc_redundant_fortest_single, 1, en_US]
For device B you do not have the possibility to set or clear "For test" for single values. Using the bulk opera-
tion in the context menu all values of the selected level (device/resource/chart/UFB) are set or cleared.
17.1 Editors
You can use the Function-chart Editor to configure additional functions for the device. Use predefined blocks
for this.
• 17.2.1 Libraries
This tab can be used to add function blocks to the function chart.
• 17.2.2 Signals
This tab can be used to add signals to the function chart.
• 17.2.5 Instructions
This tab can be used to add instructions to the function chart.
• 17.2.4 Testing
• 17.2.3 Variables
Related Topics
5.1.1 Meaning of CFC
5.1.5 Configuration Strategy
You can use the Data flow tab to configure the CFC function as a graphic function chart.
Element Explanation
Interface
Name This column displays the following sections:
• Input
This section displays the input pins and allows you to add the input terminals of
the CFC block to configure the interface.
• Output
This section displays the output pins and allows you to add the output terminals
of the CFC block to configure the interface..
• InOut
This section displays the IO pins and allows you to add the IO terminals of the
CFC block to configure the interface.
Type This field contains the data type of the block connection. The following data types are
possible:
• Bool
• DInt
• Real
• Time
• Struct
Value This field contains the default value of the block connection.
Configurable The state of this check box indicates the default setting for the parameterization of
the block connection.
Interconnectable The state of this check box indicates the default setting for the interconnectability of
the block connection.
Comment This field contains a comment about the block connection that has been preset in the
factory.
Toolbar The 17.5.2 Toolbar Data Flow allows fast access to actions and settings.
Working area This working area is used to generate the function chart for the CFC function. Place
the blocks from the library in the working area for this purpose. Next, set parameters
for the blocks and then interconnect them. Use the signals and settings from the
signal catalog to establish the connection to the process or to internal functions.
Related Topics
17.1.1 Function-Chart (CFC) Editor
You can use the Control flow tab to configure the CFC function and change the running sequence, if neces-
sary.
Element Explanation
Object/parameter This column contains the names of all modules in the function chart. You will see an
arrow tip to the left of a module name. You can show or hide the module connections
by clicking on this arrow tip. Connections selected as Invisible are not displayed.
Operand In the control flow, operands with a fixed syntax designate the interconnections
between the modules. This column contains the operands to the module connections.
An operand can be one of the following:
• A value
• An interconnection to another module
• An interconnection to a signal
You can also enter a value manually in this column.
Add forcing This column contains 1 check box for each input and output. If you select this check
box in the offline mode, a force value can be added to the block IO in the online
mode. This check box has to be selected before starting the online analysis.
Forcing active This column contains 1 check box for each input and output. If you select this check
box in the online mode, the force value will be written to the device.
Force value This column contains 1 field for each input and output. This field contains the value
that is written to the device when forcing is activated.
For Test If this checkbox is active, the parameter is used for test.
Related Topics
17.1.1 Function-Chart (CFC) Editor
This list box enables you to set the time range of the x-axis (input in minutes).
Element Explanation
Toolbar of the Trend Chart Display
Zoom (icons) The zoom icons can be used to zoom the horizontal and vertical axes separately. The
toolbar provides a zoom in and a zoom out icon.
Display mode (selec- The display mode for the x time axis of the trend chart can be set up using the selec-
tion box) tion box of the toolbar.
The following display modes are available:
• Static
You can select this option for a static time range display. The time interval is not
refreshed. You can set any range. This mode can be used to visualize all logged
values in detail. Siemens recommends using this display mode for static values.
• Strip
You can select this option for a dynamic display. The time axis always displays
the current time at the far right. You can change the duration of the time
interval.
• Scope (jumping time range display)
The time axis displays a fixed time interval. Once the trend values reach the right
edge, the display changes so that the current time is shown at the left edge.
• Sweep
You can select this option for a sweep mode display. This mode is similar to the
Scope mode. However, the values of the last sweep continue to be displayed
until they are overwritten by the current values.
Trend manager The trend manager visualizes the trend to axis assignments. You can hide trends by
(Select trend: selec- disabling the corresponding check box. Hidden trends are no longer recorded in the
tion field) trend chart, but still displayed in the legend in dimmed mode. Select trends to be
edited in the trend manager. In addition to a color code, the trends in the trend chart
are also provided with a marker to enable their quick identification in the legend and
trend manager.
Import/export (icons) The trends can be exported or imported in CSV format. The export icon is enabled
once you have selected a trend in the trend manager. Imported trends are visualized
on separate x and y axes. You can improve the comparison of an imported trend with
a trend from active logging by linking the x-axis of the imported trend with the
existing axis.
Customizing the user This menu can be used to show and hide display elements such as the legends, rulers,
interface (View or markers.
menu)
Linking x axes (Link When a trend is imported, the new x-axis (axis B) can be linked to the existing x-axis
axes selection field) (axis A). In the linked mode, axis B moves simultaneously with axis A, but can be
adjusted without interfering with axis A. This mode allows you to compare history
trends with the current trend.
Printing (Print icon) The print dialog can be used to print the currently displayed trends of the trend chart.
The printout can include a comment.
Element Explanation
• Write protection disabled state (open padlock icon): You can edit the value in the
corresponding column of the definition table, or directly in this field. Changes to
the cell in the definition table are transferred to the field of the y axis. However,
changes to the field of the y axis are not transferred to the corresponding cell in
the definition table.
• Write protection enabled state (closed padlock icon): The value cannot be edited
in the corresponding column of the definition table or in the y axis field.
You can restore the configured minimum/maximum with double-click on the y axis.
Write protection for Using this icon, you can enable write protection for the input field next to the icon
the input field (closed padlock icon), or disable it (open padlock icon).
• Write protection disabled state (open padlock icon): You can edit the value in the
corresponding column of the definition table, or directly in this field. Changes to
the cell in the definition table are transferred to the field of the y-axis. However,
changes to the field of the y-axis are not transferred to the corresponding cell in
the definition table.
• Write protection enabled state (closed padlock icon): The value cannot be edited
in the corresponding column of the definition table or in the y-axis field.
Y axis (here: analog The y-axis is labeled with the axis name and the configured physical unit.
axis)
Minimum value This field displays the minimum value of an analog axis. The access for editing
depends on the state of the write protection.
Time (right edge of This field displays the time for the right edge of the x-axis. The write access depends
the visualized trend on:
range)
• The state of the associated write protection
• The selected display mode
You can use the selection function to open a calendar and select a different day.
Time range of the x- The time range of the x-axis is set in the definition table.
axis
Time (left edge of the This field displays the time for the left edge of the x-axis. The write access depends on
visualized trend the following:
range)
• The state of the associated write protection
• The selected display mode
You can use the selection function to open a calendar and select a different day.
Digital trend names The names of the digital trends are displayed outside of the trend chart. The position
depends on the configured position of the digital axis.
Y axis (here: digital The y-axis is labeled with the axis names.
axis)
Legend (analog The legend displays the markers and names of the visualized analog trends. The corre-
trends) sponding values are displayed to the right of the trend name:
• If there is no ruler, the last values added to the trend are displayed.
• If at least one ruler is displayed, the associated values are displayed to the right
of the trend name at the active ruler.
Element Explanation
Analog trends Analog trends are visualized in the upper area of the trend window. The names of the
analog trends (F) are displayed in the legend of the trend chart.
A tooltip is displayed for each visualized trend whenever you position the mouse
pointer on the trend line. The tooltip first displays the trend name. Click this name to
display the configured data source.
Markers Markers help you to distinguish between several trends. You can enable the display of
markers in the View menu.
Interpolated trend A value without underscore on the ruler indicates that this is an interpolated value. A
value defined online value is not available for this trend point.
Defined trend value An underscored value on the ruler indicates that this is a defined online value.
Digital trends Digital trends are visualized in the lower area of the trend window. The names of the
digital trends are displayed outside of the trend chart. The position depends on the
configured position of the digital axis. A tooltip is displayed for each visualized trend
whenever you position the mouse pointer on the trend line. The tooltip first displays
the trend name. Click this name to display the configured data source.
Ruler A ruler displays the value of each trend at the ruler/trend intersections. Every ruler
displays the associated time stamp with date and time. A trend chart may have
several rulers.
The active ruler is indicated by a yellow marker at its top end. The values at the active
rulers are displayed in the legend (A) to the right of the trend name.
• Adding rulers:
You can drag and drop a new ruler from its docking position on the left edge of
the trend chart to a specific position in the trend chart.
• Copying rulers:
Press <CTRL> and click the ruler to paste a copy thereof.
• Deleting rulers:
Drag the ruler to the left edge of the trend chart.
Press <Alt> and click the ruler to be deleted.
Element Explanation
Ratio display/scroll This function depends on the selected display mode and only affects analog trends:
bar (y-axis)
• Scroll bar function along with the ratio display in the Static display mode.
• Ratio display in all other display modes.
Ratio display
The scroll bar displays the approximate ratio between the configured and currently
displayed range of values of the y-axis in the trend chart.
Scroll bar
The scroll bar can be used to shift the visible range of a trend in the trend chart if the
displayed time range of the y-axis was modified in vertical direction, for example, by
means of the zoom icons.
Ratio display/scroll This function depends on the selected display mode and only affects analog trends:
bar (x-axis)
• Scroll bar function along with the ratio display in the Static display mode.
• Ratio display in all other display modes.
Ratio display
The scroll bar displays the approximate ratio between the configured and currently
displayed range of values of the x-axis in the trend chart.
Scroll bar
The scroll bar can be used to shift the visible range of a trend in the trend chart if the
displayed time range of the x-axis was modified in horizontal direction, for example,
by means of the zoom icons.
Related Topics
8.1 Brief Introduction to User-Defined Function Blocks
17.1.1 Function-Chart (CFC) Editor
Related Topics
17.1.1 Function-Chart (CFC) Editor
17.2.1 Libraries
The Libraries tab contains the global Logic Editor library and the project library. To create a single-line diagram
or a display page, for example, use elements from the global Logic Editor library.
The Libraries tab is divided into 3 palettes:
• Project library
• Global libraries
• Information
Project Library
The project library is intended for future expansion.
Global Libraries
Toolbar This is used for fast access to actions and settings in the Global Logic Editor library palette to
work with the user-defined global Logic Editor library.
List box This list box is used to filter the display of the global Logic Editor library. To be able to see all
elements, select the All settings. If you select the Context-based filtering setting, only those
elements that you require for work with the active editor are displayed.
Library struc- Folders named Global Logic Editor library and Documentation templates with subfolders are
ture displayed in the Global libraries palette. You can view the device types grouped under the
respective device family. The content of this library is structured hierarchically. As in the
project tree, you can navigate through the structure and show or hide individual levels.
Information
Display area This display area provides additional information on an element marked in the library. Such
information is typically the type of element or a brief description regarding the use of the
element.
Related Topics
17.2.2 Signals
17.2.4 Testing
17.2.5 Instructions
17.2.3 Variables
17.2.2 Signals
The Signals tab contains the signals of all offline configurations in the project. You use a list box to select an
offline configuration whose signals will be displayed in the signal catalog palette. The Signals tab is typically
used to link elements on a display page to signals.
Signal Catalog
Name The name of the signal or signal element.
TI The type information of the signal.
Type The data type of the signal element (BOOL, DINT, REAL, TIME).
Related Topics
17.2.1 Libraries
17.2.4 Testing
17.2.5 Instructions
17.2.3 Variables
17.2.3 Variables
The Variables tab contains local (plan-specific) variables of block terminals and instantiated structures.
[sc_variables, 1, en_US]
These variables can be used as a temporary storage inside a CFC plan. For details on how to handle variables in
the A8000 device, refer to the device manual.
Example
[sc_vars_example, 1, en_US]
NOTE
NOTE
i For structures it is not possible to enable/disable the fields Const and Retain. This has to be done in the
structure editor.
[sc_vars_add, 1, en_US]
For type-independent instructions, additionally select the required type of the internal variable.
[sc_le_int_var, 1, en_US]
² To easily add a structure, right-click the structure in the Project Navigator tree and select Instantiate
structure from the context menu.
[sc_vars_add2, 1, en_US]
Removing Variables
² To remove a created internal variable, right-click the variable and select Delete from the context menu.
[sc_vars_remove, 1, en_US]
[sc_vars_jump, 1, en_US]
Related Topics
13 Function Charts (CFC)
17.2.1 Libraries
17.2.2 Signals
17.2.4 Testing
17.2.5 Instructions
17.2.4 Testing
The Testing tab contains the palettes Operation Panel, Automation State, and Signals For Test.
Element Explanation
Reconnect input signals Reconnects all input signals to the process bus again.
Reconnect output signals Reconnects all output signals to the process bus again.
Automation State
Watch cycle Information about cycle time (current/max/defined)
Memory code size Current memory consumption of the device
Variable size Memory consumption of variables of the device
Signals For Test
Disconnected If active, the signal in the device is disconnected from the process bus.
Name Name of the signal element
Forced Set forcing to active (only possible in online mode).
If forced, the value from column Value is used. If not forced, the current
value is displayed.
Value The value to be set by forcing
• Trend/Dynamic Display
Related Topics
17.2.1 Libraries
17.2.2 Signals
17.2.5 Instructions
17.2.3 Variables
6.12 Watching Values in Trend/Dynamic Display while CFC Online Analysis (Monitoring) is in Progress
8 Configuring User-Defined Function Blocks
15.2.1 Testing Signals (Forcing)
17.2.5 Instructions
The Instructions tab contains all relevant actions for inserting Blocks into CFC plans. The panel is visible when
a CFC editor is open.
[le_le_tab_instructions, 1, en_US]
(1) Favorites
For easier usage you can add basic instructions to this palette using drag and drop. So you can
quickly use the instruction from this panel.
(2) Basic instructions
Contains all block types described in 10 Instructions (Blocks). To assign an instruction to the
currently opened CFC plan, use drag and drop or double-click the block to add it automatically to
the current plan.
(3) Used objects
Contains a list of all used basic block types and user-defined function blocks in your plans.
Related Topics
10 Instructions (Blocks)
17.2.2 Signals
17.2.4 Testing
17.2.5 Instructions
17.2.3 Variables
17.3.1 Info
The Info tab displays messages with which you can monitor states, sequences and results of actions. The
messages are divided thematically into 3 further tabs.
17.3.2 General
The General tab displays status messages, warnings, and error messages on currently executed actions. You
can manually copy and delete the messages in this tab.
Each message is displayed with additional information that is divided into several columns.
You find more information about the icons under 2.3 Icons in the Info Tab.
Message This column contains the message text. A message text identified with an arrow pools
several subordinate messages. By clicking the arrow, you show or hide the subordi-
nate messages.
Date This column contains the date at the time of the action.
Time This column contains the time-of-day at the time of the action.
Go to Jumps to the location in the software that is relevant for the particular message
? (Help) Shows a question mark if additional help exists for an alarm. Click the question mark
to open the help.
Related Topics
2.4 Copying and Deleting Messages
17.3.1 Info
17.3.3 Compile
If you manually start the compiling of function charts (CFC) of a A8000 device, all function charts are checked
for consistency during the compiling. The Compile tab displays status messages, warnings, and error
messages pertaining to the compilation.
You can manually copy and delete the messages in this tab. A newly started compilation automatically deletes
all existing messages.
All messages belonging to an offline configuration are pooled in one group. The group is identified with the
name of the offline configuration and an arrow. By clicking the arrow, you show or hide the messages. Each
message is displayed with additional information that is divided into several columns.
You find more information about the icons under 2.3 Icons in the Info Tab.
Path This column contains the name of an offline configuration.
Description This column contains the message text.
Errors This column contains the number of errors.
Warnings This column contains the number of warnings.
Time This column contains the time-of-day at the time of the action.
Go to Jumps to the location in the software that is relevant for the particular message
? (Help) Shows a question mark if additional help exists for an alarm. Click the question mark
to open the help.
Related Topics
2.4 Copying and Deleting Messages
17.3.1 Info
17.4 Dialogs
You can use this dialog to add an offline configuration to a new function chart (CFC).
Select function chart This list box is used to select the level. At the moment there is only 1 task level.
(CFC) task
Additional informa- If you click this information, the additional text boxes Comment, Version, Author,
tion and Family will be displayed.
Comment You can optionally enter a comment in this text box. Click Additional information to
show or hide this text box.
Version You can optionally enter a version number in this text box. Click Additional informa-
tion to show or hide this text box.
Author You can optionally enter your name in this text box. Click Additional information to
show or hide this text box.
Family You can optionally enter an identification for the affiliation of the function chart in
this text box, for example Line protection. Click Additional information to show or
hide this text box.
Add and open If you mark this check box, the function chart will be opened in the working area
directly after it is added.
OK This button is used to accept the settings and close the dialog. The new function chart
is added to the offline configuration.
Cancel This button is used to reject the settings and close the dialog.
Related Topics
5.1.1 Meaning of CFC
5.1.3 Function Chart
5.2.1 Adding a CFC
Properties
All This check box is used to select all the project data for the printout.
Compact This check box is used to print the project data in the compact form.
Preview This button is used to accept the selection and close the dialog. The Print preview
opens in the working area.
Cancel This button is used to reject the selection and close the dialog.
17.4.4 Print
This dialog is used to select a printer, a document template, and a cover page and then start the printout.
Related Topics
11.4.1 Starting the Printing
17.5 Toolbars
This toolbar gives you fast access to actions and settings in the Logic Editor.
Element Explanation
This button is used to save the opened project. This button is only active if the data has
changed.
This button is used to print project and device data. If in 1.1.2 Project Tree the project name
or an offline configuration is selected, the 17.4.4 Print dialog opens. Otherwise, the printout
starts directly.
This button is used to cut a marked object (element or value) and copy it to the clipboard. If
you paste the object at another permissible location, it will be deleted at the current posi-
tion. This button only becomes active if at least one suitable object is marked.
This button is used to copy a marked object (element or value) to the clipboard. You can
then paste a copy of the object at another permissible location. The original object is
retained here. This button only becomes active if at least one suitable object is marked.
This button is used to paste the content of the clipboard at another permissible location. This
button only becomes active if the clipboard contains at least one suitable object.
This button is used to delete a marked object (element or value).
This button is used to undo the most recent change and revert back to the previous value.
This button is active only if you modify any values in the editors of the 1.1.1 User Interface.
This button is used to reverse the change made by the Undo operation. This button is active
only if you perform the Undo operation in the editors of the 1.1.1 User Interface.
This button is used to start the compilation process for function charts (CFC). This button
only becomes active if one of the following requirements is met:
This button starts/stops the CFC online analysis (Monitoring). Refer to Online Analysis of
Function Charts (CFC) - Monitoring, Page 199.
This button starts/stops the CFC offline analysis (Simulation). Refer to Offline Analysis of
Function Charts (CFC) - Simulation, Page 200.
This button is used to divide the working area horizontally. This allows you to arrange
2 editors or editing tools below one another. This button only becomes active if exactly 2
editing tools are opened.
This button is used to divide the working area vertically. This allows you to arrange 2 editors
or editing tools next to one another. This button only becomes active if exactly 2 editing
tools are opened.
Related Topics
1.1.1 User Interface
This toolbar gives you fast access to actions and settings in the Data flow of a function chart (CFC).
Element Explanation
Toggles between the different views of the sheet bar.
You can select the following views:
• No sheet bars
• Static sheet bars
• Dynamic sheet bars
Changes between single and double numbers of rows in the sheet bar.
Shows or hides the sheet borders (not working if sheet bars are shown).
Toggles between displaying the name of the block instance or the name of the block type.
Changes to the 17.1.3 Control Flow. The data of a block marked in the Data flow is empha-
sized by a colored area in the Control flow.
Incrementally zooms in the display of the function chart. This button is not active if you can
no longer zoom in the display.
Incrementally zooms out the display of the function chart. This button is not active if you can
no longer zoom out the display.
Scales the display in percent. Therefore, open the list box and select a specified percentage
value. Alternatively, enter an integral percentage value from 10 to 200 in the entry field of
the list box. If you click outside the list box with the mouse or press the <Enter> key, the
display is updated.
Starts or stops the online analysis (monitoring) for the function charts (CFC).
Starts or stops the offline analysis (simulation) for the function charts (CFC).
Sorts the objects according to the data flow. Siemens recommends saving the project before
sorting.
Lets you select the task level. At the moment, there is only 1 task level.
Related Topics
17.1.2 Data Flow
14.1 Analyzing Function Charts (CFC)
This toolbar gives you fast access to actions and settings in the Control flow.
This list box is used to select the task level. At the moment there is only 1 task level.
This button is used to start the automatic optimization of the function chart.
Related Topics
17.1.3 Control Flow
A C
Absolute value 132 Catalog 239
ACG 50 Center 64
Add 44, 60, 63, 132, 245 CFC 38, 39, 39, 40, 41, 44, 118, 119, 119, 188, 189,
Adjusting Sheet Bars 57 190, 191, 191, 192, 193, 194, 196, 196, 231, 231, 232,
Advanced 245, 248, 249
Code generation 190 Check 79
Algorithm 39 Close 30
Align 64 Column 20
Angle 158, 159, 160 Column content 23, 23
ANY_BIT 119 Column width 20
ANY_ELEMENTARY 119 Common 156
ANY_INT 119 Compare 135, 137, 137, 138, 139, 140
ANY_MAGNITUDE 119 Compile 27, 79, 244, 245
ANY_NUM 119 Configuration strategy 40
ANY_REAL 119 Configure 41
ANY_TO_B 161 Configuring A8000 devices
ANY_TO_D 161 SICAM CP-8000, CP-8021, CP-8022 203
ANY_TO_DW 162 SICAM CP-8031 204
ANY_TO_R 161 SICAM CP-8050 204
ANY_TO_T 162 Connection password 246
ANY_TYPE 119 Connector 72
Arccosine 159 Consistency 79, 79
Arcsine 158 Continuous Function Chart 41, 44, 45, 46, 47, 49, 54,
Arctangent 160 60, 62, 63, 64, 65, 66, 72, 73, 77, 78, 79
creating automatically 50
Control flow 232, 249
Control Flow 48, 57
B CONTROL_PULLUP 166
Copy 46, 62
Background 63 Cosine 159
Base 156, 157, 157 Count 145, 146, 147
Basic instructions 59 Count down 145, 147
Bistable 148, 149 Count up 146, 147
Block 39, 41, 60, 61, 62, 65, 66, 68, 70, 71, 72, 77, 78, COUNTER_INTERROG_REC 171
191, 192, 193, 194, 196, 196 COUNTER_INTERROG_SEND 170
Block input 66, 66, 70, 71, 72, 73 Cover page 177, 181
Block insertion 78 Curves 166
Block instance 39 customization 95
Block interconnection 71, 71 Cycle time 142, 143
Block output 66, 66, 71, 72, 73
Block type 39, 73
Blocks 122
BOOL 118 D
Bumpless reload 80
Data flow 231, 248
Data Flow 48
Data type 73 G
Data type STRUCT 111
Data types GENERAL_INTERROG_SEND 169
Basic 118 Global DIGSI 5 Library 238
Generic 119 Grid 175
Structured 119, 119 Showing and Hiding 59
DEADZONE_HYS 164
Delays 141, 142
Delete 31, 47, 65, 71
Denominator 133 H
Detailed view 18
digital axis 86 Help 25, 25
Display 65, 72 Hide 54, 72, 77
Display size 54, 181 Hiding 21
Distribute 64
Divide 133
Document 175, 178, 181, 181
Document layout 181 I
Document template 175, 175, 176, 177
DWORD 118 Icon 27
dynamic display 84 IEC60870DT 118
IECCMD_SET_CTRLLOC 172
Inconsistency 27, 79
Info 25, 27, 27, 244, 244, 245
E Information 25, 25, 186
Input value 78
Edge 149, 150 Inputs and Outputs 39
Edges 141, 142 Inspector window 13, 16
Edit 63 Instructions 122
Editor 231 INT 118
Editor window 18 Inter-chart connection (ICC) 75
Error indication 79, 79 Interconnect 66, 68
Exponent 157, 157 Interconnection 65, 70, 193, 196
Exponential function 157, 157 Interface 193
Invert 126
Invisible 193
F
Factor 134 L
Falling 141, 150
Filter 23, 23 Layout 53, 175, 176, 189
Final value 146 LED 144
Flash 144 Libraries 238
Flow model 41 Libraries (user-defined) 120
Forcing 205 LIMIT_LOWER_HYS 141
Format 63 LIMIT_UPPER_HYS 141
Frames 63 Line 54
Full text search 26 Link 123, 123, 124, 125, 125, 126, 127, 127, 128, 128,
Function 38, 44 129
Function block diagram 231, 231, 232 Logarithm 156
Function chart 38, 39, 40, 41, 44, 194, 245, 248, 249 Logic Editor 25, 25, 248
Function Chart 188, 190, 191, 196, 196 Logical 123, 123, 124, 125, 125, 126, 127, 127, 128,
Function-block diagram 46, 188, 189, 191, 192, 193 128, 129, 129, 129, 130, 130
O
Object bar 13, 19
S
Off phase 144
Offline configuration 15 Save 30
On phase 144 Scale 54, 181
Open 30, 45, 180 Scope 178, 246
Opening Scope of printing 178
Subchart 100 Search 26, 27
Optimize 78 Separating 19
Options 178, 179, 181 Sequence number 77
Order 41, 77 Set parameters 73
Output value 78 SET_DIAG_ERROR 169
Overflow 136, 137, 138, 139, 139, 140 SET_DIAG_WARNING 169
Sheet Bars 55
Adjusting 57
Sheet Bars 189
P Show 54, 72, 77
Showing 21
Palette 17 Showing and Hiding the Grid 59
Password 246 Signal 33, 33, 33, 68, 196
PIDT1 Controller 164 Signal catalog 33, 33, 34
Placement 60 Signal element 34
Plausibility 73 Jump to used signal element 35
Position 60, 78 Signals 239
Preview 246 Sine 158
Preview scope 180 Size 63
Print 26, 31, 49, 177, 178, 178, 179, 180, 181, 183, Sort 23
184, 246, 247 SPLIT_DW 131
Print preview 180, 181, 183, 246 SPLIT_IEC60870DT 162