
Remote I/O module 16 DI AL4142
3
9.1.9 Counter: Controlling counter modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.1.10 Counter: Reading counter values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.1.11 Gateway: Reading identification information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9.1.12 Gateway: Reading status and diagnostic information . . . . . . . . . . . . . . . . . . . . . . . . 28
9.1.13 Gateway: Setting the application tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9.1.14 Firmware: Reading the firmware version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9.1.15 Firmware: Resetting the device......................................... 29
9.1.16 Firmware: Restarting the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9.2 IoT-Core Visualizer...................................................... 30
9.2.1 Starting the ifm IoT Core Visualizer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
9.2.2 Searching elements of the IoT Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9.2.3 Configuring the device ............................................... 32
9.2.3.1 Configuring a ModbusTCP interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
9.2.3.2 Setting the arrangement of the digital inputs . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.2.3.3 Configuring input filters.......................................... 34
9.2.3.4 Configuring counter modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
9.2.3.5 Reading device information....................................... 36
9.2.3.6 Reading the firmware version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
9.2.3.7 Setting the application tag........................................ 36
9.2.4 Accessing process data .............................................. 37
9.2.4.1 Reading digital input data........................................ 37
9.2.4.2 Reading counter values ......................................... 38
9.2.4.3 Controlling counter modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.2.4.4 Reading status and diagnostic information . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.2.5 Update firmware.................................................... 39
9.3 ModbusTCP........................................................... 40
9.3.1 Integrating a device into a Modbus TCP project . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.3.1.1 Example: Integrating a device into a CODESYS project . . . . . . . . . . . . . . . . . 40
9.3.2 Device-specific notes ................................................ 41
9.3.2.1 Rules for accessing the Modbus register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.3.2.2 Supported function codes........................................ 41
9.3.2.3 Exception codes............................................... 41
9.3.3 Configuring the device ............................................... 42
9.3.4 Configuring digital inputs.............................................. 42
9.3.5 Configuring counter modules .......................................... 42
9.3.6 Reading process data................................................ 42
9.3.7 Controlling counter modules........................................... 43
9.3.8 Controlling the device................................................ 43
9.3.9 Reading diagnostic data.............................................. 43
9.3.10 Reading identification information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
10 Maintenance, repair and disposal................................................ 45
10.1 Cleaning.............................................................. 45
10.2 Update firmware........................................................ 45
11 Appendix................................................................... 46
11.1 ModbusTCP ........................................................... 46
11.1.1 Register .......................................................... 46
11.1.1.1 Input data (0 - 34).............................................. 46
11.1.1.2 Port Configuration - Digital Inputs (100 - 163) . . . . . . . . . . . . . . . . . . . . . . . . . 48
11.1.1.3 Port Configuration - Counter (200 - 271) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
11.1.1.4 Port Output - Counter (300 - 355) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
11.1.1.5 Block Configuration (400 - 408). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
11.1.1.6 Byte Swap (500)............................................... 55
11.1.1.7 Connection Timeout (510)........................................ 56
11.1.1.8 DI Channel Mapping (550) ....................................... 57
11.1.1.9 System Command (600)......................................... 58
11.1.1.10 Diagnostic Data (2000 - 2002) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59