You are on page 1of 20

3.

1 Initialization and Operation modes SICAR@TIA DiagAddOn

Warranty and Liability


The Application Examples are not binding and do not claim to be complete regarding the circuits shown,
equipping and any eventuality. The Application Examples do not represent customer-specific solutions.
They are only intended to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These application examples do not relieve you of the
responsibility to use safe practices in application, installation, operation and maintenance. When using
these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond
the liability clause described. We reserve the right to make changes to these Application Examples at any
time without prior notice. If there are any deviations between the recommendations provided in these
application examples and other Siemens publications – e.g. Catalogs – the contents of the other
documents have priority.

We do not accept any liability for the information contained in this document.

Any claims against us – based on whatever legal reason – resulting from the use of the examples,
information, programs, engineering and performance data etc., described in this Application Example
shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the
German Product Liability Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of
life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or
breach of a condition which goes to the root of the contract (“wesentliche Vertragspflichten”). The
damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable
damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life,
body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any
form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without
the expressed consent of Siemens Industry Sector.

Manual page 1 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

Table of contents

1. Introduction 3

2. HMI 3
2.1 Parameterization start up screen and system screen 3

3. PLC settings HW-Konfig 5

4. Operation mode 6
4.1 Operation mode DiagAddOn 6
4.2 HMI – Operation mode screen 7
4.3 Conditions to start an operation mode 8
4.4 Automatic mode 9
4.5 Inching mode 9
4.6 Manual mode 10
4.7 Quit 10
4.8 Stop / Hold 10
4.9 Initial position 10
4.10 Stop end of cycle 11
4.11 Without Part (Ghost Run) 11

5. Panel and operation mode blocks 12


5.1 FC1983 - Call of panel and op-mode for basic system 13
5.2 FC983 - Call of panel, communication and op-modes for DiagAddOn 14
5.3 FC983 - Communication interface HMI – PLC (FB962) 15
5.4 FC983 - Call of operation modes-block 16
5.4.1 Example with 1 operation mode area, 1 HMI 17
5.5 Programming op-mode memory word (FC995) 18

6. Version handling 19
6.1 PLC 19
6.2 HMI 20
6.3 Version fault Alarm 20

Manual page 2 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

1. Introduction
This chapter describes the Initialization procedure for PLC and HMI as well as the operation modes and
the relationship with the panel blocks.

2. HMI

2.1 Parameterization start up screen and system screen


If you start WINCC Advanced runtime after first download from engineering system a start window
appears to adjust mandatory system setting.

HMI Number: 1…8


Each IPC in your line needs an own number. The PLC can handle up to 8 IPC

Note: The number is stored in the file Panel_no.csv in drive C:\SICAR.


If you delete the csv file with the next start of the Runtime the Mask appears again.

Manual page 3 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

The adjusted value is indicated in the headline of each screen und can be changed in the system screen
if necessary.
Any change has to be confirmed and stored by pressing the button “Save Settings”.

Hint for the use of languages in TIA-Portal in relation with DiagAddOn, please refer document „34_1
Sequence and Messageblock“.

Manual page 4 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

3. PLC settings HW-Konfig


Hardware configuration PLC:

Mandatory settings:
Clockbyte = 1
System memory byte = 2

Manual page 5 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4. Operation mode

4.1 Operation mode DiagAddOn


In a PLC working with DiagAddOn up to 8 operation mode areas can be managed.
The operation mode areas can be run in different, independent operating modes (for instance area 1 and
2 in automatic mode and area 3 in manual mode).
Each area is given a number of sequence / message blocks.
The parameters of operation mode area and its sequence block area are parameterized at the FC995.

There is a possibility to create an operation mode independent message block.


This message block should include operation mode independent messages, like Profinet alarms,
messages, etc.

Manual page 6 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4.2 HMI – Operation mode screen


Administration and selection of operation modes are handled by the SICAR@TIA Software, see the
respective documentation in TIA-project, SICAR_WinCC-RT.pdf

Manual page 7 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4.3 Conditions to start an operation mode


The following conditions need to be fullfilled to start an operating mode.
If this conditions are not fullfilled and an operating mode is started, the start is immediately reset:

 Emergency stop M x.0 = 1: for all operating modes in zone x


 Safety door M x.1 = 1: for automatic-and inching mode in zone x
 Basic start conditions M x.4 = 1: for all operating modes in zone x

For that purpose the bits 0, 1 and 4 in the operating mode-memory word need to be supplied.
For the operating mode 1 to 8 the memory word MW 10 to MW 24 are reserved.
The No. of the operating mode- memory word is to be parameterized on the operating modes FC995.

Example operating mode memory word MW10:

M10.0 Emergency stop M11.0 Manual mode active


M10.1 Safety doors M11.1 Auto / inching mode active
M10.2 Reserved M11.2 Reserved
M10.3 Reserved M11.3 Reserved
M10.4 Basic start conditions M11.4 Ghost Run active
M10.5 Position “Initial position” M11.5 Move to initial position started
M10.6 Position “Stop at end of cycle” M11.6 Stop at end of cycle started
M10.7 Reserved M11.7 Pre-Select automatic mode

Manual page 8 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4.4 Automatic mode


After starting Automatic mode all sequences assigned to the respective operation mode area are proceeded
automatically.

Transition condition Auto “TRANS_A” = 1 -> Switch to next step

4.5 Inching mode


In inching mode the line process can be operated, supervised step by step. It is possible to operate step by
step, a single sequence, all sequences of a op-mode area or all sequences of an entire installation.

Inching mode at the HMI:

Inching one sequence:

The inching of one sequence can be activated with the function key in the Seq_diag screen
(see chapter “34_Sequence control and process diagnostics.doc”). The sequence selected with the cursor in
the screen will be executed.

Inching all sequences:

The inching of all sequences can be activated with the function key The sequences according
to the selected op-mode area will be executed. (entire installation, op-mode area 1, op.mode area 2 ...).

Manual page 9 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4.6 Manual mode


In manual mode, movements can be operated, using the movement keys in co-ordination with the movement
screens of the HMI.

4.7 Quit
The signal „Quit“ is available in block OPMODE_FC at INOUT-Parameter OPMODE_STRUCT.

#OPMODE_STRUCT.User_Interface_OUT.Reset

4.8 Stop / Hold


Special function screen contains a button Stop.
An active sequence can be stopped as follows by overwriting data byte DBB 24 (by symbolic assignment) in
the sequence-DB (DB1001-DB1128, see Chapter “35_Sequence control.doc”):

DBB 24 = 0: The sequence is immediately stopped


DBB 24 = 1..128: The sequence stops in step 1.to.128.
DBB 24 = 255: The sequence is stopped after the next step is enabled.
(Default value without programming = 255

The stop is effective for all sequences in the selected op-mode area.
When the button Stop is pressed again the function is deselected.

In DB1000 the signals „Selection_Immediate_Stop“ and „Immediate_Stop_reached“ available for further use.
E.g. with this both signals you deselect OP-Mode Automatic by use of the “basic start conditions.

4.9 Initial position


The request “initial position” can be activated in the special function screen.

After reaching initial position the user e.g can switch off the op-mode by using the basic start condition.

Manual page 10 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

4.10 Stop end of cycle


The function “stop at end of cycle“ is only effective in automatic mode.
Pressing the button “stop end of cycle“ the request will be set (bit req_end of cycle in operating mode
memory word = 1).
The operation mode automatic must switched off by using the basic start conditions when the position “stop
at end of cycle“ is reached (bit stop at end of cycle in the operating mode memory word), and the request
“stop at end of cycle“ is activated .
The next change of operating mode or op-mode start deactivates this function.

4.11 Without Part (Ghost Run)


By pressing the button “Without part” (Ghost Run) the bit x+1.4 is set in the selected op-mode area.
Works only in preselected Auto mode or Inching mode.
When the button is pressed again the function is deselected.

Manual page 11 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5. Panel and operation mode blocks


Parameterization of Panel and operation mode areas are made in FC1983 and FC983.

FC1983 - Basic system functionality incl. operation mode screen in WinCC


FC983 – Functionality for DiagAddOn

Manual page 12 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.1 FC1983 - Call of panel and op-mode for basic system


For each panel you have to call an HMI_PANEL_FC

For each operation mode you have to call an OPMODE_FC

Concerning Parameter, mark the respective blocks, press Shift + F1 and refer the user manual.

Manual page 13 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.2 FC983 - Call of panel, communication and op-modes for DiagAddOn


For each Panel (e.g. IPC) you have to call the FC997.

The panel number must be contiguous, without gaps.


The panel number has to be identical with the adjusted number in the WINCC system screen as well as
DiagAddOn parametrization screen.

Parameter FC997:
HMI_no : 1.. 8

Manual page 14 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.3 FC983 - Communication interface HMI – PLC (FB962)


For each HMI with DiagAddOn you have to call the FB962 for TCP Native communication between PLC and
HMI.

The HMI_No has to match the parameter “Panel_number” at FC997.

HMI_No: 1.. 8

T_CONNECT_PARA: TCON_PARA_HMI_1..8_DB (DB961, DB962, ….)


For each HMI you need an own TCON_PARA_HMI_1..8_DB which includes e.g. the IP-Adress of the HMI

The setup of the IP-Adress of the HMI has to be done in NW2

All other values are fixed and it´s not allowed to change.

Manual page 15 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.4 FC983 - Call of operation modes-block


For each operation mode area FC995 has to be called.

The parameter “Seq/MB_from” and “Seq/MB_to” parameters allocate a block range to an op-mode area.

Parameter FC995

OP-Mode_No : permitted. 1.. 8


(op-mode area)

OP-Mode_MW : permitted 0..65534; address range, depends on PLC


(No. op-mode memoryword)

Seq/MB_from : permitted 1..128 ; first sequence / message block


(MB / Sequence from)

Seq/MB_to : permitted 1..128 ; last sequence / message block


(MB / Sequence to)

Manual page 16 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.4.1 Example with 1 operation mode area, 1 HMI

Manual page 17 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

5.5 Programming op-mode memory word (FC995)


The op-mode MW for a op-mode area has to be programmed in the first message block of the respective op-
mode area, e.g. FB1002

Manual page 18 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

6. Version handling
SICAR@TIA DiagAddOn V14.3.0.0 is composed as follows:
aa.bb.cc.dd

aa = Applicable with TIA-Portal Version aa


bb = For structure changes
cc = For functional extensions or changes
dd = Bugfixes

Version number is shown in WINCC Version screen as „DB Version Set“

Version DiagAddOn e.g. V14.2.2


aa = Applicable with TIA-Portal Version aa
bb = For structure changes
cc = For functional extensions / changes / Bugfixes

Version DiagGen e.g. V14.2.0.2


aa = Applicable with TIA-Portal Version aa
bb = For structure changes
cc = For functional extensions or changes
dd = Bugfixes

6.1 PLC
All DiagAddOn PLC Systemblocks have an own version number xx.yy and shown on HMI.

Function FC „Version Control“ carry out a Set / Value comparison of each DiagAddOn system block.

Manual page 19 / 20 Edition: 2019-02


3.1 Initialization and Operation modes SICAR@TIA DiagAddOn

6.2 HMI
In WinCC you find a version screen, accessible in main screen over „DiagAddOn functions“

Here you find all used DiagAddOn Systemblocks including their Set / Value versions.

6.3 Version fault Alarm


If the block versions does not match, in DB941 you find an alarm bit for further use.
It´s already programmed as a message in General message FB FB1001.

Manual page 20 / 20 Edition: 2019-02

You might also like