background image

Device Manual 

IO-L

i

nk Master with Modbus TCP interface 

CabinetLine 

8 Ports 

IP 20 

AL1940 

IO-Link: 1.1.2 

ifm-Firmware: 2.1.28 or higher 

LR DEVICE: 1.3.1.x or higher 

English 

73

91

16

7

 /

 0

1

     

0

5

 /

 20

18

 

Summary of Contents for AL1940

Page 1: ...Device Manual IO Link Master with Modbus TCP interface CabinetLine 8 Ports IP 20 AL1940 IO Link 1 1 2 ifm Firmware 2 1 28 or higher LR DEVICE 1 3 1 x or higher English 7391167 01 05 2018...

Page 2: ...rohibited use 9 4 Function 10 4 1 Communication parameter setting evaluation 11 4 1 1 IO Link 11 4 1 2 Modbus 11 4 1 3 Internet of Things IoT 11 4 1 4 Parameter setting 11 4 1 5 Visual indication 12 4...

Page 3: ...IoT Core 35 8 2 1 Configure IoT interface 36 8 2 2 Configure the fieldbus port 37 8 2 3 Configure IO Link ports 37 8 2 4 Set application identification 38 8 2 5 Read write cyclic process data 38 8 2 6...

Page 4: ...ories 65 13 Appendix 66 13 1 Technical data 67 13 1 1 Application 67 13 1 2 Electrical data 67 13 1 3 Inputs outputs 67 13 1 4 Inputs 68 13 1 5 Outputs 68 13 1 6 Interfaces 68 13 1 7 Environmental con...

Page 5: ...erty of the ODVA Open DeviceNet Vendor Association USA www odva org EtherNet IP is the property of the ODVA EtherCAT is a registered trade mark and patented technology licensed by Beckhoff Automation...

Page 6: ...may result NOTICE Property damage is to be expected or may result Important note Non compliance can result in malfunction or interference Information Supplementary note Request for action Reaction re...

Page 7: ...eration which is not in accordance with use as prescribed below wrong installation or incorrect handling can affect the safety of operators and machinery Observe these operating instructions Adhere to...

Page 8: ...e unit 2 4 Tampering with the unit 11242 WARNING Tampering with the units can affect the safety of operators and machinery Tampering with the units is not allowed In case of non compliance our liabili...

Page 9: ...Permitted use 9 Prohibited use 9 18761 3 1 Permitted use 11028 The IO Link master serves as a gateway between intelligent IO Link devices and the fieldbus The device is designed for use as cabinet mo...

Page 10: ...ice Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Function Prohibited use 4 Function Communication parameter setting evaluation 11 Digital inputs 12 IO Link supp...

Page 11: ...22 Gateway for transmission of the process and parameter data between the connected IO Link devices and the higher level Modbus controller 4 1 3 Internet of Things IoT 8355 The device has an Ethernet...

Page 12: ...erload indication of the IO Link ports 4 2 Digital inputs 7584 The device has 8 additional digital inputs type 2 according to EN 61131 2 The digital inputs are on clamp 2 of the IO Link ports X01 X08...

Page 13: ...the device observe the necessary safety precautions against electrostatic discharge ESD Only operate the device when mounted on a grounded DIN rail Install the device in a control cabinet of protectio...

Page 14: ...tional regulations for the installation of electrical equipment Device is only suitable for operation on SELV PELV voltages Observe the information concerning IO Link circuits IO Link circuits p 17 Th...

Page 15: ...odbus network To connect the devices use connectors with protection rating IP 20 or higher Accessories p 65 6 3 IoT port 17859 Connect the device via the socket IoT X23 to the IT network e g laptop PC...

Page 16: ...k ports 6 4 IO Link ports 17860 Connect the IO Link devices to the terminals X01 X08 Wiring Technical data p 67 Maximum cable length per IO Link port 20 m To connect the devices use cables with protec...

Page 17: ...ion Connection of IO Link devices with additonal external power supply to ports X01 X08 for port class B operation Wiring Maximum admissible current for UA 4 A The external supply for port class B ope...

Page 18: ...ia port X31 to 24 V DC 20 30 V SELV PELV according to IEC 61010 1 secondary circuit with max 30 V DC supplied from main circuit up to 300 V of overvoltage category II Wiring Technical data p 67 Recomm...

Page 19: ...20 5440 7 1 Overview 10998 1 IOL and DI status LEDs of the IO Link port X01 X08 IO Link ports Class A p 21 2 PWR status LED of the voltage supply X31 Power supply p 21 RDY RUN and ERR Status LEDs Stat...

Page 20: ...t function device reboots ERR red on error in application controller flashes 10 Hz boot error flashes 200 ms on 200 ms off 200 ms on 1000 ms off watchdog error Modbus or process data flashes 200 ms on...

Page 21: ...ge supply X31 has the PWR LED The LED indicates the status of the voltage supply Status LED Description PWR green on Supply voltage Us is applied off No supply voltage is applied or the applied supply...

Page 22: ...22 ifm Device Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Configuration LED indicators 8 Configuration LR DEVICE 23 IoT Core 35 Modbus 49 22367...

Page 23: ...IO Link ports Activate data transfer to the LR SMARTOBSERVER 29 IO Link ports Configure operating mode 30 IO Link ports Set the device validation and data storage 31 IO Link ports set fail safe values...

Page 24: ...context the user creates and stores a configuration for the IO Link master and the connected IO Link devices without being connected to the AL1940 OFFLINE mode The configuration created in this way ca...

Page 25: ...d write access rights to parameters and process data Modbus and IoT Core have read access rights to events alarms Modbus IoT read only Modbus has read and write access rights to parameters and process...

Page 26: ...ry settings To configure the IP settings of the IoT port Select IoT menu The menu page shows the current settings Set the following parameters as required Name Description Possible values DHCP Activat...

Page 27: ...the LR SMARTOBSERVER is installed Factory setting 255 255 255 255 Port LR SMARTOBSERVER Port number that is used to send process data to the LR SMARTOBSERVER 0 65535 Factory setting 35100 Interval LR...

Page 28: ...mask of the IP network Factory setting 255 255 255 0 Default gateway IP address IP address of the gateway Factory setting 0 0 0 0 MAC address MAC address of the Modbus interface The value is firmly s...

Page 29: ...o transfer process data the interfaces to the LR SMARTOBSERVER have to be correctly configured IoT Configure the interface to the LR SMARTOBSERVER p 27 To activate deactivate data transfer Select Port...

Page 30: ...escription Possible values Mode Operating mode of the IO Link port Disabled Port deactivated DI Operation as digital input DO Operation as digital output IO Link Operation as IO Link interface Cycle t...

Page 31: ...d Verification whether it is an IO Link device of the same type validation via vendor ID and device ID No data storage Type compatible V1 1 device with Backup Restore IO Link device is compatible with...

Page 32: ...LOW Old hold old value Set Set value HIGH Fail safe IO Link Fail safe value for output operating mode IO Link Off no fail safe value Reset reset value Old hold old value Pattern provide sample Save c...

Page 33: ...tings To reset the device to factory settings Select Firmware menu The menu page shows the current settings Click on Factory Reset to reset the device LR DEVICE sets the device to the factory settings...

Page 34: ...Link master IoT Configure access rights p 25 1 Select IO Link master Start LR DEVICE Update IODD file library OR Import IODD file of the IO Link device manually Scan network for devices LR DEVICE det...

Page 35: ...identification timer 1 Subscribe to data timer 2 Subscribe to data iotsetup Parameters of the IoT port access rights IP settings IP settings of the LR SMARTOBSERVER fieldbussetup Parameters of the fi...

Page 36: ...mobport Port number of the LR SMARTOBSERVER rw iotsetup smobinterval Cycle time for data transmission to LR SMARTOBERVER value in milliseconds rw iotsetup network dhcp Configuration of the IP settings...

Page 37: ...al output clamp 4 DO r w fieldbussetup independentmode port n failsafeiolink Fail safe value for output data IO Link r w n 1 8 r read only rw read and write 8 2 3 Configure IO Link ports 16454 Paramet...

Page 38: ...er port n pin2in Digital input signal to clamp 2 of the IO Link port n r iolinkmaster port n iolinkdevice pdin IO Link input signal at clamp 4 of the IO Link port n r iolinkmaster port n iolinkdevice...

Page 39: ...etidentity service Service getidentity p 104 8 2 8 Read information aboutIO Link devices 16553 Information about an IO Link device connected via an IO Link port is saved in the iolinkmaster port n iol...

Page 40: ...iolinkmaster port n iolinkdevice iolreadacyclic Acyclic reading of a parameter of an IO Link device r iolinkmaster port n iolinkdevice iolwriteacyclic Acyclic writing of a parameter of an IO Link dev...

Page 41: ...Read process data of an IO Link device 16574 Task Read the current measured value of the ifm temperature sensor TN2531 at IO Link port X06 Solution Read the data point for the process input data with...

Page 42: ...cid 4711 adr getdatamulti data datatosend processdatamaster temperature deviceinfo serialnumber Return object cid 4711 data processdatamaster temperature code 200 data 44 deviceinfo serialnumber code...

Page 43: ...ue is given in hexadecimal format The conversion of the HEX value in a STRING value is G0214280710 Example Change the parameter value of an IO Link device 16578 Task Set the output configuration OUT1...

Page 44: ...Link port X02 and the operating temperature of the IO Link master Solution Subscribe to the required data using the subscribe service Request object code 80 cid 4711 adr timer 1 counter datachanged su...

Page 45: ...of Things applications The IoT Core provides the user with the following functions Control device Monitoring of process data Read write parameters of the IO Link master Read write parameters of the co...

Page 46: ...ccess to a data point The syntax of the request to the IoT Core is ip datapoint service Description Description ip IP address of the IoT port X23 of the IO Link master data_point Data point which is t...

Page 47: ...ion 80 Event id Correlation ID for the assignment of request and return data_point Data point which is to be accessed service Service to be performed Overview IoT services p 102 req_data Data to be tr...

Page 48: ...ode Description 200 OK 230 OK but reboot required 231 OK but block request not yet terminated 232 Data accepted but changed internally 233 IP settings changed application has to reboot the device Wait...

Page 49: ...ts 55 Read diagnostic information and events 56 Read device information 57 Control IO Link master 57 Configure IO Link devices 57 Modbus Programmers notes 58 11614 On the field bus side the device can...

Page 50: ...e tree Right click on X8 node Context menu appears In the context menu Select Add Device Dialogue window appears Select the following settings 1 Vendor Select ifm electronic 2 Device Select Modbus_TCP...

Page 51: ...e that the transferred parameter data has the correct length Register area Contents Access Start address Length words 8998 1 Access Rights Process Data Length r w 8999 1 Byte swap r w 9000 6 Port X01...

Page 52: ...s register p 58 The parameter Invalid Data indicates whether the read IO Link input data is valid Together with the input data also read and evaluate the corresponding status information of the IO Lin...

Page 53: ...1 1 Port X01 Diagnostic data r n 2 Port X01 Input Data IO Link n bytes r 2000 1 Port X02 Digital Input Pin 2 Pin 4 DI r 2001 1 Port X02 Diagnostic data r n 2 Port X02 Input Data IO Link n bytes r 3000...

Page 54: ...ely covered by the transferred output data Example The configured process data length is 4 bytes If all in all 5 words have been transferred to register 600 the IO Link master writes the outputs X01 w...

Page 55: ...situations no Ethernet cable connected PLC has terminated the connection Connection to the PLC has a timeout Register area Contents Access Start address Length words 1100 1 Port X01 Digital Output Pin...

Page 56: ...events will be deleted after a minimum of 10 s Event Single Shot Occurring events indicate the time of the error occurrence event appears If the error cause disappears this is indicated by a further...

Page 57: ...IO Link Master CL MOD 8P IP20 0x05 ModelName ASCII string 1940 0x06 UserApplicationName ASCII string MODBUS IO Link master 8 3 9 Control IO Link master 23382 The user can control the IO Link master u...

Page 58: ...r write Modbus registers Supported function codes p 59 Only implement read and write access via valid start addresses Access via an invalid start address generates an error Example Task Write IO Link...

Page 59: ...mmand consists of a request and a response Register area Contents Access Start address Length words 500 22 Command Request Channel Fieldbus PLC IO Link Master r w 0 22 Command Response Channel IO Link...

Page 60: ...ware update check the settings of the LR SMARTOBSERVER interface To install a new firmware version on the device Requirements Zip file with new firmware has been downloaded and unpacked Ethernet conne...

Page 61: ...ud rate of the IO Link interface MasterCycleTime Cycle time Vendor ID ID of the manufacturer of the IO Link device Device ID ID of the IO Link device Name Article number of the IO Link device For ifm...

Page 62: ...tings IO Link device supports IO Link standard 1 1 or higher 1 Set data storage Set the following parameters of the IO Link port Validation and Data Storage Type compatible V1 1 device with Restore Sa...

Page 63: ...nce Replace IO Link device 10 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 After use dis...

Page 64: ...2 In the factory settings the device has the following parameter settings Parameter Factory setting IP address Modbus 192 168 1 250 Subnet mask Modbus 255 255 255 0 IP gateway address Modbus 0 0 0 0 I...

Page 65: ...ce Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Accessories Replace IO Link device 12 Accessories 17853 List of accessories of AL1940 www ifm com Product page A...

Page 66: ...66 ifm Device Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Appendix Replace IO Link device 13 Appendix Technical data 67 Modbus 71 ifm IoT Core 97 7156...

Page 67: ...ests 69 Mechanical data 69 Electrical connection 70 9011 13 1 1 Application 23710 Application Application I O modules for control cabinet Daisy chain function Communication interface 13 1 2 Electrical...

Page 68: ...ces 10921 Interfaces Communication interface Ethernet IO Link Communication interface IO Link TCP IP Modbus TCP Ethernet Transmission standard 10Base T 100Base TX Transmission rate MBit s 10 100 Proto...

Page 69: ...plications Control cabinet Ambient temperature C 25 65 Storage temperature C 25 85 Max perm relative air humidity 90 linearly decreasing to 50 40 C Max height above sea level m 2000 Protection IP 20 D...

Page 70: ...e supply IN X31 Plug and socket connection COMBICON Wiring 1 GND US 2 GND US 3 24 V DC US 4 24 V DC US Process connection IO Link ports Class A X01 X0 IOL_AnzPorts Plug and socket connection COMBICON...

Page 71: ...71 ifm Device Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Appendix Modbus 13 2 Modbus Register 72 Acyclic commands 88 22433...

Page 72: ...IP 20 AL1940 05 2018 Appendix Modbus 13 2 1 Register Configuration Area 73 Diagnostic data 75 Input Data 78 Output Data 81 Single Port Access 82 Acyclic Command Channel 84 18637 The AL1940 saves the c...

Page 73: ...ssing the Modbus register p 58 Legend Access Rights The access rights to the parameter data process data and the events diagnostic messages of the IO Link master as well as the connected IO Link devic...

Page 74: ...milliseconds 0x07 128 milliseconds Validation ID Supported IO Link standard and behaviour of the IO Link master when connecting new IO Link devices to the IO Link port 1 byte 0x00 No validation 0x01 V...

Page 75: ...register 30 39 60 Port X04 Diagnostic data Mapping Port X01 register 30 39 70 Port X05 Diagnostic data Mapping Port X01 register 30 39 80 Port X06 Diagnostic data Mapping Port X01 register 30 39 90 Po...

Page 76: ...O Link Wrong Vendor ID Device ID Verification if the current and configured vendor ID and device ID are identical 1 bit 0x0 OK 0x1 No match Wrong Cycle Time Verification if the current and configured...

Page 77: ...Event 3 Src Event 3 Instance Event 3 Code Legend Event m Mode Mode mode of the event 2 bits 0x0 reserved 0x1 One time event 0x2 Event has disappeared 0x3 Event has appeared Event m Type Type category...

Page 78: ...t X05 X08 Diagnostic Information Mapping diagnostic information p 79 299 Port X05 X08 Status Information IO Link Ports Mapping Status information IO Link ports p 80 300 Port X05 X08 Compact Input Bloc...

Page 79: ...mp 2 Signal level on clamp 2 of the IO Link ports if used 1 bit 0x0 LOW 0x1 HIGH Mapping diagnostic information 7265 Register 198 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 res res res res X04 SC OL X0...

Page 80: ...res X04 Dev Conn X03 Dev Conn X02 Dev Conn X01 Dev Conn Register 299 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 res res res res X08 Data invalid X07 Data invalid X06 Data Invalid X05 Data invalid res...

Page 81: ...Digital Output clamp 4 DO Digital output data clamp 4 operating mode DO of 4 IO Link ports 2 bytes Compact Output Block 4n Bytes Output data operating mode IO Link of 4 IO Link ports n 2 4 8 16 32 is...

Page 82: ...e Port Access Mapping Port X01 register 1000 1101 7000 Port X07 Single Port Access Mapping Port X01 register 1000 1101 8000 Port X08 Single Port Access Mapping Port X01 register 1000 1101 valid start...

Page 83: ...id Data Status of the process input data on the IO Link port 1 bit 0x0 valid data 0x1 invalid data Wrong VID DID Verification whether the current and configured vendor ID and device ID are identical 1...

Page 84: ...tents Bits 8 15 Bits 0 7 500 Command Request Channel Request channel p 85 0 Command Response Channel Response channel p 86 valid start address for accessing the register area Rules for accessing the M...

Page 85: ...32 Legend Port No Number of the IO Link port 1 Word 0x0001 Port X01 0x0002 Port X02 0x0008 Port X08 Index Index of the IO Link object 1 Word 0x0000 0xFFFF Subindex Subindex of the IO Link object 1 Wor...

Page 86: ...Index of the IO Link object 1 Word 0x0000 0xFFFF Subindex Subindex of the IO Link object 1 Word 0x0000 0xFFFF Command Command number 1 byte 0x01 Read 0x02 Write User ID reflected User ID from request...

Page 87: ...O Link port 0x72 Port blocked another cyclic process accesses the IO Link port 0x74 Invalid data wrong parameter has been sent in the command 0x76 Wrong port wrong port number 0x77 Wrong port function...

Page 88: ...e CabinetLine 8 Ports IP 20 AL1940 05 2018 Appendix Modbus 13 2 2 Acyclic commands Command 0x10 Set mode 89 Command 0x20 Set validation ID data storage 91 Command 0x30 Set fail safe data pattern 93 Co...

Page 89: ...onfiguration p 74 Command request 12221 Register Contents Bits 8 15 Bits 0 7 500 Port No 501 reserved 502 reserved 503 0x10 User ID 504 reserved 505 Target Mode 506 521 reserved Legend Port No Number...

Page 90: ...Link port 1 word 0x0001 Port X01 0x0002 Port X02 0x0008 Port X08 User ID reflected User ID from request channel 1 byte 0x00 0xFF Result Status of the command processing 1 byte 0x00 OK 0xFF Error Data...

Page 91: ...d request 14272 Register Contents Bits 8 15 Bits 0 7 500 Port No 501 reserved 502 reserved 503 0x20 User ID 504 reserved 505 Validation ID 506 521 reserved Legend Port No Number of the IO Link port 1...

Page 92: ...rt X08 User ID reflected user ID from request channel 1 byte 0x00 0xFF Result Status of the command processing 1 byte 0x00 OK 0xFF Error Data Length Number of Bytes Number of bytes that contain releva...

Page 93: ...yte Length N 505 Failsafe Mode 506 reserved Failsafe Data Byte 1 reserved Failsafe Data Byte 0 521 reserved Failsafe Data Byte 31 reserved Failsafe data Byte 30 Legend Port No Number of the IO Link po...

Page 94: ...5 Data Length Number of Bytes 6 reserved Error code Failsafe Mode Error 7 21 reserved Legend Port No Number of the IO Link port 1 Word 0x0001 Port X01 0x0002 Port X02 0x0008 Port X08 User ID reflecte...

Page 95: ...Command response 25156 Register Contents Bits 8 15 Bits 0 7 0 reserved 1 reserved 2 reserved 3 0x40 User ID 4 Result 5 Data Length Number of Bytes 6 reserved Error code 0xAA Error 7 21 reserved Legen...

Page 96: ...D to identify the command 1 byte 0x00 0xFF Command response 21514 Register Contents Bits 8 15 Bits 0 7 0 reserved 1 reserved 2 reserved 3 0x50 User ID 4 Result 5 Data Length Number of Bytes 6 reserved...

Page 97: ...evice Manual IO Link Master with Modbus interface CabinetLine 8 Ports IP 20 AL1940 05 2018 Appendix ifm IoT Core 13 3 ifm IoT Core Overview IoT profile 98 Overview IoT types 101 Overview IoT services...

Page 98: ...einfo deviceicon type data optional deviceinfo serialnumber type data mandatory deviceinfo productid type data optional deviceinfo productname type data optional deviceinfo productcode type data manda...

Page 99: ...able service masterport mode type data profile parameter mandatory masterport comspeed type data profile parameter mandatory masterport mastercycletime_actual type data profile parameter mandatory mas...

Page 100: ...75 Element identifier Properties mandatory Comments service type service profiles service Executable service Profile software 10999 Element identifier Properties mandatory Comments software type struc...

Page 101: ...he ifm IoT Core uses the following element types Name Description structure Element is a structure element like a folder in a file system service Element is a service that can be addressed from the ne...

Page 102: ...2188 Name factoryreset Description The service sets the parameters of the device to the factory settings Applicable to different objects Request data none Return data data none Service gettree 17435 N...

Page 103: ...i 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 Applicable t...

Page 104: ...G iot uid optional STRING iot version mandatory STRING iot catalogue optional ARRAY OF OBJECTS iot deviceclass optional ARRAY OF STRING iot serverlist ARRAY OF OBJECTS device optional AL1940 device se...

Page 105: ...ield Data type Default Description value mandatory STRING Value of the parameter Value in hexadecimal format Service iolwriteacyclic 11035 Name iolwriteacyclic Description The service acyclically writ...

Page 106: ...ew values data points must support the service setdata consistent optional BOOL false Return data data none Example code 10 cid 4711 adr iotsetup network setblock data consistent true datatosend ipadd...

Page 107: ...tional STRING UID to be set profiles optional JSON array format optional JSON object Return data data Data field Required field Data type Default Description identifier mandatory STRING Identifier of...

Page 108: ...s are to be sent complete URL http ipaddress port path datatosend mandatory ARRAY OF STRINGS List from URLs of data elements elements have to support getdata Return data data none Service unsubscribe...

Page 109: ...IO Link master simultaneously 42 Read the parameter value of an IO Link device 43 Subscribe to event 44 Examples 41 F Factory settings 64 Fieldbus configure Modbus port 28 Firmware Reboot the device 3...

Page 110: ...f individual IO Link ports 53 Read input data of several IO Link ports 52 Register 72 Remarks 14 24 Replace IO Link device 62 Request channel 85 Required background knowledge 7 Response channel 86 Rul...

Reviews: