IFM AL1940 Application guide

Device Manual
IO-Link Master with Modbus TCP interface
CabinetLine
8 Ports
IP 20
AL1940
IO-Link: 1.1.2
ifm-Firmware: 2.1.28 or higher
LR DEVICE: 1.3.1.x or higher
English
7391167 / 01 05 / 2018

2
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Content
Table of Contents
1Preliminary note 5
1.1 Legal and copyright information...........................................................................................5
1.2 Purpose of the document.....................................................................................................5
1.3 Symbols and styles used.....................................................................................................6
1.4 Modification history ..............................................................................................................6
2Safety instructions 7
2.1 General ................................................................................................................................7
2.2 Required background knowledge ........................................................................................7
2.3 Safety symbols on the device..............................................................................................7
2.4 Tampering with the unit........................................................................................................8
3Intended use 9
3.1 Permitted use.......................................................................................................................9
3.2 Prohibited use......................................................................................................................9
4Function 10
4.1 Communication, parameter setting, evaluation .................................................................11
4.1.1 IO-Link........................................................................................................................................11
4.1.2 Modbus.......................................................................................................................................11
4.1.3 Internet of Things (IoT)...............................................................................................................11
4.1.4 Parameter setting.......................................................................................................................11
4.1.5 Visual indication .........................................................................................................................12
4.2 Digital inputs.......................................................................................................................12
4.3 IO-Link supply....................................................................................................................12
5Mounting 13
5.1 Install the device ................................................................................................................13
6Electrical connection 14
6.1 Remarks.............................................................................................................................14
6.2 Modbus ports .....................................................................................................................15
6.3 IoT port...............................................................................................................................15
6.4 IO-Link ports.......................................................................................................................16
6.4.1 Input circuit.................................................................................................................................17
6.4.2 IO-Link circuits............................................................................................................................17
6.5 Connect the device ............................................................................................................18
7Operating and display elements 19
7.1 Overview............................................................................................................................19
7.2 LED indicators....................................................................................................................20
7.2.1 Status LEDs ...............................................................................................................................20
7.2.2 Ethernet interface.......................................................................................................................20
7.2.3 IoT port.......................................................................................................................................21
7.2.4 Power supply..............................................................................................................................21
7.2.5 IO-Link ports (Class A)...............................................................................................................21

3
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Content
8Configuration 22
8.1 LR DEVICE........................................................................................................................23
8.1.1 Remarks.....................................................................................................................................24
8.1.2 IoT: Configure access rights.......................................................................................................25
8.1.3 IoT: Configure IP settings...........................................................................................................26
8.1.4 IoT: Configure the interface to the LR SMARTOBSERVER.......................................................27
8.1.5 Fieldbus: configure Modbus port................................................................................................28
8.1.6 IO-Link ports: Activate data transfer to the LR SMARTOBSERVER ..........................................29
8.1.7 IO-Link ports: Configure operating mode....................................................................................30
8.1.8 IO-Link ports: Set the device validation and data storage ..........................................................31
8.1.9 IO-Link ports: set fail-safe values...............................................................................................32
8.1.10 Info: Show device information ....................................................................................................32
8.1.11 Firmware: Reset device to factory settings.................................................................................33
8.1.12 Firmware: Reboot the device......................................................................................................33
8.1.13 Configure IO-Link devices..........................................................................................................34
8.2 IoT Core.............................................................................................................................35
8.2.1 Configure IoT interface...............................................................................................................36
8.2.2 Configure the fieldbus port .........................................................................................................37
8.2.3 Configure IO-Link ports ..............................................................................................................37
8.2.4 Set application identification.......................................................................................................38
8.2.5 Read / write cyclic process data.................................................................................................38
8.2.6 Read diagnostic data..................................................................................................................38
8.2.7 Read device information.............................................................................................................39
8.2.8 Read information about IO-Link devices ....................................................................................39
8.2.9 Configure IO-Link devices..........................................................................................................40
8.2.10 Control IO-Link master ...............................................................................................................40
8.2.11 Examples....................................................................................................................................41
8.2.12 Programmers' notes...................................................................................................................45
8.3 Modbus ..............................................................................................................................49
8.3.1 Integrate the AL1940 into the Modbus project............................................................................49
8.3.2 Set IO-Link master and IO-Link ports.........................................................................................51
8.3.3 Read input data of several IO-Link ports....................................................................................52
8.3.4 Read input data of individual IO-Link ports.................................................................................53
8.3.5 Write output data of several IO-Link ports..................................................................................54
8.3.6 Write output data of individual IO-Link ports...............................................................................55
8.3.7 Read diagnostic information and events.....................................................................................56
8.3.8 Read device information.............................................................................................................57
8.3.9 Control IO-Link master ...............................................................................................................57
8.3.10 Configure IO-Link devices..........................................................................................................57
8.3.11 Modbus: Programmers' notes.....................................................................................................58

4
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Content
9Operation 60
9.1 Firmware update................................................................................................................60
9.2 Web interface: Read device and diagnostic information....................................................61
9.3 Replace IO-Link device......................................................................................................62
10 Maintenance 63
11 Factory settings 64
12 Accessories 65
13 Appendix 66
13.1 Technical data....................................................................................................................67
13.1.1 Application..................................................................................................................................67
13.1.2 Electrical data.............................................................................................................................67
13.1.3 Inputs / outputs...........................................................................................................................67
13.1.4 Inputs..........................................................................................................................................68
13.1.5 Outputs.......................................................................................................................................68
13.1.6 Interfaces....................................................................................................................................68
13.1.7 Environmental conditions ...........................................................................................................69
13.1.8 Approvals / tests.........................................................................................................................69
13.1.9 Mechanical data.........................................................................................................................69
13.1.10 Electrical connection ..................................................................................................................70
13.2 Modbus ..............................................................................................................................71
13.2.1 Register......................................................................................................................................72
13.2.2 Acyclic commands......................................................................................................................88
13.3 ifm IoT Core .......................................................................................................................97
13.3.1 Overview: IoT profile ..................................................................................................................98
13.3.2 Overview: IoT types..................................................................................................................101
13.3.3 Overview: IoT services.............................................................................................................102
14 Index 109

5
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Preliminary note Legal and copyright information
1Preliminary note
Legal and copyright information ...............................................................................................................5
Purpose of the document .........................................................................................................................5
Symbols and styles used..........................................................................................................................6
Modification history...................................................................................................................................6
14801
>
1.1 Legal and copyright information
1631
© All rights reserved by ifm electronic gmbh. No part of this manual may be reproduced and used
without the consent of ifm electronic gmbh.
All product names, pictures, companies or other brands used on our pages are the property of the
respective rights owners:
AS-i is the property of the AS-International Association, (→www.as-interface.net)
CAN is the property of the CiA (CAN in Automation e.V.), Germany (→www.can-cia.org)
CODESYS™ is the property of the 3S – Smart Software Solutions GmbH, Germany
(→www.codesys.com)
DeviceNet™ is the property of the ODVA™ (Open DeviceNet Vendor Association), USA
(→www.odva.org)
EtherNet/IP® is the property of the →ODVA™
EtherCAT®is a registered trade mark and patented technology, licensed by Beckhoff Automation
GmbH, Germany
IO-Link®(→www.io-link.com) is the property of the →PROFIBUS Nutzerorganisation e.V.,
Germany
ISOBUS is the property of the AEF –Agricultural Industry Electronics Foundation e.V.,
Deutschland (→www.aef-online.org)
Microsoft®is the property of the Microsoft Corporation, USA (→www.microsoft.com)
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
>
1.2 Purpose of the document
22044
This document is only for device types "IO-Link master - Modbus gateway (CabinetLine) 8 port IP 20"
(art. no.: AL1940).
It is part of the device and contains information about the correct handling of the product.
►Read this document before using the device.
►Keep this document during the service life of the device.

6
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Preliminary note Symbols and styles used
>
1.3 Symbols and styles used
15989
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
0x123
0b010
Decimal number
Hexadecimal number
Binary number
[...]
Designation of pushbuttons, buttons or indications
>
1.4 Modification history
21676
Version
Topic
Date
00
New creation of document
04 / 2018
01
Update to firmware 2.1.28
05 / 2018

7
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Safety instructions General
2Safety instructions
General.....................................................................................................................................................7
Required background knowledge.............................................................................................................7
Safety symbols on the device...................................................................................................................7
Tampering with the unit............................................................................................................................8
213
>
2.1 General
22068
The plant manufacturer is responsible for the safety of the plant in which the device is
installed.
If the device is used in a way that is not intended by the manufacturer, the protection
supported by the device may be impaired.
Non-observance of the instructions, operation which is not in accordance with use as
prescribed below, wrong installation or incorrect handling can affect the safety of operators
and machinery.
►Observe these operating instructions.
►Adhere to the warning notes on the product.
>
2.2 Required background knowledge
22046
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.
>
2.3 Safety symbols on the device
15021
General warning
Observe instructions in chapter "Electrical connection" (→Electrical connection (→p. 14))!

8
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Safety instructions Tampering with the unit
>
2.4 Tampering with the unit
11242
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!

9
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Intended use Permitted use
3Intended use
Permitted use ...........................................................................................................................................9
Prohibited use...........................................................................................................................................9
18761
>
3.1 Permitted use
11028
The IO-Link master serves as a gateway between intelligent IO-Link devices and the fieldbus. The
device is designed for use as cabinet module in plant construction.
>
3.2 Prohibited use
22053
The device may not be used beyond the limits of the technical data (→Technical data (→p. 67))!

10
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Function Prohibited use
4Function
Communication, parameter setting, evaluation......................................................................................11
Digital inputs...........................................................................................................................................12
IO-Link supply.........................................................................................................................................12
7482

11
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Function Communication, parameter setting, evaluation
>
4.1 Communication, parameter setting, evaluation
IO-Link....................................................................................................................................................11
Modbus...................................................................................................................................................11
Internet of Things (IoT)...........................................................................................................................11
Parameter setting ...................................................................................................................................11
Visual indication......................................................................................................................................12
7485
>
4.1.1 IO-Link
7773
The device offers the following IO-Link functions:
IO-Link master (IO-Link revision 1.0 and 1.1)
8 IO-Link ports for connection of IO-Link devices
Provision of process data of the connected IO-Link devices for LR SMARTOBSERVER monitoring
software (→www.ifm.com)
>
4.1.2 Modbus
2259
The device offers the following Modbus functions:
Provision of the functions of a Modbus TCP Slave
2 port switch for access to the Modbus interface (X21/X22)
Gateway for transmission of the process and parameter data between the connected IO-Link
devices and the higher-level Modbus controller
>
4.1.3 Internet of Things (IoT)
8355
The device has an Ethernet port (X23) for Internet-of-Things applications. The interface allows
separate access from IT networks to parameters, process and monitoring data of the IO-Link master
and the connected IO-Link devices. Different protocols (e.g. TCP/IP JSON) are supported.
>
4.1.4 Parameter setting
7284
The device provides the following configuration options:
Parameter setting of the IO-Link master of the AL1940 with LR DEVICE parameter setting
software, Modbus projection software or ifm IoT-Core services.
Parameter setting of the connected IO-Link devices (sensors, actuators) with LR DEVICE
parameter setting software, Modbus projection software or ifm IoT-Core services
Storage of parameter sets of the connected IO-Link devices for automatic recovery (data storage)

12
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Function Digital inputs
>
4.1.5 Visual indication
7772
The device has the following visual indicators:
Status and error indication of the gateway, of the Modbus connection and of the system
Status display of the voltage supply
Status and activity display of the Ethernet connection
Status, error and short circuit/overload indication of the IO-Link ports
>
4.2 Digital inputs
7584
The device has 8 additional digital inputs (type 2 according to EN 61131-2).
The digital inputs are on clamp 2 of the IO-Link ports X01 ... X08.
All inputs refer to the potential of the device supply (clamp 3).
>
4.3 IO-Link supply
7623
The device has 8 supplies for IO-Link devices.
The IO-Link ports X01...X08 are ports class A.
Every supply provides short circuit monitoring.
The device ensures fire protection for the connected IO-Link devices by providing a power-restricted
circuit at the IO-Link ports (according to IEC61010-1 and Class 2 according to UL1310).

13
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Mounting Install the device
5Mounting
Install the device.....................................................................................................................................13
22016
>
5.1 Install the device
16676
►Disconnect power before installation.
The device contains components that can be damaged or destroyed by electrostatic
discharge.
►When handling the device, observe the necessary safety precautions against electrostatic
discharge (ESD).
►Only operate the device when mounted on a grounded DIN rail.
►Install the device in a control cabinet of protection rating IP 54 or higher. The control cabinet has
to be installed in accordance with local and national regulations.
►Fix the device vertically onto a 35 mm raised rail.
►Leave enough space between the unit and the top or bottom of the control cabinet as well as to
adjacent devices to enable air circulation and to avoid inadmissible heating.

14
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Electrical connection Remarks
6Electrical connection
Remarks .................................................................................................................................................14
Modbus ports..........................................................................................................................................15
IoT port ...................................................................................................................................................15
IO-Link ports...........................................................................................................................................16
Connect the device.................................................................................................................................18
22017
>
6.1 Remarks
23709
A qualified electrician must connect the unit.
►Observe the national and international regulations for the installation of electrical
equipment.
Device is only suitable for operation on SELV/PELV voltages.
►Observe the information concerning IO-Link circuits (→IO-Link circuits (→p. 17))!
The IP rating depends on the individual protection ratings of the unit, the applied connection
elements and the corresponding protective covers.
►For UL applications: For connecting the device and the IO-Link devices use UL certificated
cables of category CYJV or PVVA with a minimum temperature rating of 100°C.
Wiring: →Technical data (→p. 67)

15
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Electrical connection Modbus ports
>
6.2 Modbus ports
17858
►Connect the unit via the sockets X21 and/or X22 to the Modbus
network.
►To connect the devices, use connectors with protection rating IP 20
or higher (→Accessories (→p. 65)).
>
6.3 IoT port
17859
►Connect the device via the socket "IoT" (X23) to the IT network (e.g.
laptop/PC with the installed LR DEVICE parameter setting software,
laptop/PC with installed LR SMARTOBSERVER monitoring
software).
►To connect the devices, use connectors with protection rating IP 20
or higher (→Accessories (→p. 65)).

16
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Electrical connection IO-Link ports
>
6.4 IO-Link ports
17860
►Connect the IO-Link devices to the terminals X01 ... X08.
Wiring: →Technical data (→p. 67)
Maximum cable length per IO-Link port: 20 m
►To connect the devices, use cables with protection rating IP 20 or
higher.
If operating as IO-Link port class B:
►Observe notes regarding IO-Link circuits (→IO-Link circuits (→p. 17))!

17
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Electrical connection IO-Link ports
>
6.4.1 Input circuit
17863
The inputs of the ports X01...X08 (clamp 2) are of type 2 according to the standard EN61131-2, the
connected electronics must be designed for this purpose.
>
6.4.2 IO-Link circuits
7260
The IO-Link ports of the device meet the requirements of the IO-Link specification 1.0 bis 1.1.2.
The power supply of the connected IO-Link devices may only take place via the AL1940.
Exception: Connection of IO-Link devices with additonal external power supply to ports
X01...X08 for port class B operation
Wiring:
Maximum admissible current for UA: 4 A
The external supply for port class B operation must be galvanically separeted from the circuit
of the AL1940 by assuring basic isolation (according to EN61010-1, secondary circuit with
maximum 30 V DC derived from applied voltage up to 300 V of overvoltage category II)!
NOTICE
Risk of material damage
If the requirements of galvanic separation of the circuits are not observed, the fire protection of the
device can not be assured.
►Observe the requirements of the electrical connection of IO-Link devices for port class B
operation!
Further information: →Technical data (→p. 67)

18
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Electrical connection Connect the device
>
6.5 Connect the device
17851
►Disconnect power.
►Connect the IO-Link master via port X31 to 24 V DC
(20...30 V SELV/PELV; according to IEC 61010-1, secondary circuit
with max. 30 V DC, supplied from main circuit up to 300 V of
overvoltage category II).
Wiring: →Technical data (→p. 67)
Recommended maximum cable length: 25 m
►To connect the device, use cables with protection rating IP 20 or
higher.
With cable lengths greater than 25 m observe the voltage drop and the necessary minimum
supply voltage of 20 V!

19
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Operating and display elements Overview
7Operating and display elements
Overview.................................................................................................................................................19
LED indicators ........................................................................................................................................20
5440
>
7.1 Overview
10998
1
IOL and DI status-LEDs of the IO-Link port (X01...X08
(→IO-Link ports (Class A) (→p. 21))
2
PWR status LED of the voltage supply (X31) (→Power
supply (→p. 21))
RDY, RUN and ERR Status LEDs (→Status LEDs
(→p. 20))
IoT status LED of the IoT port (X23) (→IoT port
(→p. 21))
3
LNK status LED of the IoT port (X23) (→IoT port
(→p. 21))
4
LNK and ACT status LEDs of the Modbus ports 1 (X21)
and 2 (X22) (→Ethernet interface (→p. 20))

20
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Operating and display elements LED indicators
>
7.2 LED indicators
22024
The device only has the following LED indicators:
>
7.2.1 Status LEDs
11748
The RDY LED indicates the status of the gateway.
The RUN LED indicates the current state of the Modbus state machine.
The ERR LED indicates occurring errors.
Status LED
Description
RDY
green
on
gateway functions properly
flashing 1 Hz
error
flashing 5 Hz
firmware update
off
gateway does not function; device reboots
ERR
red
on
error in application controller
flashes (10 Hz)
boot error
flashes (200 ms on,
200 ms off, 200 ms on,
1000 ms off)
watchdog error (Modbus or process data)
flashes (200 ms on,
1000 ms off)
local error
flashes (2.5 Hz)
invalid configuration
off
no error
RUN
green
on
connection established
flashes (1 Hz)
ready, but not yet configured
flashes (5 Hz)
waiting for connection
off
not ready
>
7.2.2 Ethernet interface
22027
Each Ethernet interface (X21, X22) has 2 LEDs (LNK and ACT). The LEDs indicate the status of the
Ethernet connection.
Status LED
Description
LNK
green
on
Ethernet connection established
off
No Ethernet connection
ACT
yellow
flashes
Data is transmitted via the Ethernet interface.
off
No data transmission
>
Table of contents
Other IFM Gateway manuals
Popular Gateway manuals by other brands

Bosch
Bosch Rexroth IndraControl SafeLogic... operating instructions

Emerson
Emerson CH Breaker Gateway Installation and operation manual

Brocade Communications Systems
Brocade Communications Systems Dimension 5100 quick start guide

H3 System
H3 System H3G-800 Instruction

LSI
LSI GC Series installer and user manual

FreePP
FreePP MPES-4 user guide

Robustel
Robustel R2010 Hardware manual

Machfu
Machfu i-ALERT Series installation manual

Linksys
Linksys WAG200G Quick installation guide

THOMSON
THOMSON 780 (WL) user guide

2N Telekomunikace
2N Telekomunikace ATEUS EasyGate user guide

SMC Networks
SMC Networks EZ Connect Commercial Cable Modem Gateway... Technical specifications