Programming Manual
CODESYS for
AS-i Fieldbus Gateways
AC1401/02
AC1411/12
AC1421/22
English
2015-04-23
7391013_00_UK
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Contents
>
Cotents
1 Preliminary note 4
1.1 Legal and copyright information ...........................................................................................5
1.2 The purpose of the document ..............................................................................................5
1.3 Symbols and formats used ..................................................................................................6
1.4 Notes on how to get started .................................................................................................7
1.5 History of the instructions .....................................................................................................7
2 Safety instructions 8
2.1 Required background knowledge ........................................................................................9
2.2 Please note! .........................................................................................................................9
2.3 Start-up behaviour of the controller....................................................................................10
2.4 Tampering with the unit ......................................................................................................10
3 System requirements 11
3.1 Hardware ............................................................................................................................12
3.2 Software .............................................................................................................................12
3.3 Licensing ............................................................................................................................12
4 Installation 13
4.1 Programming software CoDeSys .......................................................................................14
4.1.1 Installation of the CODESYS Development System ................................................................... 14
4.2 ifm AS-i Package................................................................................................................15
4.2.1 Components of the ifm AS-i package ......................................................................................... 16
5 Target Settings 18
5.1 Create CODESYS project ..................................................................................................19
5.1.1 Create new project with AC14nn ................................................................................................ 20
5.1.2 Add AC14nn to a project ............................................................................................................ 22
5.1.3 Overview: Project structure with AC14nn ................................................................................... 23
5.2 Configure Ethernet interface ..............................................................................................25
5.2.1 Available fieldbus stacks ............................................................................................................ 25
5.2.2 Add fieldbus stack ...................................................................................................................... 26
6 PLC configuration 27
6.1 Configure AC14nn controller ..............................................................................................28
6.1.1 Communication settings ............................................................................................................. 28
6.1.2 Applications ................................................................................................................................ 30
7 PLC programming 31
7.1 Supported programming languages ..................................................................................32
7.2 Create PLC application ......................................................................................................33
7.2.1 Use remanent variables.............................................................................................................. 33
7.2.2 Use complex variables ............................................................................................................... 33
7.2.3 Task configuration ...................................................................................................................... 34
2
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Contents
8 Operation 54
8.1 Activate CODESYS PLC ....................................................................................................55
8.2 Load application on AC14nn ..............................................................................................56
8.3 Operating states of the CODESYS PLC ............................................................................57
8.3.1 Display current operating state ................................................................................................... 57
8.3.2 Switch operating states .............................................................................................................. 58
8.4 Reset ..................................................................................................................................60
8.4.1 Supported reset variants ............................................................................................................ 61
8.4.2 Reset PLC application ................................................................................................................ 61
8.5 Display web visualisation ...................................................................................................62
8.6 Delete application from AC14nn ........................................................................................63
9 Annex 64
9.1 ifm AS-i function libraries ...................................................................................................65
9.1.1 ACnnnn_Utils.library ................................................................................................................... 66
9.1.2 ACnnnn_SYS_CMD.library ...................................................................................................... 128
9.2 Acyclic data records .........................................................................................................137
9.2.1 Overview: Acyclic data sets ...................................................................................................... 137
9.2.2 Description of the data records (DSx)....................................................................................... 138
9.3 Command channels .........................................................................................................168
9.3.1 Principle of the command channels .......................................................................................... 169
9.3.2 System commands ................................................................................................................... 170
9.3.3 AS-i master commands ............................................................................................................ 187
10 Index 253
3
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Preliminary note Legal and copyright information
1 Preliminary note
4
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Preliminary note Legal and copyright information
>
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
IO-Link ( www.io-link.com) is the property of the PROFIBUS Nutzerorganisation e.V., Germany
Microsoft is the property of the Microsoft Corporation, USA ( www.microsoft.com)
PROFIBUS is the property of the PROFIBUS Nutzerorganisation e.V., Germany ( www.profibus.com)
PROFINET is the property of the PROFIBUS Nutzerorganisation e.V., Germany
Windows is the property of the Microsoft Corporation, USA
>
Document Manufacturer
User documentation CODESYS V3, installation and first steps 3S-Smart Software Solutions GmbH
Online help for CODESYS V3 programming system 3S-Smart Software Solutions GmbH
Device manual AS-i Fieldbus gateway AC14nn, firmware V3.0.24 or higher ifm electronic gmbh
5
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Preliminary note Symbols and formats used
>
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
... Request for action
> ... Reaction, result
... "see"
abc Cross-reference
123 Decimal number
0x123 Hexadecimal number
0b010 Binary number
[...] Designation of pushbuttons, buttons or indications
6
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Preliminary note Notes on how to get started
>
For information about the hardware and software requirements see section System requirements
( page 11).
Familiarise yourself with the programming software CODESYS version 3.5.3.6!
The installation of the programming software CODESYS Development System 3.5.3.6 and of the ifm
AS-i package are described in section Installation ( page 13).
Information on the integration of the project into a CODESYS project is given in section Target
Settings ( page 18).
Information about the programming of the device-internal CODESYS PLC and about the use of the
functions of the ifm AS-i package is given in section PLC programming ( page 31).
Information about the permanent operation of the unit and the control of the PLC applications are
contained in section Operation ( page 54).
The detailed reference of the ifm AS-i function blocks (FB) is given in section ifm AS-i function libraries
( page 65) in the Appendix.
>
1.0.1 Correction of the available fieldbus stack for the configuration interface 29 Aug 2014
( Available fieldbus stacks ( page 25))
1.0.2 Correction of required CODESYS edition ( Software ( 12)) 18 Feb 2015
1.0.3 Correction of description of the system command 267 in command overview ( Overview: 23 Apr 2015
system commands ( 170))
7
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Safety instructions History of the instructions
2 Safety instructions
8
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Safety instructions Required background knowledge
>
This document is intended for people with knowledge of control technology and PLC programming
with IEC 61131-3.
To program the PLC, the people should also be familiar with the CODESYS software.
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. The document contains information about the correct
handling of the product.
Read this document before use to familiarise yourself with operating conditions, installation and
operation. Keep this document during the entire duration of use of the device.
Follow the safety instructions.
>
No characteristics are warranted with the information, notes and examples provided in this manual.
With the drawings, representations and examples given no responsibility for the system is assumed
and no application-specific particularities are taken into account.
The manufacturer of the machine/equipment is responsible for ensuring the safety of the
machine/equipment.
Follow the national and international regulations of the country in which the machine/installation is
to be placed on the market!
WARNING
Non-observance of these instructions can lead to property damage or bodily injury!
ifm electronic gmbh does not assume any liability in this regard.
The acting person must have read and understood the safety instructions and the corresponding
chapters in this manual before working on and with this device.
The acting person must be authorised to work on the machine/equipment.
The acting person must have the qualifications and training required to perform this work.
Adhere to the technical data of the devices!
You can find the current data sheet on ifm's homepage at:
www.ifm.com > Select your country > [Data sheet search] > (article number.) > [Technical data
in PDF format]
Note the installation and wiring information as well as the functions and features of the devices!
supplied installation instructions or on ifm's homepage:
www.ifm.com > Select your country > [Data sheet search] > (article number.) > [Operating
instructions]
Please note the corrections and notes in the release notes for the existing documentation,
available on the ifm website:
www.ifm.com > Select your country > [Data sheet search] > (article number.) > [Operating
instructions]
>
9
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Safety instructions Start-up behaviour of the controller
WARNING
Danger due to unintentional and dangerous start of machine or plant sections!
When creating the program, the programmer must ensure that no unintentional and dangerous
start of machines or plant sections after a fault (e.g. e-stop) and the following fault elimination can
occur!
Realise restart inhibit!
In case of an error, set the outputs concerned to FALSE in the program!
WARNING
Tampering with the units can affect the safety of operators and machinery!
Tampering with the units is not allowed.
In case of non-compliance our liability and warranty expire.
Do not open the devices!
Do not insert any objects into the devices!
Prevent metal foreign bodies from penetrating!
10
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
System requirements Tampering with the unit
3 System requirements
Hardware ................................................................................................................................................12
Software..................................................................................................................................................12
Licensing.................................................................................................................................................12
16903
11
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
System requirements Hardware
>
3.1 Hardware
16904
3.2 Software
16905
To program the device-internal PLC of the ifm AS-i fieldbus gateways (AC14nn), the following software
components are required:
Programming software CODESYS Development System, version 3.5.3.6
www.3s-software.com
Package file "CoDeSys for ifm ASinterface products" (ifm_AC14nn_AC4nnS_1_1_0_3.package)
www.ifm.com/ifmde/web/asi-download.htm
>
3.3 Licensing
16906
All models of the device family AC14nn, to be programmed using the CODESYS Development System
V3.x, must be licensed. A valid license label can be purchased via ifm's website.
Use of the device-internal CODESYS PLC of AC14nn without valid license constitutes a
violation of applicable law!
12
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Installation Licensing
4 Installation
13
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Installation Programming software CoDeSys
>
The CODESYS Development System (short: CODESYS) serves as platform for the creation of PLC
applications according to the standard IEC 61131-3.
>
14
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Installation ifm AS-i Package
>
15
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Installation ifm AS-i Package
>
ifm provides the package "CODESYS for ASinterface Products" (short: ifm AS-i package) for the
CODESYS programming software. It contains the following components:
>
16
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Installation ifm AS-i Package
>
17
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings ifm AS-i Package
5 Target Settings
18
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
>
19
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
>
20
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
21
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
>
22
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
>
A CODESYS project contains all components for the programming and administration of PLC
applications. All components of a project are shown in the window [Devices] in a hierarchic tree view.
CODESYS projects with an AC14nn have the following structure:
Interface [ASi_Master_2] contains the process images of the slaves at AS-i master 2 ( )
Interface [Fieldbus_Interface] contains the input and output data of the Fieldbus interface.
FieldBusData_ shows all the data that is transmitted from and to the device via the fieldbus.
ASi_1/2_binaryOut contains data that the fieldbus controller sends to the digital AS-i slaves.
ASi_1/2_analogOut contains data that the fieldbus controller sends to the analogue AS-i slaves.
23
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Create CODESYS project
24
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Configure Ethernet interface
>
>
The Ethernet internet (X3) of the device can be declared and operated as an additional fieldbus
interface. For this, a fieldbus stack must be assigned to the interface in CODESYS. Presently, the
device supports the following fieldbus stacks:
25
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Target Settings Configure Ethernet interface
>
26
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC configuration Configure Ethernet interface
6 PLC configuration
27
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC configuration Configure AC14nn controller
>
>
The [Device] > [Communication Settings] tab offers options for the adjustment of the connection
between the CODESYS programming software and the AC14nn.
>
To configure the connection between CODESYS programming software and the AC14nn:
1 Preparations
Connect CODESYS PC/laptop and configuration interface (X3) of the device.
Optional: Adjust IP settings of the Ethernet interfaces.
2 Select gateway
In the editor window: Select [Device] > [Communication Settings] tab.
> Window shows the active communication settings.
28
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC configuration Configure AC14nn controller
> If not successful: Check Ethernet connection and IP settings and repeat process.
4 Set active communication path
Highlight AC14nn and activate the button [Set active path].
> AC14nn contains the attribute (active) and will be highlighted (font weight bold)
> Communication channel between CODESYS PC laptop and AC14nn is set and active.
29
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC configuration Configure AC14nn controller
>
6.1.2 Applications
18495
The [Device] > [Applications] tab offers display and administration options for applications that are
stored on the AC14nn.
>
30
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Configure AC14nn controller
7 PLC programming
Familiarise yourself with the programming according to the standard IEC 61131-3!
Create example program
Online help > Quickstart > Create and run a project
Familiarise yourself with the following CODESYS functions!
Program editor
Online help > Editors > Editors for the IEC Programming Languages and CFC
Programming reference
Online help > Programming Reference
Menu commands for programing
Online help > Menu Commands sorted by Categories > FBD/LD/IL
Function libraries
Online help > Libraries
31
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Supported programming languages
>
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
32
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Create PLC application
>
>
The CODESYS PLC of the AC14nn supports the use of remanent variables. Variables declared with
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 PLC application is
reset ( Supported reset variants ( page 61)).
>
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:
>
33
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Create PLC application
NOTICE
Risk of reduced device performance!
The basic settings of the task properties can cause high system utilisation in case of extensive
applications or projects with several tasks. This can lead to a poor device performance with unwanted
system behaviour.
Set the type of the corresponding task to "Freewheeling" in the task configuration!
34
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
35
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
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 PLC application and
thereby to access the input and outputs data of the device:
Access to IEC address via AT declaration
Definition of an ALIAS for an IEC address
Link a program variable to an IEC address (mapping)
>
In order to facilitate the access to inputs and outputs of peripheral devices, AC14nn projects offer
clearly defined interfaces ( Overview: Project structure with AC14nn ( page 23)).
Depending on the active controller instance of the outputs of the AS-i slaves (manually, gateway,
PLC), the CODESYS data mapper only updates certain interfaces.
The following table shows which interfaces in the project tree the programmer can access and read in
the individual operating modes (e.g. for variable linking):
When linking variables with inputs and outputs, only use the active interfaces in
the project tree!
36
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
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
Analogue input and output data of the slaves at AS-
i master 1
Consider validity of the interface data ( Validity of the interface data ( page 36))!
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) ( page 124))
>
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]
37
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
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]
38
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
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.
Output data of the AS-i slaves that is transmitted
by the higher-level fieldbus PLC.
Consider validity of the interface data ( Validity of the interface data ( page 36))!
>
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:
If the device is operated as a fieldbus gateway (output control = gateway), the fieldbus controller
sends the output data of the AS-i slaves in cycles via the fieldbus. The data is structure like an AS-i
network. The programmer can access this data via IEC addresses.
39
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Access input and output data
>
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_binaryOut]
>
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]
40
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
The CODESYS package "CoDeSys for ifm ASinterface products" offers different functions for the
programming of the device-internal CODESYS controller. In the following paragraphs, 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:
41
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
The following figure shows the relation between the connections of the control signals:
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.
42
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
Function blocks which, when activated, cyclically perform their function until they are deactivated have
the following control inputs and outputs:
43
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
To configure the system of the device, use the following function blocks:
>
To configure the AS-i master(s) of the device, use the following function blocks:
>
To configure the AS-i slaves, that are connected to the device, use the following function blocks:
44
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
To manage the AS-i networks controlled by AC14nn, use the following function blocks:
>
Set_ProjectAll Execute projection adaptation on one AS-i master Set_ProjectAll ( page 103)
Set_LPS Change list of the projected slaves (LDS) Set_LPS ( page 98)
Set_PCD Change permanent projecting data (IO, ID, ID1, ID2) of Set_PCD ( page 101)
all slaves on the AS-i master
>
To read the network settings cyclically and offer them in the application:
Get_ASi_Data Read the following datasets for network management in Get_ASi_Data ( page 110)
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)
Alternatively, this data can be read separately with the following FB:
45
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
>
>
>
46
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use functions of the ifm AS-i package
>
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 ( page 129)).
System command overview: Table: System commands ( page 130)
Overview AS-i master commands: Table: AS-i master commands ( page 131)
47
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use web visualisations
>
48
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use web visualisations
>
The AC14nn supports web visualisations (WebVisu). A web visualisation offers the possibility to have
a graphic display of process and control data using a web browser.
>
VISU_TASK:
Configuration options for the parameters of the
visualisation task (request interval, watchdog, etc.)
Set parameters for visualisation task ( page 51)
VisualizationManager:
Administration of several visualisations (determine start
visualisation, change name of the .htm file, adjust
interval for updates)
Change properties of the web visualisation
( page 52)
MyWebVisu:
Area for the creation of the web visualisation
Create web visualisation ( page 50)
49
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use web visualisations
>
50
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use web visualisations
>
Each web visualisation is executed separately from the program code in a separate task. Take the
following steps to configure the web visualisation:
>
51
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Use web visualisations
>
Enter the name by which the web visualisation is to be accessible in the web browser in the field [Name
of .htm file] ( Display web visualisation ( page 62)).
52
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
PLC programming Testing the PLC application
>
To ensure permanent operation without errors in industrial environments, the created PLC applications
must be tested in detail and possible faults must be remedied.
53
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Testing the PLC application
8 Operation
54
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Activate CODESYS PLC
>
To enable the processing of the created PLC application, the device-internal CODESYS PLC must be
activated in the setup menu of AC14nn.
If the PLC application is to have a write access to the outputs of the AS-i slaves, the CODESYS PLC
must be activated additionally as controller instance of the AS-i slave outputs.
The following table shows the possible combinations of the parameters [Output access] and [Use PLC]
as well as the rights of the CODESYS PLC resulting thereof.
Gateway no yes no
yes yes no
Manual no yes no
yes yes no
Legend:
* ... Value fixed (greyed out)
55
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Load application on AC14nn
>
56
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Operating states of the CODESYS PLC
>
All applications saved on the device are executed in separate tasks independently of each other. If the
device-internal CODESYS PLC is activated, each of these tasks can have the following operating
states:
If the device-internal PLC is activated and at least 1 application is saved on the device,
the PLC automatically goes into the RUN state.
>
Execute one of the following actions to display the current operating state of the PLC:
CODESYS:
> Application node in the project tree shows the status:
Connection with CODESYS PLC established.
PLC application is in the STOP state.
57
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Operating states of the CODESYS PLC
>
Select one of the following actions to switch between the operating states:
>
58
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Operating states of the CODESYS PLC
>
59
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Reset
>
8.4 Reset
60
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Reset
>
The following table shows the reset variants supported by the device-internal CODESYS PLC and the
resulting system behaviour:
A variable that has been declared without an initialisation value is initialised with the
standard initialisation value (e.g. INT = 0).
>
61
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Display web visualisation
>
<MyWebVisu> is the defined name of the web visualisation ( Change properties of the web visualisation
( page 52)).
62
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Operation Delete application from AC14nn
>
63
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Delete application from AC14nn
9 Annex
64
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ACnnnn_Utils.library ...............................................................................................................................66
ACnnnn_SYS_CMD.library ..................................................................................................................128
17128
65
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
9.1.1 ACnnnn_Utils.library
66
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_ASi_PHY_Dat .................................................................................................................................68
Get_LAS .................................................................................................................................................70
Get_LDS .................................................................................................................................................72
Get_LPS .................................................................................................................................................74
Get_LCE .................................................................................................................................................76
Get_LCEAS ............................................................................................................................................78
Get_LCEMS ...........................................................................................................................................80
Get_LDAE...............................................................................................................................................82
Get_LPF .................................................................................................................................................84
Get_CDI ..................................................................................................................................................86
Get_PCD ................................................................................................................................................88
Get_InputParameter ...............................................................................................................................90
Get_OutputParameter ............................................................................................................................92
Set_AddressMode ..................................................................................................................................94
Set_ASi_Config ......................................................................................................................................96
Set_LPS..................................................................................................................................................98
Set_Mode .............................................................................................................................................100
Set_PCD ...............................................................................................................................................101
Set_ProjectAll .......................................................................................................................................103
Set_SlaveAddress ................................................................................................................................104
Set_SlaveExtendedID1 ........................................................................................................................106
Set_SlaveParameter ............................................................................................................................108
Get_ASi_Data .......................................................................................................................................110
17459
67
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_ASi_PHY_Dat
16005
>
Description
16040
The FB reads the physical data of the selected AS-i master and provides the values.
>
Input parameters
16041
68
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16042
xPS BOOL Voltage source (Power Source) FALSE = unit is supplied via Aux.
TRUE = unit is supplied via AS-i.
xPM BOOL Power24-Modul (PM) FALSE = Power24 module missing.
TRUE = Power24 module is inserted.
xEF BOOL Earth fault FALSE = no earth fault
TRUE = supply voltage is asymmetric,
earth fault suspected.
xSE BOOL Status of the earth fault detection FALSE = earth fault detection does not
provide valid data (e.g. when
AS-i voltage is lacking).
TRUE = earth fault detection provides
valid data.
xPF1 BOOL Voltage <22.5 V (power fail 22.5 V) FALSE = no AS-i power fault (Classic
APF)
TRUE = AS-i power fail (Classic APF),
i.e. AS-i voltage is below
22.5 V
xPF2 BOOL Voltage <19.0V (power fail 19V) FALSE = no AS-i power fail (24V-APF)
TRUE = AS-i power fail (24V-APF), i.e.
AS-i voltage is below 19.0 V
wVoltage1 WORD Voltage AS-i+ to AS-i- in mV
wVoltage2 WORD Voltage FE to AS-i in mV
iSymmetry INT Symmetry in % (-100% ... +100%) 0xFF9C -100%
... ...
0x0000 0%
... ...
0x0064 +100%
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
69
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LAS
16008
>
Description
16068
The FB reads the list of activated slaves (LAS) of the selected AS-i master and provides the values.
>
Input parameters
16069
70
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16070
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
0= no single/A slave available
...
- Bit 31 (MSB) = address 31/31A 1= single/A slave available
dwLAS_B_Slaves DWORD List of the active B slaves. Each bit Per bit:
represents an AS-i address:
- Bit 0 (LSB) = not used 0= no B slave available
- Bit 1 = address 1B
... 1= B slave available
- Bit 31 (MSB) = address 31B
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
71
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LDS
16013
>
Description
16118
The FB reads the list of detected slaves (LDS) of the selected AS-i master and provides the values.
>
Input parameters
16119
72
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16120
dwLDS_SA_Slaves DWORD List of detected S/A slaves. Each bit Per bit:
represents an AS-i address:
- Bit 0 (LSB) = address 0
0= no slave detected
...
- Bit 31 (MSB) = address 31/31A 1= slave detected
dwLDS_B_Slaves DWORD List of detected B slaves. Each bit Per bit:
represents an AS-i address:
- Bit 0 (LSB) = not used 0= No slave detected
- Bit 1 = address 1B
1= slave detected
...
- Bit 31 (MSB) = address 31B
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
73
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LPS
16015
>
Description
16130
The FB reads the list of projected slaves (LPS) at the selected AS-i master and provides the values.
>
Input parameters
16131
74
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16132
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
0= slave not projected
...
- Bit 31 (MSB) = address 31/31A 1= slave projected
dwLPS_B_Slaves DWORD List of the projected B slaves. Each bit Per bit:
represents an AS-i address:
- Bit 0 (LSB) = not used 0= slave not projected
- Bit 1 = address 1B
1= slave projected
...
- Bit 31 (MSB) = address 31B
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
75
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LCE
16009
>
Description
16075
The FB reads the list of configuration errors (LCE) of the selected AS-i master and provides the
values.
>
Input parameters
16076
76
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16077
77
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LCEAS
16010
>
Description
16098
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
16099
78
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16100
79
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LCEMS
16011
>
Description
16106
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
16107
80
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16108
81
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LDAE
16012
>
Description
16112
The FB reads the double address errors (LDAE) of the selected AS-i master and provides the values
in a list.
>
Input parameters
16113
82
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16114
dwLDAE_SA_Slaves DWORD List of the double address errors. Each Per bit:
bit represents an AS-i address:
- Bit 0 (LSB) = address 0
0= no double address error
...
- Bit 31 (MSB) = address 31/31A 1= double address error
dwLDAE_B_Slaves DWORD List of double address errors. Each bit Per bit:
represents an AS-i address:
- Bit 0 (LSB) = not used 0= no double address error
- Bit 1 = address 1B
1= double address error
...
- Bit 31 (MSB) = address 31B
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
83
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_LPF
16014
>
Description
16124
The FB reads the list of peripheral faults (LPF) of the selected AS-i master and provides the values.
>
Input parameters
16125
84
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16126
85
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_CDI
16006
>
Description
16045
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
16046
86
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16047
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 Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
87
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_PCD
16017
>
Description
16141
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
16142
88
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16143
89
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_InputParameter
16007
>
Description
16056
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
16057
90
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16058
91
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_OutputParameter
16016
>
Description
16136
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
16137
>
92
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
Output parameters
16138
93
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_AddressMode
16018
>
Description
16146
The FB activates/deactivates the parameter "Automatic addressing" for the selected AS-i master.
>
Input parameters
16147
94
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17017
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
95
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_ASi_Config
16019
>
Description
16149
The FB activates/deactivates the parameters "double address recognition" and "earth fault detection"
for the selected AS-i master.
>
Input parameters
16150
96
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17015
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0001 = wrong parameter transferred,
setting was not adopted.
97
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_LPS
16020
>
Description
16153
The FB changes the list of projected slaves (LPS) in the selected AS-i master.
>
Input parameters
16154
98
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17016
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0019 = master not in the projecting
mode
99
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_Mode
16021
>
Description
16155
The FB changes the operating mode (protected operation, projection mode) of the selected AS-i
master.
>
Input parameters
16156
>
Output parameters
17018
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0003 = Slave with address 0 found
(slave not detected)
100
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_PCD
16022
>
Description
16151
The FB changes the configuration file (Permanent Configuration Data = PCD) of the slaves at the
selected AS-i master.
>
Input parameters
16160
101
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
15574
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0019 = master not in the projecting
mode
102
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_ProjectAll
16023
>
Description
16161
Input parameters
16125
>
Output parameters
17020
>
103
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
Set_SlaveAddress
16024
>
Description
16162
Input parameters
16165
104
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17021
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 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)
0x0006 = ExtendedID1 could not be read
after writing (Read Error)
0x0007 = Error when writing
ExtendedID1 (Set Error)
0x0008 = New address temporary stored
0x0009 = ExtendedID1 stored
temporarily
0x0018 = Master is not in normal
operation.
105
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_SlaveExtendedID1
16025
>
Description
16169
Input parameters
16170
106
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16148
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 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)
0x0006 = ExtendedID1 could not be read
after writing (Read Error)
0x0007 = Error when writing
ExtendedID1 (Set Error)
0x0009 = ExtendedID1 stored
temporarily
0x000E = Invalid slave address
(e.g. 0 or 0B specified)
0x0018 = Master is not in normal
operation.
0x0021 = invalid ExtendedID1 code
107
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_SlaveParameter
16026
>
Description
16172
Input parameters
16173
108
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17025
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0001 = slave does not respond or
change to offline mode during
FB execution
0x000A = slave 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.
109
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_ASi_Data
16000
Symbol in CODESYS:
>
Description
16033
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) ( page 122)):
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
Output parameters of the AS-i slaves
>
Input parameters
16034
110
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
16035
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 BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0xnF01 = unknown error 1
111
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_FieldbusInfo ..................................................................................................................................113
QuickSetupASi_Master ........................................................................................................................115
Set_TimeDate .......................................................................................................................................117
17460
112
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Get_FieldbusInfo
17453
>
Description
17454
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
17455
113
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
17456
aw_InfoList ARRAY[0...18] Fieldbus information Position of the data within the individual
OF WORD words DS18 Fieldbus information
( page 166)
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
114
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
QuickSetupASi_Master
15999
>
Description
15902
The FB executes the quick setup routine on the selected AS-i masters.
>
Input parameters
15903
115
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
15920
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 0x0000 = no specific error is set
0x0003 = Slave with address 0 found
(slave not detected)
116
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Set_TimeDate
15998
>
Description
15949
The FB sets the system time (time and date) of the device using the transmitted input values.
>
Input parameters
15988
117
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
15990
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xBusy BOOL Signal indicates if the FB is executed. FALSE = FB is deactivated or FB
execution is terminated.
TRUE = FB execution is started but not
yet terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
wDiagnositic WORD Diagnostic data 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.
118
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
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)
16177
>
ASI_MASTER (ENUM)
16178
>
ASI_MASTER_MODE (ENUM)
16179
119
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ASI_SLAVE (ENUM)
16180
120
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ASI_SLAVE_TYP (ENUM)
16181
121
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
The library ACnnnn_Utils.library provides the following 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 PLC.
>
ASI_DATA (STRUCT)
15992
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
LPF_B_Slave DWORD List of peripheral faults (B slaves) DS9 Slave lists LAS, LDS, LPF, LCE
( page 154), 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
LCE_B_Slave DWORD List with configuration errors (B DS9 Slave lists LAS, LDS, LPF, LCE
slaves) ( page 154), words 12...15
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 Error lists LCEMS, LCEAS, LDAE
( page 165), 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 Error lists LCEMS, LCEAS, LDAE
additional B slave
( page 165), 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
122
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
LDAE_B_Slave DWORD List of double address errors (B DS17 Error lists LCEMS, LCEAS, LDAE
slaves) ( page 165), words 8...11
CDI 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
DS11 Current configuration data CDI
( page 156)
PCD ARRAY[0..63] Image of the projected configuration Each word contains data of one slave:
OF WORD data Bits 0...3 = IO
(PCD = Projected Configuration Bits 4...7 = ID
Data) Bits 8...11 = ID1
Bits 12...15 = ID2
DS12 Projected configuration data PCD
( page 158)
InputParam_SA_Slave ARRAY[0..31] Input parameters of the S/A slaves Each byte contains parameters of one S/A
OF BYTE slave:
Bits 0...3 = P0-P3
Bits 4...7 = reserved
DS13 Image of the input parameters of the
slaves ( page 160), words 0...15
InputParam_B_Slave ARRAY[0..31] Input parameters of the B slaves Each byte contains parameters of one B
OF BYTE slave:
Bits 0...3 = P0-P3
Bits 4...7 = reserved
DS13 Image of the input parameters of the
slaves ( page 160), words 16...31
OutputParam_SA_Slave ARRAY[0..31] Output parameters of the S/A Each byte contains parameters of one S/A
OF BYTE slaves slave:
Bits 0...3 = P0-P3
Bits 4...7 = reserved
DS14 Image of the output parameters of the
slaves ( page 161), words 0...15
OutputParam_B_Slave ARRAY[0..31] Output parameters of the B slaves Each byte contains parameters of one B
OF BYTE slave:
Bits 0...3 = P0-P3
Bits 4...7 = reserved
DS14 Image of the output parameters of the
slaves ( page 161), words 16...31
123
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ASI_NET (STRUCT)
15993
The structure contains the complete process image (inputs and outputs) of an AS-i network.
binIO ASI_BIN_IO Binary input and output data ASI_BIN_IO (STRUCT) ( page 124)
anaIO ASI_ANA_IO Analogue input and output data ASI_ANA_IO (STRUCT) ( page 125)
-
>
ASI_BIN_IO (STRUCT)
16002
The structure contains the process data of the digital input and output slaves:
>
ASI_BIN_IN (STRUCT)
16004
The structure contains the input data of the digital AS-i slaves:
SA_Slave ARRAY[1...31] Input data of the digital S/A slaves, corresponds to the 1st to 15th word of the
OF BYTE 1 byte per S/A slave acyclic data record 2 (DS2)
DS2 Digital inputs of the slaves and master
flags ( page 139)
B_Slave ARRAY[1...31] Input data of the digital B slaves, corresponds to the 16th to 31st word of the
OF BYTE 1 byte per B slave acyclic data record 2 (DS2)
DS2 Digital inputs of the slaves and master
flags ( page 139)
124
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ASI_BIN_OUT (STRUCT)
16003
The structure contains the output data of the digital AS-i slaves.
SA_Slave_bin_OUT ARRAY[1...31] Output data of the digital S/A slaves corresponds to the 1st to 15th word of the
OF BYTE (1 byte per S/A slave) acyclic data record 5 (DS5)
DS5 Digital outputs of the slaves
( page 149)
B_Slave_bin_OUT ARRAY[1...31] Output data of the digital B slaves corresponds to the 16th to 31st word of the
OF BYTE (1 byte per B slave) acyclic data record 5 (DS5)
DS5 Digital outputs of the slaves
( page 149)
>
ASI_ANA_IO (STRUCT)
16001
The structure contains the process data of the analogue input and output slaves.
ana_IN_Slave ARRAY[1..31] Input data and status flags of the ASI_ANALOG_IN (STRUCT) ( page 125)
OF analogue AS-i slaves
ASI_ANALOG_
IN
ana_OUT_Slave ARRAY[1..31] Output data and status flags of the ASI_ANALOG_OUT (STRUCT) ( page 126)
OF analogue AS-i slaves
ASI_ANALOG_
OUT
>
ASI_ANALOG_IN (STRUCT)
15994
The structure contains the process data of the analogue input slave as well as the transmitted status
flags.
>
125
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
ASI_ANALOG_IN_FLAGS (STRUCT)
15996
The structure contains the status flags of the analogue input slave.
>
ASI_ANALOG_OUT (STRUCT)
15995
The structure represents the process data of the analogue output slaves as well as the transmitted
flags.
chan_1 INT Analogue value channel 1: corresponds to the acyclic data records 6
S or A output slave and 7 (DS6, DS7)
chan_2 INT Analogue value channel 2: DS6 Analogue outputs of slaves 1(A)...15(B)
S or A output slave ( page 150)
chan_3 INT Analogue value channel 3: DS7 Analogue outputs of slaves 16(A)...31(B)
S or B output slave ( page 151)
126
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ASI_ANALOG_OUT_FLAGS (STRUCT)
15997
The structure contains the status flags of the analogue output slave.
127
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
9.1.2 ACnnnn_SYS_CMD.library
ACnnnn_SysCmd .................................................................................................................................129
17723
128
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
ACnnnn_SysCmd
15890
Symbol in CODESYS:
>
Description
15893
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 ( page 134))
Command reply channel ( Example: Date / time / read NTP settings ( page 135))
Acyclic data record (DSx) ( Example: Read LCEMS, LCEAS and LDAE of AS-i master 2
( page 136))
>
Input parameters
15895
129
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
0x0001 Read system information DS1 Read system information ( page 138)
0x1101 Quick setup AS-i master 1 + 2 Command 257 (0x0101) Quick setup AS-i master 1 + 2
( page 171)
0x1103 Select user language Command 259 (0x0103) Select user language ( page 173)
0x1104 Change display settings Command 260 (0x0104) Change display settings ( page 175)
0x1105 Set output control Command 261 (0x0105) Set output control ( page 176)
0x1109 Set date / time Command 265 (0x0109) Date / Time ( page 178)
0x110A Set parameters of the NTP server Command 266 (0x010A) Set parameters of the NTP server
( page 180)
0x110B Date / time / read NTP settings Command 267 (0x010B) Date / time / read NTP settings
( page 182)
0x110C Reboot system Command 268 (0x010C) Reboot system ( page 184)
0x110D Read fieldbus info Command 269 (0x010D) Read fieldbus info ( page 186)
Detailed information about the acyclic data sets and command channels:
Acyclic data sets: Acyclic data sets ( page 137, page 137)
Command channels: Command channels
130
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
0x0002 Digital input data, read all slaves, master DS2 Digital inputs of the slaves and master flags ( page 139)
flags (DS2)
0x0003 Analogue inputs, read slaves 01...15 (DS3) DS3 Analogue inputs of slaves 1(A)...15(B) ( page 145)
0x0004 Analogue inputs, read slaves 16...31 (DS4) DS4 Analogue inputs of slaves 16(A)...31(B) ( page 147)
0x0005 Digital outputs, read all slaves (DS5) DS5 Digital outputs of the slaves ( page 149)
0x0006 Analogue outputs, read slaves 01...15 DS6 Analogue outputs of slaves 1(A)...15(B) ( page 150)
(DS6)
0x0007 Analogue outputs, read slaves 16...31 DS7 Analogue outputs of slaves 16(A)...31(B) ( page 151)
(DS7)
0x0008 Read status flags of the analogue outputs DS8 Status of the analogue output data of the slaves 1...31
(DS8) ( page 152)
0x0009 Read slave lists LAS, LDS, LPF, LCE (DS9) DS9 Slave lists LAS, LDS, LPF, LCE ( page 154)
0x000A Read LPS (DS10) DS10 Slave list LPS ( page 155)
0x000B Read CDI (DS11) DS11 Current configuration data CDI ( page 156)
0x000C Read PCD (DS12) DS12 Projected configuration data PCD ( page 158)
0x000D Read input parameter image (DS13) DS13 Image of the input parameters of the slaves ( page 160)
0x000E Read output parameter image (DS14) DS14 Image of the output parameters of the slaves ( page 161)
0x000F Slave error counter, configuration counter, DS15 Slave error counter, configuration error counter, AS-i cycle
read AS-i cycle counter (DS15) counter ( page 162)
0x0011 Read LCEMS, LCEAS, LDAE (DS17) DS17 Error lists LCEMS, LCEAS, LDAE ( page 165)
0x1001 Change slave parameters Command 01 (0x0001) change parameters of an AS-i slave
( page 193)
0x1003 Project current AS-i network Command 03 (0x0003) project currrent AS-i network ( page 195)
0x1004 Change LPS Command 04 (0x0004) change LPS ( page 196)
0x1005 Change AS-i master operating mode Command 05 (0x0005) change the operating mode of the AS-i
master ( page 197)
0x1006 Change slave address Command 06 (0x0006) change AS-i slave address ( page 198)
0x1007 Set the auto address mode of the AS-i Command 07 (0x0007) - set the auto address mode of the AS-i master
master ( page 200)
0x1009 Change extended ID1 in the AS-i slave Command 09 (0x0009) Change extended ID1 in the AS-i slave
( page 201)
0x100A Change PCD Command 10 (0x000A) - change PCD ( page 203)
0x100D Supply voltage, symmetry, lead earth fault Command 13 (0x000D) AS-i master supply voltage, symmetry, earth
fault ( page 206)
0x1015 AS-i profile 7.4; Real ID string Command 21 (0x0015) Read ID string of an AS-i profile (S-7.4)
( page 208)
0x101A Read AS-i master info Command 26 (0x001A) read AS-i master info ( page 211)
0x101C Deactivate slave reset when changing to Command 28 (0x001C) Deactivate slave reset when changing to the
the protected mode protected mode ( page 212)
0x1021 AS-i profile 7.4; Read diagnostic string Command 33 (0x0021) - read diagnosis string of an AS-i slave (S-7.4)
( page 213)
0x1022 AS-i profile 7.4; Read parameter string Command 34 (0x0022) - read parameter string of an AS-i slave (S-7.4)
( page 215)
131
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
0x1023 AS-i profile 7.4; Write parameter string Command 35 (0x0022) - write parameter string of an AS-i slave (S-7.4)
( page 217)
0x1024 CTT2 Standard Read Command 36 (0x0024) CTT2 Standard ( page 219)
0x1025 CTT2 Standard Write Command 37 (0x0025) CTT2 standard write ( page 221)
0x1026 CTT2 Vendor Specific Read Command 38 (0x0026) CTT2 Vendor Specific Read ( page 223)
0x1027 CTT2 Vendor Specific Write Command 39 (0x0027) CTT2 Vendor Specific Write ( page 225)
0x1040 CTT2 Device Group Read Command 64 (0x0040) CTT2 device group read ( page 227)
0x1041 CTT2 Device Group Write Command 65 (0x0041) CTT2 Device Group Write ( page 229)
0x1042 CTT2 Vendor Specific Selective Read from Command 66 (0x0042) CTT2 Vendor Specific Selective Read From
Buffer Buffer ( page 231)
0x1043 CTT2 Vendor Specific Selective Write from Command 67 (0x0043) CTT2 Vendor Specific Selective Write From
Buffer Buffer ( page 233)
0x1044 CTT2 Vendor Specific Selective Read Command 68 (0x0044) CTT2 Vendor Specific Selective Read
( page 235)
0x1045 CTT2 Vendor Specific Selective Write Command 69 (0x0045) CTT2 Vendor Specific Selective Write
( page 237)
0x1046 CTT2 Device Group Selective Read Command 70 (0x0046) CTT2 device group selective Rread
( page 239)
0x1047 CTT2 Device Group Selective Write Command 71 (0x0047) CTT2 Device Group Selective Write
( page 241)
0x1049 CTT2 Vendor Specific Exchange Command 73 (0x0049) CTT2 Vendor Specific Exchange
( page 243)
0x104A CTT2 Device Group Exchange Command 74 (0x004A) CTT2 Device Group Exchange
( page 245)
0x104B CTT2 Device Group Selective Read from Command 75 (0x004B) CTT2 Device Group Selective Read From
Buffer Buffer ( page 247)
0x104C CTT2 Device Group Selective Write from Command 76 (0x004C) CTT2 Device Group Selective Write From
Buffer Buffer ( page 249)
0x1050 Adjust AS-i master settings (double address Command 80 (0x0050) Adjust AS-i master settings ( page 251)
detection, earth fault detection)
0x1051 Reset error counter Command 81 (0x0051) Reset error counter ( page 252)
Detailed information about the acyclic data sets and command channels:
Acyclic data sets: Acyclic data sets ( page 137, page 137)
Command channels: Command channels
132
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
Output parameters
15897
uCount WORD Number of valid bytes in pDataOut integer value in hexadecimal representation
(uCount <= uSizeOut)
xReady BOOL Signal indicates if the execution of the FALSE = FB is inactive or being
FB is terminated. executed.
TRUE = FB execution is terminated.
xError BOOL Signal indicates if errors occurred FALSE = FB is deactivated or presently
while the FB was executed. executed or FB was executed
without error.
TRUE = An error occurred when the FB
was executed.
uErrorCode WORD Error code of the executed command Command error code of the corresponding
command channel
OR:
0x0F01 = Unknown error
0x0F02 = Unknown/invalid target
0x0F03 = Unknown command ID
0x0F04 = invalid parameters
0x0F05 = timeout during processing
133
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
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: Command 259 (0x0103) select user language
( page 173)
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 Contents Explanation
no.
1 0x4553 Spanish
134
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
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: Command 267 (0x010B) Date / time / read NTP settings
( page 182)
uTarget 0 System command
pDataIn -- irrelevant, since command reply channel
-- irrelevant, since command reply channel
Content of arDataOut:
Word Content
no.
1 Month Day
2 Year Year
3 Minutes Hours
4 reserved Seconds
5 NTP offset NTP status
6 ... 7 IP address NTP server
135
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex ifm AS-i function libraries
>
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 Error lists LCEMS, LCEAS, LDAE ( page 165)
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 Content
no.
1 ... 4 LCEMS (list of configuration errors - missing slaves)
136
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
The data records are transmitted acyclically upon request of the <fieldbus> master.
>
137
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
138
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 reserved Slave 1(A): D3...D0 reserved reserved
1 reserved Slave 3(A): D3...D0 reserved Slave 2(A): D3...D0
2 reserved Slave 5(A): D3...D0 reserved Slave 4(A): D3...D0
3 reserved Slave 7(A): D3...D0 reserved Slave 6(A): D3...D0
4 reserved Slave 9(A): D3...D0 reserved Slave 8(A): D3...D0
5 reserved Slave 11(A): D3...D0 reserved Slave 10(A): D3...D0
6 reserved Slave 13(A): D3...D0 reserved Slave 12(A): D3...D0
7 reserved Slave 15(A): D3...D0 reserved Slave 14(A): D3...D0
8 reserved Slave 17(A): D3...D0 reserved Slave 16(A): D3...D0
9 reserved Slave 19(A): D3...D0 reserved Slave 18(A): D3...D0
10 reserved Slave 21(A): D3...D0 reserved Slave 20(A): D3...D0
11 reserved Slave 23(A): D3...D0 reserved Slave 22(A): D3...D0
12 reserved Slave 25(A): D3...D0 reserved Slave 24(A): D3...D0
13 reserved Slave 27(A): D3...D0 reserved Slave 26(A): D3...D0
14 reserved Slave 29(A): D3...D0 reserved Slave 28(A): D3...D0
15 reserved Slave 31(A): D3...D0 reserved Slave 30(A): D3...D0
16 reserved Slave 1B: D3...D0 reserved reserved
17 reserved Slave 3B: D3...D0 reserved Slave 2B: D3...D0
18 reserved Slave 5B: D3...D0 reserved Slave 4B: D3...D0
19 reserved Slave 7B: D3...D0 reserved Slave 6B: D3...D0
20 reserved Slave 9B: D3...D0 reserved Slave 8B: D3...D0
21 reserved Slave 11B: D3...D0 reserved Slave 10B: D3...D0
22 reserved Slave 13B: D3...D0 reserved Slave 12B: D3...D0
23 reserved Slave 15B: D3...D0 reserved Slave 14B: D3...D0
24 reserved Slave 17B: D3...D0 reserved Slave 16B: D3...D0
25 reserved Slave 19B: D3...D0 reserved Slave 18B: D3...D0
26 reserved Slave 21B: D3...D0 reserved Slave 20B: D3...D0
27 reserved Slave 23B: D3...D0 reserved Slave 22B: D3...D0
28 reserved Slave 25B: D3...D0 reserved Slave 24B: D3...D0
29 reserved Slave 27B: D3...D0 reserved Slave 26B: D3...D0
30 reserved Slave 29B: D3...D0 reserved Slave 28B: D3...D0
31 reserved Slave 31B: D3...D0 reserved Slave 30B: D3...D0
32 AS-i master status flags ( AS-i master status flags ( page 141))
33 Execution control flags ( Execution control flags ( page 142))
34 Host flags ( Host flags ( page 144))
35 DAE / EE-Flags ( DAE/EE flags ( page 144))
>
139
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
Master flags
The master flags contain information about the status of the AS-i master and the fieldbus host.
The master flags are transmitted along with the input data of the digital AS-i slaves in the acyclic data
set DS2 ( programming manual, appendix DS2 Digital inputs of the slaves and master flags
( page 139)).
140
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
The AS-i master status flags provide information about the status of the AS-i master. After a status
change, the AS-i master immediately updates the flags.
The AS-i master status flags are saved in the following register:
AS-i master status flags
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Legend:
141
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
The execution control flags provide information about the execution control of the AS-i master. The
flags are updated by the AS-i master immediately after each change.
The execution control flags are saved in the following register:
Execution control flags
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Legend:
COK Config_OK 1 (TRUE): The configuration of all AS-i slaves on the 0 (FALSE)
network corresponds to the projection data
(CDI=PCD for all activated slaves) &&
(LDS=LPS=LAS)
Exception:
Flag APF = 1 and LPS = empty, then COK
=1
S0 LDS.0 1 (TRUE): Slave with address 0 found 0 (FALSE)
142
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
CCOK CTT_Config_OK 1 (TRUE): The configuration of all CTT slaves on the 0 (FALSE)
network corresponds to the projected CCT
data.
(CCDI = PCCD for all CTT slaves)
NOPF No_Offline_Phase_Flag 1 (TRUE): The master skips the offline phase if one 0 (FALSE)
of the following actions is performed:
- change to protected mode
- change of PCD
- change of LPS
- change of PCCD
0 (FALSE): The master goes through the offline phase
when changing to the protected mode the
next time.
143
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
Host flags
7162
The host flags are regularly updated by the host. The AS-i master cyclically checks the host flags for
changes.
The host flags are saved in the following register:
Host Flags
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-- -- -- -- -- -- -- -- -- -- -- -- -- -- DEA OFF
Legend:
OFF Offline 1 (TRUE): Execution control of the master changes to the 0 (FALSE)
offline mode. The function Set_Offline_Mode()
is implemented via this flag.
DEA Data_Exchange_Active 1 (TRUE): Data exchange activated between master and 1 (TRUE)
slaves. The function
Set_Data_Exchange_Active() is implemented
via this flag
>
DAE/EE flags
16935
The DAE/EE flags indicate if the double address detection and the earth fault detection are on.
The DEA/EE flags are saved in the following register:
DAE/EE flags
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-- -- -- -- -- -- -- DAE -- -- -- -- -- -- -- EE
active active
Legend:
144
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...4 Analogue input data of single slave 1 or of (slave 1A and slave 1B)
5...9 Analogue input data of single slave 2 or of (slave 2A and slave 2B)
10...14 Analogue input data of single slave 3 or of (slave 3A and slave 3B)
15...19 Analogue input data of single slave 4 or of (slave 4A and slave 4B)
20...24 Analogue input data of single slave 5 or of (slave 5A and slave 5B)
25...29 Analogue input data of single slave 6 or of (slave 6A and slave 6B)
30...34 Analogue input data of single slave 7 or of (slave 7A and slave 7B)
35...39 Analogue input data of single slave 8 or of (slave 8A and slave 8B)
40...44 Analogue input data of single slave 9 or of (slave 9A and slave 9B)
45...49 Analogue input data of single slave 10 or of (slave 10A and slave 10B)
50...54 Analogue input data of single slave 11 or of (slave 11A and slave 11B)
55...59 Analogue input data of single slave 12 or of (slave 12A and slave 12B)
60...64 Analogue input data of single slave 13 or of (slave 13A and slave 13B)
65...69 Analogue input data of single slave 14 or of (slave 14A and slave 14B)
70...74 Analogue input data of single slave 15 or of (slave 15A and slave 15B)
145
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n Analogue value channel 0 of single slave x or channel 0 of slave xA
n+1 Analogue value channel 1 of single slave x or channel 1 of slave xA
n+2 Analogue value channel 2 of single slave x or channel 0 of slave xB
n+3 Analogue value channel 3 of single slave x or channel 1 of slave xB
n+4 TIB -- TIA -- TOB -- TOA -- O3 V3 O2 V2 O1 V1 O0 V0
Legend:
On overflow bit 1 bit 0 = data is in the valid range
1 = data is in the invalid range (especially in case of input modules when
the measuring range is not reached or exceeded)
TIx transfer to the slave 1 bit from master profile M4 onwards:
(transfer Input) 0 = slave transmits input data as a value
(15 bits long, plus sign)
1 = slave transmits input data as a bit pattern
(16 bits long, no sign)
TOx transfer from the slave 1 bit from master profile M4 onwards:
(transfer output) 0 = slave receives output data as a value
(15 bits long, plus sign)
1 = slave receives output data as a bit pattern
(16 bits long, no sign)
Vn valid bit 1 bit 0 = values in channel n are invalid
1 = values in channel n are valid
Output data must be valid (Vn = 1) to be enabled in the AS-i slave!
146
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...4 Analogue input data of single slave 16 or of (slave 16A and slave 16B)
5...9 Analogue input data of single slave 17 or of (slave 17A and slave 17B)
10...14 Analogue input data of single slave 18 or of (slave 18A and slave 18B)
15...19 Analogue input data of single slave 19 or of (slave 19A and slave 19B)
20...24 Analogue input data of single slave 20 or of (slave 20A and slave 20B)
25...29 Analogue input data of single slave 21 or of (slave 21A and slave 21B)
30...34 Analogue input data of single slave 22 or of (slave 22A and slave 22B)
35...39 Analogue input data of single slave 23 or of (slave 23A and slave 23B)
40...44 Analogue input data of single slave 24 or of (slave 24A and slave 24B)
45...49 Analogue input data of single slave 25 or of (slave 25A and slave 25B)
50...54 Analogue input data of single slave 26 or of (slave 26A and slave 26B)
55...59 Analogue input data of single slave 27 or of (slave 27A and slave 27B)
60...64 Analogue input data of single slave 28 or of (slave 28A and slave 28B)
65...69 Analogue input data of single slave 29 or of (slave 29A and slave 29B)
70...74 Analogue input data of single slave 30 or of (slave 30A and slave 30B)
75...79 Analogue input data of single slave 31 or of (slave 31A and slave 31B)
147
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n Analogue value channel 0 of single slave x or channel 0 of slave xA
n+1 Analogue value channel 1 of single slave x or channel 1 of slave xA
n+2 Analogue value channel 2 of single slave x or channel 0 of slave xB
n+3 Analogue value channel 3 of single slave x or channel 1 of slave xB
n+4 TIB -- TIA -- TOB -- TOA -- O3 V3 O2 V2 O1 V1 O0 V0
Legend:
On overflow bit 1 bit 0 = data is in the valid range
1 = data is in the invalid range (especially in case of input modules when
the measuring range is not reached or exceeded)
TIx transfer to the slave 1 bit from master profile M4 onwards:
(transfer Input) 0 = slave transmits input data as a value
(15 bits long, plus sign)
1 = slave transmits input data as a bit pattern
(16 bits long, no sign)
TOx transfer from the slave 1 bit from master profile M4 onwards:
(transfer output) 0 = slave receives output data as a value
(15 bits long, plus sign)
1 = slave receives output data as a bit pattern
(16 bits long, no sign)
Vn valid bit 1 bit 0 = values in channel n are invalid
1 = values in channel n are valid
Output data must be valid (Vn = 1) to be enabled in the AS-i slave!
148
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 reserved slave 1(A): D3...D0 reserved reserved
1 reserved Slave 3(A): D3...D0 reserved Slave 2(A): D3...D0
2 reserved Slave 5(A): D3...D0 reserved Slave 4(A): D3...D0
3 reserved Slave 7(A): D3...D0 reserved Slave 6(A): D3...D0
4 reserved Slave 9(A): D3...D0 reserved Slave 8(A): D3...D0
5 reserved Slave 11(A): D3...D0 reserved Slave 10(A): D3...D0
6 reserved Slave 13(A): D3...D0 reserved Slave 12(A): D3...D0
7 reserved Slave 15(A): D3...D0 reserved Slave 14(A): D3...D0
8 reserved Slave 17(A): D3...D0 reserved Slave 16(A): D3...D0
9 reserved Slave 19(A): D3...D0 reserved Slave 18(A): D3...D0
10 reserved Slave 21(A): D3...D0 reserved Slave 20(A): D3...D0
11 reserved Slave 23(A): D3...D0 reserved Slave 22(A): D3...D0
12 reserved Slave 25(A): D3...D0 reserved Slave 24(A): D3...D0
13 reserved Slave 27(A): D3...D0 reserved Slave 26(A): D3...D0
14 reserved Slave 29(A): D3...D0 reserved Slave 28(A): D3...D0
15 reserved Slave 31(A): D3...D0 reserved Slave 30(A): D3...D0
16 reserved Slave 1B: D3...D0 reserved reserved
17 reserved Slave 3B: D3...D0 reserved Slave 2B: D3...D0
18 reserved Slave 5B: D3...D0 reserved Slave 4B: D3...D0
19 reserved Slave 7B: D3...D0 reserved Slave 6B: D3...D0
20 reserved Slave 9B: D3...D0 reserved Slave 8B: D3...D0
21 reserved Slave 11B: D3...D0 reserved Slave 10B: D3...D0
22 reserved Slave 13B: D3...D0 reserved Slave 12B: D3...D0
23 reserved Slave 15B: D3...D0 reserved Slave 14B: D3...D0
24 reserved Slave 17B: D3...D0 reserved Slave 16B: D3...D0
25 reserved Slave 19B: D3...D0 reserved Slave 18B: D3...D0
26 reserved Slave 21B: D3...D0 reserved Slave 20B: D3...D0
27 reserved Slave 23B: D3...D0 reserved Slave 22B: D3...D0
28 reserved Slave 25B: D3...D0 reserved Slave 24B: D3...D0
29 reserved Slave 27B: D3...D0 reserved Slave 26B: D3...D0
30 reserved Slave 29B: D3...D0 reserved Slave 28B: D3...D0
31 reserved Slave 31B: D3...D0 reserved Slave 30B: D3...D0
>
149
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...3 analogue output data of single slave 1 or of (slave 1A and slave 1B)
4...7 Analogue output data of single slave 2 or of (slave 2A and slave 2B)
8...11 Analogue output data of single slave 3 or of (slave 3A and slave 3B)
12...15 Analogue output data of single slave 4 or of (slave 4A and slave 4B)
16...19 Analogue output data of single slave 5 or of (slave 5A and slave 5B)
20...23 Analogue output data of single slave 6 or of (slave 6A and slave 6B)
24...27 Analogue output data of single slave 7 or of (slave 7A and slave 7B)
28...31 Analogue output data of single slave 8 or of (slave 8A and slave 8B)
32...35 Analogue output data of single slave 9 or of (slave 9A and slave 9B)
36...39 Analogue output data of single slave 10 or of (slave 10A and slave 10B)
40...43 Analogue output data of single slave 11 or of (slave 11A and slave 11B)
44...47 Analogue output data of single slave 12 or of (slave 12A and slave 12B)
48...51 Analogue output data of single slave 13 or of (slave 13A and slave 13B)
52...55 Analogue output data of single slave 14 or of (slave 14A and slave 14B)
56...59 Analogue output data of single slave 15 or of (slave 15A and slave 15B)
>
The following table shows the structure of the data image to set the parameter:
Analogue channels per input slave = 4
Analogue channels per output slave
150
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...3 analogue output data of single slave 16 or of (slave 16A and slave 16B)
4...7 Analogue output data of single slave 17 or of (slave 17A and slave 17B)
8...11 Analogue output data of single slave 18 or of (slave 18A and slave 18B)
12...15 Analogue output data of single slave 19 or of (slave 19A and slave 19B)
16...19 Analogue output data of single slave 20 or of (slave 20A and slave 20B)
20...23 Analogue output data of single slave 21 or of (slave 21A and slave 21B)
24...27 Analogue output data of single slave 22 or of (slave 22A and slave 22B)
28...31 Analogue output data of single slave 23 or of (slave 23A and slave 23B)
32...35 Analogue output data of single slave 24 or of (slave 24A and slave 24B)
36...39 Analogue output data of single slave 25 or of (slave 25A and slave 25B)
40...43 Analogue output data of single slave 26 or of (slave 26 and slave 26B)
44...47 Analogue output data of single slave 27 or of (slave 27 and slave 27B)
48...51 Analogue output data of single slave 28 or of (slave 28 and slave 28B)
52...55 Analogue output data of single slave 29 or of (slave 29 and slave 29B)
56...59 Analogue output data of single slave 30 or of (slave 30 and slave 30B)
60...63 Analogue output data of single slave 31 or of (slave 31and slave 31B)
>
The following table shows the structure of the data image to set the parameter:
Analogue channels per input slave = 4
Analogue channels per output slave
151
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 reserved
1 Status of the analogue output data of single slave 1 or of (slave 1A and slave 1B)
2 Status of the analogue output data of single slave 2 or of (slave 2A and slave 2B)
3 Status of the analogue output data of single slave 3 or of (slave 3A and slave 3B)
4 Status of the analogue output data of single slave 4 or of (slave 4A and slave 4B)
5 Status of the analogue output data of single slave 5 or of (slave 5A and slave 5B)
6 Status of the analogue output data of single slave 6 or of (slave 6A and slave 6B)
7 Status of the analogue output data of single slave 7 or of (slave 7A and slave 7B)
8 Status of the analogue output data of single slave 8 or of (slave 8A and slave 8B)
9 Status of the analogue output data of single slave 9 or of (slave 9A and slave 9B)
10 Status of the analogue output data of single slave 10 or of (slave 10A and slave 10B)
11 Status of the analogue output data of single slave 11 or of (slave 11A and slave 11B)
12 Status of the analogue output data of single slave 12 or of (slave 12A and slave 12B)
13 Status of the analogue output data of single slave 13 or of (slave 13A and slave 13B)
14 Status of the analogue output data of single slave 14 or of (slave 14A and slave 14B)
15 Status of the analogue output data of single slave 15 or of (slave 15A and slave 15B)
16 Status of the analogue output data of single slave 16 or of (slave 16A and slave 16B)
17 Status of the analogue output data of single slave 17 or of (slave 17A and slave 17B)
18 Status of the analogue output data of single slave 18 or of (slave 18A and slave 18B)
19 Status of the analogue output data of single slave 19 or of (slave 19A and slave 19B)
20 Status of the analogue output data of single slave 20 or of (slave 20A and slave 20B)
21 Status of the analogue output data of single slave 21 or of (slave 21A and slave 21B)
22 Status of the analogue output data of single slave 22 or of (slave 22A and slave 22B)
23 Status of the analogue output data of single slave 23 or of (slave 23A and slave 23B)
24 Status of the analogue output data of single slave 24 or of (slave 24A and slave 24B)
25 Status of the analogue output data of single slave 25 or of (slave 25A and slave 25B)
26 Status of the analogue output data of single slave 26 or of (slave 26A and slave 26B)
27 Status of the analogue output data of single slave 27 or of (slave 27A and slave 27B)
28 Status of the analogue output data of single slave 28 or of (slave 28A and slave 28B)
29 Status of the analogue output data of single slave 29 or of (slave 29A and slave 29B)
30 Status of the analogue output data of single slave 30 or of (slave 30A and slave 30B)
31 Status of the analogue output data of single slave 31 or of (slave 31A and slave 31B)
32 reserved
152
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
153
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...3 LAS / list of active slaves
4...7 LDS / list of detected slaves
8...11 LPF / list of slaves with periphery faults
12...15 LCE / list of slaves with configuration errors
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n 15(A) 14(A) 13(A) 12(A) 11(A) 10(A) 9(A) 8(A) 7(A) 6(A) 5(A) 4(A) 3(A) 2(A) 1(A) 0 *)
n+1 31(A) 30(A) 29(A) 28(A) 27(A) 26(A) 25(A) 24(A) 23(A) 22(A) 21(A) 20(A) 19(A) 18(A) 17(A) 16(A)
n+2 15B 14B 13B 12B 11B 10B 9B 8B 7B 6B 5B 4B 3B 2B 1B res.
n+3 31B 30B 29B 28B 27B 26B 25B 24B 23B 22B 21B 20B 19B 18B 17B 16B
*) LAS and LPS have no slave 0, therefore this bit is set to 0!
154
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...3 List of projected slaves LPS
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n 15(A) 14(A) 13(A) 12(A) 11(A) 10(A) 9(A) 8(A) 7(A) 6(A) 5(A) 4(A) 3(A) 2(A) 1(A) 0 *)
n+1 31(A) 30(A) 29(A) 28(A) 27(A) 26(A) 25(A) 24(A) 23(A) 22(A) 21(A) 20(A) 19(A) 18(A) 17(A) 16(A)
n+2 15B 14B 13B 12B 11B 10B 9B 8B 7B 6B 5B 4B 3B 2B 1B res.
n+3 31B 30B 29B 28B 27B 26B 25B 24B 23B 22B 21B 20B 19B 18B 17B 16B
*) LAS and LPS have no slave 0, therefore this bit is set to 0!
155
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2 code ID1 code ID code IO code
0 Slave 0 *)
1 Slave 1(A)
2 Slave 2(A)
3 Slave 3(A)
4 Slave 4(A)
5 Slave 5(A)
6 Slave 6(A)
7 Slave 7(A)
8 Slave 8(A)
9 Slave 9(A)
10 Slave 10(A)
11 Slave 11(A)
12 Slave 12(A)
13 Slave 13(A)
14 Slave 14(A)
15 Slave 15(A)
16 Slave 16(A)
17 Slave 17(A)
18 Slave 18(A)
19 Slave 19(A)
20 Slave 20(A)
21 Slave 21(A)
22 Slave 22(A)
23 Slave 23(A)
24 Slave 24(A)
25 Slave 25(A)
26 Slave 26(A)
27 Slave 27(A)
28 Slave 28(A)
29 Slave 29(A)
20 Slave 30(A)
31 Slave 31(A)
32 reserved
33 Slave 1B
34 Slave 2B
156
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2 code ID1 code ID code IO code
35 Slave 3B
36 Slave 4B
37 Slave 5B
38 Slave 6B
39 Slave 7B
40 Slave 8B
41 Slave 9B
42 Slave 10B
43 Slave 11B
44 Slave 12B
45 Slave 13B
46 Slave 14B
47 Slave 15B
48 Slave 16B
49 Slave 17B
50 Slave 18B
51 Slave 19B
52 Slave 20B
53 Slave 21B
54 Slave 22B
55 Slave 23B
56 Slave 24B
57 Slave 25B
58 Slave 26B
59 Slave 27B
60 Slave 28B
61 Slave 29B
62 Slave 30B
63 Slave 31B
157
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2 code ID1 code ID code IO code
0 reserved
1 Slave 1(A)
2 Slave 2(A)
3 Slave 3(A)
4 Slave 4(A)
5 Slave 5(A)
6 Slave 6(A)
7 Slave 7(A)
8 Slave 8(A)
9 Slave 9(A)
10 Slave 10(A)
11 Slave 11(A)
12 Slave 12(A)
13 Slave 13(A)
14 Slave 14(A)
15 Slave 15(A)
16 Slave 16(A)
17 Slave 17(A)
18 Slave 18(A)
19 Slave 19(A)
20 Slave 20(A)
21 Slave 21(A)
22 Slave 22(A)
23 Slave 23(A)
24 Slave 24(A)
25 Slave 25(A)
26 Slave 26(A)
27 Slave 27(A)
28 Slave 28(A)
29 Slave 29(A)
20 Slave 30(A)
31 Slave 31(A)
32 reserved
33 Slave 1B
34 Slave 2B
158
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2 code ID1 code ID code IO code
35 Slave 3B
36 Slave 4B
37 Slave 5B
38 Slave 6B
39 Slave 7B
40 Slave 8B
41 Slave 9B
42 Slave 10B
43 Slave 11B
44 Slave 12B
45 Slave 13B
46 Slave 14B
47 Slave 15B
48 Slave 16B
49 Slave 17B
50 Slave 18B
51 Slave 19B
52 Slave 20B
53 Slave 21B
54 Slave 22B
55 Slave 23B
56 Slave 24B
57 Slave 25B
58 Slave 26B
59 Slave 27B
60 Slave 28B
61 Slave 29B
62 Slave 30B
63 Slave 31B
159
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 reserved Slave 1(A): P3...P0 reserved reserved
1 reserved Slave 3(A): P3...P0 reserved Slave 2(A): P3...P0
2 reserved Slave 5(A): P3...P0 reserved Slave 4(A): P3...P0
3 reserved Slave 7(A): P3...P0 reserved Slave 6(A): P3...P0
4 reserved Slave 9(A): P3...P0 reserved Slave 8(A): P3...P0
5 reserved Slave 11(A): P3...P0 reserved Slave 10(A): P3...P0
6 reserved Slave 13(A): P3...P0 reserved Slave 12(A): P3...P0
7 reserved Slave 15(A): P3...P0 reserved Slave 14(A): P3...P0
8 reserved Slave 17(A): P3...P0 reserved Slave 16(A): P3...P0
9 reserved Slave 19(A): P3...P0 reserved Slave 18(A): P3...P0
10 reserved Slave 21(A): P3...P0 reserved Slave 20(A): P3...P0
11 reserved Slave 23(A): P3...P0 reserved Slave 22(A): P3...P0
12 reserved Slave 25(A): P3...P0 reserved Slave 24(A): P3...P0
13 reserved Slave 27(A): P3...P0 reserved Slave 26(A): P3...P0
14 reserved Slave 29(A): P3...P0 reserved Slave 28(A): P3...P0
15 reserved Slave 31(A): P3...P0 reserved Slave 30(A): P3...P0
16 reserved Slave 1B: P3...P0 reserved reserved
17 reserved Slave 3B: P3...P0 reserved Slave 2B: P3...P0
18 reserved Slave 5B: P3...P0 reserved Slave 4B: P3...P0
19 reserved Slave 7B: P3...P0 reserved Slave 6B: P3...P0
20 reserved Slave 9B: P3...P0 reserved Slave 8B: P3...P0
21 reserved Slave 11B: P3...P0 reserved Slave 10B: P3...P0
22 reserved Slave 13B: P3...P0 reserved Slave 12B: P3...P0
23 reserved Slave 15B: P3...P0 reserved Slave 14B: P3...P0
24 reserved Slave 17B: P3...P0 reserved Slave 16B: P3...P0
25 reserved Slave 19B: P3...P0 reserved Slave 18B: P3...P0
26 reserved Slave 21B: P3...P0 reserved Slave 20B: P3...P0
27 reserved Slave 23B: P3...P0 reserved Slave 22B: P3...P0
28 reserved Slave 25B: P3...P0 reserved Slave 24B: P3...P0
29 reserved Slave 27B: P3...P0 reserved Slave 26B: P3...P0
30 reserved Slave 29B: P3...P0 reserved Slave 28B: P3...P0
31 reserved Slave 31B: P3...P0 reserved Slave 30B: P3...P0
160
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 reserved Slave 1(A): P3...P0 reserved reserved
1 reserved Slave 3(A): P3...P0 reserved Slave 2(A): P3...P0
2 reserved Slave 5(A): P3...P0 reserved Slave 4(A): P3...P0
3 reserved Slave 7(A): P3...P0 reserved Slave 6(A): P3...P0
4 reserved Slave 9(A): P3...P0 reserved Slave 8(A): P3...P0
5 reserved Slave 11(A): P3...P0 reserved Slave 10(A): P3...P0
6 reserved Slave 13(A): P3...P0 reserved Slave 12(A): P3...P0
7 reserved Slave 15(A): P3...P0 reserved Slave 14(A): P3...P0
8 reserved Slave 17(A): P3...P0 reserved Slave 16(A): P3...P0
9 reserved Slave 19(A): P3...P0 reserved Slave 18(A): P3...P0
10 reserved Slave 21(A): P3...P0 reserved Slave 20(A): P3...P0
11 reserved Slave 23(A): P3...P0 reserved Slave 22(A): P3...P0
12 reserved Slave 25(A): P3...P0 reserved Slave 24(A): P3...P0
13 reserved Slave 27(A): P3...P0 reserved Slave 26(A): P3...P0
14 reserved Slave 29(A): P3...P0 reserved Slave 28(A): P3...P0
15 reserved Slave 31(A): P3...P0 reserved Slave 30(A): P3...P0
16 reserved Slave 1B: P3...P0 reserved reserved
17 reserved Slave 3B: P3...P0 reserved Slave 2B: P3...P0
18 reserved Slave 5B: P3...P0 reserved Slave 4B: P3...P0
19 reserved Slave 7B: P3...P0 reserved Slave 6B: P3...P0
20 reserved Slave 9B: P3...P0 reserved Slave 8B: P3...P0
21 reserved Slave 11B: P3...P0 reserved Slave 10B: P3...P0
22 reserved Slave 13B: P3...P0 reserved Slave 12B: P3...P0
23 reserved Slave 15B: P3...P0 reserved Slave 14B: P3...P0
24 reserved Slave 17B: P3...P0 reserved Slave 16B: P3...P0
25 reserved Slave 19B: P3...P0 reserved Slave 18B: P3...P0
26 reserved Slave 21B: P3...P0 reserved Slave 20B: P3...P0
27 reserved Slave 23B: P3...P0 reserved Slave 22B: P3...P0
28 reserved Slave 25B: P3...P0 reserved Slave 24B: P3...P0
29 reserved Slave 27B: P3...P0 reserved Slave 26B: P3...P0
30 reserved Slave 29B: P3...P0 reserved Slave 28B: P3...P0
31 reserved Slave 31B: P3...P0 reserved Slave 30B: P3...P0
>
161
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
DS15 Slave error counter, configuration error counter, AS-i cycle counter
8785
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 Error counter in slave 0
1 Error counter in slave 1(A)
2 Error counter in slave 2(A)
3 Error counter in slave 3(A)
4 Error counter in slave 4(A)
5 Error counter in slave 5(A)
6 Error counter in slave 6(A)
7 Error counter in slave 7(A)
8 Error counter in slave 8(A)
9 Error counter in slave 9(A)
10 Error counter in slave 10(A)
11 Error counter in slave 11(A)
12 Error counter in slave 12(A)
13 Error counter in slave 13(A)
14 Error counter in slave 14(A)
15 Error counter in slave 15(A)
16 Error counter in slave 16(A)
17 Error counter in slave 17(A)
18 Error counter in slave 18(A)
19 Error counter in slave 19(A)
20 Error counter in slave 20(A)
21 Error counter in slave 21(A)
22 Error counter in slave 22(A)
23 Error counter in slave 23(A)
24 Error counter in slave 24(A)
25 Error counter in slave 25(A)
26 Error counter in slave 26(A)
27 Error counter in slave 27(A)
28 Error counter in slave 28(A)
29 Error counter in slave 29(A)
20 Error counter in slave 30(A)
31 Error counter in slave 31(A)
32 reserved
33 Error counter in slave 1B
34 Error counter in slave 2B
35 Error counter in slave 3B
162
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
36 Error counter in slave 4B
37 Error counter in slave 5B
38 Error counter in slave 6B
39 Error counter in slave 7B
40 Error counter in slave 8B
41 Error counter in slave 9B
42 Error counter in slave 10B
43 Error counter in slave 11B
44 Error counter in slave 12B
45 Error counter in slave 13B
46 Error counter in slave 14B
47 Error counter in slave 15B
48 Error counter in slave 16B
49 Error counter in slave 17B
50 Error counter in slave 18B
51 Error counter in slave 19B
52 Error counter in slave 20B
163
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
Legend:
AS-i error status ... Bit 0: Configuration error type 1 (missing slave)
Bit 1: Configuration error type 2 (too many slaves)
Bit 2: Configuration error type 3 (slave with wrong profile)
Bit 3: Peripheral fault
Bit 4: Double address
Bit 8: internal AS-i master error
Bit 9: Projection mode
Bit 10: Slave address 0 detected
Bit 11: Earth fault
Bit 12: Voltage drop below 22.5 V
Bit 13: Voltage drop below 19.0 V
Bit 14: reserved
Bit 15: reserved
Telegram error rate ... Number of faulty telegrams during the past 2000 telegram cycles
Symmetry ... AS-i symmetry from -100% to +100%, 0% = symmetrical-to-ground
Bit15: bit with sign
164
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0...3 LCEMS (list of configuration errors - missing slaves)
4...7 LCEAS (list of configuration errors - additional slaves)
8...11 LDAE (list of double address errors)
>
The error lists (LCEMS, LCEAS, LDAE) have a size of 64 bits each. The respective bits each
represent a slave address:
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n 15(A) 14(A) 13(A) 12(A) 11(A) 10(A) 9(A) 8(A) 7(A) 6(A) 5(A) 4(A) 3(A) 2(A) 1(A) 0
n+1 31(A) 30(A) 29(A) 28(A) 27(A) 26(A) 25(A) 24(A) 23(A) 22(A) 21(A) 20(A) 19(A) 18(A) 17(A) 16(A)
n+2 15B 14B 13B 12B 11B 10B 9B 8B 7B 6B 5B 4B 3B 2B 1B -
n+3 31B 30B 29B 28B 27B 26B 25B 24B 23B 22B 21B 20B 19B 18B 17B 16B
165
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 Fieldbus state Fieldbus type
1 Ethernet connection status Profibus slave address
2 Profinet/EtherNet/IP IP address (byte 2) Profinet/EtherNet/IP IP address (byte 1, MSB)
3 Profinet/EtherNet/IP IP address (byte 4, LSB) Profinet/EtherNet/IP IP address (byte 3)
Legend:
166
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Acyclic data records
Profinet/ IP address of the device 4 bytes One address segment per byte.
EtherNet/IP e.g. 192.168.0.102
IP address Byte 1: 192 = 0xC0
Byte 2: 168 = 0xA8
Byte 3: 0 = 0x00
Byte 4: 102 = 0x66
Profinet/ Subnet mask of the 4 bytes see Profinet/EtherNet/IP IP address
EtherNet/IP- Ethernet network
Subnet
mask
Profinet/ IP address of the 4 bytes see Profinet/EtherNet/IP IP address
EtherNet/IP EtherNet gateway
gateway
address
MAC0 MAC0-ID of the device 6 bytes One MAC segment per byte:
e.g. 00:02:01:01:98:D2
Note: For EtherNet/IP, Byte 1: D2
MAC0 = ...
00:00:00:00:00:00. Byte 6: 00
MAC1 MAC1-ID of the device 6 bytes see MAC0
MAC2 MAC2-ID of the device 6 bytes see MAC0
Note: MAC 1 equals
MAC2
Profinet host IP address of the Profinet 4 bytes see Profinet/EtherNet/IP IP address
address host
Note: No host address is
displayed in EtherNet/IP
167
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
168
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
>
Command status
8795
FAILED 01 Error when executing the command. The exact cause of the error occurred is stated in the
command-specific error code. The response data is invalid.
TO 02 Timeout error: The command was cancelled due to timeout.
UC 03 Unknown Command: The transmitted command number is not known in the system.
NOP 04 Not valid parameter: The transmitted command parameter is invalid.
169
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
170
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved M2 M1
Legend:
M1 AS-i master 1 1 bit 0 = "Quick set-up" command is NOT executed on the master
1 = "Quick set-up" command is executed on the master
M2 AS-i master 2 1 bit 0 = "Quick set-up" command is NOT executed on the master
1 = "Quick set-up" command is executed on the master
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
The command "blocks" further processing as long as the quick set-up needs. That means that
the WRREC command signals "busy" until the function result is available. This may take a few
seconds.
171
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
command error code AS-i master 2 command error code AS-i master 1
4
Possible command error codes ( page 172) Possible command error codes ( page 172)
>
When the Quick Setup is not executed for an AS-i master, the return value is always 0x00 (=
OK).
The command status has the value Failed when one of the errors is present on AS-i master 1
or 2 after command execution.
172
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Via the command the user lanaguage for the local HMI and the web interface can be set. The
language setting always refers to both user interfaces.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 LANG_ID
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
MSG_ID User language 1 word 0x0000 = no language selection, only return active language
0x4445 = DE, German
0x454E = EN, English (default)
0x4652 = FR, French
0x4954 = IT, Italian
0x4553 = ES, Spanish
0x5054 = PT, Portuguese
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
173
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 current LANG_ID
>
174
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved RS DS
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DS Screen saver 1 bit 0 = no screen saver for local display
1 = screen saver for local display activated
RS return to splash screen 1 bit 0 = when the time has elapsed, device remains on current page
1 = when the time has elapsed, devices changes to the splash screen
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
175
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Using this command, the controller instance for the outputs of the AS-i slaves can be set.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved OC
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
OC Output Control 1 byte 0x01 = GW, gateway
0x02 = MAN, manual
0x03 = PLC, device-internal PLC
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
176
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Using this command, the operating mode of the device-internal PLC can be set.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved PLC
Legend:
PLC Operating mode of the 1 bit 0x00 = stop PLC application and switch off PLC
device-internal PLC 0x01 = switch on PLC and start PLC application (boot application)
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
177
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Using this command, the system time (date and time) of the device can be set.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 month day
4 year (byte 2, MSB) year (byte 1, LSB)
5 minutes hours
6 reserved seconds
The area is completely ignored.
7 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
day day 1 byte 0x01 = 1
0x02 = 2
...
0x1F = 31
month month 1 byte 0x01 = January
0x02 = February
...
0x0C = December
Year Year 1 word Possible values: 1971 ... 2037
0x07B3 = 1971
0x07B4 = 1972
...
0x07F5 = 2037
Example:
2014 = 0x07DE
year (MSB) = 0x07, year (LSB) = 0xDE
hours hours 1 byte 0x00 = 0
0x01 = 1
...
0x17 = 23
minutes minutes 1 byte 0x00 = 0
0x01 = 1
...
0x3B = 59
seconds seconds 1 byte 0x00 = 0
0x01 = 1
...
0x3B = 59
>
178
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
179
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Using this command, the IP parameters of the NTP server can be set.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
Legend:
NTP Setting the NTP client 1 bit 0x0 = NTP client is inactive
0x1 = NTP client is active
NTP Offset NTP server provides the 1 byte 0x00 = system clock in local time
time in UTC. NTP Offset 0x01 = UTC -12:00
indicates the difference 0x02 = UTC -11:00
between UTC and local 0x03 = UTC -10:00
time. 0x04 = UTC -09:00
0x05 = UTC -08:00
0x06 = UTC -07:00
0x07 = UTC -06:00
0x08 =.UTC -05:00
0x09 = UTC -04:00
0x0A = UTC -03:30
0x0B = UTC -03:00
0x0C = UTC -02:00
0x0D = UTC -01:00
0x0E = UTC +00:00
0x0F = UTC +01:00
0x10 = UTC +02:00
0x11 = UTC +03:00
0x12 = UTC +03:30
0x13 = UTC +04:00
0x14 = UTC +04:30
0x15 = UTC +05:00
0x16 = UTC +05:30
0x17 = UTC +05:45
0x18 = UTC +06:00
0x19 = UTC +06:30
0x1A = UTC +07:00
0x1B = UTC +08:00
0x1C = UTC +09:00
0x1D = UTC +09:30
0x1E = UTC +10:00
0x1F = UTC +11:00
0x20 = UTC +12:00
180
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
NTP server IP address (IP-V4) of the 2 words Per segment of an IP address: 0 ....255
IP address NTP server
0x00 = 000
0x01 = 001
...
0x0FF = 255
Example:
IP address: 192.168.150.5
192 = 0xC0 (high byte)
168 = 0xA8
150 = 0x96
005 = 0x05 (low byte)
The duration of the synchronisation process depends on the settings of the NTP server. This
means that the synchronised system time is not immediately available after activation of the
NTP client.
Do not query the synchronised system time immediately after activation of the NTP client.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
181
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Using this command, the current values for time, date and NTP settings can be read.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
The area is completely ignored.
3 ... 120
It does not matter whether the data area exists or what data is contained.
182
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 month day
6 year (byte 2, MSB) year (byte 1, LSB)
7 minutes hours
8 reserved seconds
9 NTP Offset reserved NTP
10 NTP server IP address (high byte, net address) NTP server IP address
11 NTP server IP address NTP server IP address (low byte, host address)
Legend:
- day Command 266 (0x010A) Set parameters of the NTP server ( page 180)
- month
- year
- hours
- minutes
- seconds
- NTP Command 266 (0x010A) Set parameters of the NTP server ( page 180)
- NTP Offset
- NTP server IP address
>
183
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 0x4F (= O) 0x42 (= B)
4 0x54 (= T) 0x4F (= O)
The area is completely ignored.
5 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
184
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
185
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
The command can only be executed using the function block ACnnnn_SysCmd under
CODESYS! ( ACnnnn_SysCmd ( page 129))
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 ... 23 DS18 Fieldbus information ( page 166)
>
186
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
187
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Command Command
Description Note
[hex] [dec]
0001 1 write parameters to a connected AS-i slave
adopt and save currently connected AS-i slaves in the configuration ConfDataInput Slave
Projected
0003 3 With this command the fieldbus connection is reset. The device Configuration Data
must be rebooted! and LDS LPS
0004 4 Change the list of the projected AS-i slaves (LPS)
0005 5 set the operating mode of the AS-i master
0006 6 readdress a connected AS-i slave
0007 7 set the auto addressing mode of the AS-i master
0009 9 change the extended ID code 1 in the connected AS-i slave
000A 10 change PCD
000D 13 AS-i master supply voltage, symmetry, earth fault
0015 21 read ID string of an AS-i slave with profile S-7.4 Slave profile S-7.4
0019 25 Set test mode
001A 26 read AS-i master info
Deactivation of the slave reset when changing to the protected
001C 28
mode
0021 33 read diagnosis string of an AS-i slave with profile S-7.4 Slave profile S-7.4
0022 34 read parameter string of an AS-i slave with profile S-7.4 Slave profile S-7.4
0023 35 write parameter string of an AS-i slave with profile S-7.4 Slave profile S-7.4
CTT2 standard read:
0024 36 CTT2 slave profile *)
Acyclic standard read call of an AS-i slave with CTT2 profile
CTT2 standard write:
0025 37 CTT2 slave profile *)
Acyclic standard write call of an AS-i slave with CTT2 profile
CTT2 vendor specific read:
0026 38 acyclic manufacturer-specific read call of an AS-i slave with CTT2 CTT2 slave profile *)
profile
CTT2 vendor specific write:
0027 39 acyclic manufacturer-specific write call of an AS-i slave with CTT2 CTT2 slave profile *)
profile
CTT2 device group read:
0040 64 CTT2 slave profile *)
Acyclic devicegroup read call of an AS-i slave with CTT2 profile
CTT2 device group write:
0041 65 CTT2 slave profile *)
Acyclic devicegroup write call of an AS-i slave with CTT2 profile
CTT2 vendor specific selective read from buffer:
0042 66 CTT2 slave profile *)
Selective standard read call of an AS-i slave with CTT2 profile
CTT2 vendor specific selective write from buffer:
0043 67 CTT2 slave profile *)
Selective standard write call of an AS-i slave with CTT2 profile
CTT2 vendor specific selective read:
0044 68 Selective manufacturer-specific read call of an AS-i slave with CTT2 CTT2 slave profile *)
profile
CTT2 vendor specific selective write:
0045 69 Selective manufacturer-specific write call of an AS-i slave with CTT2 slave profile *)
CTT2 profile
188
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
Command Command
Description Note
[hex] [dec]
CTT2 device group selective read:
0046 70 CTT2 slave profile *)
Selective devicegroup read call of an AS-i slave with CTT2 profile
CTT2 device group selective write:
0047 71 CTT2 slave profile *)
Selective devicegroup write call of an AS-i slave with CTT2 profile
CTT2 vendor specific exchange:
0049 73 Manufacturer-specific data exchange with an AS-i slave with CTTS CTT2 slave profile *)
profile
CTT2 device group exchange:
004A 74 CTT2 slave profile *)
Devicegroup data exchange with an AS-i slave with CTTS profile
CTT2 device group selective read from buffer:
004B 75 Manufacturer-specific write/read call of an AS-i slave with CTTS CTT2 slave profile *)
profile
CTT2 device group selective write from buffer:
004C 76 CTT2 slave profile *)
Devicegroup write/read call of an AS-i slave with CTTS profile
189
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
190
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Revision: 2014-03-05
191
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
The "standard CTT2 error code" provides information about errors occurred during processing of a
CTT2 command. It is transmitted in data byte 0 of the response channel of a CTT2 command. The
following table shows the possible values:
>
In addition to the standard CTT2 error code, the "CTT2 error object" provides further manufacturer-
specific information about errors which occurred during processing of a CTT2 command. It is
transmitted in the response channel of a CTT2 command in the data bytes 0...5. The CTT2 error
object has the following structure:
192
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 reserved reserved New output parameter
The area is completely ignored.
5...120
It does not matter whether the data area exists or what data is contained.
Legend:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
If the requested slave address (SLA) is not in the list of activated slaves (LAS), the new
parameters are stored in the AS-i master despite error message (error code 0x0A). If an AS-i
slave with this address is added to the AS-i network at a later point, the slave automatically
adopts the saved parameters.
193
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 reserved reserved Input parameters
The area is completely ignored.
6 ... 120
It does not matter whether the data area exists or what data is contained.
>
194
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
(= project all)
Requirement: The addressed AS-i master must be in the projection mode.
Command 05 (0x0005) change the operating mode of the AS-i master ( page 197)
With this command the fieldbus connection is reset. The device must be rebooted!
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
The area is completely ignored.
3 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
195
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 15(A) 14(A) 13(A) 12(A) 11(A) 10(A) 9(A) 8(A) 7(A) 6(A) 5(A) 4(A) 3(A) 2(A) 1(A) --
4 31(A) 30(A) 29(A) 28(A) 27(A) 26(A) 25(A) 24(A) 23(A) 22(A) 21(A) 20(A) 19(A) 18(A) 17(A) 16(A)
5 15B 14B 13B 12B 11B 10B 9B 8B 7B 6B 5B 4B 3B 2B 1B --
6 31B 30B 29B 28B 27B 26B 25B 24B 23B 22B 21B 20B 19B 18B 17B 16B
The area is completely ignored.
7...120
It does not matter whether the data area exists or what data is contained.
Legend:
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
196
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved MOD
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
MOD operating mode 1 byte 0x00 = set master to the normal mode (protected mode)
0x01 = set master to the projection mode
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
197
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST old SLA
4 reserved reserved ST new SLA
The area is completely ignored.
5...120
It does not matter whether the data area exists or what data is contained.
Legend:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
198
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
199
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Command 07 (0x0007) - Set the auto address mode of the AS-i master
8811
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved AutoAd
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
AutoAd automatic addressing 1 byte 00 = deactivate automatic addressing
01 = activate automatic addressing
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
200
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 reserved new Extended ID-Code 1
The area is completely ignored.
5 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
201
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
202
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2-Code ID1-Code ID-Code IO-Code
1 UID
2 command number
3 reserved
4 Slave 1(A)
5 Slave 2(A)
6 Slave 3(A)
7 Slave 4(A)
8 Slave 5(A)
9 Slave 6(A)
10 Slave 7(A)
11 Slave 8(A)
12 Slave 9(A)
13 Slave 10(A)
14 Slave 11(A)
15 Slave 12(A)
16 Slave 13(A)
17 Slave 14(A)
18 Slave 15(A)
19 Slave 16(A)
20 Slave 17(A)
21 Slave 18(A)
22 Slave 19(A)
23 Slave 20(A)
24 Slave 21(A)
25 Slave 22(A)
26 Slave 23(A)
27 Slave 24(A)
28 Slave 25(A)
29 Slave 26(A)
30 Slave 27(A)
31 Slave 28(A)
32 Slave 29(A)
203
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
Bit
Offset
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word no.
ID2-Code ID1-Code ID-Code IO-Code
33 Slave 30(A)
34 Slave 31(A)
35 reserved
36 Slave 1B
37 Slave 2B
38 Slave 3B
39 Slave 4B
40 Slave 5B
41 Slave 6B
42 Slave 7B
43 Slave 8B
44 Slave 9B
45 Slave 10B
46 Slave 11B
47 Slave 12B
48 Slave 13B
49 Slave 14B
50 Slave 15B
51 Slave 16B
52 Slave 17B
53 Slave 18B
54 Slave 19B
55 Slave 20B
56 Slave 21B
57 Slave 22B
58 Slave 23B
59 Slave 24B
60 Slave 25B
61 Slave 26B
62 Slave 27B
63 Slave 28B
64 Slave 29B
65 Slave 30B
66 Slave 31B
The area is completely ignored.
67...120
It does not matter whether the data area exists or what data is contained.
Legend:
204
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
205
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
The area is completely ignored.
3 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
206
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 reserved reserved PF1 PF2 SE EF PM PS
6 Voltage ASi+ to ASi- in [mV]
7 Voltage FE to ASi- in [mV]
8 Symmetry (-100...100) in [%]
The area is completely ignored.
9 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
EF earth fault 1 bit 0 = no earth fault is detected
1 = asymmetric supply voltage; classified as earth fault
PF1 powerfail 22.5 V 1 bit 0 = no AS-i Power Fail (classic APF)
1 = AS-i voltage < 22.5 V
There is an AS-i power fail (classic APF)
PF2 powerfail 19 V 1 bit 0 = no AS-i Power Fail (24V APF)
1 = AS-i voltage < 19 V
There is an AS-i power fail (24V APF)
PM powermodule 1 bit 0 = no data decoupling module is connected
1 = a data decoupling module is connected
PS powersource 1 bit 0 = the device is supplied from AUX
1 = the device is supplied from AS-i
SE status earth fault 1 bit 0 = no earth fault detection possible (e.g. no AS-i voltage)
detection 1 = earth fault detection provides valid data
>
207
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
208
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 Number of bytes received as from word no. 4 reserved ST reflected slave address
209
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
210
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
The area is completely ignored.
3 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 M12 reserved
6 Master firmware version, places before the decimal point
7 Master firmware version, decimal places
The area is completely ignored.
8 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
M12 number of AS-i masters 1 byte 0x00 = device has 1 AS-i master
0x01 = device has 2 AS-i masters
>
211
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
Command 28 (0x001C) Deactivate slave reset when changing to the protected mode
8828
When changing from the projection mode to the protected mode, all slaves are normally briefly reset
(reset or offline phase). This may lead to problems when the system is running. In such cases the
"deactivation of the slave reset" prevents the short deactivation of the slave outputs during changing of
the operating mode.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved OLP
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
OLP offline phase 1 byte 0x00 = offline phase when changing over to the protected mode
= slave reset 0x01 = no offline phase when changing over to the protected mode
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
212
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
213
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
214
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
215
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
216
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 Number of bytes to be transmitted reserved ST SLA
4...m parameter byte n+1 parameter byte n
The area is completely ignored.
(m+1)...120
It does not matter whether the data area exists or what data is contained.
Legend:
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
The number of the bytes to be sent must be divisible by 2 since the system always transmits
only multiples of 2 bytes in the S7.4 protocol.
217
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
218
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
The area is completely ignored.
5 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
219
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1* data byte n
* ... If the number of bytes to be transmitted is odd, a zero byte (= 0x00) is transmitted in the data byte n+1.
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x50 = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x90 = CTT2 error on command execution:
- Data byte 0 contains Standard CTT2 error codes ( page 192).
- The data in the following data bytes is irrelevant.
>
>
220
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
5 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
221
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 Command error code
6 data byte 0 RC
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x51 = No CTT2 error on command execution :
The data in the following data bytes is irrelevant.
0x91 = CTT2 error on command execution:
Data byte 0 contains Standard CTT2 error codes ( page 192).
>
222
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
The area is completely ignored.
5 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
223
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1* data byte n
* ... If the number of bytes to be transmitted is odd, a zero byte (= 0x00) is transmitted in the data byte n+1.
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x52 = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x92 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
224
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
5 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
225
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 Data byte 0 RC
>
0x00 No fault
0x0A NA Slave is not in the LAS
0x14 IC Invalid S-7.4 command
0x17 CMD_PRE Start requirements for S-7.4 command not met:
- Wrong slave profile (is not S-7.4) or:
- Slave is not in LAS or:
- Master is not in the protected mode
226
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
The area is completely ignored.
5 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
227
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1* data byte n
* ... If the number of bytes to be transmitted is odd, a zero byte (= 0x00) is transmitted in the data byte n+1.
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x54 = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x94 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
>
228
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 DL IX
5 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
229
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x55 = No CTT2 error on command execution :
The data in the following data bytes is irrelevant.
0x95 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
230
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 ... m reserved DL
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
231
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x58 = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x98 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
232
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 Data byte 0 DL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
233
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x59 = No CTT2 error on command execution :
Data byte 0 contains the number of bytes to be read (block length); Valid
values: 0x00 ... 0xFF ( data sheet of the AS-i slave)
0x99 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
234
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 ... m reserved DL
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
235
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x58 = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x98 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
236
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 Data byte 0 DL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
237
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x59 = No CTT2 error on command execution :
Data byte 0 contains the number of bytes to be read (block length); Valid
values: 0x00 ... 0xFF ( data sheet of the AS-i slave)
0x99 = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
238
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 ... m reserved DL
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
239
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5A = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x9A = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
240
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 Data byte 0 DL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
241
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5B = No CTT2 error on command execution :
Data byte 0 contains the block length (= number of bytes to be read); Valid
values: 0x00 ... 0xFF ( data sheet of the AS-i slave)
0x9B = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
>
242
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 RL IX
5 Data byte 0 WL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
RL read length 1 byte number of bytes to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
WL write length 1 byte number of bytes to be written
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
243
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1* data byte n
* ... If the number of bytes to be transmitted is odd, a zero byte (= 0x00) is transmitted in the data byte n+1.
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5D = No CTT2 error on command execution
The following data bytes contain the requested data.
0x9D = CTT2 error on command execution
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
244
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 RL IX
5 Data byte 0 WL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
RL read length 1 byte number of bytes to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
WL write length 1 byte number of bytes to be written
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
245
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
5 number of bytes received reserved ST reflected slave address
6 data byte 0 RC
7 ... m data byte n+1* data byte n
* ... If the number of bytes to be transmitted is odd, a zero byte (= 0x00) is transmitted in the data byte n+1.
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5E = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x9E = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
246
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 ... m reserved DL
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
247
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5A = No CTT2 error on command execution :
The following data bytes contain the requested data.
0x9A = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
248
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 reserved reserved ST SLA
4 SIX IX
5 Data byte 0 DL
6 ... m Data byte (n+1) Data byte n
The area is completely ignored.
(m+1) ... 120
It does not matter whether the data area exists or what data is contained.
Legende:
DL data length 1 byte number of bytes to be transferred
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
IX index 1 byte pointer to the page to be read
permitted values: 0x000xFF = 0255 ( data sheet of the slave)
SIX sub-index 1 byte pointer on element on this page ( data sheet of the slave)
SLA slave address 5 bits 0x000x1F = 031
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
UID user ID 1 word 0x00000xFFFF = 065535
The user ID ensures clear identification of the commmand response data
of the command request data sent before. The user can assign any user
ID in the command request. The AS-i master reflects the user ID from the
command request into the corresponding command response.
249
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
6 data byte 0 RC
7 ... m data byte n+1 data byte n
Legend:
ST slave type 1 bit 0 = single slave or A slave
1 = B slave (= addition of 0x20 or 32 to the slave address)
RC CTT2 Response Code 1 byte 0x5B = No CTT2 error on command execution :
Data byte 0 contains the block length (= number of bytes to be read); Valid
values: 0x00 ... 0xFF ( data sheet of the AS-i slave)
0x9B = CTT2 error on command execution:
The following data bytes 0...5 contain CTT2 error object ( page 192).
>
250
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
3 Setting reserved MOD
The area is completely ignored.
4 ... 120
It does not matter whether the data area exists or what data is contained.
Legend:
Setting Selection of the 0x01 = ground-fault detection (EE)
diagnostic function 0x02 = double address recognition (DAE)
MOD Activate/deactivate the 0 = deactivate function
selected diagnostic 1 = activate function
function in the settings
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
251
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Annex Command channels
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 UID
2 command number
>
bit
Offset
Word no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 reflected user ID
2 reflected command number
3 reserved Command status ( page 169)
4 command error code
>
252
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Index
Command 03 (0x0003) Project currrent AS-i network .....................195 Communication settings ........................................................................28
Command 05 (0x0005) Change the operating mode of the AS-i Components of the ifm AS-i package ....................................................16
master ..................................................................................................197 Configure AC14nn controller .................................................................28
Command 06 (0x0006) Change AS-i slave address........................198 Configure AS-i master ...........................................................................44
Command 09 (0x0009) Change extended ID1 in the AS-i slave .....201 Configure AS-i slaves ............................................................................44
Command 10 (0x000A) - Change PCD ...............................................203 Configure connection with AC14nn .......................................................28
Command 13 (0x000D) AS-i master supply voltage, symmetry, earth Configure Ethernet interface..................................................................25
fault ......................................................................................................206
Configure system ...................................................................................44
ifm Programming Manual CODESYS for AS-i Fieldbus Gateways AC14nn Firmware 3.0.24 or higher 2015-04-23
Index Command channels
S
Safety instructions ...................................................................................8
Send commands to the system and the AS-i master ............................47
Set parameters for visualisation task ....................................................51
Set_AddressMode .................................................................................94
Set_ASi_Config .....................................................................................96
Set_LPS .................................................................................................98
Set_Mode.............................................................................................100
Set_PCD ..............................................................................................101
Set_ProjectAll ......................................................................................103
Set_SlaveAddress ...............................................................................104
Set_SlaveExtendedID1 .......................................................................106
Set_SlaveParameter............................................................................108
Set_TimeDate ......................................................................................117
Software .................................................................................................12
11 ifm weltweit ifm worldwide ifm lchelle
internationale
Stand: 2014-04-03 8310