IFM AL1340 Operating Instructions Manual

IFM AL1340 Operating Instructions Manual

Io-link master with modbus tcp interface
Hide thumbs Also See for AL1340:
Table of Contents

Advertisement

Operating Instructions
IO-Link Master with Modbus TCP interface
DataLine
4 Ports
IP 65 / IP 66 / IP 67
AL1340
IO-Link: 1.1.2
ifm firmware: 2.1.19 or higher
LR DEVICE: 1.3.0.131 or higher
English

Advertisement

Table of Contents
loading

Summary of Contents for IFM AL1340

  • Page 1 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 AL1340 IO-Link: 1.1.2 ifm firmware: 2.1.19 or higher LR DEVICE: 1.3.0.131 or higher English...
  • Page 2: Table Of Contents

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Content Table of Contents Preliminary note Legal and copyright information ................... 5 Purpose of the document ..................... 5 Symbols and styles used .....................
  • Page 3 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Content Configuration LR DEVICE ........................24 8.1.1 Remarks ............................. 25 8.1.2 IoT: Configure access rights ....................... 26 8.1.3 IoT: Configure IP settings ......................
  • Page 4 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Content Operation Identify device ........................61 Firmware update ........................62 Replace IO-Link device ......................63 Maintenance Factory settings Accessories Appendix 13.1...
  • Page 5: Ifm Operating Instructions Io-Link Master With Modbus Tcp Interface Dataline 4 Ports Ip 65 / Ip 66 / Ip 67 (Al1340)

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Preliminary note Legal and copyright information Preliminary note Legal and copyright information ....................... 5 Purpose of the document ......................... 5 Symbols and styles used ..........................
  • Page 6: Symbols And Styles Used

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Preliminary note Symbols and styles used > Symbols and styles used 15989 WARNING Death or serious irreversible injuries may result.
  • Page 7: Safety Instructions

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Safety instructions General Safety instructions General ..............................7 Required background knowledge ......................7 Safety symbols on the device ........................8 Tampering with the unit ..........................
  • Page 8: Safety Symbols On The Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Safety instructions Safety symbols on the device > Safety symbols on the device 15021 General warning Electrical connection Observe instructions in chapter "Electrical connection"...
  • Page 9: Intended Use

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Intended use Permitted use Intended use Permitted use ............................9 Prohibited use ............................9 18761 > Permitted use 22052 The IO-Link master serves as a gateway between intelligent IO-Link devices and the fieldbus.
  • Page 10: Function

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Function Prohibited use Function Communication, parameter setting, evaluation ..................11 Digital inputs ............................12 IO-Link supply ............................12 7482...
  • Page 11: Communication, Parameter Setting, Evaluation

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Function Communication, parameter setting, evaluation > Communication, parameter setting, evaluation IO-Link ..............................11 Modbus TCP ............................11 Internet of Things (IoT) ...........................11 Parameter setting ...........................11...
  • Page 12: Visual Indication

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Function Digital inputs > 4.1.5 Visual indication 7772 The device has the following visual indicators:  Status and error indication of the gateway, of the Modbus TCP connection and of the system ...
  • Page 13: Mounting

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Mounting Mount the device Mounting Mount the device ............................13 22016 > Mount the device 15540 ► Disconnect the system from power before installation.
  • Page 14: Remarks

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Electrical connection Remarks Electrical connection Remarks ..............................14 Modbus TCP ports ..........................15 IoT port ..............................15 IO-Link ports ............................16 Connect the device ..........................18...
  • Page 15: Electrical Connection

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Electrical connection Modbus TCP ports > Modbus TCP ports 17849 ► Connect the device via the M12 socket X21 and/or X22 to the Modbus TCP network (e.g.
  • Page 16: Io-Link Ports

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Electrical connection IO-Link ports > IO-Link ports 22684 Ports X01...X04: For use as IO-Link port class A: ►...
  • Page 17: Input Circuit

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Electrical connection IO-Link ports > 6.4.1 Input circuit 18629 The inputs of the ports X01...X04 (pin 2) provide a type 2 behaviour according to standard EN61131-2, the connected electronics must be rated for this electrically.
  • Page 18: Connect The Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Electrical connection Connect the device > Connect the device 2580 ► Disconnect power. ► Connect the unit via M12 socket X31 to 24 V DC (20...30 V SELV/PELV, for cULus max.
  • Page 19: Operating And Display Elements

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operating and display elements Overview Operating and display elements Overview ..............................19 LED indicators ............................20 5440 > Overview...
  • Page 20: Led Indicators

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operating and display elements LED indicators > LED indicators 22024 The device only has the following LED indicators: >...
  • Page 21: Ethernet Interface

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operating and display elements LED indicators > 7.2.2 Ethernet interface 22027 Each Ethernet interface (X21, X22) has 2 LEDs (LNK and ACT). The LEDs indicate the status of the Ethernet connection.
  • Page 22: Io-Link Ports (Class A)

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operating and display elements LED indicators > 7.2.5 IO-Link ports (Class A) 22029 Each IO-Link port Class A (X01 ... X04) has 2 LEDs marked as IOL and DI. The LEDs indicate the status of the IO-Link port.
  • Page 23: Configuration

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LED indicators Configuration LR DEVICE .............................24 Modbus TCP ............................36 IoT Core ..............................47 22367...
  • Page 24: Lr Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > LR DEVICE Remarks ..............................25 IoT: Configure access rights ........................26 IoT: Configure IP settings ........................27 IoT: Configure the interface to the LR SMARTOBSERVER ..............28...
  • Page 25: Remarks

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.1 Remarks Offline parameter setting ........................25 Parameter setting with LR DEVICE ......................25 22369 >...
  • Page 26: Iot: Configure Access Rights

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.2 IoT: Configure access rights 16555 The access rights define which instance may read and / or write the parameter data, process data and event/diagnostic messages.
  • Page 27: Iot: Configure Ip Settings

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.3 IoT: Configure IP settings 17713 For access to the IO-Link master via the IT infrastructure the user has to set the IP settings of the IoT port.
  • Page 28: Iot: Configure The Interface To The Lr Smartobserver

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.4 IoT: Configure the interface to the LR SMARTOBSERVER 16552 To enable data transfer between the device and the LR SMARTOBSERVER monitoring software, the LR SMARTOBSERVER monitoring software interface has to be configured.
  • Page 29: Fieldbus: Configure Modbus Tcp Port

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.5 Fieldbus: configure Modbus TCP port 12284 The configuration of the IP settings of the fieldbus port is only possible via LR DEVICE.
  • Page 30: Io-Link Ports: Activate Data Transfer To The Lr Smartobserver

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.6 IO-Link ports: Activate data transfer to the LR SMARTOBSERVER 16551 The user can decide separately for each IO-Link port if the process data of the connected IO-Link devices should be transferred to the LR SMARTOBSERVER.
  • Page 31: Io-Link Ports: Configure Operating Mode

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.7 IO-Link ports: Configure operating mode 17439 The IO-Link ports X01...X04 of the device support the following operating modes: ...
  • Page 32: Io-Link Ports: Set The Device Validation And Data Storage

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.8 IO-Link ports: Set the device validation and data storage 17945 In the operating mode "IO-Link" the user can set the behaviour of the IO-Link port with regard to device validation and the storage / restoration of the parameter data of the connected IO-Link device.
  • Page 33: Io-Link Ports: Set Fail-Safe Values

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.9 IO-Link ports: set fail-safe values 11752 In case the Modbus TCP connection is interrupted, fail-safe values can be assigned to the outputs of the IO-Link ports.
  • Page 34: Firmware: Reset Device To Factory Settings

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.11 Firmware: Reset device to factory settings 7209 When the IO-Link master is reset, all parameters are set to the factory settings: To reset the device to factory settings: ►...
  • Page 35: Configure Io-Link Devices

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration LR DEVICE > 8.1.13 Configure IO-Link devices 11033 To configure the IO-Link devices connected to the device with the LR DEVICEparameter setting...
  • Page 36: Integrate The Al1340 Into The Modbus Project

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > Modbus TCP Integrate the AL1340 into the Modbus project ..................36 Set IO-Link master and IO-Link ports .....................38 read input data of several IO-Link ports ....................39...
  • Page 37 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > Example: Integrate IO-Link master in a CODESYS project 9612 Familiarise yourself with the following CODESYS functions! ...
  • Page 38: Modbus Tcp

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.2 Set IO-Link master and IO-Link ports 17986 Configuration Area Register area for the access to the configuration of the IO-Link master: →...
  • Page 39: Read Input Data Of Several Io-Link Ports

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.3 read input data of several IO-Link ports 10925 Register area for compact access to the input data of the IO-Link ports X01…X04 and X05...X04: →...
  • Page 40: Read Input Data Of Individual Io-Link Ports

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.4 Read input data of individual IO-Link ports 18330 Single Port Access Register area for separate access to input data of the individual IO-Link ports: →...
  • Page 41: Write Output Data Of Several Io-Link Ports

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.5 Write output data of several IO-Link ports 13874 Output Data Register area for compact access to the output data of the IO-Link ports X01…X04: →...
  • Page 42: Write Output Data Of Individual Io-Link Ports

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.6 Write output data of individual IO-Link ports 12554 Single Port Access Register area for separate access to output data of individual IO-Link ports: →...
  • Page 43: Read Diagnostic Information And Events

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.7 Read diagnostic information and events 7251 Diagnostic data Register area for the access to diagnostic information of the IO-Link ports X01…X04:→...
  • Page 44: Read Device Information

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.8 Read device information 11039 The user can read device information using the FC43.
  • Page 45: Modbus Tcp: Programmers' Notes

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > 8.2.11 Modbus TCP: Programmers' notes Rules for accessing the Modbus register ....................45 Supported function codes ........................46 Use acyclic services ..........................46...
  • Page 46 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration Modbus TCP > Supported function codes 13676 The AL1340 supports the following function codes for read and/or write access to the Modbus register:...
  • Page 47: Iot Core

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > IoT Core Configure IoT port ...........................48 Configure the fieldbus port ........................49 Configure IO-Link ports ..........................49 Set application identification ........................50...
  • Page 48: Configure Iot Port

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core 8.3.1 Configure IoT port 16540 The parameters of the IoT port X23 are saved in the iotsetup substructure. The user can access the...
  • Page 49: Configure The Fieldbus Port

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.2 Configure the fieldbus port 11747 The parameters of the fieldbus port X21/X22 are saved in the fieldbussetup substructure. The user...
  • Page 50: Set Application Identification

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.4 Set application identification 16580 The application name of the IO-Link master is saved in the devicetag substructure. The user can...
  • Page 51: Read Device Information

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.7 Read device information 17133 Device information is saved in the deviceinfo substructure. The user can access the following data...
  • Page 52: Configure Io-Link Devices

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.9 Configure IO-Link devices 11002 The ifm IoT Core supports the configuration of the connected IO-Link devices. A parameter is accessed via IO-Link index and subindex (→...
  • Page 53: Example: Read Process Data Of An Io-Link Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.11 Examples Example: Read process data of an IO-Link device ................53 Example: Read several parameter values of the IO-Link master simultaneously ........54 Example: Change name of the IO-Link master ..................54...
  • Page 54: Example: Read Several Parameter Values Of The Io-Link Master Simultaneously

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > Example: Read several parameter values of the IO-Link master simultaneously 17310 Task: The following current values are to be read by the IO-Link master. Temperature, serial number Solution: Read the current parameter values using the getdatamult (data point temperature service: /processdatamaster/termperature;...
  • Page 55: Example: Read The Parameter Value Of An Io-Link Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > Example: read the parameter value of an IO-Link device 16546 Task: Read the serial number of the ifm temperature sensor TN2531 at IO-Link port X02...
  • Page 56: Example: Subscribe To Event

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > Example: Subscribe to event 17946 Task: The current values of the following parameters should be sent regularly to a network server with IP address 192.168.0.4: product name of the IO-Link device at IO-Link port X02, cyclic input data of...
  • Page 57: Programmers' Notes

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > 8.3.12 Programmers' notes ifm IoT Core: General information ......................57 Device description ..........................57 Access ifm-IoT Core ..........................58 IoT Core: Diagnostic codes ........................60...
  • Page 58 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > Access ifm-IoT Core 17561 To activate the changes of the parameter values the IoT Core must have the respective write access rights to the IO-Link master (→...
  • Page 59 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > POST method 16548 Using the POST method the user has read and write access to a data point. A form with the required information is transferred to the IP address of the IO-Link master (IoT port X23).
  • Page 60 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Configuration IoT Core > IoT Core: Diagnostic codes 17437 The ifm IoT Core uses the following diagnostic codes:...
  • Page 61: Operation

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operation Identify device Operation Identify device ............................61 Firmware update .............................62 Replace IO-Link device ..........................63 22368 > Identify device 16568 In the online mode, the user can identify the device using the RDY and IoT status LEDs.
  • Page 62: Firmware Update

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operation Firmware update Firmware update 16582 The new firmware is installed via the device's web interface. If the firmware update is not successful, deactivate all connections to the Modbus TCP PLC, LR SMARTOBSERVER and LR DEVICE and repeat the process.
  • Page 63: Replace Io-Link Device

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Operation Replace IO-Link device > Replace IO-Link device 7775 To replace an IO-Link device: Requirement: > IO-Link device is with factory settings.
  • Page 64: Maintenance

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Maintenance Replace IO-Link device Maintenance 21577 The operation of the unit is maintenance-free. ► Clean the surface of the unit when necessary. Do not use any caustic cleaning agents for this! ►...
  • Page 65: Factory Settings

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Factory settings Replace IO-Link device Factory settings 16542 In the factory settings, the device has the following parameter settings:...
  • Page 66: Accessories

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Accessories Replace IO-Link device Accessories 17853 List of accessories of AL1340: → www.ifm.com > Product page > Accessories...
  • Page 67: Appendix

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Replace IO-Link device Appendix Technical data ............................68 Modbus TCP ............................72 ifm IoT Core ............................100 7156...
  • Page 68: Application

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Technical data > 13.1 Technical data Application ..............................68 Electrical data ............................68 Inputs / outputs ............................68 Inputs ..............................69 Outputs ..............................69...
  • Page 69: Inputs

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Technical data > 13.1.4 Inputs 22820 Inputs Number of digital inputs 8; (IO-Link Port Class A: 4 x 2) Switching level high [V] 11...30 DC...
  • Page 70: Operating Conditions

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Technical data > 13.1.7 Operating conditions 22823 Operating conditions Applications Indoor use Ambient temperature [°C] -25...60 Storage temperature [°C]...
  • Page 71: Electrical Connection

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Technical data > 13.1.10 Electrical connection 17850 Voltage supply IN X31 Plug and socket connection Wiring...
  • Page 72: Modbus Tcp

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > 13.2 Modbus TCP Register ..............................73 Acyclic commands ..........................89 22433...
  • Page 73: Register

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > 13.2.1 Register Configuration Area ..........................74 Diagnostic data ............................76 Input Data ...............................79 Output Data ............................82 Single Port Access ..........................83...
  • Page 74: Configuration Area

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Configuration Area 22817 Register Contents Bits 8-15 Bits 0-7 8998* Access Rights Process Data Length...
  • Page 75 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: port configuration 18639 Bits 8-15 Bits 0-7 Port Mode Master Cycle Time...
  • Page 76: Diagnostic Data

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Diagnostic data SYS_OBJECTID> Register Contents Bits 8-15 Bits 0-7 Mapping: Diagnostics Port X01: →...
  • Page 77 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: Diagnostics 17305 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3...
  • Page 78 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: events 13674 reserved Event 1: Event 1: Event 1: Event 1: Mode...
  • Page 79: Input Data

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Input Data 12759 Register Contents Mapping: digital input data 197* Port X01...X04: Digital Input - Pin 2 / Pin 4 (DI) (→...
  • Page 80 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: digital input data 11730 res. res. res. res. X04: X03: X02: X01: res.
  • Page 81 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: Status information IO-Link ports 15383 res. res. res. res. X04: X03: X02: X01: res.
  • Page 82: Output Data

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Output Data 7948 Register Contents Bits 8-15 Bits 0-7 Mapping: Digital output data (→ p. 82)) 599* Port X01...X04: Digital Output - Pin 4 (DO) (→...
  • Page 83: Single Port Access

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Single Port Access 21513 Register Contents Bits 8-15 Bits 0-7 1000 Port X01: Digital Input - Pin 2 Port X01: Digital Input - Pin 4 (DI) Port X01: →...
  • Page 84 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Mapping: PQI 21509 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3...
  • Page 85: Acyclic Command Channel

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Acyclic Command Channel 17311 The following Modbus registers are available for acyclic data transmission:...
  • Page 86 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Request channel 10893 Register Contents Bits 8-15 Bits 0-7 Port No. Index Subindex...
  • Page 87 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Response channel 6916 Register Contents Bits 8-15 Bits 0-7 Port No. Index Subindex...
  • Page 88 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Error codes 15475 Error code Description 0x71 Service not available (unknown command has been sent to the IO-Link port)
  • Page 89: Acyclic Commands

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > 13.2.2 Acyclic commands Command 0x10 – set mode ........................90 Command 0x20 – set validation ID / data storage .................92 Command 0x30 –...
  • Page 90 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command 0x10 – set mode 23461 The command changes the operating mode of an IO-Link port of the AL1340.
  • Page 91 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command response 14273 Register Contents Bits 8-15 Bits 0-7 Port No. reserved reserved...
  • Page 92 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command 0x20 – set validation ID / data storage 23462 The command sets the behaviour of the IO-Link master when connecting a new IO-Link device to an IO-Linkport of the device.
  • Page 93 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command response 10919 Register Contents Bits 8-15 Bits 0-7 Port No. reserved reserved...
  • Page 94 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command 0x30 – set fail-safe data pattern 23464 The command sets the behaviour of the outputs when the Modbus TCP connection and the corresponding fail-safe values are interrupted.
  • Page 95 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command response 10990 Register Contents Bits 8-15 Bits 0-7 Port No. reserved reserved...
  • Page 96 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command 0x40 – Reboot 7639 The command reboots the AL1340. > Command request...
  • Page 97 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command response 25156 Register Contents Bits 8-15 Bits 0-7 reserved reserved reserved 0x40...
  • Page 98 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > command 0x50 – Factory Reset 7254 Factory settings The command resets all parameters to the factory settings (→...
  • Page 99 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix Modbus TCP > Command response 21514 Register Contents Bits 8-15 Bits 0-7 reserved reserved reserved 0x50...
  • Page 100: Ifm Iot Core

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > 13.3 ifm IoT Core Overview: IoT profile ..........................101 Overview: IoT types ..........................104 Overview: IoT services .........................105...
  • Page 101: Overview: Iot Profile

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > 13.3.1 Overview: IoT profile Profile: deviceinfo ..........................101 Profile: devicetag ..........................102 Profile: iolinkmaster ..........................102 Profile: parameter ..........................103...
  • Page 102 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core Profile: devicetag 17438 Element (identifier) Properties mandatory Comments  devicetag type = structure ...
  • Page 103 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Profile: parameter 16545 The profile is used to mark the elements of type data as parameters (acyclic data). The profile defines no substructure.
  • Page 104: Overview: Iot Types

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > 13.3.2 Overview: IoT types 16547 The ifm IoT Core uses the following element types:...
  • Page 105: Overview: Iot Services

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > 13.3.3 Overview: IoT services Service: factoryreset ..........................105 Service: gettree ............................105 Service: getdata ............................106 Service: getdatamulti ..........................107...
  • Page 106 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: getdata 12223 Name: getdata Description: Service reads the value of a data point and provides it.
  • Page 107 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: getdatamulti 17964 Name: getdatamulti Description: The service sequentially reads the values of several data points and provides them. The value and the diagnostic code are provided for each data point.
  • Page 108 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: getidentity 17134 Name: getidentity Description: The service reads the complete device description of the AL1340 and provides it as JSON object.
  • Page 109 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: getsubscriptioninfo 17436 Name: getsubscriptioninfo Description: The service provides information about an existing subscription (subscribe).
  • Page 110 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: iolreadacyclic 12222 Name: iolreadacyclic Description: The service acyclically reads the parameter value of an IO-Link device. It is accessed via IO-Link index and subindex.
  • Page 111 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: iolwriteacyclic 11035 Name: iolwriteacyclic Description: The service acyclically writes the parameter value of an IO-Link device. It is accessed via IO-Link index and subindex.
  • Page 112 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: reboot 10986 Name: reboot Description: The service reboots the device. Applicable to: different objects...
  • Page 113 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: setblock 12224 Name: setblock Description: The service simultaneously sets the values of several data points of a structure.
  • Page 114 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: setdata 11036 Name: setdata Description: The service sets the value of the data point.
  • Page 115 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: setelementinfo 7159 Name: setelementinfo Description: The service sets the uid of an element.
  • Page 116 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Appendix ifm IoT Core > Service: subscribe 10920 Name: subscribe Description: The service subscribes to the values of data points. The data points to be subscribed are transferred as a list.
  • Page 117: Index

    Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Index Index General ....................7 GET method ..................58 Access ifm-IoT Core ................58 Accessories ................... 66 Identify device ..................
  • Page 118 Operating Instructions IO-Link Master with Modbus TCP interface DataLine 4 Ports IP 65 / IP 66 / IP 67 (AL1340) 04 / 2018 Index reboot ......................112 setblock......................113 setdata ......................114 Offline parameter setting ............... 25 setelementinfo ..................... 115 Operating and display elements ............

Table of Contents