Remote I/O module 16 DI AL4002 1 Preliminary note You will find instructions, technical data, approvals and further information using the QR code on the unit / packaging or at www.ifm.com.
AL4002 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.
Remote I/O module 16 DI AL4002 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.
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 – REST-API – IoT-Core Visualizer •...
Remote I/O module 16 DI AL4002 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).
AL4002 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...
Remote I/O module 16 DI AL4002 • 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).
AL4002 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 AL4002 • Device profile: PROFINET IO device • Fast Startup (FSU) • Prioritized Startup • Participation in network with activated IRT protocol • System redundancy S2 • Dynamic reconfiguration • Device description: GSD file...
AL4002 Remote I/O module 16 DI 5 Installation 5.1 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. u Fasten the module onto the mounting surface using M5 screws and washers (tightening torque: 1.8...
PROFINET 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).
AL4002 Remote I/O module 16 DI u Connect the device to the PROFINET 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).
Remote I/O module 16 DI AL4002 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 -40 -30 -20 -10 0 10 20 30 40 50 60 70 Temperature [°C]...
AL4002 Remote I/O module 16 DI 7 Operating and display elements 7.1 LEDs status: RDY status: BF status: SF PROFINET: LNK PROFINET: 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...
Remote I/O module 16 DI AL4002 Description Colour State Description Status of the con- Green Ethernet connection established nection Status of the data Yellow no data transmission transmission Flashes Data transmission 7.1.3 Voltage supply Description Colour State Description Voltage supply sta-...
AL4002 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.
The PROFINET interface of the device can only be set via DCP-capable parameter setting software, e.g. PROFINET projection software. With the parameter setting software ifm moneo or ifm moneo|configure (SA), the IP parameters of the PROFINET interface can only be set during the network scan. In the editor view of the device, the configuration of the PROFINET interface is read-only.
AL4002 Remote I/O module 16 DI 9.1.3 Fieldbus: Read the interface configuration u Observe the notes on the configuration of the PROFINET interface: Configure the PROFINET interface (Ò / 21) Available parameters: Name Description Value range Access [ipaddress] IP address of the PROFINET inter- e.g.
Remote I/O module 16 DI AL4002 Name Description Value range Access [pin2]/[hold_time] Pin 2: hold time (= value * 0.1 ms) • 0: 0 ms (default) … • 60000: 6000 ms [pin2]/[hold_level] Pin 2: hold level • 0: hold LOW • 1: hold HIGH (default)
Page 24
AL4002 Remote I/O module 16 DI 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):...
Selected actions are executed. 9.1.10 Gateway: Read identification information Available information: Name Description Value range Access [productcode] Article number AL4002 [devicefamily] Device family Ethernet modules [vendor] Manufacturer ifm electronic gmbh [swrevision] Firmware revision e.g. AL4x0x_fw_pn_v1.4.0.137 [hwrevision] Hardware revision (status) e.g. AA...
AL4002 Remote I/O module 16 DI Name Description Value range Access [bootloaderrevision] Bootloader version e.g. AL4xxx_bl_v1.2.0.35 [serialnumber] Serial number e.g. 0002043100003 [fieldbustype] Fieldbus PROFINET read only Requirements: ü The parameter setting software has been started. ü The detailed view of the device is active.
Remote I/O module 16 DI AL4002 9.1.13 Firmware: Read firmware version Available information: Parameter Description Value range Access [version] Firmware version e.g. AL4x0x_fw_pn_1.4.0.137 read only Requirements: ü The parameter setting software has been started. ü The detailed view of the device is active.
9.2.1 ifm IoT Core: General information The device has the ifm IoT Core. The ifm IoT Core represents the functionality of a device. Each device is represented by a number of objects, services and events. The elements of the ifm IoT Core are arranged in a JSON object in a hierarchical tree structure.
Page 29
Service to access the data point data req_data Data sent to the ifm IoT Core (e.g. new values); syntax depending on the service optional; only required for services that send data to the ifm IoT Core (e.g. setdata) Syntax of the response: "cid":id,...
Send the following POST request to the ifm IoT Core: {"code":"request", "cid":-1, "adr":"gettree"} w ifm IoT Core returns the device description as a structured JSON object. u Identify all substructures and the data points contained therein in the tree structure of the JSON object.
AL4002 Remote I/O module 16 DI "cid":4711, "data":{ "processdatamaster/temperature":{"code":200,"data":44}, "deviceinfo/serialnumber":{"code":200,"data":"000174210147"}}, "adr":/getdatamulti", "code":200 9.2.3.3 Example: Changing a parameter value Task: The Application Tag parameter of the device is to be written with the value “Do not use”. The new value is only supposed to be valid until the next reboot of the device.
Remote I/O module 16 DI AL4002 9.2.5 Ports: Configure input filters u Observe the notes on input filters: Digital input filters (Ò / 8) Substructure: io/port[n] (n: 1…8) Available data points: Name Description Values Access ../pin2/debounce_time Pin 2: debounce time (= value * 0.1 ms) •...
Remote I/O module 16 DI AL4002 Available data points: Name Description Values Access ../maincounter_value Current main counter value 0…4294967295 ../batchcounter_value Current batch counter value 0…65535 read only Applicable services: Name Description ../force_counter_value Write counter values of main and batch counter 9.2.9.1 Example: Write counter values...
AL4002 Remote I/O module 16 DI 9.2.11 Gateway: Read status and diagnostic information Substructure: processdatamaster Available data points: Name Description Values Access ../temperature Temperature of the device (value in °C) e.g. 52 ../voltage_us Present voltage value of the device sup- e.g. 25236 ply US (value in mV) ../current_us...
IoT Core Visualizer (Ò IoT-Core Visualizer / 37) to update the firmware. 9.2.14 IoT-Core Visualizer The IoT Core Visualizer provides a graphical user interface to access the functions of the ifm IoT Core. 9.2.14.1 Start the ifm IoT Core Visualizer Requirements: ü...
AL4002 Remote I/O module 16 DI w The ifm IoT Core Visualizer searches the device description for elements with the selected search criteria. w The result list shows all elements found. 9.2.14.3 Configure the device The [Parameter] menu page allows you to configure the device.
Page 39
Remote I/O module 16 DI AL4002 w The menu page displays information about the current firmware version. u Click on [Load software file] and select a new firmware file (*.bin). u Click on [Update] to start the update process. w The firmware of the device is updated.
9.3 PROFINET 9.3.1 Install the GSD file To map the device in a PROFINET projection software, ifm provides an GSD file. The device description file contains identification information, supported parameters and process data. The user can download the GSD file via documentation.ifm.com.
Remote I/O module 16 DI AL4002 9.3.2.3 Use Isochronous Realtime (IRT) The unit supports participation in a network with activated IRT protocol. 9.3.3 Configure the device The device is configured via slot 0, subslot X1. The module [PN-IO] is permanently assigned to the slot.
AL4002 Remote I/O module 16 DI u Open the [Device view]. w The [Device overview] tab displays the device structure. u Click on the module [PN_IO] (slot 1, subslot X1). w The [General] tab displays general configuration options. u Select [Advanced options] > [X21 [X1 P1 R]] > [Port options].
Remote I/O module 16 DI AL4002 w The filters of the digital inputs are configured. w The changed configuration will be activated the next time the application is downloaded to the device. 9.3.5 Configure counter modules u Observe the notes on counter modules: Counters (Ò / 10) The counter modules are configured via the module [Counter Module] and its submodules: •...
AL4002 Remote I/O module 16 DI w The counter submodule is assigned to the port. u Click on the subslot with the assigned counter submodule. w The [Properties] view appears. w The [Properties] tab shows the properties of the counter submodule.
Remote I/O module 16 DI AL4002 • Submodule: CTUD (Ò / 62) • Submodule: CTDIR (Ò / 63) To control the counter modules: Requirements: ü Device is integrated in PROFINET project. ü The counter submodules are configured. ü The IEC addresses of the cyclic process data are linked to variables.
Remote I/O module 16 DI AL4002 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.
Remote I/O module 16 DI AL4002 Mandatory Parameter Data type Description field batchcounter_value Optional Batch counter target value Return (“data” field): none 11.1.3.3 Service: getblobdata Name: getblobdata Description: The service reads a Binary Large Object (blob). Request (“data“ field): Mandatory Data field...
AL4002 Remote I/O module 16 DI 11.1.3.6 Service: getelementinfo Name: getelementinfo Description: The service reads the properties of an element of the IoT tree. Request ("data" field): Mandatory Parameter Data type Description field mandatory STRING URL of the element whose proerties are to be changed Return ("data"...
Remote I/O module 16 DI AL4002 Request (“data” field): Mandatory Parameter Data type Description field 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 •...
AL4002 Remote I/O module 16 DI 11.1.3.11 Service: reboot Name: reboot Description: The service reboots the device. Request ("data" field): none Return ("data" field): none 11.1.3.12 Service: setblock Name: setblock Description: The service simultaneously sets the values of several data points of a structure.
Remote I/O module 16 DI AL4002 11.1.3.16 Service: stream_set Name: stream_set Description: The service transfers a data segment. Request ("data" field): Mandatory Parameter Data type Description field value mandatory Segment of the binary data (BASE64-coded) (BASE64) Return ("data" field): none...
AL4002 Remote I/O module 16 DI 11.2.2.2 Submodule: CTU Input data: 6 bytes Byte (off- set) 0…3 Main Counter Value 4…5 Batch Counter Value Legend: • Main Counter Value Current main counter value UINT32 • 0x00000000: 0 Main Counter Value = 0x12345678 …...
Remote I/O module 16 DI AL4002 11.2.2.3 Submodule: CTD Input data: 6 bytes Byte (off- set) 0…3 Main Counter Value 4…5 Batch Counter Value Legend: • Main Counter Value Current main counter value UINT32 • 0x00000000: 0 Main Counter Value = 0x12345678 …...
AL4002 Remote I/O module 16 DI 11.2.2.4 Submodule: CTUD Input data: 6 bytes Byte (off- set) 0…3 Main Counter Value 4…5 Batch Counter Value Legend: • Main Counter Value Current main counter value UINT32 • 0x00000000: 0 Main Counter Value = 0x12345678 …...
Remote I/O module 16 DI AL4002 11.2.2.5 Submodule: CTDIR Input data: 6 bytes Byte (off- set) 0…3 Main Counter Value 4…5 Batch Counter Value Legend: • Main Counter Value Current main counter value UINT32 • 0x00000000: 0 Main Counter Value = 0x12345678 …...
AL4002 Remote I/O module 16 DI 11.2.3 Acyclical data 11.2.3.1 Data record: Filter configuration Index Port Per index: Byte (off- set) 0…1 Debounce Time 2…3 Hold Time res. res. res. res. res. res. Hold Level Input Invert- Legend: • Debounce Time Debounce time (= value * 0.1 ms) UINT16 / rc •...
AL4002 Remote I/O module 16 DI 11.2.3.3 Data record: Counter values Index: 501 Byte (off- set) 0…3 Main Counter value 4…5 Batch Counter value Legend: • Main Counter value Counter value of the main counter UINT32 / rw 0x00000000: 0 …...
Remote I/O module 16 DI AL4002 11.2.3.4 I&M data I&M0 Index: 0xAFF0 Variable Description Value Bytes MANUFACTURER_ID Manufacturer ID 0x136 ORDER_ID Order ID (ASCII, separated by spaces) AL4xx2 SERIAL_NUMBER Serial number (ASCII, separated by spaces) HARDWARE_REVISION Hardware revision e.g. AA SOFTWARE_REVISION Software revision e.g.
Page 68
AL4002 Remote I/O module 16 DI I&M0 filter Index: 0xAFF4 Variable Description Value Bytes API of the submodule SLOT Slot of the submodule SUBSLOT Subslot of the submodule FLAGS Flags: • 0x01: submodule has own I&M data • 0x02: I&M data of the submodule represent I&M data of the module •...