11425602uk Al4022
11425602uk Al4022
GB
Remote I/O module 16 DI
EtherNet/IP
IP65 / IP66 / IP67
AL4022
11425602 / 00 04 / 2022
AL4022 Remote I/O module 16 DI
Contents
1 Preliminary note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Safety instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Cyber security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1 Visual indication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2 Parameter setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.3 Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.3.1 Sensor supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.4 Digital input filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.4.1 Debouncing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.4.2 Holding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.4.3 Inverting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.4.4 Filter combination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.5 Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.5.1 Counter mode CTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.5.2 Counter mode CTD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.5.3 Counter mode CTUD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.5.4 Counter mode CTDIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.6 EtherNet/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1 Install device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2 General wiring information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2.1 Connection technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.3 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.4 Process connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.5 Voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.5.1 Derating behaviour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7 Operating and display elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1.1 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1.2 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1.3 Voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1.4 Process connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
8 Set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
9 Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9.1 Parameter setting software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9.1.1 Supported parameter setting software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9.1.2 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
[Link] Configure the EtherNet/IP interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9.1.3 Fieldbus: Read the interface configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
9.1.4 Fieldbus: Read the connection status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
9.1.5 Ports: Configure input filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
9.1.6 Ports: Read digital input data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
9.1.7 Counters: Configure counter modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
9.1.8 Counters: Read counter values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.1.9 Counters: Control counter modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.1.10 Gateway: Read identification information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.1.11 Gateway: Read status and diagnostic information. . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9.1.12 Gateway: Set the application tag. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9.1.13 Firmware: Read firmware version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.1.14 Firmware: Reset the device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.1.15 Firmware: Restart the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.2 ifm IoT Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2
Remote I/O module 16 DI AL4022
3
AL4022 Remote I/O module 16 DI
11.2.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
[Link] Configuration Assembly (Instance 198). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
[Link] Configuration Assembly (Instance 199). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
11.2.2 Cyclic data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
[Link] Input Assembly (Instance 101) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
[Link] Input Assembly (Instance 102) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
[Link] Output Assembly (Instance 150) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
11.2.3 Acyclical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
[Link] CIP class and instance services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
[Link] CIP object classes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
[Link] Identity Object (Class Code: 0x01) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
[Link] Message Router Object (Class Code: 0x02) . . . . . . . . . . . . . . . . . . . . . . . . . . 62
[Link] Assembly Object (Class Code: 0x04) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
[Link] Connection Manager Object (Class Code: 0x06) . . . . . . . . . . . . . . . . . . . . . . 64
[Link] Device Level Ring Object (Class Code: 0x47). . . . . . . . . . . . . . . . . . . . . . . . . 65
[Link] Quality Of Service Object (Class Code: 0x48). . . . . . . . . . . . . . . . . . . . . . . . . 66
[Link] Input Filter Object (Class Code: 0x81). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
[Link] Counter Object (Class Code: 0x82). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
[Link] LLDP Management Object (Class Code: 0x109). . . . . . . . . . . . . . . . . . . . . . . 69
[Link] TCP/IP Object (Class Code: 0xF5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
[Link] Ethernet Link Object (Class Code: 0xF6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4
Remote I/O module 16 DI AL4022
1 Preliminary note
You will find instructions, technical data, approvals and further information using the QR code on the
unit / packaging or at [Link].
5
AL4022 Remote I/O module 16 DI
2 Safety instructions
• The unit described is a subcomponent for integration into a system.
– The system architect is responsible for the safety of the system.
– The system architect undertakes to perform a risk assessment and to create documentation in
accordance with legal and normative requirements to be provided to the operator and user of
the system. This documentation must contain all necessary information and safety instructions
for the operator, the user and, if applicable, for any service personnel authorised by the
architect of the system.
• Read this document before setting up the product and keep it during the entire service life.
• The product must be suitable for the corresponding applications and environmental conditions
without any restrictions.
• Only use the product for its intended purpose (Ò Intended use).
• If the operating instructions or the technical data are not adhered to, personal injury and/or damage
to property may occur.
• The manufacturer assumes no liability or warranty for any consequences caused by tampering with
the product or incorrect use by the operator.
• Installation, electrical connection, set-up, operation and maintenance of the product must be
carried out by qualified personnel authorised by the machine operator.
• Protect units and cables against damage.
• Replace damaged units, otherwise the technical data and safety will be impaired.
ATTENTION
Operating the machine in an unprotected network environment
w Unauthorised read or write access to data is possible.
w Unauthorised manipulation of the device function is possible.
u Check and restrict access options to the device.
6
Remote I/O module 16 DI AL4022
3 Intended use
The unit may only be used for the following purposes:
• Gateway between digital sensors and a higher-level control system
The device is designed for use outside of a control cabinet.
7
AL4022 Remote I/O module 16 DI
4 Function
4.3 Inputs
The device has 8 ports. Each port has 2 digital inputs.
Filter module
Counter input
Process data
8
Remote I/O module 16 DI AL4022
Periodic signals are only detected reliably if the signal period is at least twice as long as the
cycle time.
4.4.1 Debouncing
The filter suppresses noise signals. The filter provides the input signals at the filter output with a delay
(debounce time). All signals shorter than the set debounce time are ignored by the filter.
Time diagram debounce filter:
1 1 1 1 1: debounce time
2: cycle time
1
Filter input
0
1
Filter output
0
1
Process data
0
t
2
4.4.2 Holding
The filter prolongs short input pulses. Level changes that occur during a holding period are ignored.
The filter is configured via the following parameters:
• Hold time: pulse duration to which short pulses are to be prolonged. Pulses that are present for a
longer time than the hold time are not prolonged.
• Hold level: signal level to be prolonged (HIGH or LOW)
Time diagram hold filter (status HIGH):
1 1 1 1: hold time
2: cycle time
1
Filter input
0
1
Filter output
0
1
Process data
0
t
2
t
2
9
AL4022 Remote I/O module 16 DI
4.4.3 Inverting
The filter inverts signals.
t
1
4.5 Counters
The device features one counter module per port.
A counter module consists of 2 separate counters:
• Main counter: The main counter counts the rising edges of the filtered digital input signals. The
main counter has a value range that is defined by a threshold value. If the value range of the main
counter is exceeded or not reached, an overflow or underflow signal is sent to the batch counter.
• Batch counter: The batch counter counts the overflow or underflow signals of the main counter.
Count input
Main counter Process data
Count input /
control input Batch counter Process data
A counter module can be operated in different operating modes. The following operating modes are
available.
10
Remote I/O module 16 DI AL4022
• If the counter module detects a positive edge at pin 4 of the port, the value of the main counter is
incremented (m = m+1).
• If the main counter reaches the threshold value CT (m = CT), the counter value is reset (m = 0).
Due to the overflow detection, the value of the batch counter is incremented (b = b+1).
• If the batch counter reaches the threshold value CTb (b = CTb), the counter value is reset (b = 0).
CT
Main Counter
0
CTb
Batch Counter
CT
Main Counter
0
CTb
Batch Counter
11
AL4022 Remote I/O module 16 DI
• If the counter module simultaneously detects a positive edge at pin 4 and pin 2 of the port, the
counter value of the main counter does not change.
• If the main counter reaches the threshold value CT (m = CT), the counter value is reset (m = 0).
Due to the overflow detection, the value of the batch counter is incremented (b = b+1).
• If the main counter falls below 0, the counter value is reset to the threshold value (m = CT-1). Due
to the underflow detection, the value of the batch counter is decremented (b = b-1).
• If the batch counter reaches the threshold value CTb (b = CTb), the counter value is reset (b = 0).
• If the batch counter falls below 0, the counter value is reset to the threshold value (b = CTb-1).
CT
Main Counter
0
CTb
Batch Counter
CT
Main Counter
0
CTb
Batch Counter
4.6 EtherNet/IP
The unit supports the following EtherNet/IP functions:
12
Remote I/O module 16 DI AL4022
13
AL4022 Remote I/O module 16 DI
5 Installation
u Fasten the module onto the mounting surface using M5 screws and washers (tightening torque: 1.8
Nm).
14
Remote I/O module 16 DI AL4022
6 Electrical connection
6.1 Overview
X21 X22 X21: Ethernet 1 (EtherNet/IP)
X22: Ethernet 2 (EtherNet/IP)
X31: power IN
X31 X01: process connection 1 (sensor)
X02: process connection 2 (sensor)
X01 X02 X03: process connection 3 (sensor)
X04: process connection 4 (sensor)
X05: process connection 5 (sensor)
X06: process connection 6 (sensor)
X07: process connection 7 (sensor)
X08: process connection 8 (sensor)
X03 X04
X05 X06
X07 X08
6.3 Ethernet
The device is connected to the EtherNet/IP network via the Ethernet ports X21 / X22 (e. g. EtherNet/IP
control, additional EtherNet/IP device). In addition, the device can be connected to an IT network via
the Ethernet ports. Via the IT network, the user can access functions of the ifm IoT Core (configuration
tools, REST API, IoT Core Visualizer).
15
AL4022 Remote I/O module 16 DI
u Connect the device to the EtherNet/IP network via a free Ethernet port.
u Optional: Connect the device to the IT network via a free Ethernet port.
u For connection, use an M12 connector (with at least protection rating: IP65 / IP66 / IP67).
u Tighten the cable plug using 1.3 ± 0.1 Nm.
Wiring:
1 2 1: TX +
5 2: RX +
3: TX -
4 3
4: RX -
5: not used
2 1 1: + 24 V DC (US)
2: not used
3 4 3: GND (US)
4: not used
16
Remote I/O module 16 DI AL4022
1 3.5
3
2.5
Current [A]
2
1.5
2000 m
1 3000 m
4000 m
0.5
17
AL4022 Remote I/O module 16 DI
7.1 LEDs
1 2 3 1: status: RDY
2: status: NET
4 4 3: status: MOD
5 5 4: EtherNet/IP: LNK
5: EtherNet/IP: ACT
8 6: Process connection: DI1
7: Process connection: DI2
8: voltage supply: US
6 6
7 7
6 6
7 7
6 6
7 7
6 6
7 7
7.1.1 Status
LED Description Colour State Description
RDY Gateway status - Off Not active or reboots
Green Flashes 3 s (1 Hz) DCP signalling service initiated via fieldbus
Flashes (5 Hz) Error
Flashes (200 ms Firmware update running
on, 800 ms off)
On OK
Red On Error during firmware update (e.g. firmware not compatible)
NET Network status - Off Not powered, no IP address: device has no IP address or
no voltage applied or voltage applied is too low
Green / Flashes Self test: Unit in self-test after start (Ò MOD-LED)
red / yel-
low
Green Flashes (1 Hz) No connection: no CIP connection established and no ex-
clusive owner connection timeout
On Connected: device has IP address and at least one CIP
connection established and no exclusive owner connection
timeout
Red Flashes (1 Hz) Connection timeout: device has IP address and exclusive
owner connection timeout
On Duplicate IP: IP address used twice
MOD EtherNet/IP status -- Off No power: no voltage is applied or the applied voltage is too
low
Green / Flashes Self test: device in self-test during start
red / yel-
low
Green Flashes (2 Hz) Standby: device is not configured
18
Remote I/O module 16 DI AL4022
7.1.2 Ethernet
LED Description Colour State Description
LNK Status of the con- Green Off no Ethernet connection
nection
On Ethernet connection established
ACT Status of the data Yellow Off no data transmission
transmission
Flashes Data transmission
19
AL4022 Remote I/O module 16 DI
8 Set-up
u Install the unit correctly.
u Establish a correct electrical connection with the device.
w Once connected to the supply voltage, the unit will start.
w The LEDs show status and error conditions.
w The unit is ready for operation.
w The device can be configured.
20
Remote I/O module 16 DI AL4022
9 Settings
The configuration created with ifm moneo is overwritten when a Configuration Assembly Object
is transferred to the device during connection to the EtherNet/IP PLC.
With the parameter setting software ifm moneo or ifm moneo|configure (SA), the IP parameters
of the EtherNet/IP interface can only be set during the network scan. In the editor view of the
device, the configuration of the EtherNet/IP interface is read-only.
21
AL4022 Remote I/O module 16 DI
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the [fieldbussetup] > [network] menu.
w The menu page displays the current configuration of the EtherNet/IP interface.
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the [fieldbussetup] menu.
w The menu page displays the status of the EtherNet/IP connection.
Available parameters:
22
Remote I/O module 16 DI AL4022
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [io] > [port[n]] (n: 1…8).
w The menu page displays the current process values of the port’s digital inputs.
23
AL4022 Remote I/O module 16 DI
If the operating mode of a counter module is changed, the current counter values will be reset
and any active events will be deleted.
For the parameters [pin2_function] and [count_direction_selection] all shown parameter values can be
selected. It is not checked whether these make sense. For each counter operating mode (parameter
[mode]), the table below indicates the valid value ranges (: valid setting; : invalid setting):
[pin2_function] [count_direction_selection]
Disable
[mode] Counter Reset (Main IoT / PLC
Count Direc- (Main & Pin 2 Count
N/C Edge Input & Batch Count Direc-
tion Batch Coun- Direction
Pin2 Counter) tion
ter)
CTU
CTD
CTUD
CTDIR
CTDIR
Available parameters:
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [io] > [counter[n]] (n: 1…8).
w The menu page displays the configuration options of the counter.
u Configure the counter module.
24
Remote I/O module 16 DI AL4022
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [io] > [port[n]] (n: 1…8).
w The menu page displays the current counter values of the main and batch counter.
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [io] > [counter[n]] (n: 1…8).
w The menu page displays the available parameters.
u Optional: disable counter module.
u Optional: reset counter module.
u Optional: set counting direction of counter module.
u Write the changed parameter values to the device.
w Selected actions are executed.
25
AL4022 Remote I/O module 16 DI
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [deviceinfo].
w The menu page displays the identification information of the device.
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [Processdatamaster].
w The menu page displays the diagnostic and status information.
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the menu option [devicetag].
u Enter the application identifier.
26
Remote I/O module 16 DI AL4022
Requirements:
ü The parameter setting software has been started.
ü The detailed view of the device is active.
u Select the [Firmware] menu.
w The menu page displays the firmware version of the device.
27
AL4022 Remote I/O module 16 DI
GET method
Access: reading
Syntax of the request:
[Link]
Parameter Description
ip IP address of the IoT interface
data_point Data point which is to be accessed
service Service
{
"cid":id,
"data":{"value":"resp_data"},
"adr":"data_point/service",
"code":diag_code
}
[Link]
• Response:
28
Remote I/O module 16 DI AL4022
{
"cid":-1,
"data":{"value":"factory 2 plant 1"},
"adr":"devicetag/applicationtag/getdata",
"code":200
}
POST method
Access: reading, writing
Syntax of the request:
{
"code":"code_id",
"cid":id,
"adr":"data_point/service",
"data":{req_data},
}
{
"cid":id,
"data":{resp_data},
"adr":"data_point/service",
"code":diag_code
}
29
AL4022 Remote I/O module 16 DI
{
"code":"request",
"cid":-1,
"adr":"devicetag/applicationtag/getdata"
}
• Response:
{
"cid":-1,
"data":{"value":"Do not use"},
"adr":"devicetag/applicationtag/getdata",
"code":200
}
The configuration created via the IoT Core (API, IoT Core Visualizer) is overwritten when a
Configuration Assembly Object is transferred to the device during a connection to the fieldbus
PLC.
Service Description
../gettree Provide the complete tree or subtree of the device description (JSON)
../getidentity Read identification information of the device
../getdatamulti Reading several elements sequentially
../getelementinfo Reading detailed information of an element
../getsubscriberlist Print a list of all active notification subscriptions
../querytree Search device description for specific elements
The following services can be applied to elements of the type data depending on its access rights:
Service Description
../getdata Reading the value of the element
../setdata Write the value of the element
30
Remote I/O module 16 DI AL4022
{
"code":"request",
"cid":4711,
"adr":"gettree",
"data":{"adr":"firmware","level":1}
}
• Response:
{
"cid":4711,
"data":{
"identifier":"firmware",
"type":"structure",
"profiles":["software","software/uploadablesoftware","devicereset"],
"subs":[
{"identifier":"version","type":"data","profiles":
["parameter"],"profiles":["parameter"],"format":
{"type":"string","namespace":"json","encoding":"UTF-8"}},
{"identifier":"type","type":"data","profiles":["parameter"],"format":
{"type":"string","namespace":"json","encoding":"UTF-8"}},
{"identifier":"factoryreset","type":"service"},
{"identifier":"install","type":"service"},
{"identifier":"signal","type":"service"},
{"identifier":"container","type":"data","profiles":["blob"],"format":
{"type":"binary","namespace":"json","encoding":"base64"}},
{"identifier":"reboot","type":"service"}
]
},
"adr":"gettree",
"code":200
}
31
AL4022 Remote I/O module 16 DI
{
"code":"request",
"cid":4711,
"adr":"/getdatamulti",
"data":{"datatosend":[
"/processdatamaster/temperature",
"/deviceinfo/serialnumber"]
}
}
• Response:
{
"cid":4711,
"data":{
"processdatamaster/temperature":{"code":200,"data":44},
"deviceinfo/serialnumber":{"code":200,"data":"000174210147"}},
"adr":/getdatamulti",
"code":200
}
{
"code":"request",
"cid":4711,
"adr":"/devicetag/applicationtag/setdata",
"data":{"duration":"uptime","newvalue":"Do not use"}
}
• Response:
{
"cid":4711,
"adr":"/devicetag/applicationtag/setdata",
"code":200,
}
32
Remote I/O module 16 DI AL4022
33
AL4022 Remote I/O module 16 DI
If the operating mode of a counter module is changed, the current counter values will be reset
and any active events will be deleted.
For the parameters [pin2_function] and [count_direction_selection] all shown parameter values can be
selected. It is not checked whether these make sense. For each counter operating mode (parameter
[mode]), the table below indicates the valid value ranges (: valid setting; : invalid setting):
[pin2_function] [count_direction_selection]
34
Remote I/O module 16 DI AL4022
Applicable services:
Name Description
../force_counter_value Write counter values of main and batch counter
{
"code":"request",
"cid":4711,
"adr":"io/counter[2]/force_counter_value",
"data": {"maincounter_value":100,"batchcounter_value":10}
}
• Response:
{
"cid":4711,
"adr":"io/counter[2]/force_counter_value",
"code":200
}
35
AL4022 Remote I/O module 16 DI
32 bytes are available on the device for storing the applicationtag parameter. If the memory
range is exceeded, the device will abort the write process (diagnostic code 400).
u When writing the applicationtag parameter, note the different memory requirements of the
individual UTF-8 characters (characters 0-127: 1 byte per character; character >127: more
than 1 byte per character).
36
Remote I/O module 16 DI AL4022
Applicable services:
Name Description
../install Install firmware
../container/stream_set Transfer an individual data segment
../container/start_stream_set Start sequential transmission of several data segments
ifm recommends using the IoT Core Visualizer (Ò IoT-Core Visualizer / 37) to update the
firmware.
The navigation menu gives the user access to the following functions:
• [Notification]: no function
• [Elements]: Search for elements in the device description (Ò / 38)
• [Parameter]: Configure the device (Ò / 38)
37
AL4022 Remote I/O module 16 DI
38
Remote I/O module 16 DI AL4022
39
AL4022 Remote I/O module 16 DI
9.3 EtherNet/IP
40
Remote I/O module 16 DI AL4022
If an “Exclusive owner” connection exists between the IO scanner and the device, the device
will switch to the “Implicit protection mode”.
w In the “Implicit protection mode”, acyclic access to the CIP object “Identity Object” and its
functions (e.g. reset device) is not possible. Any access attempts will be denied with the
error message Device state conflict (0x10) .
The filters of the digital inputs can be configured via the following objects:
• Configuration Assembly (Instance 198) (Ò / 52)
• Configuration Assembly (Instance 199) (Ò / 55)
These is a separate configuration area for each input filter.
Available parameters per input filter:
41
AL4022 Remote I/O module 16 DI
• debounce time
• hold time
• hold level
• signal inversion
Requirements:
ü Device is integrated in EtherNet/IP project.
ü Connection type [Exclusive Owner] or [Inputs only] is set.
u In [Controller Organizer], select the device folder.
u Select [Controller Tags].
w [Controller Tags] displays the configuration of the device ( DeviceName.C:Data ).
u Set the parameters.
w The input filters have been configured.
42
Remote I/O module 16 DI AL4022
Requirements:
ü Device is integrated in EtherNet/IP project.
ü The input filters have been configured.
ü Connection type [Exclusive Owner], [Inputs only] or [Listen only] is set.
u In [Controller Organizer], select the device folder.
u Select [Controller Tags].
w [Controller Tags] contains the input data of the device ( Devicename.I:Data ).
u Link process data to variables.
w The process values of the digital inputs are available in the application.
43
AL4022 Remote I/O module 16 DI
For detailed information about the Message (MSG) command: Ò user documentation of the
EtherNet/IP projection software
44
Remote I/O module 16 DI AL4022
10.1 Cleaning
u Disconnect the unit from the voltage supply.
u Clean the device from dirt using a soft, chemically untreated and dry cloth.
u In case of severe soiling, use a damp cloth.
45
AL4022 Remote I/O module 16 DI
11 Appendix
11.1.1 Profiles
Profile Description
blob Binary Large Object
deviceinfo Identification information of a device
devicetag Device-specific identification
devicereset Restart and reset to factory settings
network Network
parameter Parameter
processdata Process data
service Service
software Software
software/uploadablesoft- Upgradeable software
ware
11.1.2 Types
Type Description
structure Structural element (e.g. a folder in the file system)
service Service that can be addressed from the network
event An event that can be started by the firmware and sends messages.
data Data point
device Root element a device represents
11.1.3 Services
Mandatory
Parameter Data type Description
field
maincounter_value Optional INT Main counter target value
46
Remote I/O module 16 DI AL4022
Mandatory
Parameter Data type Description
field
batchcounter_value Optional INT Batch counter target value
Mandatory
Data field Data type Description
field
pos mandatory NUMBER Byte position
length mandatory NUMBER Size of the object (number of bytes)
Mandatory
Data field Data type Description
field
data mandatory STRING data to be decoded (BASE64 coded)
crc optional HEX STRING CRC of the data after decoding
md5 optional HEX STRING MD5 checksum of the data after decoding
Mandatory
Parameter Data type Description
field
value mandatory STRING Value of the data point
Mandatory
Data field Data type Description
field
datatosend mandatory ARRAY OF List of data points to be requested; Data points must support the getda-
STRINGS ta service ("datatosend":["url1", "url2",..., "urlx"])
Mandatory
Data field Data type Description
field
url mandatory STRING Data point request
code mandatory INT Diagnostic code of the request
data mandatory STRING Value of the data point
47
AL4022 Remote I/O module 16 DI
Mandatory
Parameter Data type Description
field
adr mandatory STRING URL of the element whose proerties are to be changed
Mandatory
Parameter Data type Description
field
identifier mandatory STRING Identifier of the element
type mandatory STRING Type of the element
format optional JSON object Format of the data or of the service content
uid optional STRING
profiles optional JSON-AR- Element profiles
RAY
hash optional STRING
Mandatory
Parameter Data type Description
field
iot device Device description as JSON object
[Link] mandatory STRING Type of the element
[Link] optional STRING
[Link] mandatory STRING
[Link] optional ARRAY OF
OBJECTS
[Link] optional ARRAY OF Device class
STRING
[Link] optional ARRAY OF
OBJECTS
device optional Article nummer
[Link] optional Serial number
[Link] optional Hardware version
[Link] optional Software version
[Link] optional
48
Remote I/O module 16 DI AL4022
Mandatory
Parameter Data type Description
field
adr Optional STRING Root element of the subtree
level Optional STRING Max. level up to which the subtree is output
• no entry: all levels will be displayed
• 0: do not display sub-elements (“subs”)
• 1: display sub-elements
• 2: display sub-elements up to the 2nd level
• 3: display sub-elements up to the 3rd level
...
• 20: display sub-elements up to the 20th level
Mandatory
Parameter Data type Description
field
identifier Mandatory STRING Identifier of the root element
type Mandatory STRING Type of the element
format Optional JSON object Format of the data content
uid Optional STRING
profiles Optional JSON array
subs Mandatory JSON array Sub-elements
hash Optional STRING
adr Mandatory STRING Root element of the subtree
Mandatory
Parameter Data type Description
field
profile optional STRING Profile of the searched element
type optional STRING Type of the searched element
name optional STRING Type of the searched element
Mandatory
Parameter Data type Description
field
urlList mandatory ARRAY Array with URLs of the found elements; URLs are separated by com-
mas
49
AL4022 Remote I/O module 16 DI
Mandatory
Parameter Data type Description
field
datatoset mandatory ARRAY OF List of data points and their new values; Data points must support the
OBJECTS setdata service
consitent optional BOOL IO-Link subindex of the parameter
Mandatory
Parameter Data type Description
field
newvalue mandatory STRING New value of the data point
duration optional STRING Duration of value storage
• lifetime: Value is saved with IoT Core; Value remains valid even after
restart of the device
• uptime: Value is saved until the next restart of the device
Mandatory
Parameter Data type Description
field
size mandatory STRING Overal length of the data to be transmitted (number of bytes)
50
Remote I/O module 16 DI AL4022
Mandatory
Parameter Data type Description
field
value mandatory BIN Segment of the binary data (BASE64-coded)
(BASE64)
51
AL4022 Remote I/O module 16 DI
11.2 EtherNet/IP
11.2.1 Parameters
Bit
Byte
7 6 5 4 3 2 1 0
0 X01_DI1_Pin4_InvertInput
1 X01_DI1_Pin4_HoldLevel
2…3 X01_DI1_Pin4_DebounceTime
4…5 X01_DI1_Pin4_HoldTime
6…11 X01_DI2_Pin2: filter settings (structure Ò bytes 0…5)
12…17 X02_DI1_Pin 4: filter settings (structure Ò bytes 0…5)
18…23 X02_DI2_Pin2: filter settings (structure Ò bytes 0…5)
24…29 X03_DI1_Pin4: filter settings (structure Ò bytes 0…5)
30…35 X03_DI2_Pin2: filter settings (structure Ò bytes 0…5)
36…41 X04_DI1_Pin4: filter settings (structure Ò bytes 0…5)
42…47 X04_DI2_Pin2: filter settings (structure Ò bytes 0…5)
48…53 X05_DI1_Pin4: filter settings (structure Ò bytes 0…5)
54…59 X05_DI2_Pin2: filter settings (structure Ò bytes 0…5)
60…65 X06_DI1_Pin4: filter settings (structure Ò bytes 0…5)
66…71 X06_DI2_Pin2: filter settings (structure Ò bytes 0…5)
72…77 X07_DI1_Pin4: filter settings (structure Ò bytes 0…5)
78…83 X07_DI2_Pin2: filter settings (structure Ò bytes 0…5)
84…89 X08_DI1_Pin4: filter settings (structure Ò bytes 0…5)
90…95 X08_DI2_Pin2: filter settings (structure Ò bytes 0…5)
96 X1_CounterSettings (Ò Mapping: Counter settings / 54)
97…100 X1_MainThreshold
101…102 X1_BatchThreshold
103 X2_CounterSettings (Ò Mapping: Counter settings / 54)
104…107 X2_MainThreshold
108…109 X2_BatchThreshold
110 X3_CounterSettings (Ò Mapping: Counter settings / 54)
111…114 X3_MainThreshold
115…116 X3_BatchThreshold
117 X4_CounterSettings (Ò Mapping: Counter settings / 54)
118…121 X4_MainThreshold
122…123 X4_BatchThreshold
124 X5_CounterSettings (Ò Mapping: Counter settings / 54)
125…128 X5_MainThreshold
129…130 X5_BatchThreshold
131 X6_CounterSettings (Ò Mapping: Counter settings / 54)
132…135 X6_MainThreshold
136…137 X6_BatchThreshold
52
Remote I/O module 16 DI AL4022
Bit
Byte
7 6 5 4 3 2 1 0
138 X7_CounterSettings (Ò Mapping: Counter settings / 54)
139…142 X7_MainThreshold
143…144 X7_BatchThreshold
145 X8_CounterSettings (Ò Mapping: Counter settings / 54)
146…149 X8_MainThreshold
150…151 X8_BatchThreshold
Legend:
• InvertInput Signal inversion 1 byte • 0x00: do not invert (default)
• 0x01: invert
• HoldLevel Signal level to be maintained 1 byte • 0x00: LOW
• 0x01: HIGH (default)
• DebounceTime Debounce time (value in *0.1 ms) 2 bytes • 0x0000: 0 ms (default)
Debounce time = 0x0123 …
• Debounce time[0] = 0x01 • 0x01F4: 50 ms
• Debounce time[1] = 0x23
• HoldTime Hold time (value in *0.1 ms) 2 bytes • 0x0000: 0 ms (default)
Hold time = 0x1234 …
• Hold time[0] = 0x12 • 0xEA60: 6000 ms
• Hold time[1] = 0x34
• MainThreshold Threshold CT of the main counter 4 bytes • 0x0000 0001: 1
MainThreshold = 0x01234567 …
• MainThreshold[0] = 0x01 • 0xFFFF FFFF: 4294967295
• MainThreshold[1] = 0x23 (default)
• MainThreshold[0] = 0x45
• MainThreshold[0] = 0x67
• BatchThreshold Threshold CTb of the batch counter 2 bytes • 0x0001: 1
BatchThreshold = 0x0123 …
• BatchThreshold[0] = 0x01 • 0xFFFF: 65535 (default)
• BatchThreshold[1] = 0x23
53
AL4022 Remote I/O module 16 DI
Byte Bit
(offset) 7 6 5 4 3 2 1 0
n Counter Di- Pin2 Function res. Counter Mode
rection Se-
lection
Legend:
• Counter Mode Operating mode of the counter module 3 bits • 0x0: CTU – up counter (default)
• 0x1: CTD – down counter
• 0x2: CTUD – up and down counter
• 0x3: CTDIR – up or down counter
• Pin2 Function Pin 2 function of the port 3 bits • 0x0: N/C – no function (default)
• 0x1: Counter Edge Input 2 – counting
input
• 0x2: Count direction – select counting
direction
• 0x3: Reset Main + Batch Counter –
reset counters
• 0x4: Disable Main + Batch Counter –
disable counters
–
• Counter Direction Instance for selecting the counting direction 1 bit • 0x0: Pin 2 (default)
Selection • 0x1: PLC
54
Remote I/O module 16 DI AL4022
Bit
Byte
7 6 5 4 3 2 1 0
0 X01_DI1_Pin4_InvertInput
1 X01_DI1_Pin4_HoldLevel
2…3 X01_DI1_Pin4_DebounceTime
4…5 X01_DI1_Pin4_HoldTime
6…11 X01_DI2_Pin2: filter settings (structure Ò bytes 0…5)
12…17 X02_DI1_Pin 4: filter settings (structure Ò bytes 0…5)
18…23 X02_DI2_Pin2: filter settings (structure Ò bytes 0…5)
24…29 X03_DI1_Pin4: filter settings (structure Ò bytes 0…5)
30…35 X03_DI2_Pin2: filter settings (structure Ò bytes 0…5)
36…41 X04_DI1_Pin4: filter settings (structure Ò bytes 0…5)
42…47 X04_DI2_Pin2: filter settings (structure Ò bytes 0…5)
48…53 X05_DI1_Pin4: filter settings (structure Ò bytes 0…5)
54…59 X05_DI2_Pin2: filter settings (structure Ò bytes 0…5)
60…65 X06_DI1_Pin4: filter settings (structure Ò bytes 0…5)
66…71 X06_DI2_Pin2: filter settings (structure Ò bytes 0…5)
72…77 X07_DI1_Pin4: filter settings (structure Ò bytes 0…5)
78…83 X07_DI2_Pin2: filter settings (structure Ò bytes 0…5)
84…89 X08_DI1_Pin4: filter settings (structure Ò bytes 0…5)
90…95 X08_DI2_Pin2: filter settings (structure Ò bytes 0…5)
Legend:
• InvertInput Signal inversion 1 byte • 0x00: do not invert (default)
• 0x01: invert
• HoldLevel Signal level to be maintained 1 byte • 0x00: LOW
• 0x01: HIGH (default)
• DebounceTime Debounce time (value in *0.1 ms) 2 bytes • 0x0000: 0 ms (default)
Debounce time = 0x0123 …
• Debounce time[0] = 0x01 • 0x01F4: 50 ms
• Debounce time[1] = 0x23
• HoldTime Hold time (value in *0.1 ms) 2 bytes • 0x0000: 0 ms (default)
Hold time = 0x1234 …
• Hold time[0] = 0x12 • 0xEA60: 6000 ms
• Hold time[1] = 0x34
55
AL4022 Remote I/O module 16 DI
Legend:
• SENS PWR Status of the device voltage supply 1 bit • 0x0: no error
• 0x1: error
• DI1 Signal level digital input at pin 4 of the port (after 1 bit • 0x0: LOW
filtering) • 0x1: HIGH
• DI2 Signal level digital input at pin 2 of the port (after 1 bit • 0x0: LOW
filtering) • 0x1: HIGH
56
Remote I/O module 16 DI AL4022
Legend:
• OV/UV Overflow/underflow occurred at batch counter 1 bit • 0x0: no event
• 0x1: overflow/underflow event
• SENS PWR Status of the device voltage supply 1 bit • 0x0: no error
• 0x1: error
• DI1 Signal level digital input at pin 4 of the port (after 1 bit • 0x0: LOW
filtering) • 0x1: HIGH
• DI2 Signal level digital input at pin 2 of the port (after 1 bit • 0x0: LOW
filtering) • 0x1: HIGH
• Main Counter Current main counter value of the port 4 bytes • 0x0000 0000: 0
Value …
• 0xFFFF FFFE: 4294967294
• Batch Counter Current batch counter value of the port 2 bytes • 0x0000: 0
Value …
• 0xFFFE: 65534
57
AL4022 Remote I/O module 16 DI
Bit
Byte
7 6 5 4 3 2 1 0
0 Reserved X01: Reset X01: Count X01: Disa- X01: Reset
Counter Direction ble Counter Counter
Event
1 Reserved X02: Reset X02: Count X02: Disa- X02: Reset
Counter Direction ble Counter Counter
Event
2 Reserved X03: Reset X03: Count X03: Disa- X03: Reset
Counter Direction ble Counter Counter
Event
3 Reserved X04: Reset X04: Count X04: Disa- X04: Reset
Counter Direction ble Counter Counter
Event
4 Reserved X05: Reset X05: Count X05: Disa- X05: Reset
Counter Direction ble Counter Counter
Event
5 Reserved X06: Reset X06: Count X06: Disa- X06: Reset
Counter Direction ble Counter Counter
Event
6 Reserved X07: Reset X07: Count X07: Disa- X07: Reset
Counter Direction ble Counter Counter
Event
7 Reserved X08: Reset X08: Count X08: Disa- X08: Reset
Counter Direction ble Counter Counter
Event
Legend:
• Reset Counter Reset main counter and batch counter to initial value 1 bit • 0x0: no action
• 0x1: reset main + batch counter and
counter events to overflow/underflow
• Disable Counter Disable main counter & batch counter 1 bit • 0x0: no action
• 0x1: disable main and batch counter
• Count Direction Set counting direction (valid only for counter mode 1 bit • 0x0: up
CTDIR) • 0x1: down
• Reset Counter Reset overflow/underflow counter events 1 bit • 0x0: no action
Event • 0x1: reset counter events
58
Remote I/O module 16 DI AL4022
59
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
Services
If an Identity Object receives a reset request, it carries out the following actions:
• It checks if it supports the requested reset type.
• It responds to the request.
• It tries to execute the requested reset type.
Supported reset types:
60
Remote I/O module 16 DI AL4022
61
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
The object class has no instance attributes.
Services
62
Remote I/O module 16 DI AL4022
Class attributes
Instance attributes
Services
63
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
The object class has no instance attributes.
Services
64
Remote I/O module 16 DI AL4022
Class attributes
Instance attributes
Services
65
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
Services
66
Remote I/O module 16 DI AL4022
Class attributes
Instance attributes
Services
67
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
Services
68
Remote I/O module 16 DI AL4022
Class attributes
Instance attributes
Services
69
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
70
Remote I/O module 16 DI AL4022
Services
71
AL4022 Remote I/O module 16 DI
Class attributes
Instance attributes
72
Remote I/O module 16 DI AL4022
Services
73