IO-Link master with PROFINET interface AL1305
3
9.1.15 Firmware: Resetting the device......................................... 26
9.1.16 Firmware: Restarting the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9.1.17 Setting the parameters of IO-Link devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.2 ifm IoT Core REST API................................................... 28
9.2.1 ifm IoT Core: General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9.2.1.1 Accessing the ifm IoT Core....................................... 28
9.2.2 Getting started ..................................................... 30
9.2.3 General functions................................................... 31
9.2.3.1 Example: Reading properties of an element . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9.2.3.2 Example: Outputting the subtree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.2.3.3 Example: Changing a parameter value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
9.2.3.4 Example: Read multiple elements sequentially . . . . . . . . . . . . . . . . . . . . . . . . 36
9.2.3.5 Example: Browsing device description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.2.4 IoT: Configuring access rights.......................................... 37
9.2.5 IoT: Configuring IP settings............................................ 38
9.2.6 IoT: Configuring security mode......................................... 38
9.2.6.1 Example: Activating security mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
9.2.6.2 Example: Request with authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.2.6.3 Example: Resetting the password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.2.7 IoT: Configuring the interface to the monitoring software . . . . . . . . . . . . . . . . . . . . . 41
9.2.8 Fieldbus: Configure the PROFINET interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.2.9 Ports: Setting the operating mode Pin 4 (US) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
9.2.10 Ports: Configuring device validation and data storage. . . . . . . . . . . . . . . . . . . . . . . . 42
9.2.10.1 Example: Cloning the data memory of an IO-Link port . . . . . . . . . . . . . . . . . . 43
9.2.11 Ports: Setting data transmission to the monitoring software . . . . . . . . . . . . . . . . . . . 45
9.2.12 Ports: Reading / writing process data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.2.12.1 Example: Reading an IO-Link process value (operating mode "IO-Link") . . . . 46
9.2.12.2 Example: Reading an IO-Link process value (operating mode "IO-Link") . . . . 46
9.2.12.3 Example: Reading the digital input value (operating mode "DI") . . . . . . . . . . . 47
9.2.12.4 Example: Writing the digital output value (operating mode "DO") . . . . . . . . . . 47
9.2.13 Ports: Reading port events............................................ 48
9.2.14 Timer: Configuring the timers .......................................... 48
9.2.14.1 Set the counting interval......................................... 49
9.2.15 IO-Link devices: Accessing parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
9.2.15.1 Example: Reading a parameter value of an IO-Link device . . . . . . . . . . . . . . . 50
9.2.15.2 Example: Writing a parameter value of an IO-Link device . . . . . . . . . . . . . . . . 50
9.2.16 IO-Link devices: Reading and writing device information . . . . . . . . . . . . . . . . . . . . . 51
9.2.17 IO-Link devices: Reading IO-Link events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9.2.18 Gateway: Set the application tag. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
9.2.19 Gateway: Update firmware............................................ 52
9.2.20 Gateway: Reading status and diagnostic information . . . . . . . . . . . . . . . . . . . . . . . . 52
9.2.21 Gateway: Reading device information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9.2.22 Gateway: Resetting, rebooting and localising the device. . . . . . . . . . . . . . . . . . . . . . 53
9.2.23 Notifications ....................................................... 53
9.2.23.1 Event-controlled notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.2.23.2 Time-controlled notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.2.23.3 Example: Subscribing to notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.2.23.4 Example: Changing a notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
9.2.23.5 Example: Subscribing to a notification in CSV format . . . . . . . . . . . . . . . . . . . 56
9.2.23.6 Example: Unsubscribing from a notification. . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.2.23.7 Example: checking a notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.2.23.8 MQTT support................................................. 58
9.2.23.9 WebSocket support............................................. 62
9.3 IoT Core Visualizer...................................................... 64
9.3.1 Starting the IoT-Core Visualizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.3.2 Managing notifications ............................................... 65
9.3.2.1 Creating a new notification ....................................... 65
9.3.2.2 Deleting a notification........................................... 65
9.3.3 Searching for elements of the IoT Core. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.3.4 Configuring the IO-Link master......................................... 68
9.3.5 Accessing process data .............................................. 69
9.3.6 Update firmware.................................................... 70