SmartPLC SafeLine AC4S with fieldbus interfaces Contents Preliminary note 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 ......................
Page 3
SmartPLC SafeLine AC4S with fieldbus interfaces Configure standard devices at local I/O interface ..............40 Change IP settings ......................40 Add additional device to the project ...................41 Extend fieldbus functionality ....................42 6.8.1 Available fieldbus stacks ......................42 6.8.2 Use EtherCAT master ........................ 43 6.8.3 Add fieldbus stack ........................
Page 4
SmartPLC SafeLine AC4S with fieldbus interfaces 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 ....................
SmartPLC SafeLine AC4S with fieldbus interfaces Explanation of Symbols 34171 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 ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > Overview: User documentation for AC4S 42309 ifm electronic provides the following user documentation for the models of the device class "Fail-safe SmartPLC AC4S": Document Content / Description Data sheet Technical data of AC4S as a table ...
SmartPLC SafeLine AC4S with fieldbus interfaces > Overview: CODESYS documentation of 3S 43063 3S GmbH provides the following user documentation for programming Standard PLC and the fail-safe PLC of AC4S: Document Content / Description Online help Context-sensitive help Description of the CODESYS programming system and the safety extension ...
SmartPLC SafeLine AC4S with fieldbus interfaces Safety instructions Content General safety instructions ........................9 Required background knowledge ......................9 28333 > General safety instructions 41415 Read this document before setting up the product and keep it during the entire service life. Only use the product for its intended purpose.
Certified libraries for the safety-relevant programming (SafetyPLCopen, safety standard) 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. > 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.
SmartPLC SafeLine AC4S with fieldbus interfaces Installation Content CODESYS Development System ......................11 ifm CODESYS package ..........................12 42637 > CODESYS Development System 39481 The CODESYS Development System (short: CODESYS) is a platform for the creation of PLC applications according to the standard IEC 61131-3. >...
→ Online help > CODESYS Development System > Manage packages and licences > 4.2.1 Components of the ifm package 43264 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_10.package) contains the following certified components: Component Description...
SmartPLC SafeLine AC4S with fieldbus interfaces > 4.2.2 Install the ifm package 42997 To install the ifm AS-i package on the programming PC/laptop: Requirements > CODESYS 3.5 SP9 Patch 7 Hotfix 3 is installed on the programming PC/laptop. Start CODESYS ►...
> Start CODESYS 43112 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 >...
SmartPLC SafeLine AC4S with fieldbus interfaces > Create CODESYS project Content Create new project with AC4S ......................16 Overview: Project structure with AC4S ....................17 42490 ► Familiarise yourself with the following CODESYS functions! Create CODESYS project → Online help > CODESYS Development System > Create and configure project ...
5.2.1 Create new project with AC4S 43250 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: >...
SmartPLC SafeLine AC4S with fieldbus interfaces 5.2.2 Overview: Project structure with AC4S 43018 [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 (→...
Page 18
SmartPLC SafeLine AC4S with fieldbus interfaces...
SmartPLC SafeLine AC4S with fieldbus interfaces > Use CODESYS online help 42557 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure programming interface 43271 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > 5.5.2 Set communication path of the fail-safe PLC 43038 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure fail-safe PLC 43275 ► Familiarise yourself with the following CODESYS functions! Editor of the safety controller → Online help > Add-Ons > CODESYS Safety > Editors > Editor of the safety controller The fail-safe PLC of AC4S is configured via the "device editor of the safety controller"...
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure safe AS-i slaves Content Remarks ..............................24 Add safe AS-i slaves to the project ......................26 Remove safe AS-i slave from project .....................31 43270 The safe inputs and outputs are configured via the "Device editor for logical I/Os" of the programming system CODESYS Safety.
Page 25
SmartPLC SafeLine AC4S with fieldbus interfaces > Available logical devices for safe AS-i slaves 43269 Following logical devices are available for safe AS-i slaves: Designation Type Reference →SF_IN_ASi_forced SF_IN_ASi_forced Input (→ S. 206) →SF_IN_ASi_independent SF_IN_ASi_independent Input (→ S. 210) →SF_IN_ASi_conditionally_dependent SF_IN_ASi_conditionally_dependent Input (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > 6.3.2 Add safe AS-i slaves to the project 43315 Safe AS-i slaves are added to a CODESYS project in 2 steps: 1. Add logical device of the safe AS-i slave to the project tree: →Add logical device to the project tree (→...
Page 27
> A dialogue window appears. ► Set the following values in the area [Device]: 1. [Vendor]: ifm electronic 2. Table: Select the required logical device (→ Remark) 3. [Name]: Enter unique name for the logical device ► Apply the set values with [Add Device].
Page 28
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)
Page 29
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure logical device 43277 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: ►...
Page 30
SmartPLC SafeLine AC4S with fieldbus interfaces > Map safe process signal to variable 43111 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: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 6.3.3 Remove safe AS-i slave from project 43062 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. Remove logical device from the standard area ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure safe devices at local I/O interface Content Remarks ..............................32 Add safe local device to project ......................34 Create test signal at local output ......................39 Remove safe local device from project ....................39 43273 The safe inputs and outputs are configured via the "Device editor for logical I/Os" of CODESYS safety.
Page 33
SmartPLC SafeLine AC4S with fieldbus interfaces > Available logical devices for safe inputs/outputs 43268 Following logical devices are available for safe devices at the local I/O interface: Designation I/O type Reference →SF_IN_local_forced SF_IN_local_forced Input (→ S. 236) →SF_IN_local_independent SF_IN_local_independent Input (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > 6.4.2 Add safe local device to project 43267 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 (→...
Page 35
SmartPLC SafeLine AC4S with fieldbus interfaces > Add logical device to the project tree 43363 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.
Page 36
SmartPLC SafeLine AC4S with fieldbus interfaces ► Set the following parameters in group [Device]: 1. [Vendor]: Select ifm electronic. 2. Table: Mark the required logical device (→ Remark). 3. [Name]: Enter unambiguous instance name. ► Apply the set values with [Add Device].
Page 37
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure logical device 43274 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: ►...
Page 38
SmartPLC SafeLine AC4S with fieldbus interfaces > Map safe process signal to variable 43110 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: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 6.4.3 Create test signal at local output 43244 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure standard devices at local I/O interface 43249 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.
> Window [Add Device] appears: ► Set the following values: 1. [Vendor]: Select [ifm electronic]. 2: [Device]: Select [ifm SmartPLC SafeLine] from the list. 3. [Name]: Enter unique name for the device. ► Click on [Add Device] to add the device to the project.
SmartPLC SafeLine AC4S with fieldbus interfaces > Extend fieldbus functionality Content Available fieldbus stacks ........................42 Use EtherCAT master ..........................43 Add fieldbus stack ..........................46 43399 > 6.8.1 Available fieldbus stacks 43401 Besides the fieldbus functionality defined in the hardware the device can be operated as fieldbus device by a software extension.
Add and configure EtherCAT slave ......................45 43415 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > Configure EtherCAT master 43402 ► Familiarise yourself with the following CODESYS functions! EtherCAT master → Online help > Fieldbus support > EtherCAT configurator > EtherCAT master The user has to assign the Ethernet configuration interface 1 (X3) or 2 (X8) to the added EtherCAT master.
Page 45
SmartPLC SafeLine AC4S with fieldbus interfaces > Add and configure EtherCAT slave 43394 ► Familiarise yourself with the following CODESYS functions! EtherCAT slave → Online help > Fieldbus support > EtherCAT configurator > EtherCAT slave To configure EtherCAT slaves for the operation with the EtherCAT master of the AC4S: Requirements: >...
SmartPLC SafeLine AC4S with fieldbus interfaces > 6.8.3 Add fieldbus stack 43392 ► Familiarise yourself with the following CODESYS functions! Modbus configurator → Online help > Fieldbus support > Modbus configurator To declare the Ethernet interface as a fieldbus interface: Create/load CODESYS project ►...
SmartPLC SafeLine AC4S with fieldbus interfaces 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.
SmartPLC SafeLine AC4S with fieldbus interfaces Create Standard PLC application 42488 ► Familiarise yourself with the following CODESYS functions! Program application → Online help > CODESYS Development System > Program application Programming reference → Online help > CODESYS Development System > Reference programming To create a Standard PLC application: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.2.1 Use remanent variables 42556 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...
SmartPLC SafeLine AC4S with fieldbus interfaces > Access standard input and output data Content Options to access input and output data ....................50 Validity of the interface data ........................51 Process data of the AS-i slaves ......................52 Fieldbus data ............................54 Process data of the non-safe local devices ....................56 43362 ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.3.2 Validity of the interface data 42554 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.3.3 Process data of the AS-i slaves 42517 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 (→...
Page 53
SmartPLC SafeLine AC4S with fieldbus interfaces > Digital input and output data 42438 To access the digital process data of the slaves at AS-i master 1: ► In the device tree: Double click on [ASi_1_binaryIO] > The editor window shows a structured list of the digital inputs and outputs of the AS-i slaves. ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.3.4 Fieldbus data 42399 The device tree offers direct access to the data that is transmitted between fieldbus and device. Data that the fieldbus transmits/receives via the fieldbus. →Input and output data of the fieldbus interface (→...
Page 55
SmartPLC SafeLine AC4S with fieldbus interfaces > Digital output data 42440 To access the digital output data of the slaves at AS-i master 1: ► Device window: In the project tree, double-click on [ASi_1_binaryIO] > Editor window shows a structured list of the digital output data: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.3.5 Process data of the non-safe local devices 43003 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > Use functions of the ifm package 42559 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.
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.
SmartPLC SafeLine AC4S with fieldbus interfaces 7.4.3 Configure AS-i master 42481 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) →...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.4.5 Manage AS-i network 42636 To manage the AS-i networks controlled by AC4S, use the following function blocks: > Use complex variables 42558 There are different complex variables (STRUCT) at the programmer's disposal. They bundle logically associated data sets.
Page 61
SmartPLC SafeLine AC4S with fieldbus interfaces Alternatively, this data can be read separately with the following FB: > Read parameter images 42514 Name Description Reference → Read parameters of the inputs of the slaves at the AS-i Get_InputParameter (→ S. 141) Get_InputParameter master (PI) →...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.4.6 Send commands to the system and the AS-i master 42522 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > Use visualisations Content Supported visualisation types .........................63 Add visualisation to a project ........................64 Create a visualisation ..........................65 Configure visualisation ...........................66 42553 ► Familiarise yourself with the following CODESYS functions! Visualisations in CODESYS →...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.5.2 Add visualisation to a project 43266 To add a visualisation to a CODESYS project: ► open CODESYS project. Create new CODESYS project. (→Create new project with AC4S (→ S. 16) ► In standard area of device tree: Select [Application]. ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.5.3 Create a visualisation 42487 Create a seperate visualisation object for each target and web visualisation. To create a visualisation for a Standard PLC application: ► In the standard area of device tree: double-click on [MyVisu] >...
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.5.4 Configure visualisation 43248 To configure the characteristics of the created visualisation select one of the following options: Change properties of the web visualisation (→ S. 66) > Change properties of the web visualisation 42485 To change the attributes of the web visualisation: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > Cross communication Content Use network variables ..........................68 43246 ► Familiarise yourself with the following CODESYS functions! → Online help > CODESYS Development System > Exchange data in the network > Network variables The device supports the CODESYS function "network variables".
SmartPLC SafeLine AC4S with fieldbus interfaces > 7.6.1 Use network variables 43006 ► 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.
SmartPLC SafeLine AC4S with fieldbus interfaces Configure task processing 42491 ► Familiarise yourself with the following CODESYS functions! Task configuration → Online help > CODESYS Development System > Program application > task configuration 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: Name...
SmartPLC SafeLine AC4S with fieldbus interfaces Programming of the fail-safe PLC Content Objects of a safe application ........................71 Create safe application ...........................72 Use safety functions of the ifm AS-i package ..................76 Use safety functions of CODESYS ......................79 Data exchange between standard PLC and fail-safe PLC ..............82 Safe cross communication ........................86 Safe fieldbus communication........................90 Set process safety time ..........................93...
SmartPLC SafeLine AC4S with fieldbus interfaces > Objects of a safe application 43095 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...
SmartPLC SafeLine AC4S with fieldbus interfaces > Create safe application Content Supported program organization units (POUs) ..................73 Available safety libraries .........................73 Supported programming languages .......................73 Minimum number of AS-i slaves ......................74 Variable declaration with data transfer between standard and safety area ...........75 Available memory space ........................75 Pin safe project ............................75 43247...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.2.1 Supported program organization units (POUs) 42982 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. Usable elements Basic POU Extended POU...
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.
PLCopen Safety: Provide diagnostic information ...................78 43025 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.3.2 Safe AS-i slaves: Provide diagnostic information 43082 To control the provision of the internal diagnostic information of a logical device the following function blocks are available: Function block Description Reference →CtrlASi_InSlave (→ S. 188) CtrlASi_InSlave Provide diagnostic information of a safe AS-i input slave →CtrlASi_OutSlave...
SmartPLC SafeLine AC4S with fieldbus interfaces 8.3.5 Local I/O interface: Provide diagnostic information 43107 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: Function block Description Reference...
SmartPLC SafeLine AC4S with fieldbus interfaces Use safety functions of CODESYS 43026 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.4.2 SafetyPLCopen library 43039 The library SafetyPLCopen.lib contains the following certified function blocks: Function block Description SF_Antivalent Logical AND operator of 2 complementary signals; monitoring the discrepancy time SF_EDM Monitoring the basic status and the switching status of actuators that are controlled by safe output devices SF_EmergencyStop Monitoring an E-stop...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.4.3 SafetyFSoEMaster library 43040 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)
SmartPLC SafeLine AC4S with fieldbus interfaces > Data exchange between standard PLC and fail-safe PLC 43256 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.5.2 Use the factory-set replacement variables 43028 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.
Page 84
SmartPLC SafeLine AC4S with fieldbus interfaces > Data transfer safety area >>> standard area 43253 To transfer data from the safety area of the device to the standard area of the device: Declare exchange variables in the safety area ► In the safety extension area of the device tree: Double click on [DataToNonsafe] >...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.5.3 Create additional objects for data exchange 43251 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > Safe cross communication Content Note on the size of the exchange objects ....................87 Set up fail-safe network variables ......................88 Use fail-safe network variables in the application ..................89 43085 ► Familiarise yourself with the following CODESYS functions! ...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.6.1 Note on the size of the exchange objects 43008 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 ...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.6.2 Set up fail-safe network variables 43035 ► 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces ► Repeat steps 1 to 3 for the opposite transmission direction. > 8.6.3 Use fail-safe network variables in the application 43015 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > Safe fieldbus communication Content Configure FSoE connection........................91 Notes on the FSoEMaster ........................92 43041 ► Familiarise yourself with the following CODESYS functions! Fail Safe over EtherCAT → Online help > Add-Ons > CODESYS Safety > field buses > FSoE ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.7.1 Configure FSoE connection 43278 ► 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.7.2 Notes on the FSoEMaster 43099 ► Familiarise yourself with the following CODESYS functions! Function block FSoEMaster → Online help > Add-Ons > CODESYS Safety > field buses > FSoE > FSoEMaster The documentation of the function block FSoEMaster in the CODESYS online help is not correct.
SmartPLC SafeLine AC4S with fieldbus interfaces > Set process safety time Content Process safety time for the AC4S ......................93 Set variable components of the response time ..................99 43032 > 8.8.1 Process safety time for the AC4S 43005 Basic information: → "Process safety time" in the original device manual For calculating the process safety time of the entire system the following scenarios have to be distinguished: ...
Page 94
SmartPLC SafeLine AC4S with fieldbus interfaces The following table shows the meaning of the individual components of the AC4S: Component Description Possible values → Operating instructions / data sheet T(sensor) Response time of the safety sensor → Operating instructions / data sheet T(input) Response time of the safety input device ...
Page 95
SmartPLC SafeLine AC4S with fieldbus interfaces > Step 1: Calculate typical response times 43023 ► Calculate typical response times of the safety functions of the device: Without safe cross communication AS-i output Local output FSoE slave output 30 ms + 30 ms + 30 ms + AS-i input...
Page 96
SmartPLC SafeLine AC4S with fieldbus interfaces > Step 2: Calculate the response times of the safety function 43014 ► Make measurements for a real system. ► Ensure sufficient dimensioning of the watchdog times and task monitoring. ► Measure the maximum response time in all sections of the signal propagation path with safe fieldbus communication or safe cross communication.
Page 97
SmartPLC SafeLine AC4S with fieldbus interfaces > Step 3: Define watchdog times 43004 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.
Page 98
SmartPLC SafeLine AC4S with fieldbus interfaces > Step 4: Calculate the worst-case response time of the safety function 43029 The worst-case process safety time ► Calculate the worst case on the basis of the calculated and measured values. Without safe cross communication: AS-i output Local output FSoE slave output...
SmartPLC SafeLine AC4S with fieldbus interfaces > 8.8.2 Set variable components of the response time 43045 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: ...
SmartPLC SafeLine AC4S with fieldbus interfaces Configure safety task 43272 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 →...
(→ 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!
SmartPLC SafeLine AC4S with fieldbus interfaces > 9.1.1 Download Standard application to AC4S 43292 If standard network variables and safety network variables are used simultaneously: → Note: Projects with network variables (→ S. 104) To transfer standard application of the CODESYS project to AC4S: Requirements: >...
SmartPLC SafeLine AC4S with fieldbus interfaces > 9.1.2 Load safe application to AC4S 43105 →Note: In the event of simultaneous use of network variables and safety network variables: Projects with network variables (→ S. 104) On first log-in to the fail-safe controller the programmer is asked to enter an instance identification.
SmartPLC SafeLine AC4S with fieldbus interfaces 9.1.3 Note: Projects with network variables 43098 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: Create safety network variables ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > 9.1.5 Delete boot application via SD card 42410 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: ►...
SmartPLC SafeLine AC4S with fieldbus interfaces > Operating states AC4S 43140 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. > 9.2.1 Standard PLC 43365 >...
Page 107
SmartPLC SafeLine AC4S with fieldbus interfaces > Switch operating states 42549 To switch between the operating states of the standard application choose one of the following options: > Start Standard PLC application 42572 To start a Standard PLC application stored on the device: ...
SmartPLC SafeLine AC4S with fieldbus interfaces > 9.2.2 Fail-safe PLC 43291 Familiarise yourself with the following CODESYS functions! Introduction Safety Online → Online help > Add-Ons > CODESYS Safety > Online mode > Introduction: Safety online States of the safety controller →...
Page 109
SmartPLC SafeLine AC4S with fieldbus interfaces > Operation mode of the fail-safe PLC 43141 The fail-safe PLC of AC4S can be operated in the following modes: Offline mode In the offline mode the user is logged out of the fail-safe PLC or there is no connection between CODESYS and the fail-safe PLC (e.g.
Page 110
SmartPLC SafeLine AC4S with fieldbus interfaces > States of the safe application 43022 The safe application on the fail-safe PLC of AC4S can take the following states: The safe application is executed (cyclic processing). STOP The safe application is not executed. ...
Page 111
SmartPLC SafeLine AC4S with fieldbus interfaces > Change between the states 43261 Following status diagram shows the relations and possible transitions between the individual operating modes and the states of the fail-safe PLC: Log-in with download ([Online] > [Login]) Start boot application ([Debug] > [Start]) Start log-out again with boot application Create boot application ([Online] >...
SmartPLC SafeLine AC4S with fieldbus interfaces > Reset Content Standard-SPS ............................112 Fail-safe PLC ............................114 39674 > 9.3.1 Standard PLC 43368 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).
Page 113
SmartPLC SafeLine AC4S with fieldbus interfaces > Reset the standard application (warm) 42524 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.
SmartPLC SafeLine AC4S with fieldbus interfaces > 9.3.2 Fail-safe PLC 43290 > Supported types of reset 43031 The following table shows the types of reset supported by the device-internal fail-safe PLC and the resulting system behaviour: Type of reset System behaviour Triggering actions ...
SmartPLC SafeLine AC4S with fieldbus interfaces > Display web visualisation 42437 To display the created web visualisation: Requirements: > PC/laptop is connected to the configuration interface (X3) of the device (→ device manual: Configuration interface: connection concepts) CODESYS Standard PLC appliation ►...
Page 119
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_ASi_PHY_Dat 42416 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42417 The FB reads the physical data of the selected AS-i master and provides the values. > Input parameters 42582 Parameter Data type...
Page 120
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42610 Parameter Data type Description Possible values BOOL Voltage source (Power Source) FALSE Unit is supplied via Aux. TRUE Unit is supplied via AS-i. BOOL Power24-Modul (PM) FALSE Power24 module missing. TRUE Power24 module is inserted.
Page 121
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LAS 42598 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42415 The FB reads the list of activated slaves (LAS) of the selected AS-i master and provides the values. >...
Page 122
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42621 Parameter Data type Description Possible values dwLAS_SA_Slaves DWORD List of the active S/A slaves. Each bit Per bit: represents an AS-i address: Bit 0 (LSB) = address 0 No single/A slave available Single/A slave available Bit 31 (MSB) = address 31/31A dwLAS_B_Slaves...
Page 123
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LDS 42595 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42436 The FB reads the list of detected slaves (LDS) of the selected AS-i master and provides the values. >...
Page 124
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42618 Parameter Data type Description Possible values dwLDS_SA_Slaves DWORD List of detected S/A slaves. Each bit Per bit: represents an AS-i address: Bit 0 (LSB) = address 0 no slave detected slave detected ...
Page 125
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LPS 42605 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42431 The FB reads the list of projected slaves (LPS) at the selected AS-i master and provides the values. >...
Page 126
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42576 Parameter Data type Description Possible values dwLPS_SA_Slaves DWORD List of the projected S/A slaves. Each Per bit: bit represents an AS-i address: Bit 0 (LSB) = address 0 Slave not projected Slave projected ...
Page 127
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LCE 42599 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42405 The FB reads the list of configuration errors (LCE) of the selected AS-i master and provides the values.
Page 128
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42622 Parameter Data type Description Possible values dwLCE_SA_Slaves DWORD List of configuration errors of the S/A Per bit: slaves. Each bit represents an AS-i address: No configuration error Bit 0 (LSB) = address 0 Configuration error Bit 31 (MSB) = address 31/31A dwLCE_B_Slaves...
Page 129
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LCEAS 42596 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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.
Page 130
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42623 Parameter Data type Description Possible values dwLCEAS_SA_Slaves DWORD List of configuration errors of the S/A Per bit: slaves. Each bit represents an AS-i address: No configuration error - additional slave ...
Page 131
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LCEMS 42593 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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.
Page 132
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42620 Parameter Data type Description Possible values dwLCEMS_SA_Slaves DWORD List of configured but missing S/A Per bit: slaves. Each bit represents an AS-i address: No configuration error - Bit 0 (LSB) = address 0 missing slave Slave is projected but not Bit 31 (MSB) = address 31/31A...
Page 133
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LDAE 42594 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42435 The FB reads the double address errors (LDAE) of the selected AS-i master and provides the values in a list.
Page 134
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42617 Parameter Data type Description Possible values dwLDAE_SA_Slaves DWORD List of the double address errors. Per bit: Each bit represents an AS-i address: Bit 0 (LSB) = address 0 No double address error Double address error Bit 31 (MSB) = address 31/31A dwLDAE_B_Slaves...
Page 135
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_LPF 42600 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42439 The FB reads the list of peripheral faults (LPF) of the selected AS-i master and provides the values. >...
Page 136
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42619 Parameter Data type Description Possible values dwLPF_SA_Slaves DWORD List of peripheral faults on S/A slaves. Per bit: Each bit represents an AS-i address: Bit 0 (LSB) = address 0 No peripheral fault Peripheral fault detected Bit 31 (MSB) = address 31/31A...
Page 137
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_CDI 42406 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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.
Page 138
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42611 Parameter Data type Description Possible values awCDI ARRAY [0...63] Configuration data of the slaves at the Per Word: OF WORD selected AS-i master Bits 0...3: I/O-Code Bits 4...7: ID-Code Bits 8...11: ID1-Code Bits 12...15: ID2-Code xReady BOOL...
Page 139
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_PCD 42607 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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. >...
Page 140
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42534 Parameter Data type Description Possible values awPCD ARRAY [0...63] Permanent configuration files of the per word: OF WORD slaves on the selected AS-i master Bits 0...3: I/O-Code Bits 4...7: ID-Code Bits 8-11: ID1-Code Bits 12-15: ID2-Code Data in Word 0 is invalid!
Page 141
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_InputParameter 42597 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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.
Page 142
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42616 Parameter Data type Description Possible values abList_SA_Slave ARRAY[0..31] List of output parameters of S/A Per byte: slaves in the selected AS-i master. OF BYTE Bits 0...3: P0-P3 Each byte contains the output parameters of an AS-i slave.
Page 143
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_OutputParameter 42606 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > 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.
Page 144
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42533 Parameter Data type Description Possible values abList_SA_Slave ARRAY[0..31] List of output parameters of S/A Per byte: slaves in the selected AS-i master. OF BYTE Bits 0...3: P0-P3 Each byte contains the output parameters of an AS-i slave.
Page 145
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_AddressMode 42565 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42425 The FB activates/deactivates the parameter "Automatic addressing" for the selected AS-i master. > Input parameters 42587 Parameter Data type Description Possible values...
Page 146
SmartPLC SafeLine AC4S with fieldbus interfaces > > Set_ASi_Config 42566 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42430 The FB activates/deactivates the parameters "double address recognition" and "earth fault detection" for the selected AS-i master. >...
Page 147
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42532 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 148
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_LPS 42567 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42426 The FB changes the list of projected slaves (LPS) in the selected AS-i master. > Input parameters 42629 Parameter Data type...
Page 149
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42529 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 150
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_Mode 42564 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42427 The FB changes the operating mode (protected operation, projection mode) of the selected AS-i master. > Input parameters 42630 Parameter Data type...
Page 151
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42531 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 152
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_PCD 42561 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42428 The FB changes the configuration file (Permanent Configuration Data = PCD) of the slaves at the selected AS-i master. >...
Page 153
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42613 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 154
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_ProjectAll 42562 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42429 The FB starts the projection adaptation on the selected AS-i master. > Input parameters 42591 Parameter Data type Description Possible values xExecute...
Page 155
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_SlaveAddress 42563 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42421 The FB changes the address of the selected AS-i slaves. > Input parameters 42628 Parameter Data type Description Possible values xExecute...
Page 156
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42541 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 157
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_SlaveExtendedID1 42568 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42420 The FB changes the Extended ID1 of the selected AS-i slave. > Input parameters 42625 Parameter Data type Description Possible values xExecute...
Page 158
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42535 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 159
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_SlaveParameter 42573 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42422 The FB changes the parameters of the selected AS-i slave. > Input parameters 42626 Parameter Data type Description Possible values xExecute...
Page 160
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42542 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 161
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_ASi_Data 42413 Function block type: Function block (FB) Library: ACnnnn_Utils.library 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 (→...
Page 162
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42609 Parameter Data type Description Possible values xActive BOOL Signal confirms the FB execution FALSE Function block is inactive TRUE FB is active (=is executed) wCycleCount WORD Counter for FB cycles that were fully Number in hexadecimal representation run through xError...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.1.2 Overview: System functions (FB_System) Content Get_FieldbusInfo ..........................164 QuickSetupASi_Master ........................166 Set_TimeDate ............................168 42528...
Page 164
SmartPLC SafeLine AC4S with fieldbus interfaces > Get_FieldbusInfo 42512 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42423 The FB reads information about the fieldbus and provides the values in a list. The following information are read: ...
Page 165
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42543 Parameter Data type Description Possible values aw_InfoList ARRAY[0...18] Fieldbus information Position of the data within the individual words → OF WORD DS18: Fieldbus information xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed.
Page 166
SmartPLC SafeLine AC4S with fieldbus interfaces > QuickSetupASi_Master 42519 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42407 The FB executes the quick setup routine on the selected AS-i masters. > Input parameters 42603 Parameter Data type Description Possible values...
Page 167
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42615 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Page 168
SmartPLC SafeLine AC4S with fieldbus interfaces > Set_TimeDate 42574 Function block type: Function block (FB) Library: ACnnnn_Utils.library Symbol in CODESYS: > Description 42408 The FB sets the system time (time and date) of the device using the transmitted input values. >...
Page 169
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42612 Parameter Data type Description Possible values xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed. executed. TRUE FB execution is completed. xBusy BOOL Signal indicates whether the FB is...
Enumeration types and complex variables Content Enumeration types (ENUM)........................170 Complex variables (STRUCT) ......................172 42434 In addition to the standard data types, the CODESYS package from ifm electronic also features the following enumeration types (ENUM) and complex variables (STRUCT): > Enumeration types (ENUM) 42432 The library ACnnnn_Utils provides the following enumeration types (ENUM): >...
Page 171
SmartPLC SafeLine AC4S with fieldbus interfaces > ASI_SLAVE (ENUM) 42506 Designation Description Variable Data type Value ASI_SLAVE Identifier for AS-i slaves Slave_1 Slave_2 Slave_3 Slave_4 Slave_5 Slave_6 Slave_7 Slave_8 Slave_9 Slave_10 ...
Page 172
SmartPLC SafeLine AC4S with fieldbus interfaces Complex variables (STRUCT) 42479 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.
Page 173
SmartPLC SafeLine AC4S with fieldbus interfaces ASI_DATA (STRUCT) 42510 Name Data type Description Possible values LDS_SA_Slave DWORD List of the active S/A slaves Each bit represents an AS-i address: 0 = no slave active 1 = slave active LDS_B_Slave DWORD List of active B slaves...
Page 174
SmartPLC SafeLine AC4S with fieldbus interfaces Name Data type Description Possible values ARRAY[0..63] Image of the current configuration One word is available per slave: OF WORD data Bits 0...3 = IO code (CDI = Configuration Data Image) Bits 4...7 = ID code Bits 8...11 = Extended ID1 code Bits 12...15 = Extended ID2 code →...
Page 175
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. Name Data type Description Possible values → binIO ASI_BIN_IO Binary input and output data ASI_BIN_IO (STRUCT) (→...
Page 176
SmartPLC SafeLine AC4S with fieldbus interfaces > ASI_ANA_IO (STRUCT) 42496 The structure contains the process data of the analogue input and output slaves. Name Data type Description Possible values → ana_IN_Slave ARRAY[1..31] OF Input data and status flags of the ASI_ANALOG_IN (STRUCT) ASI_ANALOG_ analogue AS-i slaves...
Page 177
SmartPLC SafeLine AC4S with fieldbus interfaces > ASI_ANALOG_IN_FLAGS (STRUCT) 42498 The structure contains the status flags of the analogue input slave. Name Data type Description Possible values BOOL Valid bit, channel 1 corresponds to the fifth word of an area comprising 5 words in the acyclic data ...
Page 178
SmartPLC SafeLine AC4S with fieldbus interfaces > ASI_ANALOG_OUT_FLAGS (STRUCT) 42503 The structure contains the status flags of the analogue output slave. Name Data type Description Possible values BOOL corresponds to the acyclic data record 8 (DS8) BOOL → DS8 –...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.2 Library ACnnnn_SYS_CMD.library Content ACnnnn_SysCmd ..........................179 42638 > 10.2.1 ACnnnn_SysCmd 42454 Function block type: Function block (FB) Library: ACnnnn_SYS_CMD.library 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: ...
Page 180
SmartPLC SafeLine AC4S with fieldbus interfaces > Input parameters 42602 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Don't execute FB TRUE Start one-time FB execution → uCommandID WORD ID of the command to be executed Table: System commands (→...
Page 181
SmartPLC SafeLine AC4S with fieldbus interfaces Table: AS-i master commands 42551 uCommandID Description / corresponding command DS2 – Digital slave inputs and master flags 0x0002 DS3 – Analogue inputs of the slaves 1(A)...15(B) 0x0003 DS4 – Analogue inputs of the slaves 16(A)...31(B) 0x0004 DS5 –...
Page 183
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 42614 Parameter Data type Description Possible values uCount WORD Number of valid bytes in pDataOut integer value in hexadecimal (uCount <= uSizeOut) representation xReady BOOL Signal indicates whether the execution FALSE FB is inactive or being of the FB is completed.
Page 184
SmartPLC SafeLine AC4S with fieldbus interfaces > Example: Change language setting of the device 42398 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...
Page 185
SmartPLC SafeLine AC4S with fieldbus interfaces > Example: Date / time / read NTP settings 42403 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...
Page 186
SmartPLC SafeLine AC4S with fieldbus interfaces > Example: Read LCEMS, LCEAS and LDAE of AS-i Master 2 42402 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...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.1 CtrlASi_InSlave 43258 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
Page 189
SmartPLC SafeLine AC4S with fieldbus interfaces Output parameters 43077 Parameter Data type Description Possible values Chan_A BOOL Logical state of the safe signal FALSE channel A TRUE (= 1st code half-sequence) Logical state of the safe signal Chan_B BOOL FALSE channel B TRUE (= 2nd code half-sequence)
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.2 CtrlASi_OutSlave 43257 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
Page 191
SmartPLC SafeLine AC4S with fieldbus interfaces > Input parameters 42975 Parameter Data type Description Possible values Enable BOOL FB activation FALSE FB is deactivated. TRUE FB is activated. ASi_SlaveAdr Address of the safe AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the safe AS-i Master 1...
Page 192
SmartPLC SafeLine AC4S with fieldbus interfaces > Output parameters 43078 Parameter Data type Description Possible values Ready BOOL Status of the FB processing FALSE FB not completely processed or (validity of the output signals) deactivated; signals are invalid TRUE FB completely processed; signals are valid Error BOOL...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.3 CtrlASi_ResetAllSlaves 43260 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > Description 43299 Function block (FB) to control the logical device of several safe AS-i input slaves of an AS-i network (ASi_Master).
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.4 CtrlLocalInputs 43259 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
Page 195
SmartPLC SafeLine AC4S with fieldbus interfaces Output parameters 43075 Parameter Data type Description Possible values Chan_A BOOL Logic state of signal channel A FALSE = TRUE = Chan_B BOOL Logical state of the safe signal FALSE = channel B TRUE = Ready BOOL Status of the FB processing...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.5 Ctrl_SetDiagInfo 43245 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
Page 197
SmartPLC SafeLine AC4S with fieldbus interfaces > Input parameter 43017 Parameter Data type Description Possible values Enable BOOL FB activation FALSE FB is deactivated. TRUE FB is activated. FB_Type ID of the function block (is 0x3D6B SF_Antivalent assigned by the programmer) 0x5096 SF_EDM 0x50A9...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.6 GetLocalInput 43013 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.3.7 SetLocalOutput 43136 Function block type: Function block (FB) Library: sf_io.library Symbol in CODESYS: > 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: ...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.4.1 Remarks about logical devices Content State machines for logical preprocessing ...................201 States ..............................201 State transitions ............................201 Diagnostic messages ...........................204 43070 > State machines for logical preprocessing 42985 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.
Page 202
SmartPLC SafeLine AC4S with fieldbus interfaces > States of the input signals 43002 Depending on the type of logical device the following definitions apply: AS-i slaves Safe AS-i input slaves transmit their input data as unambiguous code sequences. A code sequence consists of 2 half-sequences with each half sequence representing a signal channel.
Page 203
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.
Page 204
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.
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_forced 43133 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
Page 207
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43069 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 208
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 43000 The state diagram shows the logical signal evaluation of the logical device: >...
Page 209
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_independent 43115 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
Page 211
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43072 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 212
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42999 The state diagram shows the logical signal evaluation of the logical device: >...
Page 213
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_conditionally_dependent 43132 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
Page 215
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43067 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 216
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42994 The state diagram shows the logical signal evaluation of the logical device: >...
Page 217
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_dependent 43131 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43254 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_ASi_dependent detects the switching states of the two signal channels/contacts of the AS-i slave (ASi_SlaveAdr, ASi_Master).
Page 219
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43068 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 220
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42992 The state diagram shows the logical signal evaluation of the logical device: >...
Page 221
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_dependent_filter_w_testreq 43134 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43305 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_dependent_filter_w_testreq detects the switching states of the two contacts/channels of the AS-i slave (ASi_SlaveAdr, ASi_Master).
Page 223
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43065 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 224
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42991 The state diagram shows the logical signal evaluation of the logical device: >...
Page 225
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_dependent_filter_ntestreq 43135 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43304 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_dependent_filter_ntestreq detects the switching states of the two signals/channels of the AS-i slave (ASi_SlaveAdr, ASi_Master).
Page 227
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43055 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 ASi_Master AS-i master to which the AS-i AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 228
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42989 The state diagram shows the logical signal evaluation of the logical device: >...
Page 229
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_ASi_dependent_filter_nshutdown 43130 Device type: AS-i slave (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43301 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_dependent_filter_nshutdown detects the switching states of the two contacts/channels of the AS-i slave (ASi_SlaveAdr, ASi_Master).
Page 231
SmartPLC SafeLine AC4S with fieldbus interfaces Parameter data 43054 Parameter Data type Description Possible values ASi_SlaveAdr Address of the AS-i slave Slave address 1 slave address 31 AS-i master to which the AS-i ASi_Master AS-i Master 1 slave is connected AS-i Master 2 DisableLogging BOOL...
Page 232
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42990 The state diagram shows the logical signal evaluation of the logical device: >...
Page 233
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_OUTcontrol_ASi 43114 Device type: AS-i slave (output) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43298 Logical device for a safe AS-i control slave (ASi_SlaveAdr, ASi_Master) SF_OUTControl_ASi generates a safe output signal (S_OUT) from the configured process data value. The safe output signal controls the AS-i control slave that generates a safe code sequence with which one or several safe AS-i output slaves can be enabled.
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_forced 43088 Interface type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43314 Logical device for safe sensors with 2 positively-driven contacts/channels SF_IN_local_forced detects the two signals of a safe sensor at the local I/O interface (IN_Channel_A, IN_Channel_B).
Page 237
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43058 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 IN_Channel_B Local input to which sensor Local input IN1 channel B is connected.
Page 238
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 43001 The state diagram shows the logical signal evaluation of the logical device: >...
Page 239
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_independent 43093 Interface type: Local I/O interface (input) Library: sf_io.library Symbol in CODESYS: > 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).
Page 241
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43052 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 IN_Channel_B Local input to which sensor Local input IN1 channel B is connected.
Page 242
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42998 The state diagram shows the logical signal evaluation of the logical device: >...
Page 243
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_conditionally_dependent 43097 Interface type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
Page 245
SmartPLC SafeLine AC4S with fieldbus interfaces was created by a local output TRUE Test signal is evaluated Transmission of the event Following states of the state diagram DisableLogging BOOL FALSE messages to OSC of the device are transmitted to the OSC: * ...
Page 246
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42986 The state diagram shows the logical signal evaluation of the logical device: >...
Page 247
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_dependent 43096 Interface type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43313 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_local_dependent detects the switching states of the two input channels (IN_Channel_A, IN_Channel_B).
Page 249
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43057 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 IN_Channel_B Local input to which sensor Local input IN1 channel B is connected.
Page 250
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42995 The state diagram shows the logical signal evaluation of the logical device: >...
Page 251
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_dependent_filter_testreq 43089 Interface type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43306 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_local_dependent_filter_w_testreq detects the switching states of the two input channels (IN_Channel_A, IN_Channel_B).
Page 253
SmartPLC SafeLine AC4S with fieldbus interfaces Parameter data 43048 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 Local input to which sensor Local input IN1 IN_Channel_B channel B is connected.
Page 254
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42996 The state diagram shows the logical signal evaluation of the logical device: >...
Page 255
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_dependent_filter_ntestreq 43090 Interface type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43309 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_local_dependent_filter_w_testreq detects the switching states of the two input channels (IN_Channel_A, IN_Channel_B).
Page 257
SmartPLC SafeLine AC4S with fieldbus interfaces Parameter data 43047 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 Local input to which sensor Local input IN1 IN_Channel_B channel B is connected.
Page 258
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42987 The state diagram shows the logical signal evaluation of the logical device: >...
Page 259
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_IN_local_dependent_filter_nshutdown 43094 Device type: Local I/O interface (input) Library: sf_logicalinterfaces.library Symbol in CODESYS: > Description 43308 Logical device for a safe sensor with 2 interdependently acting contacts/channels SF_IN_local_dependent_filter_nshutdown detects the switching states of the two input channels of the local I/O interface (IN_Channel_A, IN_Channel_B).
Page 261
SmartPLC SafeLine AC4S with fieldbus interfaces > Parameter data 43046 Parameter Data type Description Possible values IN_Channel_A Local input to which sensor Local input IN1 channel A is connected. local input IN8 IN_Channel_B Local input to which sensor Local input IN1 channel B is connected.
Page 262
SmartPLC SafeLine AC4S with fieldbus interfaces State diagram (state machine) 42983 The state diagram shows the logical signal evaluation of the logical device: >...
Page 263
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: DiagCode Name...
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_OUT_local_single 43091 Interface type: Local I/O interface (output) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_OUT_local_dual 43092 Device type: Local I/O interface (output) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
SmartPLC SafeLine AC4S with fieldbus interfaces > SF_OUT_local_testpulse 43109 Device type: Local I/O interface (output) Library: sf_logicalinterfaces.library Symbol in CODESYS: > 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).
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.5 Error codes: Safe AS-i slaves 43288 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.
Page 268
SmartPLC SafeLine AC4S with fieldbus interfaces DiagCode Error name (FB) Error description sequence in the AS-i network Errorcode received from AS-i-Control Errors 0x5825 and 0x5826 can occur simultaneously 0x5826 ASi_HW_CONFIG_SLAVE_TEACH_ERROR_CODESEQUENCE_RULES Error when the code sequence is taught Errors 0x5825 and 0x5826 can Errorcode received from AS-i-Control occur simultaneously...
SmartPLC SafeLine AC4S with fieldbus interfaces > 10.6 Error codes: Local I/O interface 43289 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 (→...
SmartPLC SafeLine AC4S with fieldbus interfaces Configure Standard PLC ............... 22 Index Configure system ................... 58 Configure task processing ..............69 Configure visualisation ................66 Control interface of the ifm function blocks ........... 57 Access standard input and output data ..........50 Create a visualisation ................
Page 271
SmartPLC SafeLine AC4S with fieldbus interfaces Get_CDI ....................137 Operating states AC4S ................ 106 Get_FieldbusInfo ................. 164 Operation ..................... 101 Get_InputParameter ................141 Operation mode of the fail-safe PLC ........... 109 Get_LAS ....................121 Options to access input and output data ..........50 Get_LCE ....................
Page 272
SmartPLC SafeLine AC4S with fieldbus interfaces Safe fieldbus communication..............90 Step 2 Safety instructions ................... 9 Calculate the response times of the safety function ........96 Step 3 SafetyFSoEMaster library ..............81 Define watchdog times .................. 97 SafetyPLCopen library ................80 Step 4 SafetyStandard library ................
Need help?
Do you have a question about the AC402S and is the answer not in the manual?
Questions and answers