AC402S Programing Manual
AC402S Programing Manual
>
Programming Manual
AC402S
AC422S
AC432S
Firmware: 4.3.9
CODESYS Development System: 3.5.9.7 HF 3
English
12 / 2020
7391150 / 04
SmartPLC SafeLine AC4S with fieldbus interfaces
Contents
1 Preliminary note 5
1.1 Legal and copyright information ...........................................................................................5
1.2 Purpose of the document .....................................................................................................5
1.3 Explanation of Symbols .......................................................................................................6
1.4 Overview: User documentation for AC4S ............................................................................7
1.5 Overview: CODESYS documentation of 3S ........................................................................8
1.6 Modification history ..............................................................................................................8
2 Safety instructions 9
2.1 General safety instructions ..................................................................................................9
2.2 Required background knowledge ........................................................................................9
3 System requirements 10
3.1 Hardware ............................................................................................................................10
3.2 Software .............................................................................................................................10
3.3 Licensing ............................................................................................................................10
4 Installation 11
4.1 CODESYS Development System ......................................................................................11
4.1.1 Install CODESYS Development System..................................................................................... 11
4.2 ifm CODESYS package .....................................................................................................12
4.2.1 Components of the ifm package ................................................................................................. 12
4.2.2 Install the ifm package ................................................................................................................ 13
4.2.3 Uninstall ifm package ................................................................................................................. 13
5 Getting started 14
5.1 Start CODESYS .................................................................................................................14
5.2 Create CODESYS project ..................................................................................................15
5.2.1 Create new project with AC4S.................................................................................................... 16
5.2.2 Overview: Project structure with AC4S ....................................................................................... 17
5.3 Use CODESYS online help ................................................................................................19
5.4 Create user account ...........................................................................................................19
5.5 Configure programming interface ......................................................................................20
5.5.1 Set communication path of Standard PLC.................................................................................. 20
5.5.2 Set communication path of the fail-safe PLC.............................................................................. 21
6 System configuration 22
6.1 Configure Standard PLC ....................................................................................................22
6.2 Configure fail-safe PLC ......................................................................................................23
6.3 Configure safe AS-i slaves .................................................................................................24
6.3.1 Remarks ..................................................................................................................................... 24
6.3.2 Add safe AS-i slaves to the project ............................................................................................. 26
6.3.3 Remove safe AS-i slave from project ......................................................................................... 31
6.4 Configure safe devices at local I/O interface .....................................................................32
6.4.1 Remarks ..................................................................................................................................... 32
6.4.2 Add safe local device to project .................................................................................................. 34
6.4.3 Create test signal at local output ................................................................................................ 39
6.4.4 Remove safe local device from project ....................................................................................... 39
2
SmartPLC SafeLine AC4S with fieldbus interfaces
7 Programming 47
7.1 Objects of a Standard PLC application ..............................................................................47
7.2 Create Standard PLC application ......................................................................................48
7.2.1 Use remanent variables.............................................................................................................. 49
7.2.2 Supported programming languages ........................................................................................... 49
7.2.3 Change system time of the device ............................................................................................. 49
7.3 Access standard input and output data .............................................................................50
7.3.1 Options to access input and output data .................................................................................... 50
7.3.2 Validity of the interface data ....................................................................................................... 51
7.3.3 Process data of the AS-i slaves.................................................................................................. 52
7.3.4 Fieldbus data .............................................................................................................................. 54
7.3.5 Process data of the non-safe local devices ................................................................................ 56
7.4 Use functions of the ifm package .......................................................................................57
7.4.1 Control interface of the ifm function blocks ................................................................................. 57
7.4.2 Configure system ....................................................................................................................... 58
7.4.3 Configure AS-i master ................................................................................................................ 59
7.4.4 Configure AS-i slaves ................................................................................................................. 59
7.4.5 Manage AS-i network ................................................................................................................. 60
7.4.6 Send commands to the system and the AS-i master .................................................................. 62
7.5 Use visualisations ..............................................................................................................63
7.5.1 Supported visualisation types ..................................................................................................... 63
7.5.2 Add visualisation to a project ...................................................................................................... 64
7.5.3 Create a visualisation ................................................................................................................. 65
7.5.4 Configure visualisation ............................................................................................................... 66
7.6 Cross communication ........................................................................................................67
7.6.1 Use network variables ................................................................................................................ 68
7.7 Configure task processing .................................................................................................69
7.7.1 Configure main task ................................................................................................................... 69
7.7.2 Set parameters for visualisation task .......................................................................................... 69
3
SmartPLC SafeLine AC4S with fieldbus interfaces
8.5 Data exchange between standard PLC and fail-safe PLC ................................................82
8.5.1 Remarks about the use of exchange variables ........................................................................... 82
8.5.2 Use the factory-set replacement variables ................................................................................. 83
8.5.3 Create additional objects for data exchange .............................................................................. 85
8.5.4 Set interval of the data exchange ............................................................................................... 85
8.6 Safe cross communication .................................................................................................86
8.6.1 Note on the size of the exchange objects ................................................................................... 87
8.6.2 Set up fail-safe network variables............................................................................................... 88
8.6.3 Use fail-safe network variables in the application ....................................................................... 89
8.7 Safe fieldbus communication .............................................................................................90
8.7.1 Configure FSoE connection........................................................................................................ 91
8.7.2 Notes on the FSoEMaster .......................................................................................................... 92
8.8 Set process safety time ......................................................................................................93
8.8.1 Process safety time for the AC4S ............................................................................................... 93
8.8.2 Set variable components of the response time........................................................................... 99
8.9 Configure safety task .......................................................................................................100
8.9.1 Set cycle time of the fail-safe PLC............................................................................................ 100
9 Operation 101
9.1 Transfer CODESYS project to device ..............................................................................101
9.1.1 Download Standard application to AC4S ................................................................................. 102
9.1.2 Load safe application to AC4S ................................................................................................. 103
9.1.3 Note: Projects with network variables ....................................................................................... 104
9.1.4 Teach code sequences of the safe AS-i slaves ........................................................................ 104
9.1.5 Delete boot application via SD card ......................................................................................... 105
9.2 Operating states AC4S ....................................................................................................106
9.2.1 Standard PLC ........................................................................................................................... 106
9.2.2 Fail-safe PLC............................................................................................................................ 108
9.3 Reset ................................................................................................................................112
9.3.1 Standard PLC ........................................................................................................................... 112
9.3.2 Fail-safe PLC............................................................................................................................ 114
9.4 Display web visualisation .................................................................................................115
10 Appendix 116
10.1 Library ACnnnn_Utils.library ............................................................................................117
10.1.1 Overview: AS-i functions (FB_ASi) ........................................................................................... 118
10.1.2 Overview: System functions (FB_System) ............................................................................... 163
10.1.3 Enumeration types and complex variables ............................................................................... 170
10.2 Library ACnnnn_SYS_CMD.library ..................................................................................179
10.2.1 ACnnnn_SysCmd ..................................................................................................................... 179
10.3 Library SF_IO.library ........................................................................................................187
10.3.1 CtrlASi_InSlave ........................................................................................................................ 188
10.3.2 CtrlASi_OutSlave ..................................................................................................................... 190
10.3.3 CtrlASi_ResetAllSlaves ............................................................................................................ 193
10.3.4 CtrlLocalInputs ......................................................................................................................... 194
10.3.5 Ctrl_SetDiagInfo ....................................................................................................................... 196
10.3.6 GetLocalInput ........................................................................................................................... 198
10.3.7 SetLocalOutput......................................................................................................................... 199
10.4 Library SF_LogicalInterfaces.library ................................................................................200
10.4.1 Remarks about logical devices ................................................................................................. 201
10.4.2 Logical devices for safe AS-i slaves ......................................................................................... 205
10.4.3 Logical devices for the local I/O interface ................................................................................. 235
10.5 Error codes: Safe AS-i slaves ..........................................................................................267
10.6 Error codes: Local I/O interface .......................................................................................269
11 Index 270
4
SmartPLC SafeLine AC4S with fieldbus interfaces
1 Preliminary note
Content
Legal and copyright information ...............................................................................................................5
Purpose of the document .........................................................................................................................5
Explanation of Symbols ............................................................................................................................6
Overview: User documentation for AC4S .................................................................................................7
Overview: CODESYS documentation of 3S .............................................................................................8
Modification history ...................................................................................................................................8
33203
>
© All rights reserved by ifm electronic gmbh. No part of this manual may be reproduced and used
without the consent of ifm electronic gmbh.
All product names, pictures, companies or other brands used on our pages are the property of the
respective rights owners:
• AS-i is the property of the AS-International Association, (→ www.as-interface.net)
• CAN is the property of the CiA (CAN in Automation e.V.), Germany (→ www.can-cia.org)
• CODESYS™ is the property of the 3S – Smart Software Solutions GmbH, Germany
(→ www.codesys.com)
• DeviceNet™ is the property of the ODVA™ (Open DeviceNet Vendor Association), USA
(→ www.odva.org)
• EtherNet/IP® is the property of the → ODVA™
• EtherCAT® is a registered trade mark and patented technology, licensed by Beckhoff Automation
GmbH, Germany
• IO-Link® is the property of the → PROFIBUS Nutzerorganisation e.V., Germany
(→ www.io-link.com)
• ISOBUS is the property of the AEF – Agricultural Industry Electronics Foundation e.V.,
Deutschland (→ www.aef-online.org)
• Microsoft® is the property of the Microsoft Corporation, USA (→ www.microsoft.com)
• Modbus® is the property of the Schneider Electric SE, France (→ www.schneider-electric.com)
• PROFINET® is the property of the → PROFIBUS Nutzerorganisation e.V., Germany
• Windows® is the property of the → Microsoft Corporation, USA
>
This document applies to the following devices of the "SmartSPS SafeLine AC4S" product family:
• SmartPLC SafeLine AC4S with Profinet device interface (AC402S)
• SmartPLC SafeLine AC4S with EtherNet/IP device interface (AC422S)
• SmartPLC SafeLine AC4S with EtherCAT slave interface (AC432S)
5
SmartPLC SafeLine AC4S with fieldbus interfaces
WARNING!
Death or serious irreversible injuries may result.
CAUTION!
Slight reversible injuries may result.
NOTICE!
Property damage is to be expected or may result.
Important note
Non-compliance can result in malfunction or interference
Information
Supplementary note
6
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ifm electronic provides the following user documentation for the models of the device class "Fail-safe
SmartPLC AC4S":
7
SmartPLC SafeLine AC4S with fieldbus interfaces
>
3S GmbH provides the following user documentation for programming Standard PLC and the fail-safe
PLC of AC4S:
After the installation of the CODESYS 3.5 programming system all documents are stored on the hard
disk of the PC/laptop and can be accessed:
• Online help:
...\Program Files\3S CoDeSys\CoDeSys\Online-Help
• CODESYS installation and first steps:
...\Program Files\3S CoDeSys\CoDeSys\Documentation
• Safety user manual:
...\Program File\3S CoDeSys\CoDeSys\Documentation
>
8
SmartPLC SafeLine AC4S with fieldbus interfaces
2 Safety instructions
Content
General safety instructions .......................................................................................................................9
Required background knowledge .............................................................................................................9
28333
>
Read this document before setting up the product and keep it during the entire service life.
Only use the product for its intended purpose.
If the operating instructions or the technical data are not adhered to, personal injury and/or damage to
property may occur.
Improper or non-intended use may lead to malfunctions of the device, to unwanted effects in the
application or to a loss of the warranty claims.
The manufacturer assumes no liability for any consequences caused by tampering with the device or
incorrect use by the operator.
► Observe these operating instructions.
► Adhere to the warning notes on the product.
>
This document is intended for specialists. Specialists are people who, based on their relevant training
and experience, are capable of identifying risks and avoiding potential hazards that may be caused
during operation or maintenance of the product.
To program AC4S, the people should also be familiar with the software CODESYS 3.5 and the
CODESYS Safety extension.
The people should also have knowledge of the following topics:
• Requirements on safety-relevant programming
• Standards DIN EN ISO 13849 and DIN EN 62061
9
SmartPLC SafeLine AC4S with fieldbus interfaces
3 System requirements
Content
Hardware ................................................................................................................................................10
Software..................................................................................................................................................10
Licensing.................................................................................................................................................10
38972
>
3.1 Hardware
42877
• Device of the SmartSPS SafeLine AC4S product family with firmware V4.3.9
• PC/laptop for CODESYS development system (→ system requirements CODESYS development
system V3.5)
• Ethernet connection between CODESYS-PC/laptop and configuration interface (X3) of the device
>
3.2 Software
43113
To program the device-internal Standard PLC and the fail-safe PLC of AC4S the following software
components are necessary:
The features and functions warranted in this manual can only be obtained by using the
software components in the versions stated here.
On its website ifm electronic provides the required software components.
>
3.3 Licensing
43397
By buying a device of the SmartSPS SafeLine AC4S the buyer has also purchased a licence valid for
using the CODESYS 3.5 programming software.
10
SmartPLC SafeLine AC4S with fieldbus interfaces
4 Installation
Content
CODESYS Development System .........................................................................................................11
ifm CODESYS package..........................................................................................................................12
42637
>
The CODESYS Development System (short: CODESYS) is a platform for the creation of PLC
applications according to the standard IEC 61131-3.
>
11
SmartPLC SafeLine AC4S with fieldbus interfaces
>
>
ifm electronic provides the "CODESYS für ifm SmartPLC SafeLine"package (ifm package for short) for
the programming of the AC4S. The ifm package (file:
ifm_SmartPLC_SafeLine_V1_5_2_11.package) contains the following certified components:
Component Description
Plugins CODESYS plugins
Files Project templates, project examples, CODESYS safety user manual, CODESYS profiles
Online help files Online helps (CODESYS safety, safety network variables)
Online help merge files Online help system
Device description Description of the device modules, interfaces and additional devices
Library CODESYS libraries (SF_IO, SafetyPLCopen, SF_LogicalInterfaces, SafetyStandard,
SafetySystemIO, SafetyNetVar, SafetyFSoEMaster, ACnnn_Utils. ACnnnn_SYS_CMD,
IoStandard, SysSafetyIoBase_ifm, IoDrvEtherCAT, IoDrvEtherNetIP, IoDrvAL1020,
IoDrvAL1030 )
12
SmartPLC SafeLine AC4S with fieldbus interfaces
>
► Note the remarks about the correct start of the programming system CODESYS Safety.
→Start CODESYS (→ S. 14)
>
13
SmartPLC SafeLine AC4S with fieldbus interfaces
5 Getting started
Content
Start CODESYS .....................................................................................................................................14
Create CODESYS project ......................................................................................................................15
Use CODESYS online help ....................................................................................................................19
Create user account ...............................................................................................................................19
Configure programming interface ...........................................................................................................20
39512
>
ifm electronic provides a special profile for CODESYS. The CODESYS profile "ifm electronic
SmartPLC SafeLine V3.5.9.73" creates a preconfigured environment for the configuration and
programming of an AC4S automation system.
To start CODESYS with the profile "ifm electronic SmartPLC SafeLine V3.5.9.73":
Requirements
> Software components were correctly installed (→Install the ifm package (→ S. 13)
1 Create desktop shortcut
► Delete the desktop shortcut of CODESYS created during installation.
► Create desktop shortcut of the following application:
[Start] > [All Programs] > [3S CODESYS] > [CODESYS] > [CODESYS without Profile]
2 Start CODESYS with the ifm profile
► Double click on desktop shortcut [CODESYS without Profile]
> Selection window appears.
► Select [ifm electronic SmartPLC SafeLine V3.5.9.73] from the [Version profile] list.
► Press [Continue] to apply the selection and load the profile.
> The CODESYS programming system starts using the selected profile.
14
SmartPLC SafeLine AC4S with fieldbus interfaces
>
15
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To avoid errors with a manual system configuration it is highly recommended to use the
project template of ifm electronic for the creation of an SmartSPS SafeLine AC4S project in
CODESYS.
Requirements:
> All required software components are correctly installed (→Install the ifm package (→ S. 13)).
> CODESYS was started (→Start CODESYS (→ S. 14)).
1 Create new AC4S project
► Select [File] > [New Project ...].
> The window for the configuration of the project properties appears.
16
SmartPLC SafeLine AC4S with fieldbus interfaces
[ifm_SmartPLC_SafeLine (ifm SmartPLC SafeLine)] provides access to the settings of the Standard PLC of the AC4S
→Configure standard PLC (→ S. 22)
[PLC Logic] contains the Standard PLC applications of AC4S.
→Objects of a standard PLC application (→ S. 47)
[ASi_Master_1] contains the following objects:
[X3] provides access to the configuration options of the configuration interface 2 (X3)
→Extend fieldbus functionality (→ S. 42) and →Change IP settings (→ S. 40)
[X8] provides access to the configuration options of the configuration interface 2 (X8)
→Extend fieldbus functionality (→ S. 42) and →Change IP settings (→ S. 40)
[SmartPLC_Safety_Extension] provides access to the following objects:
17
SmartPLC SafeLine AC4S with fieldbus interfaces
18
SmartPLC SafeLine AC4S with fieldbus interfaces
>
This manual only describes the integration, configuration and the programming of the AC4S using the
CODESYS development system.
For the description of user actions and user interface elements the CODESYS terminology will be
used.
Standard functions and methods of CODESYS will not be described. At the beginning of each section
there will be a reference to the corresponding chapters of the CODESYS online help.
To access the online help of the CODESYS development system:
► Start CODESYS.
> The CODESYS user interface appears.
► Press [F1].
> Online help of the CODESYS development system appears.
► Familiarise yourself with the CODESYS development system! In particular with the
following topics:
▪ Names and functions of the user interface elements
▪ Basic menu functions
▪ Programming techniques and methods for data retention
>
Safety-relevant objects and functions of a project must only be carried out by a user who is a member
of the user groups "Safety" or "Safety.ExtendedLevel".
To create a user:
► Select [Project] > [Project settings]
► CODESYS user administration appears.
► Create user and add required user group.
► Create password.
19
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To transfer the created project to AC4S a valid communication path has to be configured between the
programming system CODESYS and AC4S.
Standard PLC and fail-safe PLC of AC4S use a separate hardware. Therefore it is necessary to set
the communication paths for both controllers separately.
>
To configure the connection between CODESYS programming software and Standard PLC of the
AC4S:
1 Preparations
► Connect CODESYS PC/laptop and configuration interface 1 (X3) or 2 (X8) of the device.
► Optional: Adjust IP settings of the Ethernet interfaces.
2 Select communication settings
► In the device tree: Double click on the [ifm_SmartPLC_SafeLine] symbol
► In the editor window: Click on [Communication Settings].
> The editor window shows the communication settings of the PLC.
3 Select gateway
► Select the requested gateway in the [Gateway] list.
> List shows selected gateway.
4 Set communication path
► Click on [Scan Network...]
> Window [Select Device] appears.
► Select the gateway node and click on [Scan network] to start the scan process.
> CODESYS scans network for devices.
> Window shows network path and detected devices.
20
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To configure the connection between CODESYS programming software and the fail-safe PLC of
AC4S:
Requirements:
> Communication path to Standard PLC is correctly set (→Set communication path of Standard-SPS
(→ S. 20)).
1 Select communication settings
► In the project tree: Double click on the [SamrtPLC_Safety_Extension] symbol
> The editor window shows the tab [Communication Settings].
2 Set communication path
► Activate [Scan Network...]
> Window [Select Device] appears.
► Mark node [Gateway-1] and start scan process with [Scan network].
> Device scans network for devices.
> Window shows detected devices and network path.
21
SmartPLC SafeLine AC4S with fieldbus interfaces
6 System configuration
Content
Configure Standard-SPS ........................................................................................................................22
Configure fail-safe PLC ..........................................................................................................................23
Configure safe AS-i slaves .....................................................................................................................24
Configure safe devices at local I/O interface ..........................................................................................32
Configure standard devices at local I/O interface ..................................................................................40
Change IP settings .................................................................................................................................40
Add additional device to the project .......................................................................................................41
Extend fieldbus functionality ...................................................................................................................42
43007
This chapter contains information about the configuration of the device-internal PLC, the inserted safe
AS-i slaves, the safe sensors/actuators at the local I/O interface and the Ethernet configuration
interface.
>
The Standard PLC is configured via the "Generic Device Editor" of the CODESYS programming
system. The programmer can access the device editor of the Standard PLC via the following node in
the device tree:
22
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The fail-safe PLC of AC4S is configured via the "device editor of the safety controller" of the
CODESYS programming system. The programmer can access the device editor of the fail-safe PLC
via the following node in the device tree:
The button [Firmware Update] in the tab [Sicherheitssteuerung] does not have any
functionality in connection with the AC4S.
► Do not activate the button.
An update of the firmware of the AC4S must only be made by an authorised employee of ifm
electronic gmbh.
► Contact your AS-i specialist for more information.
► After a firmware update the user must re-evaluate and compile the boot application and
load it to the device for safety reasons.
23
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The safe inputs and outputs are configured via the "Device editor for logical I/Os" of the
programming system CODESYS Safety. In the following sections only the AC4S-specific
functions are described.
► Familiarise yourself with the following CODESYS functions!
▪ Device editor for logical I/Os
→ Online help > Add-Ons > CODESYS Safety > Editors > Device editor for logical
I/Os
>
6.3.1 Remarks
43071
>
Safe AS-i slaves are inserted in a CODESYS project via logical devices. Depending on the type of the
safe AS-i slave the logical devices fulfil different functions.
>
Mapped to the classical behaviour of a programmable logic controller the logical device assumes the
functions of signal detection and signal processing. The individual functions are:
• detect the code half-sequences generated by the safe AS-i input slave
• pre-process the code half sequences by means of the internal logic
• provide the result of the logical preprocessing as safe variable value
The programmer can configure the logical preprocessing via the parameter interface of the logical
device.
>
Safe AS-i output slaves are indirectly controlled via a virtual AS-i control slave. The AS-i control slave
assumes following functions:
• generate a safe code sequence for unlocking a safe AS-i output slave
AC4S detects the AS-i control slave only after the download of the safety project to AC4S.
Then the respective AS-i master generates a configuration error (unknown slave).
► Carry out projection adaptation to eliminate the error (→ Device manual, Quick setup:
Project AS-i networks)
24
SmartPLC SafeLine AC4S with fieldbus interfaces
>
25
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The user is responsible for the selection of the suitable logical devices. The user must ensure
that the selected logical devices provide the functionality required for the safety application to
be implemented.
► Observe the documentation of the logical devices (→Logical devices for safe AS-i
slaves (→ S. 205))!
A logical device with a defined AS-i address must only be added to a safety project once.
>
Safe AS-i slaves are added to a standard area of device tree into the CODESYS project via the nodes
[SF_ASi_Master_1] and [SF_ASi_Master_2]:
26
SmartPLC SafeLine AC4S with fieldbus interfaces
27
SmartPLC SafeLine AC4S with fieldbus interfaces
Remarks about the configuration of the logical device: →Configure logical device (→ S. 29)
Remarks about removal of the logical device: →Remove safe AS-i slave from project (→ S. 31)
28
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Configuration is made via the node [Logical I/Os] in the safety extension area of the device tree. All
safe AS-i slaves inserted in the project are listed there as sub-nodes.
To configure the logical device of a safe AS-i slave:
► In the safety extension area of the device tree:
Double click on the symbol of the logical device at [Safety Logic] > [SafetyApp] > [Logical I/Os]
> Editor window shows following options:
Tab Description
[Safe configuration] Parameter interface of the logical device
(→Set the parameters of the logical device (→ S. 29))
[I/O mapping] Variable image for access from safety application
(→ Map safe process signal to variable (→ S. 30))
[Information] Information about the safe AS-i slave (→ Online help (CODESYS Safety)
>
The [Safe configuration] tab enables access to the parameter interface of the logical device. Number
and type of available parameters depend on the selected logical device.
All time indications have an inaccuracy of +/- 1 PLC cycle time. The user can freely set the
cycle time of the device-internal fail-safe PLC within the defined limits.
► Note the set PLC cycle time for dimensioning the following parameters.
▪ Stabilising time (StabilisingTime)
▪ Synchronisation time (SynchronisingTime)
▪ Tolerance time (ToleranceTime)
29
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The logical device generates a safe process signal. To be able to use this signal in the safety
application it has to be mapped to a variable.
To map the created process signal of a logical device to a safe variable:
► Select the tab [I/O mapping] in the device editor.
> Editor window shows table with mapping settings.
► Enter the name of the variable in the variable field of bit 0 to which the safe process signal is to be mapped.
> CODESYS uses the entered designation to create a global variable of type SAFEBOOL.
> Safety application can access the safe process signal via the variable.
The created variable is stored in the global variable list (GVL) IoConfigRemote_Globals.
► Always choose an unambiguous name for the variable.
30
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To completely remove a safe AS-i slave from the project the 2 instances of the logical device must be
deleted separately in the project tree.
1 Remove logical device from the standard area
► Mark logical device in standard area of device tree.
► Select [Edit] > [Delete].
> CODESYS removes the logical device from the standard area.
2 Remove logical device from the safety area
► Mark logical device in the safety extension area of the device tree.
► Select [Edit] > [Delete].
> CODESYS removes the logical device from the safety extension area.
31
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The safe inputs and outputs are configured via the "Device editor for logical I/Os" of
CODESYS safety. In the following sections only the AC4S-specific functions are described.
► Familiarise yourself with the following CODESYS functions!
▪ Device editor for logical I/Os
→ Online help > Add-Ons > CODESYS Safety > Editors > Device editor for logical
I/Os
>
6.4.1 Remarks
43071
>
Safe devices at the local I/O interface are inserted in a CODESYS project via logical devices.
Depending on the type of the safe device the logical devices fulfil different functions.
>
Mapped to the classical IPO behaviour of a programmable logic controller the logical device assumes
the functions of signal detection and signal processing. The individual functions are:
• detect the signals generated by the safe devices
• pre-process the signals by means of the internal logic
• provide the result of the logical preprocessing as safe variable value
The programmer can configure the logical preprocessing via the parameter interface of the logical
device.
>
Safe devices at the local outputs can be controlled via logical devices. The logical device fulfils the
following functions:
• create a safe signal
• provide the safe signal at the selected output channels at the local I/O interface
32
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Following logical devices are available for safe devices at the local I/O interface:
33
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Safe devices at the local I/O interface are added to a CODESYS project in 2 steps:
1. Add logical device to the project tree:
→Add logical device to the project tree (→ S. 35)
2. Configure logical device:
→Configure logical device (→ S. 37)
The user is responsible for the selection of the suitable logical devices. The user must ensure
that the selected logical devices provide the functionality required for the safety application to
be implemented.
► Observe the documentation of the logical devices (→Logical devices for the local I/O
interface (→ S. 235))!
A logical device with defined input channels and/or output channels must only be added to a
safety project once.
34
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Safe devices at the local I/O interface are added to the project in standard area of device tree via the
node [local_IO_]:
The user is responsible for selecting the suitable logical devices. The user must ensure that
the selected logical devices provide the functionality required for the safety application to be
implemented.
► Observe the documentation of the logical devices (→Logical devices for the local I/O
interface (→ S. 235))!
A logical device of a type with 2 defined input channels (Input_Channel_A, Input_Channel_B)
must only be added to a safety project once.
Requirement:
> Devices are connected to the local I/O interface according to the required safety classification.
1 Add logical device
► In standard area of device tree: Select node [local_IO_]:
35
SmartPLC SafeLine AC4S with fieldbus interfaces
Remarks about the configuration of the logical devices →Configure safe devices at local I/O
interface (→ S. 32)
Remarks about removal of the logical device: →Remove safe local device from project (→ S. 39)
36
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Configuration is made via the node [Logical I/Os] in the safety extension area of the device tree. All
safe local devices added to the project are listed there as sub-node.
To configure the logical device of a safe sensor at a local input channel:
► In the safety extension area of the device tree:
Double click on the symbol of the logical device at [Safety Logic] > [SafetyApp] > [Logical I/Os]
> Editor window shows following options:
>
The [Safe configuration] tab enables access to the parameter interface of the logical device. Number
and type of available parameters depend on the selected logical device.
All time indications have an inaccuracy of +/- 1 PLC cycle time. The user can freely set the
cycle time of the device-internal fail-safe PLC within the defined limits.
► Note the set PLC cycle time for dimensioning the following parameters.
▪ Stabilising time (StabilisingTime)
▪ Synchronisation time (SynchronisingTime)
▪ Tolerance time (ToleranceTime)
37
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The logical device generates a safe process signal. To be able to use this signal in the safety
application it has to be mapped to a variable.
To map the created process signal of a logical device to a safe variable:
► Select the tab [I/O mapping] in the device editor.
> Editor window shows table with mapping settings.
► Enter the name of the variable in the variable field of bit 0 to which the safe process signal is to be mapped.
> CODESYS uses the entered designation to create a global variable of type SAFEBOOL.
> Safety application can access the safe process signal via the variable.
The created variable is stored in the global variable list (GVL) IoConfigRemote_Globals.
► Always choose an unambiguous name for the variable.
38
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Certain device types require an input signal as test pulse to detect a cross fault of the two input
channels. By means of the logical device SF_OUT_local_testpulse the programmer can create a test
signal at a local output.
To create a test signal at a local output:
► Add logical device "SF_OUT_loal_testpulse" to the project tree
(→ Add logical device to the project tree (→ S. 35)
The parameters of the test pulse are firmly set; there are no additional configuration options
(→ SF_OUT_local_testpulse (→ S. 266)).
>
To completely remove a safe device added to the local I/O interface the 2 instances of the logical
device must be deleted separately from the project tree.
1 Remove logical device from the standard area
► Mark logical device in standard area of device tree.
► Select [Edit] > [Delete].
> CODESYS removes the logical device from the standard area.
2 Remove logical device from the safety area
► Mark logical device in the safety extension area of the device tree.
► Select [Edit] > [Delete].
> CODESYS removes the logical device from the safety extension area.
39
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Standard devices are added without logical device to the CODESYS project. When the device has
been properly connected to the local I/O interface, the programmer can access the process data
directly from the safe application via function blocks.
Access to non-safe inputs and outputs of the local I/O interface is made only via the fail-safe
PLC of AC4S.
• To access the input/output data of the non-safe devices at the local I/O interface:
→Local I/O interface: Access non-safe inputs/outputs (→ S. 78)
• To transfer process data between Standard PLC and fail-safe PLC of AC4S:
→Data exchange between standard PLC and fail-safe PLC (→ S. 82)
>
To change the IP settings of the Ethernet configuration interfaces 1 (X3) and 2 (X8):
1 Select Ethernet interface
► In the device tree: Double click on the requested Ethernet interface (X3 or X8)
> The editor window shows the Ethernet device editor.
2 Change IP settings
► Change IP settings of the Ethernet interface.
> Save the project to apply changes.
40
SmartPLC SafeLine AC4S with fieldbus interfaces
>
41
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Besides the fieldbus functionality defined in the hardware the device can be operated as fieldbus
device by a software extension. In this respect the user has to assign a fieldbus stack to the Ethernet
configuration interfaces 1 (X3) or 2 (X8) in CODESYS and configure it. The device supports the
following fieldbus stacks:
42
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The device can also be operated as EtherCAT master. In this respect ifm electronic provides an
EtherCAT master stack for the CODESYS programming system 3.5. The user has to assign one of the
two Ethernet configuration interfaces (X3 or X8) to the EtherCAT master.
>
CODESYS automatically adds an EtherCAT master call to the task with the shortest cycle
time.
For notes on the configuration of task processing: →Configure task processing (→ S. 69)
43
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The user has to assign the Ethernet configuration interface 1 (X3) or 2 (X8) to the added EtherCAT
master.
1 Requirements
> CODESYS laptop/PC is correctly connected to the device.
> Network path of Standard PLC is set (→Configure programming interface (→ S. 20)).
2 Assign Ethernet interface
► In the device tree: Double-click on [EtherCAT_Master (EtherCAT Master)]
► Click on the [General] tab.
> The editor window shows the configuration options of the EtherCAT master.
► Click on [Browse...]
> Window [Select Network Adapter] appears.
► Select requested Ethernet interface (eth0 = X3 or eth1 = X8).
► Click on [OK] to apply the selected Ethernet interface.
> Field [Source Address (MAC)] shows the MAC address of the selected Ethernet interface.
> Field [Network Name] shows the name of the Ethernet interface.
> EtherCAT master is coupled with selected Ethernet interface.
3 Configure EtherCAT master
► Set the parameters of the EtherCAT master as requested.
> EtherCAT master is configured.
44
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To configure EtherCAT slaves for the operation with the EtherCAT master of the AC4S:
Requirements:
> EtherCAT master is added to the project and configured (→Add EtherCAT master (→ S. 43)).
> Device description file of the EtherCAT slave has been downloaded (→ manufacturer's website).
1 Optional: Add EtherCAT slave to the device repository
► Select [Tools] > [Device Repository...]
> Window [Device Repository] appears.
► Click on [Install...].
> Window [Install Device Description] appears.
► Select the device description of the EtherCAT slaves and click on [Open].
> CODESYS installs the device in the device repository.
2 Add EtherCAT slave
► In standard area of device tree: Right-click on [EtherCAT_Master (EtherCAT Master)]
► In the context menu: Select [Add device...]
> Window [Add Device] appears.
► Select the requested EtherCAT slave in the [Device] area.
► Click on [Add Device] to add the selected device to the project.
► Click on [Close] to close the window.
> CODESYS adds the EtherCAT slave to the project.
3 Configure EtherCAT slave
► In standard area of device tree: Double click on the added EtherCAT slave.
> The editor window shows the configuration options of the device.
► Configure EtherCAT slave as requested.
45
SmartPLC SafeLine AC4S with fieldbus interfaces
>
46
SmartPLC SafeLine AC4S with fieldbus interfaces
7 Programming
Content
Objects of a Standard-SPS application ..................................................................................................47
Create Standard-SPS application ..........................................................................................................48
Access standard input and output data ..................................................................................................50
Use functions of the ifm package ...........................................................................................................57
Use visualisations ...................................................................................................................................63
Cross communication .............................................................................................................................67
Configure task processing ......................................................................................................................69
42518
This chapter provides information about the programming of the Standard PLC of the device.
► Familiarise yourself with the programming according to the standard IEC 61131-3!
>
All objects of a Standard PLC application are listed as subelements of the node [Application] in the
standard area of device tree. In the basic configuration a Standard PLC application contains the
following objects:
[SafetyApp_Mapping] is a helper application for the data exchange between Standard PLC and the fail-safe PLC
→Set interval of the data exchange (→ S. 85)
[Bibliotheksverwalter] provides access to the standard and device-specific function libraries
[DataFromSafe] and [DataToSafe] are global variable lists for the data exchange between the Standard PLC and the
fail-safe PLC.
→Data exchange between standard PLC and fail-safe PLC (→ S. 82)
[PLC_PRG (PRG)] provides access to the program editor of the standard application
→Create standard PLC application (→ S. 48)
[Taskkonfiguration] provides access to the settings of the task processing
→Configure main task (→ S. 69)
>
47
SmartPLC SafeLine AC4S with fieldbus interfaces
48
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The Standard PLC of the device supports the use of remanent variables. Variables declared as VAR
RETAIN are stored in a memory area that is also maintained when the device is switched off.
The declaration of a variable as RETAIN also influences its behaviour when the Standard PLC
application is reset (→Supported reset variants (→ S. 112)).
>
The following table shows which programming languages according to IEC 61131 are supported by
the ifm function libraries:
Library
ACnnnn_Utils.library X X X X X X
ACnnnn_SYS_CMD.library X X X X X X
Legend:
X ... is supported
– ... is not supported
>
WARNING!
The use of the CODESYS function SysTimeRtcSet for setting the time may lead to
malfunction.
> Risk of undesired system behaviour
► To set the system time (date, time) of the device only use the following device-specific
commands:
▪ Function block Set_DateTime (→Set_TimeDate (→ S. 168)
▪ System command 0x1109 with function block ACnnnn_SysCmd
(→ACnnnn_SysCmd (→ S. 179))
49
SmartPLC SafeLine AC4S with fieldbus interfaces
>
>
In a CODESYS project, each input and output has a physical address according to the IEC standard
(e.g. %IW5). CODESYS offers the following options to access this address from a Standard PLC
application and thereby to access the input and outputs data of the device:
• Direct access to IEC address
• Access to IEC address via AT declaration
• Definition of an ALIAS for an IEC address
• Link a program variable to an IEC address (mapping)
The IEC addresses (%I, %Q) of the inputs and outputs change if additional safe AS-i slaves
are inserted in the CODESYS project.
► Always use symbolic programming for access to the inputs and outputs.
50
SmartPLC SafeLine AC4S with fieldbus interfaces
>
In order to facilitate the access to inputs and outputs of AS-i slaves, AC4S projects offer clearly
defined interfaces in the device tree (→Overview: Project structure with AC4S (→ S. 17)).
Depending on the active instance for accessing the outputs of the AS-i slaves (Manual, Gateway,
PLC), the CODESYS data mapper only updates certain address areas of the interfaces. The following
table shows which address areas of the i/o interfaces provide valid data values while in a certain
operating mode:
► When linking variables with inputs and outputs, only use interfaces in the project tree, that
are updated by the CODESYS data mapper!
51
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The project tree offers direct access to the cyclically updated process images of the inputs and outputs
of the AS-i slaves.
Digital input and output data of the slave at AS-i Master 1: →Digital input and output data (→ S. 53)
Analogue input and output data of the slaves at AS-i Master 1: →Analogue input and output data
(→ S. 53)
Digital input and output data of the slave at AS-i Master 2: →Digital input and output data (→ S. 53)
Analogue input and output data of the slaves at AS-i Master 2: →Analogue input and output data
(→ S. 53)
Consider validity of the interface data (→Validity of the interface data (→ S. 51))!
The function library ACnnnn_Utils.library contains the complex variable ASi_NET. The
variable represents all inputs and outputs of a completely developed AS-i network. The
programmer can use this data structure to store the process images of the inputs and outputs
of an AS-i network. (→ASI_NET (STRUCT) (→ S. 175))
52
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To access the digital process data of the slaves at AS-i master 2 in a system with 2 AS-i masters:
► Double click on [ASi_2_binaryIO]
>
To access the analogue process data of the slaves atAS-i Master2 in a system with 2 AS-i masters:
► Double-click on [ASi_2_analogIO]
53
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The device tree offers direct access to the data that is transmitted between fieldbus and device.
Consider validity of the interface data (→Validity of the interface data (→ S. 51))!
>
The input and output data of the fieldbus interface os transmitted in cycles of 120 words each. The
programmer can access this data via IEC addresses.
To access the input and output data of the fieldbus interface:
► Device window: In the project tree, double-click on [FieldBusData_]
> Editor window shows a structured list of the inputs and outputs:
The area contains all data, the higher-level Fieldbus controller cyclically sends to the outputs of the
AS-i slaves via the fieldbus network. The data is structure like an AS-i network. The programmer can
access this data with symbols (recommended) or via IEC addresses.
If the output access of the device is set to "PLC", the programmer can use the data bundled in
this area to process the target values sent by the higher-level fieldbus controller to the
CODESYS Standard PLC.
54
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To access the digital output data of the slaves at AS-i master 2 in a system with 2 AS-i masters:
► Double-click on [ASi_2_binaryIO]
>
To access the analogue output data of the slaves at AS-i master 2 in a system with 2 AS-i masters:
► Double-click on [ASi_2_analogOut]
55
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Access to non-safe inputs and outputs of the local I/O interface is made only via the fail-safe PLC of
AC4S.
• To access the input/output data of the non-safe devices at the local I/O interface:
→Local I/O interface: Access non-safe inputs/outputs (→ S. 78)
• To transfer process data between Standard PLC and fail-safe PLC of AC4S:
→Data exchange between standard PLC and fail-safe PLC (→ S. 82)
The process data of the non-safe inputs and outputs of the local I/O interface are not
automatically updated on node [local_IO_].
56
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The CODESYS package "CODESYS für ifm SmartPLC SafeLine" offers different functions for the
programming of the device-internal CODESYS controller. In the following sections, these functions will
be briefly described. To make orientation easier, the functions are grouped according to corresponding
subjects and provided with a cross-reference to a detailed explanation in the document's appendix.
>
All function blocks (FB) of the libraries ACnnnn_Utils.library and ACnnnn_SYS_CMD.library have
inputs and outputs for control signals. The inputs activate the execution of the function block. The
outputs provide information about the internal condition of the function block. Thanks to the signals,
the programmer can create a control structure for a targeted processing of the FB and react to
possible errors.
Number and designation of the FB control signals provide information about the type of FB execution:
>
These function blocks perform their function exactly once after activation. To execute the function
once again, the FB needs to be reactivated. FBs of this kind feature a control interface with the
following inputs and outputs:
The following figure shows the relation between the connections of the control signals:
57
SmartPLC SafeLine AC4S with fieldbus interfaces
xExecute = TRUE: Rising edge (FALSE TRUE) starts execution of the FB.
xBusy = TRUE: FB execution has been started, but has not yet been completed.
xReady = TRUE: FB execution completed; there are valid values on the data outputs.
xBusy = FALSE: FB is no longer active.
xError = FALSE: FB execution without faults.
xExecute = FALSE: All signal outputs are set to FALSE and all internal states are reset.
→
xReady = TRUE: FB execution is terminated.
xBusy = FALSE: FB is no longer active.
xError = TRUE: Errors occurred during FB execution; wDiagnostic provides error code.
→
xExecute = FALSE: FB execution interrupted prior to completion; All signal outputs are set to FALSE and all
internal states are reset.
>
Function blocks which, when activated, cyclically perform their function until they are deactivated have
the following control inputs and outputs:
>
To configure the system of the device, use the following function blocks:
Name Description Reference
QuickSetupASi_Master Execute quick setup routine on an AS-i master → QuickSetupASi_Master (→ S. 166)
Set_TimeDate Set system time (date, time) of the system → Set_TimeDate (→ S. 168)
Get_FieldbusInfo Read fieldbus type, the status of the field bus connection → Get_FieldbusInfo (→ S. 164)
and the parameters of the fieldbus interface
>
58
SmartPLC SafeLine AC4S with fieldbus interfaces
To configure the AS-i masters of the device, use the following function blocks:
Name Description Reference
Set_Mode Set operating mode of the AS-i master (projecting mode → Set_Mode (→ S. 150)
or protected operation)
Set_ASi_Config Set diagnostic functions of the AS-i master (double → Set_ASi_Config (→ S. 146)
address recognition, earth fault detection)
Set_AdressMode Set automatic addressing of the AS-i master → Set_AddressMode (→ S. 145)
>
To configure the AS-i slaves, that are connected to the device, use the following function blocks:
Name Description Reference
Set_SlaveAddress Change address of an AS-i slave → Set_SlaveAddress (→ S. 155)
Set_SlaveParameter Change I/O configuration and ID codes (IO, ID, ID1, ID2) → Set_SlaveParameter (→ S. 159)
of an AS-i slave
Set_SlaveExtendedID1 Extended ID1 of an AS-i slave → Set_SlaveExtendedID1 (→ S. 157)
59
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To manage the AS-i networks controlled by AC4S, use the following function blocks:
>
There are different complex variables (STRUCT) at the programmer's disposal. They bundle logically
associated data sets. Thereby, they facilitate the organisation of the data storage in the application
and at the same time reduce the error rate when variables are declared.
The following complex variables are available:
Name Description Reference
ASI_NET The complex variable contains the complete process →ASI_NET (STRUCT) (→ S. 175)
image (inputs and outputs) of an AS-i network.
ASI_DATA The complex variable contains the following components: →ASI_DATA (STRUCT) (→ S. 173)
▪ Slave lists (LPS, LDS, LAS, LPF, LCE, LCEMS, →Get_ASi_Data (→ S. 161)
LCEAS, LDAE)
▪ Parameter images (PI, PP)
▪ Configuration data of the AS-i slaves (CDI, PCD)
>
>
To read the network settings cyclically and offer them in the application:
Name Description Reference
Get_ASi_Data Read the following datasets for network management in → Get_ASi_Data (→ S. 161)
batches and cycles:
▪ List of activated slaves (LAS)
▪ List of detected slaves (LDS)
▪ List of projected slaves (LPS)
▪ List of peripheral faults (LPF)
▪ List of configuration errors (LCE)
▪ List of configuration errors, missing slaves (LCEMS)
▪ List of configuration errors - additional slaves
(LCEAS)
▪ List of double address errors (LDAE)
▪ Configuration data image (CDI)
▪ Permanent configuration data (PCD)
▪ Input parameters (PI)
▪ Output parameters (PP)
60
SmartPLC SafeLine AC4S with fieldbus interfaces
Alternatively, this data can be read separately with the following FB:
>
>
>
>
61
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Similar to the acyclic transmission command channels and data sets of the device, the programmer
can send commands to the system or an AS-i master with the FB ACnnnn_SysCmd
(→ ACnnnn_SysCmd (→ S. 179)).
• System command overview: →Table: System commands (→ S. 180)
• Overview AS-i master commands: →Table: AS-i master commands (→ S. 181)
62
SmartPLC SafeLine AC4S with fieldbus interfaces
>
>
63
SmartPLC SafeLine AC4S with fieldbus interfaces
>
[VISU_TASK]: Set the visualisation task properties: →Set parameters for visualisation task (→ S. 69)
[Visualization Manager]: Set properties of the visualisations: →Change properties of the web
visualisation (→ S. 66)
[MyVisu]: Area for the creation of the visualisation objects: →Create a visualisation (→ S. 65)
64
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Create a seperate visualisation object for each target and web visualisation.
65
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To configure the characteristics of the created visualisation select one of the following options:
• Change properties of the web visualisation (→ S. 66)
>
In the field [Name of .htm file] enter the name by which the web visualisation is to be accessible in the web
browser (→Display web visualisation (→ S. 115)).
► Use only lower case when entering the name!
66
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The device supports the CODESYS function "network variables". The user can use it to transmit data
between the Standard PLCs of a project.
Network variables are transmitted according to the broadcast principle. A transmitter can send data to
several receivers.
67
SmartPLC SafeLine AC4S with fieldbus interfaces
>
► Observe the notes on the configuration of the Ethernet configuration interfaces 1 (X3) and
2 (X8). → Change IP settings (→ S. 40)
The network variables must only be transmitted in the subnet of the Ethernet interface via
which the device cross communicates. The programmer must change the broadcast address
of the network variable list accordingly.
Example:
• Ethernet interface: X3
• IP address of the Ethernet interface: 192.168.1.10
• Broadcast address to be set: 192.168.1.255
68
SmartPLC SafeLine AC4S with fieldbus interfaces
The processing of the tasks is controlled by parameters. The user can set the parameters for each
task separately
CODESYS automatically creates the following tasks and visualisations during project creation:
>
The basic settings of the task characteristics cover the requirements of many applications. In the event
of non-optimum device performance the user must determine and set the optimum task characteristics
himself.
To change parameters of a task:
► In standard area of device tree: Double click on [Task configuration] > [MainTask]
> The editor window shows the configuration of the main task.
► Set the parameters as requested.
> Selected value is applied.
>
► Execute the visualisation task (VISU_TASK) with a priority that is as low as possible to
avoid interruption of other tasks that are important for the core functions of the application.
► Execute the VISU_TASK in appropriate cyclic intervals to save the resources of the
device-internal CODESYS Standard PLC of the fieldbus network.
Each visualisation is executed separately from the program code in a separate task. To set the
properties of the visualisation task:
► In the standard area of device tree: Double-click on [Task configuration] > [VISU_TASK]
> Editor window shows parameters of the visualisation task.
► Set the parameters as required.
► Save the project to apply changes.
69
SmartPLC SafeLine AC4S with fieldbus interfaces
This chapter provides information about the programming of the fail-safe PLC of AC4S.
70
SmartPLC SafeLine AC4S with fieldbus interfaces
>
All objects of a safe application are listed as sub-elements of the node [SafetyApp] in the safety area
of the device tree. In the basic configuration the safety-relevant application contains the following
objects:
[SafetyApp] is the container for objects of a safe application and provides access to the editor of the safety application
object
→Pin safe project (→ S. 75)
[Library Manager] provides access to the certified safety libraries
→Use safety functions of CODESYS (→ S. 79)
→Use safety functions of the ifm AS-i package (→ S. 76)
[Logical I/Os] contains following objects:
• Logical exchange devices for the data exchange between Standard PLC and fail-safe PLC
→Data exchange between standard PLC and fail-safe PLC (→ S. 82)
• Logical Devices of the inserted safe AS-i slaves
→Configure safe AS-i slaves (→ S. 24)
• Logical devices of the safe devices at local I/O interface
→Configure safe devices at local I/O interface (→ S. 32)
[SafetyPOU] contains the program code of the safe application
→Create safe application (→ S. 72)
[Safety Task] provides access to the configuration options of the safety task
→Configure safety task (→ S. 100)
71
SmartPLC SafeLine AC4S with fieldbus interfaces
>
72
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The programming code is entered in the POUs (program organization unit). CODESYS Safety
provides 2 POU types for safe programming. They differ in the scope of usable functions.
For using extended POUs the developer must be a member of the user group
"Safety.ExtendedLevel" (→ Create user account (→ S. 19)).
The use of extended POUs requires a more complex verification process due to the higher
complexity of the program code.
► If possible, only use basic POUs to create a safe application.
The "SafetyPOU" created during the creation of the safety project is of type Basic POU
(→ Objects of a safe application (→ S. 71)).
>
To create safe applications the programmer can use the following libraries with certified safety
functions:
>
Following table shows which programming languages according to IEC 61131-3 are supported by
certified safety libraries:
73
SmartPLC SafeLine AC4S with fieldbus interfaces
>
WARNING!
Altogether 5 AS-i slaves min. have to be installed (standard or safety AS-i slaves) in each of
the AC4S-controlled AS-i network.
> Risk of data loss
► If fewer than 5 AS-i slaves are part of the configuration of an AS-i network, provide the
required number of AS-i slaves via virtual AS-i control slaves without function
(→ SF_OUTcontrol_ASi (→ S. 234)).
74
SmartPLC SafeLine AC4S with fieldbus interfaces
>
8.2.5 Variable declaration with data transfer between standard and safety
area
43020
To be able to use the variable value in an application from the other area the variable always has to be
declared as exchange variable. Then the developer can use such a variable directly in the program
code of the standard application or the safe application.
If the developer first of all creates a variable in the declaration part of the POU and then
defines an exchange variable of the same name, CODESYS will generate an error message
during compilation of the application.
Example:
Task:
A non-safe Boolean value from the standard application is to be used in the safe application.
How to proceed:
1. Declare exchange variable of type BOOL in the exchange device [DataFromNonsafe] and update
variable list in [DataToSafe] (→ Use the factory-set replacement variables (→ S. 83)).
2. Assign a value to the variable in the standard application.
3. Use the exchange variable as source for FB or assignment in the safe application.
>
The following memory location is available to the user for programming safe applications on the
fail-safe PLC:
• IEC program code: 384 Kbytes
• IEC data: 128 Kbytes
>
When a safe application has been completed, the project must be pinned. The states of all objects of
the safe application are stored and saved against changes by means of a check sum.
75
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ifm electronic provides the library SF_IO.lib. It contains certified function blocks by means of which
the programmer can create safe applications for the fail-safe PLC of AC4S. The library is automatically
loaded by means of the AC4S template during creation of a safety project. The user can access the
elements of the library via the library manager in the safety extension area of the device tree.
>
To reset the logical device of a safe AS-i input slave from the locked error state and to change into the
initialisation state the following function blocks are available:
The safe AS-i slave that is to be controlled by means of the FB CtrlASi_InSlave must be
inserted in the device tree.
76
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To control the provision of the internal diagnostic information of a logical device the following function
blocks are available:
The safe AS-i slave that is to be controlled by means of the FB must be inserted in the device
tree.
>
8.3.3 Safe AS-i slaves: Transmit help signals HSI_1 and HSI_2 to safe AS-i
output modules
43086
To transmit help signals HSI_1 und HSI_2 to the logical device of a safe AS-i control slave the
following function block is available:
The safe AS-i control slave that is to be controlled by means of the FB must be inserted in the
device tree.
A transmission of the two help signals HSI_1 and HSI_2 once started cannot be interrupted.
Remarks about the status of the signal transmission are provided at the FB output DiagCode.
>
To reset a logical device of a safe sensor at the local I/O interface from the locked error state the
following function block is available:
The safe device that is to be controlled by means of the FB must be inserted in the device
tree.
>
77
SmartPLC SafeLine AC4S with fieldbus interfaces
To control the provision of the internal diagnostic information of the logical device of a safe sensor at
the local I/O interface the following function block is available:
The safe device that is to be controlled by means of the FB must be added to the device tree.
>
To access the non-safe inputs and outputs of the local I/O interface the following function blocks are
available:
The process data of the local inputs detected by means of the FB GetLocalInput is not safe
(data type: BOOL).
► Do not implicitly use non-safe process data for a safe function.
To access non-safe process data of the local inputs and outputs with Standard PLC of AC4S:
► Use global exchange variables. (→Data exchange between standard PLC and fail-safe
PLC (→ S. 82))
>
The function blocks of the PLCopen Safety library SafetyPLCopen.lib provide information about
their internal state at the output DiagCode. To be able to use this diagnostic information in the safe
application the following function block is available:
The FB generates a separate message for each change of state in the online support centre
(OSC). The ring memory of the OSC therefore reaches its capacity limits within a short time.
► Use FB Ctrl_SetDiagInfo only for debugging.
>
78
SmartPLC SafeLine AC4S with fieldbus interfaces
3S provide several libraries in the programming environment CODESYS Safety. They contain certified
function blocks (FB) by means of which the programmer can create safe applications for the fail-safe
PLC of AC4S. The libraries are automatically loaded during the creation of a safety project by means
of AC4S (→ Create new project with AC4S (→ S. 16)). The user can access the elements of the
libraries via the library manager in the safety extension area of the device tree.
Following libraries are available:
• SafetyStandard library (→ S. 79)
• SafetyPLCopen library (→ S. 80)
• SafetyFSoEMaster library (→ S. 81)
>
The library SafetyStandard.lib provides safe versions of standard functions (counters, timers,
triggers, bistable functions). The library contains the following functions:
The developer is responsible for the use of the safety standard function blocks provided in
CODESYS.
► Observe availability of the FBs (→ Supported program organization units (POUs)
(→ S. 73))!
The complete documentation of the SafetyStandard.lib can be accessed via the online
help of CODESYS Safety:
→ Online help > Add-Ons > CODESYS Safety > Libraries > SafetyStandard
79
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The developer is responsible for the use of the safety PLCopen function blocks provided in
CODESYS.
The complete documentation of the SafetyPLCopen.lib can be accessed via the online help
of CODESYS Safety:
→ Online help > Add-Ons > CODESYS Safety > Libraries > SafetyPLCopen
Detailed information about the specifications: → www.plcopen.org > PLCopen Safety
80
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The library SafetyFSoEMaster.lib provides access to functions for the safe communication via
EtherCAT (Fail-Safe over EtherCAT - FSoE). The library contains the following certified function
blocks:
Function block Description
FSoEMaster Monitoring the safe transfer of data between EtherCAT master and EtherCAT slave
(transmission / reception)
The developer is responsible for the use of the SafetyFSoEMaster function blocks provided in
CODESYS.
The complete documentation of the library SafetyFSoEMaster.lib can be accessed via the
online help of CODESYS Safety:
→ Online help > Add-Ons > CODESYS Safety > field buses > FSoE
81
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Standard PLC and fail-safe PLC of AC4S use a separate hardware. Data between the two areas is
therefore exchanged via a special memory area to which both PLCs can access independently from
each other.
The programmer can organise the data exchange between the areas via the CODESYS mechanism of
the logical exchange variables.
>
The variable values between Standard PLC and fail-safe PLC are transferred as non-safe
data.
► Do not implicitly use non-safe variable values for safe functions.
If Standard PLC is in STOP state, the declared exchange variables for the data transfer
towards the safety PLC are written with the replacement value "0".
► Always transfer safe information created in the fail-safe area to the standard area
unchanged.
The signal can then be further processed (e.g. negation) in the standard area
82
SmartPLC SafeLine AC4S with fieldbus interfaces
>
When an AC4S project is created by means of an AC4S template, CODESYS automatically creates
objects for the data exchange between Standard PLC and the fail-safe PLC. For each transfer
direction a coupled pair of global variable list (GVL) and logical exchange device each is generated.
GVL in the standard area: Logical exchange devices in the safety area:
With these exchange objects of data type BYTE it is possible to transfer 8 bundled Boolean values in
each direction.
To exclude access conflicts only one PLC has the write access to the logical exchange device for each
exchange direction.
Following table shows the relations:
>
To transfer data from the standard area of the device to the safety area of the device:
1 Declare exchange variables in the safety area
► In the safety extension area of the device tree:
Double click on [DataFromNonsafe]
> Editor window shows table for declaration of the exchange variables.
► Enter the designations for the exchange variables of data type BOOL in the column [Variable].
2 Map replacement variables with the standard area
► In standard area of device tree:
Double click on [DataToSafe]
> Editor window shows declaration part of the global variable list.
► Click on [Update].
> CODESYS applies the declared exchange variable from [DataFromNonsafe] (step 1).
> Declaration part shows the declared exchange variables.
The logical exchange devices must only be defined in the safety area. A change in the
standard area is not permitted.
If variables are added or changed in the logical exchange device, it is mandatory for the
developer to update the respective variable list (step 2).
83
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To transfer data from the safety area of the device to the standard area of the device:
1 Declare exchange variables in the safety area
► In the safety extension area of the device tree:
Double click on [DataToNonsafe]
> Editor window shows table with currently declared variables.
► Enter the designations for the exchange variables of data type BOOL in the column [Variable].
Do not logically link non-safe with safe data to form a safe output signal
► In the standard area of the device tree:
Double click on [DataFromSafe]
> Editor window shows declaration part of the global variable list.
► Click on [Update].
> CODESYS applies the declared exchange variable from [DataToNonsafe] (step 1).
> Declaration part shows the declared exchange variables.
The logical exchange devices must only be defined in the safety area. A change in the
standard area is not permitted.
If variables are added or changed in the logical exchange device, it is mandatory for the
developer to update the respective variable list (step 2).
84
SmartPLC SafeLine AC4S with fieldbus interfaces
>
If the capacities of the exchange variables created at the factory are not sufficient, the programmer
can create additional exchange variables.
► Note the remarks (→Data exchange between standard PLC and fail-safe PLC (→ S. 82))!
Only the following data types may be used for the data exchange between standard PLC and
safety PLC: BYTE, WORD, LONG
Several safe values of data type BOOL can be transferred as a bundle in a variable of data
type BYTE or WORD.
The transfer of arrays of exchange variables is not supported.
In each cycle of the safety PLC max. 256 bytes of data can be transferred in each direction
(standard PLC >>> safety PLC, safety PLC >>> standard PLC).
► When additional objects are created for the data exchange, observe the max. transferable
data volume.
► Include the following objects in the calculation of the transfer data:
▪ safe cross communication (Safety NetVars): →Set up fail-safe network variables
(→ S. 88)
▪ safe fieldbus communication (FSoE): →Safe fieldbus communication (→ S. 90)
>
The user can set the intervals at which the data can be transferred between fail-safe PLC and
standard PLC.
To set the interval of the variable mapping.
► In standard area of device tree:
Double-click on [PLC Logic] > [Application] > [SafetyApp_Mapping] > [Task configuration] > [MapTask]
> The editor window shows the configuration options for variable mapping.
► Select the value [Cyclic] in the [Type] list.
► Enter the requested interval in the [Interval] field.
► Save the project to apply changes.
85
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The SmartSPS SafeLine AC4S device family supports the Safety NetVars CODESYS function
(fail-safe network variables). Safety NetVars ensure transmission and reception of safe data between
2 fail-safe PLCs in a CODESYS project.
Safety NetVars work according to the transmitter-receiver principle. It is necessary to create a
transmitter-receiver pair for each requested transmission direction. A transmitter can have several
receivers.
86
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The amount of data that can be transmitted with the failsafe network variables is limited. The following
restrictions apply:
• mamimum number of connections sender >>> receiver: 10
• maximum number of bytes per connection sender >>> receiver: 32
• maximum number of bytes in input and output area: 256 each
The required number of bytes for each AC4S is derived from the following equations:
• configured sender lists ([Safety network variable list (sender)])
▪ output area (data from failsafe PLC to standard PLC): number of receivers * (user data*2+3)
bytes
▪ input area (data from standard PLC to failsafe PLC): number of receivers * 7 bytes
• configured receiver lists ([Safety network variable list (receiver)])
▪ output area (data from failsafe PLC to standard PLC): 7 bytes
▪ input area (data from standard PLC to failsafe PLC): (user data*2+3) bytes
The size of the user data results from the number of created failsafe variables. Depending on the data
type used, failsafe variables require the following storage capacities:
Variable type Size
SAFEBOOL SAFEBOOL variables are bundled in DAFEWORD variables; in each SAFEWORD up to 16
SAFEBOOL variables can be transfer
▪ 1...16 variables = 2 bytes
▪ 17...32 variables = 4 bytes
▪ 33...48 variables = 6 bytes
SAFEINT 1 variable = 2 bytes
SAFEWORD 1 variable = 2 bytes
For broadcast / multicast of varaible lists the above mentioned rules also apply.
87
SmartPLC SafeLine AC4S with fieldbus interfaces
>
► Observe the notes on the configuration of the Ethernet configuration interfaces 1 (X3) and
2 (X8). → Change IP settings (→ S. 40)
► Observe the max. data volume that can be transferred for dimensioning the safe network
variables (→ Note on the size of the exchange objects (→ S. 87)).
► Include the following objects in the calculation of the transfer data:
▪ logical exchange objects: →Data exchange between standard PLC and fail-safe
PLC (→ S. 82)
▪ safe fieldbus communication (FSoE): →Safe fieldbus communication (→ S. 90)
88
SmartPLC SafeLine AC4S with fieldbus interfaces
WARNING!
Stopping a fail-safe PLC in the Debug mode does neither lead to an interruption of the safe
cross communication nor to a reset of the currently active signals, i.e. receiving fail-safe
PLCs do not react. This behaviour is intended and is used for testing of the system and for
trouble shooting.Art und Quelle der Gefahr.
> Risk of personal injuries and damage to property
► Make sure that there are never any people in the dangerous zone of the installation in
the Debug mode.Zu ergreifende Maßnahmen.
To use the set Safety NetVars they have to be activated in the safe application of the AC4S devices.
Requirements:
> Network variable lists were created in transmitter and receiver and correctly configured (→ Set up fail-safe
network variables (→ S. 88)).
1 Activate network variable list of the transmitter
► Open safe application of the AC4S (transmitter)
► Add NetVarSender function block
► Select the designation of the network variable list (transmitter) as instance name.
► Configure function block (→ CODESYS help)
2 Activate network variable list of the receiver
► Open safe application of the AC4S (receiver).
► Add NetVarReceiver function block.
► Select the designation of the network variable list (receiver) as instance name.
► Configure function block (→ CODESYS help)
3 Optional: Activate more network variable lists
► Repeat steps 1 and 2 to activate additional network variable lists.
89
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The device supports the following protocols for safe communication via fieldbuses:
• Fail Safe over EtherCAT (FSoE)
90
SmartPLC SafeLine AC4S with fieldbus interfaces
>
► Use an instance of the function block FSoEMaster for each fail-safe FSoE input/output
module!
► Observe the notes on the function block FSoEMaster! (→ Notes on the FSoEMaster
(→ S. 92)
The FSoE addresses and the connection IDs in an FSoE network have to be unambiguous.
CODESYS does not see if an FSoE address or a connection ID is allotted several times.
To access the safe input/output data of the EtherCAT slave via an FSoE connection:
Requirements
> AC4S is connected to the EtherCAT slave via Ethernet network.
> AC4S is configured as EtherCAT master (→ Add EtherCAT master (→ S. 43)).
1 Add safe EtherCAT slave
► Add safe EtherCAT slave (→ Add and configure EtherCAT slave (→ S. 45)
> Safe module of the EtherCAT slave appears in the safe area of the device tree under [Logical I/Os].
2 Configure safe EtherCAT slave
► In the safe area of the device tree under [Logical I/Os]: Double click on safe module of the EtherCAT slave
► Select tab [Safe configuration].
> Device editor shows configuration of the safe module of the EtherCAT slave.
► Set the following parameters as required:
Parameter Description Possible values
[FSoE address] FSoE address of the safe EtherCAT slave 1...255 (depending on the FSoE slave)
[Connection ID] Number of the connection to the safe EtherCAT slave 1...65535
[Watchdog Time] Watchdog time
91
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The documentation of the function block FSoEMaster in the CODESYS online help is not correct.
► Observe the following when you use the function block FSoEMaster:
▪ The parameter S_ActivateIN always has to be set to TRUE regardless of whether it is an
EtherCAT input or output module.
▪ The diagnostic code 0x80nn indicates the current state of the FSoEMaster. The bits nn can
have the following values:
Value State Description
0x64 Reset The connections are reset (outputs in the safe state)
0x65 Session The session ID is transferred (outputs are in the safe state)
0x66 Connection The connection ID is transferred (outputs are in the safe state)
0x67 Parameter The parameters are transferred (outputs are in the safe state)
0x68 Data Process data or replacement values are being transmitted.
The output S_ReadyIN indicastes the data that are transferred:
FALSE Transfer of a replacement value owing to an error recognised in the IO module.
TRUE Process data transmission
92
SmartPLC SafeLine AC4S with fieldbus interfaces
>
For calculating the process safety time of the entire system the following scenarios have to be
distinguished:
• Without safe cross communication
93
SmartPLC SafeLine AC4S with fieldbus interfaces
The following table shows the meaning of the individual components of the AC4S:
Component Description Possible values
T(sensor) Response time of the safety sensor → Operating instructions / data sheet
T(input) Response time of the safety input device → Operating instructions / data sheet
▪ with local input: 0 ms
T(comin) Response time of the input communication AS-i 30ms
channel (as from terminal)
Local IO 16ms
FSoE 32ms + 4*T(MapTask) +
4*T(MainTask)
Safety NetVars 32ms + 4*T(MapTask) +
4*T(MainTask)
T(splc) Processing time of the fail-safe PLC 2*T(SafetyTask)
T(comout) Response time of the output communication AS-i 15 ms
channel (up to terminal)
Local IO 8 ms
FSoE 32ms + 4*T(MapTask) +
4*T(MainTask)
Safety NetVars 32ms + 4*T(MapTask) +
4*T(MainTask)
T(output) Response time of the output variable unit → Operating instructions / data sheet
▪ with local output: 0 ms
The process safety time is extended by 1 PLC cycle if the safe AS-i input slave or the safe
local input channels are configured in CODESYS by means of the following logical devices:
• SF_IN_ASi_dependent_filter_nshutdown (→ S. 230)
• SF_IN_local_dependent_filter_nshutdown (→ S. 260)
94
SmartPLC SafeLine AC4S with fieldbus interfaces
>
AS-i input 30 ms + 30 ms + 30 ms +
2*T(SafetyTask) + 2*T(SafetyTask) + 2*T(SafetyTask) +
15 ms 8 ms 4*T(MainTask) +
4*T(MapTask) + 32 ms
Local input 16 ms + 16 ms + 16 ms +
2*T(SafetyTask) + 2*T(SafetyTask) + 2*T(SafetyTask) +
15 ms 8 ms 4*T(MainTask) +
4*T(MapTask) + 32 ms
FSoE Slave 32 ms + 32 ms + 32 ms +
Eingang 4*T(MainTask) + 4*T(MainTask) + 4*T(MainTask) +
4*T(MapTask) + 4*T(MapTask) + 4*T(MapTask) +
2*T(SafetyTask) + 2*T(SafetyTask) + 2*T(SafetyTask) +
15 ms 8 ms 4*T(MainTask) +
4*T(MapTask) + 32 ms
AS-i input 30 ms + 30 ms + 30 ms +
2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) +
4*T(MapTask_Dev1) + 4*T(MapTask_Dev1) + 4*T(MapTask_Dev1) +
4*T(MainTask_Dev1) + 32 ms + 4*T(MainTask_Dev1) + 32 ms + 4*T(MainTask_Dev1) + 32 ms +
4*T(MapTask_Dev2) + 4*T(MapTask_Dev2) + 4*T(MapTask_Dev2) +
4*T(MainTask_Dev2) + 32 ms + 4*T(MainTask_Dev2) + 32 ms + 4*T(MainTask_Dev2) + 32 ms +
2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) +
15 ms 8 ms 4*T(MapTask_Dev2) +
4*T(MainTask_Dev2) + 32 ms
Lokaler 16 ms + 16 ms 16 ms
Eingang 2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) +
4*T(MapTask_Dev1) + 4*T(MapTask_Dev1) + 4*T(MapTask_Dev1) +
4*T(MainTask_Dev1) + 32 ms + 4*T(MainTask_Dev1) + 32 ms + 4*T(MainTask_Dev1) + 32 ms +
4*T(MapTask_Dev2) + 4*T(MapTask_Dev2) + 4*T(MapTask_Dev2) +
4*T(MainTask_Dev2) + 32 ms + 4*T(MainTask_Dev2) + 32 ms + 4*(MainTask_Dev2) + 32 ms +
2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) +
15 ms 8 ms 4*T(MapTask_Dev2) +
4*T(MainTask_Dev2) + 32 ms
The formula in the table determine only the typical response time of the device. For the
calculation of the typical process response time the delay times of the safety AS-i
sensors/actuators and the respective input/output devices have to be added additionally
(T(sensor) + T(input) and T(output) + T(aktuator)).
95
SmartPLC SafeLine AC4S with fieldbus interfaces
>
► Measure the maximum response time in all sections of the signal propagation path with safe
fieldbus communication or safe cross communication.
▪ safe fieldbus communication (FSoE): output tMaxRespTimeMS of the function block
FSoEMaster
▪ safe cross communication (Safety NetVars): output tMaxRespTime MS of the function block
NetVarReceiver
► Calculate the response time of the safety function with the measured values:
▪ without safe cross communication:
AS-i output Local output FSoE slave output
AS-i input - - 30 ms +
2*T(SafetyTask) +
tMaxRespTimeMS(FSoE_out)
Local input - - 16 ms +
2*T(SafetyTask) +
tMaxRespTimeMS(FSoE_out)
AS-i input 30 ms + 30 ms + 30 ms +
2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) +
tMaxRespTimeMS(SafeNetVars) + tMaxRespTimeMS(SafeNetVars) + tMaxRespTimeMS(SafeNetVars) +
2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) +
15 ms 8 ms tMaxRespTimeMS(FSoE_out)
Local input 16 ms + 16 ms + 16 ms +
2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) + 2*T(SafetyTask_Dev1) +
tMaxRespTimeMS(SafeNetVars) + tMaxRespTimeMS(SafeNetVars) + tMaxRespTimeMS(SafeNetVars) +
2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) + 2*T(SafetyTask_Dev2) +
15 ms 8 ms tMaxRespTimeMS(FSoE_out)
The formula in the table determine only the maximum response time of the devices. For the
calculation of the maximum process response time the delay times of the safety AS-i
sensors/actuators and the respective input/output devices have to be added additionally
(T(sensor) + T(input) and T(output) + T(aktuator)).
96
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Safe cross communication and safe fieldbus communication are monitored by means of watchdogs.
Sufficiently long watchdog times have to be selected.
► Determine the watchdog times on the basis of the maximum response times of the safety function
measured ins step 2. ifm recommends the following formulas:
▪ safe cross communication: T(WD_SafetyNetVars) = 2*T(tMaxRespTimeMS)
▪ safe fieldbus communication: T(WD_FSoE) = 2*T(tMaxRespTimeMS)
► Set watchdog times (Set variable components of the response time (→ S. 99)).
97
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The response times of the output side have to be added to the calculated worst-case times
(T(output) + T(actuator)).
98
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The variable components influencing the process safety time of the entire system can be set by the
user at the following nodes in the CODESYS project:
• T(MainTask):
• Location: standard area of device tree
• Node: [MainTask]
• Parameters: [Interval]
• *T(SafetyTask):
• Location: safety extension of the device tree
• Node: [Safety Task]
• Parameters: [Cycle time]
• T(MapTask):
• Location: standard area of device tree
• Node: [MapTask]
• Parameters: [Interval]
• T(WD_SafetyNetVars):
• Location: safety extension of the AS-i device tree
• Node: safety network variable (receiver)
• Parameters: [Watchdog Time]
• T(WD_FSoE):
• Location: safety extension of the AS-i device tree
• Node: [Logical I/Os] > safe EtherCAT module
• Parameters: [Watchdog Time]
>
99
SmartPLC SafeLine AC4S with fieldbus interfaces
The safety tasks of the safe application are configured via the "Safety Task Editor" of the
programming system CODESY safety.
► Familiarise yourself with the following CODESYS functions!
▪ Safety Task Editor
→ Online help > Add-Ons > CODESYS Safety > Editors >Safety Task Editor
>
The programmer can freely set the cycle time of the fail-safe PLC. Whole values from 10...100 ms are
valid.
To set the cycle time of the fail-safe PLC:
► In the safety extension area of the device tree:
Double-click on [Safety Logic] > [SafetyApp] > [Safety Task]
> Editor window shows the configuration options of the selected safety task.
► Enter the required cycle time in the field [Cycle time].
► Select the safety POUs from the list to which the set cycle time should apply.
> The set cycle time applies to all selected safety POUs.
100
SmartPLC SafeLine AC4S with fieldbus interfaces
9 Operation
Content
Transfer CODESYS project to device ..................................................................................................101
Operating states AC4S .........................................................................................................................106
Reset ....................................................................................................................................................112
Display web visualisation ......................................................................................................................115
42624
>
To save the CODESYS project on AC4S the following components must be transferred to the device
separately:
• standard application "Application" (→Download standard application to AC4S (→ S. 102)
• safe application "SafetyApp" (→Load safe application to AC4S (→ S. 103)
► Note the remarks about the operating modes of Standard PLC and the fail-safe PLC of
AC4S.
→Operating states AC4S (→ S. 106)
ifm system solutions and CODESYS applications created by the user must not be saved and
executed on the AC4S at the same time.
► Before loading a standard application to AC4S, delete all ifm system solutions saved on
the device (→ Device manual, Uninstall ifm apps)!
To be able to use an ifm system solution in a user project the functions must be inserted in the
project via libraries to be ordered separately.
► Contact the AS-i specialist of ifm electronic!
101
SmartPLC SafeLine AC4S with fieldbus interfaces
>
If standard network variables and safety network variables are used simultaneously:
→ Note: Projects with network variables (→ S. 104)
If the parameter "Create implicit boot application on download" is activated in the features of
the application, step 3 is not necessary any more.
To check if the parameter is active:
► Mark [Application].
► Select [View] > [Properties...].
> Tab [Boot application] shows the current parameter value.
102
SmartPLC SafeLine AC4S with fieldbus interfaces
>
In the event of simultaneous use of network variables and safety network variables: →Note:
Projects with network variables (→ S. 104)
On first log-in to the fail-safe controller the programmer is asked to enter an instance
identification. The instance identification is the serial number of the device without the leading
zeros.
Example:
• Serial number: 000000569158
• Instance identification: 569158
To determine the serial number of the device:
→ Label underneath the Fieldbus interface (X6/X7) or
→ GUI/web interface:
► >
When the safe boot application has been created on the AC4S, the fail-safe PLC remains in
the "Debug operation" operating status.
► Note remarks about changing the operating states (→Change between the states
(→ S. 111))
>
103
SmartPLC SafeLine AC4S with fieldbus interfaces
If network variables and safety network variables are used simultaneously, the user has to observe the
following sequence for the transmission of the applications to the device:
1 Create safety network variables
► Device 1: Create and configure safety network variable list (transmitter)
► Device 2: Create and configure safety network variable list (receiver)
► Optional: Create and configure more transmitter/receiver pairs
2 Transfer applications to devices
► On all devices: Log in to standard PLC and the fail-safe PLC.
► Transfer boot applications to both PLCs
► Check if safety NetVars function correctly.
3 Log out
► Log out from the standard PLC.
4 Create standard network variables
► Device 1: Create and configure network variable list (transmitter).
► Device 2: Create and configure network variable list (receiver).
► Optional: Create and configure more transmitter/receiver pairs.
5 Transfer application to devices
► On all devices: Log in to standard PLC.
► Transfer boot application to standard PLC.
► Check if network variables and safety network variables function correctly.
>
Requirements:
> Safe AS-i slave is connected to AC4S and addressed.
> Parameter "EnableStartupTest" for all safe AS-i input slaves is activated.
> All safe AS-i input slaves are enabled (e.g. E-stop: unlock).
> Safe application is stored on the device and has been started (→Load safe application to AC4S
(→ S. 103)).
> Code table is blank.
1 Teach code sequences of a safe AS-i slave
> AC4S requires testing for safe AS-i input slave (OSC message).
► Confirm safe AS-i input slave and unlock again (switching sequence: lock unlock)
> Safe AS-i slave transmits code sequence to AC4S.
> AC4S fills code table with code sequence of the safe AS-i input slave.
> Code sequence of the safe AS-i input slave is taught.
2 Optional: Teach more code sequences
► Repeat step 1 for additional safe AS-i input slaves.
104
SmartPLC SafeLine AC4S with fieldbus interfaces
>
If after the start of a complex boot application the device is overloaded and does not respond any
more to user inputs or login attempts, the boot application on the device needs to be forcibly deleted.
To delete the boot application on the device:
► Disable the write protection of the SD card.
► Create a file named KillBootApp.txt in the root directory of the SD card.
► Insert the SD card into the SD card slot of the device.
► Restart the device.
> Boot application on the device-internal Standard PLC is deleted.
> The file KillBootApp.txt on the SD card is renamed in KillBootApp.rdy.
With this method the following data on the device-internal Standard PLC is removed:
• all files of the boot application
• all CRC files
• directory with web and/or target visualisations
• data in the memory area F-RAM
105
SmartPLC SafeLine AC4S with fieldbus interfaces
>
This chapter provides remarks about the operating modes and the states of the Standard PLC, the
fail-safe PLC of the device and the states of the applications.
>
The Standard PLC of the device can be operated in the following modes:
• Offline mode
In the offline mode the user is logged out of the Standard PLC or there is no connection between
CODESYS and the Standard PLC (e.g. connection loss).
• Online mode
In the online mode the user is logged in to the Standard PLC.
>
The standard applications saved on the device are executed independently in separate tasks. A
standard application can have the following states:
• Unload
No application is saved on the Standard PLC.
• RUN
The standard application is executed (cyclically processed).
• STOP
The standard application is not executed.
>
To display the current operating state of the Standard PLC choose one of the following options:
• CODESYS:
> In the device tree: Node of the standard application indicates the current state.
OR:
> In online mode the CODESYS status bar shows the current state of the standard application.
• GUI / web interface of the device:
► > >
► Select the [Applications] tab.
> The page displays the operating states of the Standard PLC applications saved on the device.
106
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To switch between the operating states of the standard application choose one of the following
options:
>
► > >
► Select the [Applications] tab.
► Use [] / [] to select the required application.
> Page shows the operating status of the selected application.
► Press [Start] function key to start the processing of the selected application.
> Application goes to RUN state.
► Optional: repeat process for additional applications.
>
► > >
► Select [Applications] tab.
► Use [] / [] to select the required application.
> Page shows the operating status of the selected application.
► Press [Stop] function key to stop the processing of the selected application.
> Application goes to STOP state.
► Optional: repeat process for additional applications.
107
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The following features are of importance for the correct functioning of the fail-safe PLC of AC4S:
• Operation mode of the fail-safe PLC (→ S. 109)
• States of the fail-safe PLC (→ S. 109)
• States of the safe application (→ S. 110)
108
SmartPLC SafeLine AC4S with fieldbus interfaces
>
In the online mode the current operating status of the safe PLC is displayed in the CODESYS
status bar.
109
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The safe application on the fail-safe PLC of AC4S can take the following states:
• RUN
The safe application is executed (cyclic processing).
• STOP
The safe application is not executed.
• TERMINATED
The safe application was terminated due to a runtime error.
In the online mode the current state of the safe application is displayed in the CODESYS
status bar.
110
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Following status diagram shows the relations and possible transitions between the individual operating
modes and the states of the fail-safe PLC:
111
SmartPLC SafeLine AC4S with fieldbus interfaces
>
9.3 Reset
Content
Standard-SPS .......................................................................................................................................112
Fail-safe PLC ........................................................................................................................................114
39674
>
A set of Standard PLC simultaneously starts a reset of the fail-safe PLC of AC4S.
► Note remarks about the start-up behaviour of the controller (→Start-up behaviour of the
controller).
>
The following table shows the reset variants supported by the device-internal CODESYS Standard
PLC and the resulting system behaviour:
A variable that has been declared without an initialisation value is initialised with the
variable-specific standard value (e.g. INT = 0).
112
SmartPLC SafeLine AC4S with fieldbus interfaces
>
To reset the standard application on the Standard PLC, choose one of the following options:
• CODESYS: command [Reset (warm)]
► In the standard area of device tree:
Highlight the required standard application as active application.
► Select [Online] > [Login] to establish a connection to the CODESYS Standard PLC.
> CODESYS switches to online mode.
► Select [Online] > [Reset warm] to reset the standard application.
• GUI: command [Reset]
► >
► Select [All Applications] tab.
► Use [Reset] to reset all standard applications.
>
To reset the standard application on the Standard PLC, choose one of the following options:
• Download the standard application to the device
► →Download standard applciation to AC4S (→ S. 102)
• CODESYS: command "Reset (cold)"
► In the standard area of device tree:
Highlight the required standard application as active application.
► Select [Online] > [Login] to establish a connection to the CODESYS Standard PLC.
> CODESYS switches to online mode.
► Select [Online] > [Reset cold] to reset the standard application.
>
113
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The following table shows the types of reset supported by the device-internal fail-safe PLC and the
resulting system behaviour:
>
To reset the safe application on the fail-safe PLC execute one of the following actions:
• Download new safe application to device
► →Transfer CODESYS project to device (→ S. 101)
• CODESYS: Execute command "Reset (cold)"
► Set [SafetyApp] as active application.
► Select [Online] > [Login].
> Fail-safe PLC changes to the online mode.
► Select [Online] > [Reset cold] to reset the safe application on the device.
114
SmartPLC SafeLine AC4S with fieldbus interfaces
>
myvisu is the user-defined name of the visualisation (→Change properties of the web
visualisation (→ S. 66)).
115
SmartPLC SafeLine AC4S with fieldbus interfaces
10 Appendix
Content
Library ACnnnn_Utils.library .................................................................................................................117
Library ACnnnn_SYS_CMD.library ......................................................................................................179
Library SF_IO.library ............................................................................................................................187
Library SF_LogicalInterfaces.library .....................................................................................................200
Error codes: Safe AS-i slaves...............................................................................................................267
Error codes: Local I/O interface ............................................................................................................269
33879
116
SmartPLC SafeLine AC4S with fieldbus interfaces
>
117
SmartPLC SafeLine AC4S with fieldbus interfaces
>
118
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_ASi_PHY_Dat
42416
>
Description
42417
The FB reads the physical data of the selected AS-i master and provides the values.
>
Input parameters
42582
119
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42610
Diagnostic codes:
▪ 0x0000 No specific error is set
120
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LAS
42598
>
Description
42415
The FB reads the list of activated slaves (LAS) of the selected AS-i master and provides the values.
>
Input parameters
42577
121
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42621
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
>
122
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LDS
42595
>
Description
42436
The FB reads the list of detected slaves (LDS) of the selected AS-i master and provides the values.
>
Input parameters
42590
123
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42618
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
>
124
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LPS
42605
>
Description
42431
The FB reads the list of projected slaves (LPS) at the selected AS-i master and provides the values.
>
Input parameters
42588
125
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42576
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
126
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LCE
42599
>
Description
42405
The FB reads the list of configuration errors (LCE) of the selected AS-i master and provides the
values.
>
Input parameters
42578
127
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42622
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
128
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LCEAS
42596
>
Description
42404
The FB reads the list of existing but not projected slaves (List of Configuration Error – Additional Slave
= LCEAS) of the selected AS-i master and provides the values.
>
Input parameters
42579
129
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42623
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
130
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LCEMS
42593
>
Description
42419
The FB reads the list of projected but missing slaves (List of Configuration Error – Missing Slave =
LCEMS) at the selected AS-i master and provides the values.
>
Input parameters
42584
131
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42620
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
132
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LDAE
42594
>
Description
42435
The FB reads the double address errors (LDAE) of the selected AS-i master and provides the values
in a list.
>
Input parameters
42589
133
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42617
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
134
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_LPF
42600
>
Description
42439
The FB reads the list of peripheral faults (LPF) of the selected AS-i master and provides the values.
>
Input parameters
42591
135
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42619
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
136
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_CDI
42406
>
Description
42418
The FB reads the configuration data (Configuration Data Image = CDI) of the slaves at the selected
AS-i master and provides the values in an array. The configuration data of a slave consists of the
registers IO, ID, ID1 and ID2.
>
Input parameters
42583
137
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42611
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
138
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_PCD
42607
>
Description
42424
The FB reads the projected configuration data (Projected Configuration Data Image = PCD) of the
slaves on the selected AS-i master and provides the values in an array.
>
Input parameters
42586
139
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42534
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
140
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_InputParameter
42597
>
Description
42414
The FB reads the input parameters of the slaves on the selected AS-i master and provides the values
in 2 arrays for single A slaves and B slaves.
>
Input parameters
42580
141
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42616
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
142
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_OutputParameter
42606
>
Description
42409
The FB reads the output parameters of the slaves on the selected AS-i master and provides the
values for S/A slaves and B slaves in 2 separate arrays.
>
Input parameters
42585
143
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42533
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
144
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_AddressMode
42565
>
Description
42425
The FB activates/deactivates the parameter "Automatic addressing" for the selected AS-i master.
>
Input parameters
42587
>
Output parameters
42530
Diagnostic codes:
▪ 0x0000 No specific error is set
>
145
SmartPLC SafeLine AC4S with fieldbus interfaces
>
>
Set_ASi_Config
42566
>
Description
42430
The FB activates/deactivates the parameters "double address recognition" and "earth fault detection"
for the selected AS-i master.
>
Input parameters
42608
146
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42532
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0001 Wrong parameter transferred, setting was not adopted.
147
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_LPS
42567
>
Description
42426
The FB changes the list of projected slaves (LPS) in the selected AS-i master.
>
Input parameters
42629
148
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42529
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0019 Master not in the projecting mode
149
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_Mode
42564
>
Description
42427
The FB changes the operating mode (protected operation, projection mode) of the selected AS-i
master.
>
Input parameters
42630
150
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42531
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0003 Slave with address 0 found (slave not detected)
151
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_PCD
42561
>
Description
42428
The FB changes the configuration file (Permanent Configuration Data = PCD) of the slaves at the
selected AS-i master.
>
Input parameters
42631
152
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42613
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0019 Master not in the projecting mode
153
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_ProjectAll
42562
>
Description
42429
Input parameters
42591
>
Output parameters
42536
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0003 Slave with address 0 found (slave not detected)
▪ 0x0019 Master not in the projecting mode
154
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_SlaveAddress
42563
>
Description
42421
Input parameters
42628
155
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42541
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0001 Slave does not respond or change to offline mode during FB execution
▪ 0x0002 Slave with old address not found (slave not detected)
▪ 0x0003 Slave with address 0 found (slave not detected)
▪ 0x0004 Slave with new address found
▪ 0x0005 Error during deletion of the old address (Delete Error)
156
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_SlaveExtendedID1
42568
>
Description
42420
Input parameters
42625
157
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42535
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0003 Slave with address 0 found (slave not detected)
▪ 0x0005 Error during deletion of the old address (Delete Error)
158
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_SlaveParameter
42573
>
Description
42422
Input parameters
42626
159
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42542
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0001 Slave does not respond or change to offline mode during FB execution
▪ 0x000A Sslave not in LAS
▪ 0x000B Data content invalid (e.g. parameter value >7 for A/B slaves)
▪ 0x000E Invalid slave address (e.g. 0 or 0B specified)
▪ 0x0018 Master is not in normal operation.
160
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_ASi_Data
42413
Symbol in CODESYS:
>
Description
42412
The FB reads the following data from the selected AS-i master and stores the values in a structure
variable of data type ASI_DATA (→ ASI_DATA (STRUCT) (→ S. 173)):
• List of activated slaves – LAS
• List of detected slaves – LDS
• List of projected slaves – LPS
• List of configuration errors – LCE
• List of configuration errors - additional slave – LCEAS
• List of configuration errors - missing slave – LCEMS
• List of peripheral faults – LPF
• List of double address errors – LDAE
• Configuration data image – CDI
• Projected configuration data – PCD
• Input parameters of the AS-i slaves
• Outputs parameters of the AS-i slaves
>
Input parameters
42581
161
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42609
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0xnF01 Unknown error 1
▪ 0xnF02 Unknown/invalid target 1
▪ 0xnF03 Unknown command ID 1
▪ 0xnF04 Unknown parameters 1
▪ 0xnF05 Timeout during processing 1
Legend:
1
Get_ASi_Data executes the FB ACnnnn_SysCmd sequentially with different command IDs in order to determine the individual
elements of the complex variable. In the returned error code, the nibble n indicates the command request where the error
occurred. n can have the following values:
1 = error with "Get LAS, LDA, LPF, LCE"
2 = error with "Get LPS"
3 = error with "Get CDI"
4 = error with "Get PCD"
5 = error with "Get Input Parameter"
6 = error with "Get Output Parameter"
7 = error with "Get LCEMS, LCEAS, LDAE"
162
SmartPLC SafeLine AC4S with fieldbus interfaces
>
163
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Get_FieldbusInfo
42512
>
Description
42423
The FB reads information about the fieldbus and provides the values in a list. The following information
are read:
• Status of the fieldbus
• Fieldbus type
• Status of the Ethernet connection at port X6 and X7
• MAC addresses
• IP address of the fieldbus host
>
Input parameters
42627
164
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42543
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0F01 Unknown error
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
165
SmartPLC SafeLine AC4S with fieldbus interfaces
>
QuickSetupASi_Master
42519
>
Description
42407
The FB executes the quick setup routine on the selected AS-i masters.
>
Input parameters
42603
166
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42615
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0003 Slave with address 0 found (slave not detected)
167
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Set_TimeDate
42574
>
Description
42408
The FB sets the system time (time and date) of the device using the transmitted input values.
>
Input parameters
42592
168
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42612
Diagnostic codes:
▪ 0x0000 No specific error is set
▪ 0x0001 Transferred values for date/time are invalid and could not be set.
▪ 0x0002 NTP active, time could not be adopted.
169
SmartPLC SafeLine AC4S with fieldbus interfaces
>
In addition to the standard data types, the CODESYS package from ifm electronic also features the
following enumeration types (ENUM) and complex variables (STRUCT):
>
ASI_ADDRESS_MODE (ENUM)
42501
>
ASI_MASTER (ENUM)
42505
>
ASI_MASTER_MODE (ENUM)
42504
170
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ASI_SLAVE (ENUM)
42506
▪ Slave_2 INT 2
▪ Slave_3 INT 3
▪ Slave_4 INT 4
▪ Slave_5 INT 5
▪ Slave_6 INT 6
▪ Slave_7 INT 7
▪ Slave_8 INT 8
▪ Slave_9 INT 9
▪ Slave_10 INT 10
▪ Slave_11 INT 11
▪ Slave_12 INT 12
▪ Slave_13 INT 13
▪ Slave_14 INT 14
▪ Slave_15 INT 15
▪ Slave_16 INT 16
▪ Slave_17 INT 17
▪ Slave_18 INT 18
▪ Slave_19 INT 19
▪ Slave_20 INT 20
▪ Slave_21 INT 21
▪ Slave_22 INT 22
▪ Slave_23 INT 23
▪ Slave_24 INT 24
▪ Slave_25 INT 25
▪ Slave_26 INT 26
▪ Slave_27 INT 27
▪ Slave_28 INT 28
▪ Slave_29 INT 29
▪ Slave_30 INT 30
▪ Slave_31 INT 31
>
ASI_SLAVE_TYP (ENUM)
42483
>
171
SmartPLC SafeLine AC4S with fieldbus interfaces
The library ACnnnn_Utils.library provides complex variables of the data type STRUCT. They are
used by the FBs, but they can also be used by the programmer in CODESYS projects for the
device-internal Standard PLC.
>
172
SmartPLC SafeLine AC4S with fieldbus interfaces
ASI_DATA (STRUCT)
42510
▪ LPF_SA_Slave DWORD List of peripheral faults (S/A slaves) Each bit represents an AS-i address:
0 = no peripheral fault
1 = peripheral fault
→ DS9 – Slave lists LAS, LDS, LPF,
▪ LPF_B_Slave DWORD List of peripheral faults (B slaves) LCE, words 8...11
▪ LCE_SA_Slave DWORD List with configuration errors (S/A Each bit represents an AS-i address:
slaves) 0 = no configuration error
1 = configuration error
→ DS9 – Slave lists LAS, LDS, LPF,
▪ LCE_B_Slave DWORD List with configuration errors (B LCE, words 12...15
slaves)
▪ LCEMS_SA_Slave DWORD List of configuration errors: Each bit represents an AS-i address:
projected, but missing S/A slave 0 = no configuration error
1 = configuration error
▪ LCEMS_B_Slave DWORD List of configuration errors:
projected, but missing B slave → DS17 – AS-i master: Error lists
LCEMS, LCEAS, LDAE, words 0...3
▪ LCEAS_SA_Slave DWORD List of configuration errors:
additional S/A slave Each bit represents an AS-i address:
0 = no error
1 = error
▪ LCEAS_B_Slave DWORD List of configuration errors: → DS17 – AS-i master: Error lists
additional B slave LCEMS, LCEAS, LDAE, words 4...7
▪ LDAE_SA_Slave DWORD List of double address errors (S/A Each bit represents an AS-i address:
slaves) 0 = no double address error
1 = double address error
→ DS17 – AS-i master: Error lists
▪ LDAE_B_Slave DWORD List of double address errors (B LCEMS, LCEAS, LDAE, words 8...11
slaves)
173
SmartPLC SafeLine AC4S with fieldbus interfaces
174
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ASI_NET (STRUCT)
42507
The structure contains the complete process image (inputs and outputs) of an AS-i network.
ASI_BIN_IO (STRUCT)
42508
The structure contains the process data of the digital input and output slaves:
>
ASI_BIN_IN (STRUCT)
42509
The structure contains the input data of the digital AS-i slaves:
>
ASI_BIN_OUT (STRUCT)
42511
The structure contains the output data of the digital AS-i slaves.
175
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ASI_ANA_IO (STRUCT)
42496
The structure contains the process data of the analogue input and output slaves.
>
ASI_ANALOG_IN (STRUCT)
42495
The structure contains the process data of the analogue input slave as well as the transmitted status
flags.
176
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ASI_ANALOG_IN_FLAGS (STRUCT)
42498
The structure contains the status flags of the analogue input slave.
>
ASI_ANALOG_OUT (STRUCT)
42497
The structure represents the process data of the analogue output slaves as well as the transmitted
flags.
177
SmartPLC SafeLine AC4S with fieldbus interfaces
>
ASI_ANALOG_OUT_FLAGS (STRUCT)
42503
The structure contains the status flags of the analogue output slave.
▪ na4 BOOL --
▪ na5 BOOL --
▪ na6 BOOL --
▪ na7 BOOL --
▪ na8 BOOL --
▪ OVA BOOL Output valid, S/A slave
▪ na9 BOOL --
▪ OVB BOOL Output valid, B slave
▪ n10 BOOL --
▪ TOA BOOL Transfer Output, S/A slave
▪ na11 BOOL --
▪ TOB BOOL Transfer Output, B slave
▪ na12 BOOL --
178
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.2.1 ACnnnn_SysCmd
42454
Symbol in CODESYS:
>
Description
42411
Using the FB, individual commands can be sent to the system or to an AS-i master.
Each command refers to the data structures of one of the following elements:
• Command request channel: → Example: Change language setting of the device (→ S. 184)
• Command response channel: → Example: Date / time / read NTP settings (→ S. 185)
• Acyclic data record (DSx): → Example: Read LCEMS, LCEAS and LDAE of AS-i Master 2
(→ S. 186)
179
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Input parameters
42602
>
uCommandID Description
0x0001 DS1 – System information
0x1101 Command 0x0101 – Quick set-up AS-i masters 1 + 2
0x1103 Command 0x0103 – Select user language
0x1104 Command 0x0104 – Change display settings
0x1105 Command 0x0105 – Set output control
0x1109 Command 0x0109 – Set date / time
0x110A Command 0x010A – Configure the NTP server settings
0x110B Command 0x010B – Read date / time / NTP settings
0x110C Command 0x010C – Reboot system
0x110D Command 0x010D – Read fieldbus info
0x1110 Command 0x0110 - Display target visualisation
Detailed information about the acyclic data sets and the command interface is given in the
supplement to the device manual of the SmartSPS SafeLine AC4S (→ Overview: User
documentation for AC4S (→ S. 7)).
>
180
SmartPLC SafeLine AC4S with fieldbus interfaces
181
SmartPLC SafeLine AC4S with fieldbus interfaces
Detailed information about the acyclic data sets and the command interface is given in the
supplement to the device manual of the SmartSPS SafeLine AC4S (→ Overview: User
documentation for AC4S (→ S. 7)).
182
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
42614
Diagnostic codes:
▪ 0xnF01 Unknown error 1
▪ 0x0F02 Unknown/invalid target
▪ 0x0F03 Unknown command ID
▪ 0x0F04 Invalid parameters
▪ 0x0F05 Timeout during processing
183
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Task: Set the language of the graphic user surface of the device to "Spanish" with the FB
ACnnnn_SysCmd.
Command type: Command request channel
Input parameters of the FB:
Parameter Value Explanation
uCommandID 0x1103 Corresponding commando channel:
→ Kommando 0x0103 – Bediensprache umschalten (→ device manual supplement)
uTarget 0 System command
pDataIn arDataIn ▪ Variable of the data type Array of Words
▪ arDataIn contains the command parameters
uSizeIn 0x0001 arDataIn only consists of 1 line since word 1 and 2 as well as 4 to 120 of the command
request channel are not considered.
pDataOut -- irrelevant since command request channel
uSizeOut -- irrelevant since command request channel
Content of arDataIn:
Word no. Contents Explanation
1 0x4553 Spanish
184
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Task: Read the current system time and the NTP settings with the FB ACnnnn_SysCmd.
Command type: Command reply channel
Input parameters of the FB:
Parameter Value Declaration
uCommandID 0x110B Corresponding commando channel:
→ Kommando 0x010B – Datum / Uhrzeit / NTP-Einstellungen lesen (→ device manual
supplement)
uTarget 0 System command
pDataIn -- irrelevant, since command reply channel
uSizeIn -- irrelevant, since command reply channel
pDataOut arDataOut ▪ variable of the data type Array of Words
▪ contains the return values of the reply channel
uSizeOut 0x0007 Array consists of 7 lines since the reply channel returns 7 words (words 5 ... 11).
Content of arDataOut:
Word no. Content
1 Month Day
2 Year Year
3 Minutes Hours
4 reserved Seconds
5 NTP offset NTP status
6 ... 7 IP address NTP server
185
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Task: Read the error lists LCEMS, LCEAS and LDAE of the AS-i Master 2 with the FB
ACnnnn_SysCmd.
Command type: acyclic data set
Input parameters of the FB:
Parameter Value Declaration
uCommandID 0x0011 Corresponding acyclic data set:
→ DS17 – AS-i Master: Fehlerlisten LCEMS, LCEAS, LDAE (→ device manual
supplement)
uTarget 1 Master command (1 = AS-i Master 2))
pDataIn -- irrelevant
uSizeIn -- irrelevant
pDataOut arDataOut ▪ Variable of the data type Array of Words
▪ contains the return values
uSizeOut 0x000C Array consists of 12 lines since the data set DS17 has exactly 12 words
Content of arDataOut:
Word no. Content
1 ... 4 LCEMS (list of configuration errors - missing slaves)
5 ... 8 LCEAS (list of configuration errors - additional slaves)
9 ... 12 LDAE (list of double address errors)
186
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The library SF_IO.library from ifm electronic provides function blocks (FB) for the programming of
safety-relevant PLC applications.
187
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.1 CtrlASi_InSlave
43258
>
Description
43297
Function block (FB) to control the logical device of a safe AS-i input slave (ASi_SlaveAdr,
ASi_Master).
The programmer can carry out the following actions via CtrlASi_InSlave:
• Unlock the logical device and reset it from the locked error state S_ERROR to the initialisation
state S_INIT (RESET)
The FB provides the following state and diagnostic information as non-safe data:
• Logical values of the two safe code half-sequences of the AS-i input slave (Chan_A, Chan_B)
• State of the FB processing (ready)
• Error state of the function block (Error)
• Diagnostic information of the logical device (DiagCode)
The function block can be instanced as often as required within the limits of CODESYS.
>
Input parameters
42984
The safe AS-i slave that is to be controlled by means of the FB must be inserted in the device
tree.
>
188
SmartPLC SafeLine AC4S with fieldbus interfaces
Output parameters
43077
189
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.2 CtrlASi_OutSlave
43257
>
Description
43300
Function block (FB) to control the logical device of a safe AS-i control slave (ASi_SlaveAdr,
ASi_Master)
The programmer can carry out the following actions via CtrlASi_OutSlave:
• Transmit signal to unlock the safe AS-i slaves (auxiliary signal HSI_1)
• Transmit signal for automatic new start (auxiliary signal HSI_2)
The FB provides the following state and diagnostic information:
• State of the FB processing (ready)
• Error state of the function block (Error)
• Diagnostic information of the logical device (DiagCode)
The function block can be instanced as often as required within the limits of CODESYS.
190
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Input parameters
42975
The safe AS-i slave that is to be controlled by means of the FB must be inserted in the device
tree.
A triggered request of the two auxiliary signals must not be cancelled until the success or
interruption of the transmission has been displayed.
► Do not set the inputs HSI_1 and/or HSI_2 to FALSE if a value with HS_ACK = OK or
HS_ACK = nOK is provided at output DiagCode (→ Output parameters (→ S. 192)).
Detailed information about the auxiliary signals HSI_1 and HSI_2: → Operating instructions of
the safe AS-i control slave
191
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Output parameters
43078
Diagnostic codes:
▪ 0x8000 Output = ON; HS_ACK = idle
▪ 0x8002 Output = OFF; HS_ACK = idle
▪ 0x8830 Output = ON; HS_ACK = OK
▪ 0x8832 Output = OFF; HS_ACK = OK
▪ 0x8840 Output = ON; HS_ACK = nOK
▪ 0x8842 Output = OFF; HS_ACK = nOK
▪ 0x8850 Output = ON; HS_ACK = RUN
▪ 0x8852 Output = OFF; HS_ACK = RUN
>
192
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.3 CtrlASi_ResetAllSlaves
43260
>
Description
43299
Function block (FB) to control the logical device of several safe AS-i input slaves of an AS-i network
(ASi_Master).
The programmer can carry out the following actions via CtrlASi_ResetAllSlaves:
• Unlock the logical device of all safe AS-i slaves in the indicated network and reset it from the
locked error state S_ERROR to the initialisation state S_INIT (RESET)
The FB provides the following state and diagnostic information:
• State of the FB processing (ready)
• Error state of the function block (Error)
>
Input parameters
42976
>
Output parameters
43079
193
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.4 CtrlLocalInputs
43259
>
Description
43311
Function block (FB) to control the logical device for two input channels of the local I/O interface
(IN_Channel_A, IN_Channel_B)
The programmer can carry out the following actions via CtrlLocalInputs:
• Unlock the logical device and reset it from the locked error state S_ERROR to the initialisation
state S_INIT (RESET)
The FB provides the following state and diagnostic information:
• Logical values of the two input channels (Chan_A, Chan_B)
• State of the FB processing (ready)
• Error state of the function block (Error)
• Diagnostic information of the logical device (DiagCode)
>
Input parameters
42978
>
194
SmartPLC SafeLine AC4S with fieldbus interfaces
Output parameters
43075
Diagnostic codes:
▪ 0x0000 Initialisation
195
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.5 Ctrl_SetDiagInfo
43245
>
Description
43312
Function block (FB) for processing the diagnostic information of a PLCopen function block.
The programmer can carry out the following actions via Ctrl_SetDiagInfo:
• Read diagnostic code (code) of a function block of the safety PLCopen library and transmit it to
the online support centre (OSC) of the AC4S user interface.
• The created error message is structured as follows:
Error PLCopen-FB (FB_Type), instance no. (FB_Number): DC=%s1, DC-1=%s2
▪ FB_Type = ID of the function block
▪ FB_Number = instance number of the function block
▪ DC = current diagnostic code (as hexadecimal value)
▪ DC-1 = last diagnostic code (as hexadecimal value)
The FB provides the following state and diagnostic information:
• State of the FB processing (ready)
• Display of an error during FB processing (Error)
The FB generates a separate message for each change of state in the online support centre
(OSC). The ring memory of the OSC therefore reaches its capacity limits within a short time.
► Use FB Ctrl_SetDiagInfo only for debugging.
196
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Input parameter
43017
The diagnostic code of the safety PLCopen FBs are of data type WORD.
>
Output parameters
43074
197
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.6 GetLocalInput
43013
>
Description
43286
Function block (FB) for access to a non-safe input channel of the local I/O interface (IN_Channel)
The programmer can carry out the following actions via GetLocalInput:
• Detect the non-safe, logical state of the selected input channel and provide the value (IN).
The FB provides the following state and diagnostic information:
• State of the FB processing (ready)
• Error state of the function block (Error)
>
Input parameters
42977
Output parameters
43076
198
SmartPLC SafeLine AC4S with fieldbus interfaces
>
10.3.7 SetLocalOutput
43136
>
Description
43283
Function block (FB) for access to a non-safe output channel of the local I/O interface (OUT_Channel)
The programmer can carry out the following actions via SetLocalOutput:
• Provide a non-safe Boolean value (OUT) at the selected output channel
The FB provides the following state and diagnostic information:
• State of the FB processing (ready)
• Error state of the function block (Error)
>
Input parameters
42974
The outputs of the local I/O interface can only implement a maximum switching frequency of
25 Hz.
► When digital signals are generated at the local outputs, observe the minimum switch-on or
switch-off time of 20 ms.
>
Output parameters
43080
199
SmartPLC SafeLine AC4S with fieldbus interfaces
>
200
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The safe input signals are preprocessed by means of state machines. Each logical device has its own
state machine which creates a safe process signal from the input signals and the set parameters.
A state machine consists of the following components:
• States (→States (→ S. 201)
• State transitions (→State transitions (→ S. 201)
>
States
42979
Number and type of state result from the scope of the logical evaluation function. The exact
description of the states is given in the documentation of the diagnostic messages of the individual
logical devices.
>
State transitions
42980
The state machine checks in each PLC cycle which conditions for a state transition are fulfilled.
State transitions can be triggered by the following conditions:
• Signal states of the input signals (→States of the input signals (→ S. 202)
• System events (→System events (→ S. 203)
• Timer events (→Timer events (→ S. 203)
201
SmartPLC SafeLine AC4S with fieldbus interfaces
>
The combination of the two signal channels results in the following states and the respective state
events:
>
The combination of the input signals "ChanA_only" and "ChanB_only" and the state of the parameter
"P_Chan_B_first" allows to define state transitions which consider the sequence of the signal change
at the input channels:
202
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Start-up test
43102
If with activated start-up test in the start state both input signals "ChanA" = TRUE and "ChanB" =
TRUE, the state machine first goes through a state cycle until both input signals simultaneously take
the value FALSE.
>
System events
43016
Following system events start processing of the state machine of the logical device:
• Start event after successful initialisation of the state machine (E_Start)
Following system events change the state machine of the logical device to the initialisation state
(S_INIT):
• A reset signal generated in the safe application (E_ErrorReset)
• AS-i input slaves: Communication and configuration errors (→Error codes: Safe AS-i slaves
(→ S. 267)
• Local inputs/outputs: Configuration and system errors (→Error codes: Local I/O interface
(→ S. 269)
>
Timer events
43011
Timers are started when a state is exited. When the timer has elapsed, a respective event is created.
This timer event is used by the event machine as condition for the transition to the next state. If one or
several timer events occur simultaneously, the event with the highest priority is processed.
The logical devices can evaluate the following times when the safe process signal is generated:
203
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Diagnostic messages
43295
By means of the parameter "DisableLogging" the programmer can control the routing of state
messages of the logical devices to the online support centre (OSC). If the parameter is deactivated, all
state changes and error events are transmitted to the OSC. If the parameter is activated, only error
events are transmitted to the OSC.
204
SmartPLC SafeLine AC4S with fieldbus interfaces
>
205
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_forced
43133
>
Description
43255
Logical device for the evaluation of a safe AS-i input slave with 2 positively-driven contacts/channels
SF_IN_ASi_forced detects switching states of the two signal channels of the AS-i slaves
(ASi_SlaveAdr, ASi_Master). The logical device forms the logical AND connector from the two values
and provides the result as safe control signal. The following additional conditions apply for the logical
signal evaluation:
• Simultaneity of the signal change of the two contacts/channels is monitored during switch-on and
switch-off. If both signal channels do not take the same switching status during the fixed time, the
logical device changes to the locked error state. (InvalidTime = const. = 100ms)
The programmer can activate the following functions as option:
• StartupTest:
Both signal channels must take the state FALSE simultaneously before the logical device can start
with the signal evaluation.
• DisableLogging:
Only error events are transmitted to the online support centre (OSC) of the AC4S user interface.
To reset the logical device from the locked error state: → CtrlASi_InSlave (→ S. 188)
206
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43069
>
Process data
43124
>
207
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
208
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43280
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
209
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_independent
43115
>
Description
43302
Logical device for a safe sensor with 2 contacts/channels acting independently of each other
SF_IN_ASi_independent detects switching states of the two signal channels/contacts of a safe AS-i
slave (ASi_SlaveAdr, ASi_Master). The logical device forms the logical AND connector from the two
values and provides the result as safe control signal. The following additional conditions apply for the
logical signal evaluation:
• The simultaneity of the signal change is not monitored.
• If the signal state of the two channels is invalid longer than the firmly set time, both signal
channels have to take the state FALSE simultaneously before switch-on is possible again.
(InvalidTime = const. = 2000ms)
The programmer can activate the following functions as option:
• DisableLogging:
Only error events are transmitted to the online support centre (OSC) of the AC4S user interface.
• StartupTest:
Both signal channels must take the state FALSE simultaneously before the logical device can start
with the signal evaluation.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188)
210
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43072
Process data
43127
>
211
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
212
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43279
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
213
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_conditionally_dependent
43132
>
Description
43303
Logical device for a safe sensor with 2 conditionally interdependently acting contacts/channels
SF_IN_ASi_conditionally_dependent detects the switching states of the two signal channels of the
AS-i slave (ASi_SlaveAdr, ASi_Master). The logical device forms the logical AND connector from the
two values and provides the result as safe control signal. The following additional conditions apply for
the logical signal evaluation:
• The sequence of the signal changes of the two contacts/channels is monitored during switch-on
and switch-off. If the sequence of the signal change deviates from the set sequence, the logical
device changes to the locked error state. (Chan_B_first)
• If the signal state of the two signal channels is invalid longer than the firmly set time, the logical
device changes to the locked error state. (InvalidTime = const. = 140ms)
The programmer can activate the following functions as option:
• DisableLogging:
Only error events are transmitted to the online support centre (OSC) of the AC4S user interface.
• StartupTest:
Both signal channels must take the state FALSE simultaneously before the logical device can start
with the signal evaluation.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188)
214
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43067
>
Process data
43128
>
215
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
216
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43281
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
217
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_dependent
43131
>
Description
43254
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188)
218
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43068
>
Process data
43123
219
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
220
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43282
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
221
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_dependent_filter_w_testreq
43134
>
Description
43305
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188)
222
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43065
Process data
43126
>
223
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
224
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43294
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188)
Following diagnostic codes exist:
225
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_dependent_filter_ntestreq
43135
>
Description
43304
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188)
226
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43055
>
Process data
43122
>
227
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
228
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43293
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
229
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_ASi_dependent_filter_nshutdown
43130
>
Description
43301
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlASi_InSlave (→ S. 188).
When this logical device is used, the process safety time (PST) of the system is extended by
one cycle time of the fail-safe PLC.
► Note the remarks about process safety time (→ Device manual, Process safety time)!
► Observe the set cycle time of the fail-safe PLC (→ Set cycle time of the fail-safe PLC
(→ S. 100))!
>
230
SmartPLC SafeLine AC4S with fieldbus interfaces
Parameter data
43054
>
Process data
43118
>
231
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
232
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43296
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
233
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_OUTcontrol_ASi
43114
>
Description
43298
Parameter data
43053
>
Process data
43117
234
SmartPLC SafeLine AC4S with fieldbus interfaces
>
235
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_forced
43088
>
Description
43314
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
236
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43058
>
Process data
43116
>
237
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
238
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43280
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
239
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_independent
43093
>
Description
43307
Logical device for a safe sensor with 2 contacts/channels acting independently of each other
SF_IN_local_independent detects switching states of 2 input channels of the local I/O interface
(IN_Channel_A, IN_Channel_B). The logical device forms the logical AND connector from the two
values and provides the result as safe control signal. The following additional conditions apply for the
logical signal evaluation:
• The simultaneity of the signal change is not monitored.
• If the signal state of the two channels is invalid longer than the firmly set time, both signal
channels have to take the state FALSE simultaneously before switch-on is possible again.
(InvalidTime = const. = 140ms)
The programmer can activate the following functions as option:
• EnableIN_Test:
A test signal for cross-fault monitoring generated at a local output channel at the local I/O interface
is evaluated.
• StartupTest:
Both signal channels must take the state FALSE simultaneously before the logical device can start
with the signal evaluation.
• DisableLogging:
Only error events are transmitted to the online support centre (OSC) of the AC4S user interface.
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
240
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43052
>
Process data
43119
>
241
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
242
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43279
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
243
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_conditionally_dependent
43097
>
Description
43310
Logical device for a safe sensor with 2 conditionally interdependently acting contacts/channels
SF_IN_local_conditionally_dependent detects the switching states of the two input channels of the
local I/O interface (IN_Channel_A, IN_Channel_B). The logical device forms the logical AND
connector from the two values and provides the result as safe control signal. The following additional
conditions apply for the logical signal evaluation:
• The sequence of the signal changes of the two contacts/channels is monitored during switch-on
and switch-off. If the sequence of the signal change deviates from the set sequence, the logical
device changes to the locked error state. (Chan_B_first)
• If both signal channels do not take the same switching status during the fixed time, the logical
device changes to the locked error state. (InvalidTime = const. = 140ms)
The programmer can activate the following functions as option:
• EnableIN_Test:
A test signal for cross-fault monitoring generated at a local output channel at the local I/O interface
is evaluated.
• StartupTest:
Both signal channels must take the state FALSE simultaneously before the logical device can start
with the signal evaluation.
• DisableLogging:
Only error events are transmitted to the online support centre (OSC) of the AC4S user interface.
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
Parameter data
43056
244
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Process data
43120
>
245
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
246
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43281
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
247
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_dependent
43096
>
Description
43313
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
248
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43057
Process data
43121
>
249
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
250
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43282
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
251
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_dependent_filter_testreq
43089
>
Description
43306
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
>
252
SmartPLC SafeLine AC4S with fieldbus interfaces
Parameter data
43048
>
Process data
43129
>
253
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
254
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43294
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188)
Following diagnostic codes exist:
255
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_dependent_filter_ntestreq
43090
>
Description
43309
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
>
256
SmartPLC SafeLine AC4S with fieldbus interfaces
Parameter data
43047
Process data
43139
>
257
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
258
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43293
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
259
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_IN_local_dependent_filter_nshutdown
43094
>
Description
43308
If cross-fault detection is activated for 2-channel safe devices at the local I/O interface
(EnableIN_Test = TRUE), the following applies:
Signal change at the inputs (IN_Channel_A, IN_Channel_B) must be applied longer than the
cycle time of the test pulses (3 PLC cycles). Otherwise the logical device changes to the
locked error state.
When this logical device is used, the process safety time (PST) of the system is extended by
one cycle time of the fail-safe PLC.
► Note the remarks about process safety time (→ Device manual, Process safety time)!
► Observe the set cycle time of the fail-safe PLC (→ Set cycle time of the fail-safe PLC
(→ S. 100))!
To reset the logical device from the locked error state and to read diagnostic information of the
logical device: → CtrlLocalInputs (→ S. 194).
260
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Parameter data
43046
>
Process data
43138
>
261
SmartPLC SafeLine AC4S with fieldbus interfaces
The state diagram shows the logical signal evaluation of the logical device:
>
262
SmartPLC SafeLine AC4S with fieldbus interfaces
Diagnostic information
43296
The logical device creates diagnostic codes. They reflect the active internal state of the evaluation
logic (state machine). The diagnostic codes can be read with the following FB: → CtrlASi_InSlave
(→ S. 188).
Following diagnostic codes exist:
263
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_OUT_local_single
43091
>
Description
43285
Logical device for a 1-channel safe actuator at the local I/O interface
SF_OUT_local_single detects the Boolean value at the process data signal (OUT_). The logical device
generates a safe Boolean signal and provides the value at the configured output channel of the local
I/O interface (OUT_Channel).
>
Parameter data
43051
Process data
43137
264
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_OUT_local_dual
43092
>
Description
43287
Logical device to control a 2-channel safe actuator at the local I/O interface
SF_OUT_local_dual detects the Boolean value at the process data signal (OUT_). The logical device
generates a safe Boolean signal and provides the value at the configured output channels of the local
I/O interface (OUT_Channel_A, OUT_Channel_B).
>
Parameter data
43049
>
Process data
43009
265
SmartPLC SafeLine AC4S with fieldbus interfaces
>
SF_OUT_local_testpulse
43109
>
Description
43284
Logical device to generate a test pulse at an output channel of the local I/O interface
SF_OUT_local_testpulse generates a test pulse and provides it at the configured output channel of
the local I/O interface (OUT_Channel). Pulse duration and frequency are firmly set:
Parameter data
43050
266
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Communication and configuration errors change the logical device to the initialisation state (S_INIT).
Simultaneously a diagnostic code is provided to the control function block (→ CtrlASi_InSlave , →
CtrlASi_OutSlave) which describes the error cause.
Following diagnostic codes are available:
267
SmartPLC SafeLine AC4S with fieldbus interfaces
268
SmartPLC SafeLine AC4S with fieldbus interfaces
>
Communication and configuration errors change the logical device to the initialisation state (S_INIT).
Simultaneously a diagnostic code is provided to the control function block that describes the error
cause (→CtrlLocalInputs (→ S. 194)).
Following diagnostic codes are available:
269
SmartPLC SafeLine AC4S with fieldbus interfaces
270
SmartPLC SafeLine AC4S with fieldbus interfaces
L Q
Legal and copyright information ..............................................................5 QuickSetupASi_Master .......................................................................166
Library ACnnnn_SYS_CMD.library .....................................................179
Library ACnnnn_Utils.library ................................................................117
R
Library SF_IO.library............................................................................187 Read configuration data of the slaves ...................................................61
Library SF_LogicalInterfaces.library ....................................................200 Read network settings ...........................................................................60
Licensing ................................................................................................10 Read parameter images ........................................................................61
Load safe application to AC4S ............................................................103 read slave lists .......................................................................................61
Local I/O interface Read status of the voltage supply .........................................................61
Access non-safe inputs/outputs .................................................................... 78 Remarks...........................................................................................24, 32
Provide diagnostic information ...................................................................... 78 Remarks about logical devices ............................................................201
Reset logical device ...................................................................................... 77
Remarks about the use of exchange variables .....................................82
Logical devices for safe AS-i slaves ....................................................205 Remove safe AS-i slave from project ....................................................31
Logical devices for the local I/O interface ...........................................235 Remove safe local device from project .................................................39
Required background knowledge ............................................................9
M
Reset....................................................................................................112
Manage AS-i network ............................................................................60 Reset safe application (cold) ...............................................................114
Map safe process signal to variable ................................................30, 38 Reset the Standard application (cold) .................................................113
Minimum number of AS-i slaves............................................................74 Reset the Standard application (origin) ...............................................113
Modification history ..................................................................................8 Reset the standard application (warm)................................................113
N S
Note Safe AS-i input slaves ...........................................................................24
Projects with network variables .................................................................. 104 Safe AS-i output slaves .........................................................................24
Note on the size of the exchange objects .............................................87 Safe AS-i slaves
Notes on the FSoEMaster .....................................................................92 Provide diagnostic information ...................................................................... 77
Reset logical device ...................................................................................... 76
O Transmit help signals HSI_1 and HSI_2 to safe AS-i output modules ........ 77
Objects of a safe application .................................................................71 Safe cross communication ....................................................................86
Objects of a Standard PLC application .................................................47 Safe devices at local inputs ...................................................................32
Operating mode of the Standard PLC .................................................106 Safe devices at local outputs .................................................................32
271
SmartPLC SafeLine AC4S with fieldbus interfaces
Sequence of the signal changes .........................................................202 Stop Standard PLC application ...........................................................107
Set communication path of Standard PLC ............................................20 Supported program organization units (POUs) .....................................73
Set communication path of the fail-safe PLC ........................................21 Supported programming languages ................................................49, 73
Set cycle time of the fail-safe PLC ......................................................100 Supported reset variants .....................................................................112
Set interval of the data exchange ..........................................................85 Supported types of reset .....................................................................114
Set parameters for visualisation task ....................................................69 Supported visualisation types ................................................................63
Set process safety time .........................................................................93 Switch operating states .......................................................................107
Set the parameters of the logical device .........................................29, 37 System configuration .............................................................................22
Set up fail-safe network variables .........................................................88 System events .....................................................................................203
Set variable components of the response time .....................................99 System requirements.............................................................................10
Set_AddressMode ...............................................................................145
T
Set_ASi_Config ...................................................................................146
Set_LPS ...............................................................................................148 Table
Set_Mode.............................................................................................150 AS-i master commands ............................................................................... 181
System commands ...................................................................................... 180
Set_PCD ..............................................................................................152
Teach code sequences of the safe AS-i slaves ..................................104
Set_ProjectAll ......................................................................................154
Timer events ........................................................................................203
Set_SlaveAddress ...............................................................................155
Transfer CODESYS project to device .................................................101
Set_SlaveExtendedID1 .......................................................................157
Set_SlaveParameter............................................................................159 U
Set_TimeDate ......................................................................................168
SetLocalOutput ....................................................................................199 Uninstall ifm package ............................................................................13
SF_IN_ASi_conditionally_dependent ..................................................214 Use CODESYS online help ...................................................................19
SF_IN_ASi_dependent ........................................................................218 Use complex variables ..........................................................................60
SF_IN_ASi_dependent_filter_nshutdown ...........................................230 Use EtherCAT master ...........................................................................43
SF_IN_ASi_dependent_filter_ntestreq ................................................226 Use fail-safe network variables in the application .................................89
SF_IN_ASi_dependent_filter_w_testreq .............................................222 Use functions of the ifm package ..........................................................57
SF_IN_ASi_forced ...............................................................................206 Use network variables ...........................................................................68
SF_IN_ASi_independent .....................................................................210 Use remanent variables.........................................................................49
SF_IN_local_conditionally_dependent ................................................244 Use safety functions of CODESYS .......................................................79
SF_IN_local_dependent ......................................................................248 Use safety functions of the ifm AS-i package........................................76
SF_IN_local_dependent_filter_nshutdown .........................................260 Use the factory-set replacement variables ............................................83
SF_IN_local_dependent_filter_ntestreq ..............................................256 Use visualisations ..................................................................................63
SF_IN_local_dependent_filter_testreq ................................................252
V
SF_IN_local_forced .............................................................................236
SF_IN_local_independent ...................................................................240 Validity of the interface data ..................................................................51
SF_OUT_local_dual ............................................................................265 Variable declaration with data transfer between standard and safety
SF_OUT_local_single..........................................................................264 area ........................................................................................................75
SF_OUT_local_testpulse.....................................................................266
SF_OUTcontrol_ASi ............................................................................234
Software .................................................................................................10
Standard PLC ............................................................................. 106, 112
Start CODESYS.....................................................................................14
Start Standard PLC application ...........................................................107
Start-up test .........................................................................................203
State diagram (state machine) .. 208, 212, 216, 220, 224, 228, 232, 238,
242, 246, 250, 254, 258, 262
State machines for logical preprocessing ...........................................201
State transitions ...................................................................................201
States ...................................................................................................201
States of the fail-safe PLC ...................................................................109
States of the input signals ...................................................................202
States of the safe application ..............................................................110
States of the Standard PLC application ..............................................106
Step 1
Calculate typical response times .................................................................. 95
272