IFM AL4042 Operating Instructions Manual
IFM AL4042 Operating Instructions Manual

IFM AL4042 Operating Instructions Manual

Remote i/o module 16 di modbustcp ip65 / ip66 / ip67
Table of Contents

Advertisement

Quick Links

Operating instructions
GB
Remote I/O module 16 DI
ModbusTCP
IP65 / IP66 / IP67
AL4042

Advertisement

Table of Contents
loading

Summary of Contents for IFM AL4042

  • Page 1 Operating instructions Remote I/O module 16 DI ModbusTCP IP65 / IP66 / IP67 AL4042...
  • Page 2: Table Of Contents

    AL4042 Remote I/O module 16 DI Contents Preliminary note .............
  • Page 3 Starting the ifm IoT Core Visualizer........
  • Page 4: Preliminary Note

    / packaging or at documentation.ifm.com. 1.1 Legal and copyright information © All rights reserved by ifm electronic gmbh. No part of these instructions 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.
  • Page 5: Change History

    Remote I/O module 16 DI AL4042 1.5 Change history Issue Subject Date New creation of the document 11 / 2022 • Corrected: Chapter DI Channel Mapping (550) (Ò / 56) 04 / 2023...
  • Page 6: Safety Instructions

    AL4042 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.
  • Page 7: Intended Use

    Remote I/O module 16 DI AL4042 3 Intended use The device 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.
  • Page 8: Function

    Status, error and short circuit/overload indication of the sensor ports 4.2 Parameter setting The device can be configured using the following options: • Parameter setting software – ifm moneo – ifm moneo|configure SA • ifm IoT Core – IoT-Core Visualizer • ModbusTCP –...
  • Page 9: Debouncing

    Remote I/O module 16 DI AL4042 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).
  • Page 10: Inverting

    AL4042 Remote I/O module 16 DI 4.4.3 Inverting The filter inverts signals. 4.4.4 Filter combination The filters can be combined. Example: All 3 filters are activated Time diagram: 1: Cycle time Digital input Digitaleingang Filter Debounce Filter Entprellen Filter Hold Filter Halten...
  • Page 11: Counter Mode Ctd

    Remote I/O module 16 DI AL4042 • 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).
  • Page 12: Counter Mode Ctdir

    AL4042 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).
  • Page 13 Remote I/O module 16 DI AL4042 • Device profile: Modbus TCP Server (message mode) • 2-port switch for access to Modbus TCP interface (X21 / X22)
  • Page 14: Installation

    AL4042 Remote I/O module 16 DI 5 Installation 5.1 Overview Upper mounting lug Lower mounting lugs lug 5.2 Install device u Disconnect the power of the machine before installation. u Use a flat mounting surface for installation. u Please observe the maximum tightening torque.
  • Page 15: Electrical Connection

    Remote I/O module 16 DI AL4042 6 Electrical connection 6.1 Overview X21: Ethernet 1 (ModbusTCP) X22: Ethernet 2 (ModbusTCP) X31: Power IN X01: process connection 1 (sensor) X02: process connection 2 (sensor) X03: process connection 3 (sensor) X04: process connection 4 (sensor)
  • Page 16: Ethernet

    ModbusTCP control, additional ModbusTCP device). In addition, the device can be connected to an IT network via the Ethernet ports. The user can access functions of the ifm IoT Core via the IT network (parameter setting software, IoT Core Visualizer).
  • Page 17: Derating Behaviour

    Remote I/O module 16 DI AL4042 1: + 24 V DC (US) 2: not used 3: GND (US) 4: not used 6.5.1 Derating behaviour The current IUS available at ports X01...X08 depends on the ambient temperature of the device. 2000 m 3000 m 4000 m...
  • Page 18: Operating And Display Elements

    AL4042 Remote I/O module 16 DI 7 Operating and display elements 7.1 LEDs status: RDY status: ERR status: RUN Modbus TCP: LNK Modbus TCP: ACT Process connection: DI1 Process connection: DI2 Voltage supply: US 7.1.1 Status Description Colour State Description Gateway status Not active or reboots Green Flashes 3 s (1 Hz) DCP signalling service initiated via fieldbus...
  • Page 19: Ethernet

    Remote I/O module 16 DI AL4042 7.1.2 Ethernet Description Colour State Description Status of the connection Green No Ethernet connection Ethernet connection established Status of the data transmis- Yellow No data transmission sion flashes Data transmission 7.1.3 Voltage supply Description Colour State...
  • Page 20: Set-Up

    AL4042 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.
  • Page 21: Settings

    The device can be configured with the following parameter setting software: • ifm moneo • ifm moneo|configure SA u Install the desired parameter setting software. u Activate the licences required for operation. w Parameter setting software can be used for parameter setting of the device.
  • Page 22: Fieldbus: Configuring A Modbustcp Interface

    AL4042 Remote I/O module 16 DI 9.1.3 Fieldbus: Configuring a ModbusTCP interface Changes to the [byteswap] parameters will only take effect after the device has been restarted. Available parameters: Name Description Value range Access [dhcp] Status of the DHCP client of the de- •...
  • Page 23: Ports: Setting The Arrangement Of The Digital Inputs

    Remote I/O module 16 DI AL4042 Name Description Value range Access [connectionstatus] Status of the ModbusTCP connection • Disconnected: Not connected • Connected: Connected [disconnectioncounter] Connection interruption counter • 0: no interruption … • 65535: 65535 interruptions [fieldbusfirmware] Firmware version of the ModbusTCP e.g.
  • Page 24: Ports: Configuring Input Filters

    AL4042 Remote I/O module 16 DI 9.1.6 Ports: Configuring input filters u Observe the notes on input filters: Digital input filters (Ò / 8) Available parameters: Name Description Value range Access [pin2]/[debounce_time] Pin 2: debounce time (= value * • 0: 0 ms (default) 0.1 ms)
  • Page 25: Counter: Configuring Counter Modules

    Remote I/O module 16 DI AL4042 The displayed process values are the filtered input data. 9.1.8 Counter: Configuring counter modules u Observe the notes on counter modules: Counter (Ò / 10) If the operating mode of a counter module is changed, the current counter values will be reset and any active events will be deleted.
  • Page 26: Counter: Reading Counter Values

    AL4042 Remote I/O module 16 DI u Select menu [io] > [counter[n]] (n: 1…8). w The menu page displays the configuration options of the counter. u Configure the counter module. u Optional: Configure additional counter modules. u Write the changed values to the device.
  • Page 27: Gateway: Reading Identification Information

    Name Description Value range Access [productcode] Article number AL4042 [devicefamily] Device family Ethernet modules [vendor] Manufacturer ifm electronic gmbh [swrevision] Firmware revision e.g. AL4x4x_fw_md_1.4.0.142 [hwrevision] Hardware revision (status) e.g. AA [bootloaderrevision] Bootloader version e.g. AL4xxx_bl_1.4.0.39 [serialnumber] Serial number e.g. 0002043100003...
  • Page 28: Firmware: Reading The Firmware Version

    AL4042 Remote I/O module 16 DI ü The detailed view of the device is active. u Select [devicetag] menu. u Enter the application identifier. u Write the changed values to the device. w The device can be identified by the selected application tag.
  • Page 29: Iot-Core Visualizer

    Remote I/O module 16 DI AL4042 9.2 IoT-Core Visualizer The IoT Core Visualizer provides a graphical user interface to access the functions of the ifm IoT Core. 9.2.1 Starting the ifm IoT Core Visualizer Requirements: ü The PC is connected to the Ethernet interface of the device.
  • Page 30: Searching Elements Of The Iot Core

    AL4042 Remote I/O module 16 DI 9.2.2 Searching elements of the IoT Core The [Elements] menu page allows you to search the IoT core tree for elements with specific properties and output the results. The following properties can be searched for: •...
  • Page 31: Configuring The Device

    Remote I/O module 16 DI AL4042 9.2.3 Configuring the device The [Parameters] menu page provides access to the configuration options of the device. The configuration created via the IoT Core Visualizer is overwritten when a connection is established between the device and the ModbusTCP PLC.
  • Page 32: Configuring Input Filters

    AL4042 Remote I/O module 16 DI Name Description Value range Access [configuration] > [connection- Set timeout for interruption of the fieldbus • 20: 2 ms timeout] connection (value in milliseconds) … • 31000: 31000 ms … • 60000: 60000 ms [configuration] >...
  • Page 33: Configuring Counter Modules

    Remote I/O module 16 DI AL4042 Requirements: ü IoT Core Visualizer has been launched. ü The [Parameter] menu is active. u Select the [io] > [port[n]] submenu (n: 1...8). w The menu page shows the current settings. u Set the parameters.
  • Page 34: Setting The Arrangement Of The Digital Inputs

    AL4042 Remote I/O module 16 DI Name Description Value range Access [main_threshold] Main counter threshold (CT) • 1 … • 4294967295 (default) [batch_threshold] Batch counter threshold (CTb) • 1 … • 65535 (default) The parameter can only be changed if no connection to the fieldbus controller is active Requirements: ü...
  • Page 35: Reading Device Information

    Remote I/O module 16 DI AL4042 9.2.3.5 Reading device information Available information: Name Description Value range Access [productcode] Article number AL4042 [vendor] Manufacturer ifm electronic [devicefamily] Device family Ethernet modules [serialnumber] Serial number (12 digits) e.g. 000174210161 [hwrevision] Hardware revision e.g. AA...
  • Page 36: Accessing Process Data

    AL4042 Remote I/O module 16 DI ü The [Parameter] menu is active. u Select the [Devicetag] submenu. w The menu page shows the current settings. u Enter the application identifier. u Click on  to save the changes to the device.
  • Page 37: Reading Counter Values

    Remote I/O module 16 DI AL4042 ü IoT Core Visualizer has been launched. ü The [Processdata] menu is active. u Select the [io] > [port[n]] submenu (n: 1...8). w Menu page shows the digital input data of the port. 9.2.4.2 Reading counter values...
  • Page 38: Update Firmware

    AL4042 Remote I/O module 16 DI Name Description Value range Access [voltage_us] current voltage value of the device supply e.g. 25236: 25236 mV US (value in millivolts) [current_us] current value of the device supply US e.g. 82: 82 mA (value in milliamps)
  • Page 39: Modbustcp

    Select the menu item [Add device…]. w A dialogue window appears. u Select the device profile [Modbus_TCP_Slave]. u Enter AL4042 as the name. u Click on [Add device]. w CODESYS adds the device to the project as a sub-node of [Modbus TCP Master].
  • Page 40: Device-Specific Notes

    AL4042 Remote I/O module 16 DI 9.3.2 Device-specific notes 9.3.2.1 Rules for accessing the Modbus register The following rules apply for access to the Modbus registers: u To read or write Modbus registers, use only the valid Function Codes (Ò Supported function codes / 40).
  • Page 41: Configuring The Device

    Remote I/O module 16 DI AL4042 The following exception codes are available: Exception Name Description code ILLEGAL FUNCTION Invalid Function Code (Modbus function not implemented) ILLEGAL DATA ADDRESS Invalid data address (invalid address or length) ILLEGAL DATA VALUE Invalid data value (invalid parameters; wrong number of registers)
  • Page 42: Controlling Counter Modules

    AL4042 Remote I/O module 16 DI • Overflow and underflow events of the main counter and batch counter 9.3.7 Controlling counter modules The register range 300...355 provides access to the control signals of the individual counter modules: Port Output - Counter (300 - 355) (Ò / 51) There is a separate register area for each counter module.
  • Page 43 Remote I/O module 16 DI AL4042 Object ID Name Data type Value range 0x00 Vendor name ASCII string ifm electronic 0x01 Product Code ASCII string AL4042 0x02 Major Minor Revision ASCII string e.g. 1,001 • Regular Device Identification (0x02): Object ID...
  • Page 44: Maintenance, Repair And Disposal

    AL4042 Remote I/O module 16 DI 10 Maintenance, repair and disposal The operation of the unit is maintenance-free. u Dispose of the device in an environmentally friendly way in accordance with the applicable national regulations when it is no longer used.
  • Page 45: Appendix

    Remote I/O module 16 DI AL4042 11 Appendix 11.1 ModbusTCP 11.1.1 Register 11.1.1.1 Input data (0 - 34) Register X08: X08: X07: X07: X06: X06: X05: X05: X04: X04: X03: X03: X02: X02: X01: X01: DI 1 DI 1 DI 1 DI 1 DI 1...
  • Page 46 AL4042 Remote I/O module 16 DI Mapping: Counter Data and Status Register Main Counter Value (Word 0) Main Counter Value (Word 1) Batch Counter Value res. res. res. res. res. res. res. res. res. res. res. res. Legend: • Main Counter Value Current main counter value of the port 2 WORD •...
  • Page 47: Port Configuration - Digital Inputs (100 - 163)

    Remote I/O module 16 DI AL4042 11.1.1.2 Port Configuration - Digital Inputs (100 - 163) Register 100…103 Port X01 - DI1: Filter Settings (Ò Mapping: Filter Settings / 48) 104…107 Port X01 - DI2: Filter Settings (Ò Mapping: Filter Settings / 48) 108…111 Port X02 - DI1: Filter Settings (Ò...
  • Page 48 AL4042 Remote I/O module 16 DI Mapping: Filter Settings Word (Offset) reserved res. res. res. res. res. res. res. reserved res. res. res. res. res. res. res. Debounce Time Hold Time Legend: • INV Invert: signal inversion 1 BIT • 0x0: do not invert (default) •...
  • Page 49: Port Configuration - Counter (200 - 271)

    Remote I/O module 16 DI AL4042 11.1.1.3 Port Configuration - Counter (200 - 271) Register 200…208 Port X01 : Counter Configuration (Ò Mapping: Counter Configuration / 50) 209…217 Port X02 : Counter Configuration (Ò Mapping: Counter Configuration / 50) 218…226 Port X03 : Counter Configuration (Ò...
  • Page 50 AL4042 Remote I/O module 16 DI Mapping: Counter Configuration Register Counter Mode Pin 2 Function Counter Direction Select Main Threshold (Word 0) Main Threshold (Word 1) Batch Threshold Force Main Counter (Word 0) Force Main Counter (Word 1) Force Batch Counter Legend: •...
  • Page 51: Port Output - Counter (300 - 355)

    Remote I/O module 16 DI AL4042 11.1.1.4 Port Output - Counter (300 - 355) Register 300…306 Port X01: Output Counter (Ò Mapping: Output Counter / 52) 307…313 Port X02: Output Counter (Ò Mapping: Output Counter / 52) 314…320 Port X03: Output Counter (Ò Mapping: Output Counter / 52) 321…327...
  • Page 52 AL4042 Remote I/O module 16 DI Mapping: Output Counter Register reserved res. res. res. res. res. res. res. reserved res. res. res. res. res. res. res. reserved res. res. res. res. res. res. res. reserved res. res. res. res. res.
  • Page 53: Block Configuration (400 - 408)

    Remote I/O module 16 DI AL4042 11.1.1.5 Block Configuration (400 - 408) Register X08: X08: X07: X07: X06: X06: X05: X05: X04: X04: X03: X03: X02: X02: X01: X01: X08: X08: X07: X07: X06: X06: X05: X05: X04: X04: X03: X03:...
  • Page 54: Byte Swap (500)

    AL4042 Remote I/O module 16 DI 11.1.1.6 Byte Swap (500) Register Byte Swap Legend: • Byte Swap Arrangement of the bytes in the data tables 1 WORD • 0x0000: Big Endian (default) • 0xFFFF: Little Endian...
  • Page 55: Connection Timeout (510)

    Remote I/O module 16 DI AL4042 11.1.1.7 Connection Timeout (510) Register Connection Timeout Legend: • Connection Timeout Max. value for connection timeouts 1 WORD • 20: 20 ms (value in milliseconds) … • 30000: 30 s (default) … • 60000: 60 s...
  • Page 56: Di Channel Mapping (550)

    AL4042 Remote I/O module 16 DI 11.1.1.8 DI Channel Mapping (550) Register reserved res. res. res. res. res. res. res. Legend: • DICO DI Channel Order: Arrangement of the 1 BIT • 0x0: Pin-based (default) process data in registers 0, 400 and 401 •...
  • Page 57: System Command (600)

    Remote I/O module 16 DI AL4042 11.1.1.9 System Command (600) Register Command ID Legend: • Command ID Identifier of the command 1 WORD • 0x0040: Restarting the device • 0x0050: Resetting the device...
  • Page 58: Diagnostic Data (2000 - 2002)

    AL4042 Remote I/O module 16 DI 11.1.1.10 Diagnostic Data (2000 - 2002) Register 2000 reserved res. res. res. res. res. res. res. 2001 Uptime 2002 Disconnection Counter Legend: • PSE Power Status Error: Status of the voltage supply 1 BIT • 0x0: No error •...

Table of Contents