2
ifm Programming Manual AS-i Gateway AC14 (4.2.x) 12/2017
Content
Contents
1 Preliminary note 4
1.1 Legal and copyright information ........................................................................................... 4
1.2 Purpose of the document ..................................................................................................... 4
1.3 Symbols and styles used ..................................................................................................... 5
1.4 Overview: User documentation for AS-i Gateway AC14 ..................................................... 5
1.5 Overview: CODESYS documentation of 3S ........................................................................ 6
1.6 Modification history .............................................................................................................. 6
2 Safety instructions 7
2.1 General safety instructions .................................................................................................. 7
2.2 Required background knowledge ........................................................................................ 7
2.3 Warnings used ..................................................................................................................... 8
3 System requirements 9
3.1 Hardware .............................................................................................................................. 9
3.2 Software ............................................................................................................................... 9
3.3 Licensing ............................................................................................................................10
4 Installation 11
4.1 CODESYS programming software .....................................................................................11
4.1.1 Install CODESYS Development System..................................................................................... 11
4.2 ifm AS-i Package................................................................................................................12
4.2.1 Components of the ifm package ................................................................................................. 12
4.2.2 Install the ifm package ................................................................................................................ 13
4.2.3 Update ifm package ................................................................................................................... 13
4.2.4 Uninstall the ifm package ........................................................................................................... 14
5 Getting started 15
5.1 Create CODESYS project ..................................................................................................16
5.1.1 Create new project with AS-i Gateway AC14 ............................................................................. 17
5.1.2 Overview: Project structure with AS-i Gateway AC14 ................................................................ 18
5.2 Use CODESYS online help ................................................................................................19
5.3 Set the programming interface ...........................................................................................20
5.3.1 Set communication path to PLC ................................................................................................. 20
6 System configuration 21
6.1 Configure PLC....................................................................................................................21
6.2 Configure Ethernet interface ..............................................................................................22
6.2.1 Available fieldbus stacks ............................................................................................................ 22
6.2.2 Add fieldbus stack ...................................................................................................................... 23
7 Programming 24
7.1 Objects of a PLC application ..............................................................................................24
7.2 Create PLC application ......................................................................................................25
7.2.1 Use remanent variables.............................................................................................................. 25
7.2.2 Supported programming languages ........................................................................................... 26
7.2.3 Change system time of the device ............................................................................................. 26