background image

IO-Link Master with EtherCAT Interface DataLine 8 Ports IP 65 / IP 66 / IP 67 

11 

4.1 

Communication, parameter setting, evaluation 

Content 

IO-Link ....................................................................................................................................................11 
EtherCAT ................................
................................................................................................................11 
Internet of Things (IoT) ................................
...........................................................................................11 
Security mode ................................
.........................................................................................................11 
Parameter setting ...................................................................................................................................12 
Visual indication ................................
......................................................................................................12 

33860 

4.1.1 

IO-Link 

34084 

The device offers the following IO-Link functions: 

IO-Link master (IO-Link revision 1.0 and 1.1)

8 IO-Link ports for connection of IO-Link devices

Provision of process data of the connected IO-Link devices for LR SMARTOBSERVER monitoring
software (

 

www.ifm.com

)

4.1.2 

EtherCAT 

33676 

The device offers the following EtherCAT functions: 

Provision of the functions of a EtherCAT Slave

2 port switch for access to the EtherCAT interface (X21/X22)

Gateway for transmission of the process and parameter data between the connected IO-Link
devices and the higher-level EtherCAT controller

4.1.3 

Internet of Things (IoT) 

54679 

The device offers the following IoT functions: 

Gateway for the transmission of process, parameter and monitoring data between IO-Linkmaster /
IO-Link devices and the IT network level

REST-API to access process and parameter data

Supported protocols: TCP/IP JSON, MQTT

4.1.4 

Security mode 

54697 

The IoT interface offers the following optional sercurity functions: 

Secure data transfer via encrypted connection (Secure Layer Transport - TLS)

Access protection via authentification

Summary of Contents for AL1332

Page 1: ... 80284134 00 04 2019 Operating Instructions IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 AL1332 HW Revision AB Firmware 2 3 x LR DEVICE 1 5 0 x English ...

Page 2: ...ter setting evaluation 11 4 1 1 IO Link 11 4 1 2 EtherCAT 11 4 1 3 Internet of Things IoT 11 4 1 4 Security mode 11 4 1 5 Parameter setting 12 4 1 6 Visual indication 12 4 2 Digital inputs 12 4 3 IO Link supply 12 5 Mounting 13 5 1 Mount the device 13 6 Electrical connection 14 6 1 Notes 14 6 2 EtherCAT ports 15 6 3 IoT port 16 6 4 IO Link ports 17 6 4 1 Connect IO Link devices for Class A operati...

Page 3: ...e 38 9 2 1 First steps 38 9 2 2 General functions 39 9 2 3 Configure IoT interface 40 9 2 4 IoT interface Configure security mode 41 9 2 5 Configure the fieldbus port 44 9 2 6 Configure IO Link ports 45 9 2 7 Configure IO Link devices 47 9 2 8 Set application identification 49 9 2 9 Read write cyclic process data 50 9 2 10 Control IO Link master 51 9 2 11 Read diagnostic data of the AL1332 53 9 2 ...

Page 4: ... 1 1 Application 79 13 1 2 Electrical data 79 13 1 3 Inputs outputs 79 13 1 4 Inputs 80 13 1 5 Outputs 80 13 1 6 Interfaces 80 13 1 7 Operating conditions 81 13 1 8 Approvals tests 81 13 1 9 Mechanical data 81 13 1 10 Electrical connection 82 13 2 EtherCAT 83 13 2 1 Parameter data 84 13 2 2 Cyclic data 85 13 2 3 Acyclic data 86 13 2 4 Events 96 13 3 ifm IoT Core 100 13 3 1 Overview IoT profile 101...

Page 5: ... is the property of the ODVA EtherCAT is a registered trade mark and patented technology licensed by Beckhoff Automation GmbH Germany IO Link is the property of the PROFIBUS Nutzerorganisation e V Germany www io link com ISOBUS is the property of the AEF Agricultural Industry Electronics Foundation e V Deutschland www aef online org Microsoft is the property of the Microsoft Corporation USA www mi...

Page 6: ...OTICE 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 result see abc Cross reference 123 0x123 0b010 Decimal number Hexadecimal number Binary number Designation of pushbuttons buttons or indications 1 4 Modification history 34492 Version Topic Date 00 New creation of d...

Page 7: ... 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 the warning notes on the product 2 2 Required background knowledge 34185 This document is intended for specialists Specialists are people who based on their relevant training and experience are capable of identif...

Page 8: ...strict access to authorised persons Do not connect the device to open networks or the internet If access from the internet is inevitable choose a safe method to connect with the device e g VPN Use encrypted data transmission e g https TLS 2 5 Tampering with the unit 33190 WARNING Tampering with the unit In case of non compliance Possible affects on safety of operators and machinery Expiration of l...

Page 9: ...se 9 34079 3 1 Permitted use 34209 The IO Link master serves as a gateway between intelligent IO Link devices and the EtherCAT network The device is designed for use without a control cabinet in the plant construction 3 2 Prohibited use 34228 The device may not be used beyond the limits of the technical data Technical data S 79 ...

Page 10: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 10 4 Function Content Communication parameter setting evaluation 11 Digital inputs 12 IO Link supply 12 33836 ...

Page 11: ...owing EtherCAT functions Provision of the functions of a EtherCAT Slave 2 port switch for access to the EtherCAT interface X21 X22 Gateway for transmission of the process and parameter data between the connected IO Link devices and the higher level EtherCAT controller 4 1 3 Internet of Things IoT 54679 The device offers the following IoT functions Gateway for the transmission of process parameter ...

Page 12: ...sual indicators Status and error indication of the gateway of the EtherCAT connection and of the system Status display of the voltage supply Status and activity display of the Ethernet connection Status error and short circuit overload indication of the IO Link ports 4 2 Digital inputs 33817 The device has 8 additional digital inputs type 2 according to EN 61131 2 The digital inputs are on pin 2 o...

Page 13: ...the device 34059 Disconnect the system from power before installation For installation choose a flat mounting surface Please observe the maximum tightening torque Fix the unit to the mounting surface using 2 M5 mounting screws and washers Tightening torque 1 8 Nm Ground the unit via the two mounting screws of the upper mounting lugs ...

Page 14: ...onditions to avoid excessive strain on the installation points and the M12 connections Ensure correct fit and proper assembly of the M12 connecting parts If these instructions are not complied with the specified protection rating cannot be guaranteed For UL applications To connect the IO Link master and the IO Link devices only use UL certified cables of the CYJV or PVVA category with a minimum te...

Page 15: ...he M12 socket X21 and or X22 to the EtherCAT network e g EtherCAT PLC additional EtherCAT device Tightening torque 0 6 0 8 Nm To connect the devices use M12 connectors with protection rating IP 65 IP 66 IP 67 or higher Accessories S 77 Cover the unused sockets with M12 protective caps art no E73004 Tightening torque 0 6 0 8 Nm ...

Page 16: ... DEVICE parameter setting software laptop PC with LR SMARTOBSERVER monitoring software laptop PC with software capable of processing http requests Tightening torque 0 6 0 8 Nm To connect the devices use M12 connectors with protection rating IP 65 IP 66 IP 67 or higher Accessories S 77 Cover the unused sockets with M12 protective caps art no E73004 Tightening torque 0 6 0 8 Nm ...

Page 17: ...ss A operation 51959 Wiring information The connected IO Link devices must be supplied exclusively via the IO Link master The additional digital inputs IO Link ports X01 X08 pin 2 have a type 2 behaviour according to the standard EN61131 2 The connected electronics must be electrically suited for this Connect the connectors of the IO Link devices with the M12 sockets of the IO Link ports X01 X08 T...

Page 18: ...suring basic insulation according to IEC 61010 1 secondary circuit with 30 V DC maximum supplied from mains circuit up to 300 V of overvoltage category II Ensure that the IO Link devices and the connection technology support the galvanic separation In case of operation as port class B the additional digital input of the IO Link port pin 2 is not available Connect the connectors of the IO Link devi...

Page 19: ... to EN61010 1 secondary circuit with maximum 30 V DC supplied by mains circuit up to 300 V of overvoltage category II Tightening torque 0 6 0 8 Nm Maximum cable length 25 m To connect the device use M12 connectors with protection rating IP 65 IP 66 IP 67 or higher Accessories S 77 When using cable length greater than 25 m keep in mind the voltage drop as well as the required minimum voltage supply...

Page 20: ...verview 34052 1 RDY RUN and ERR status LEDs Status LEDs S 21 2 Status LEDs L A of the EtherCAT interfaces 1 X21 and 2 X22 EtherCAT interface S 22 3 LNK ACT status LEDs and IoT LED of the IoT interface X23 IoT port S 22 4 IOL and DI status LEDs of the IO Link port X01 X08 IO Link ports Class A S 23 5 US status LED of the voltage supply X31 Voltage supply S 22 ...

Page 21: ... ms on 800 ms off Status Firmware update is running off Status Gateway not running or gateway booting RUN green on Device in OPERATIONAL state flashes 2 5 Hz Device in PRE OPERATIONAL state flahes 200 ms on 1000 ms off Device in SAFE OPERATIONAL state flashes 10 Hz Device is booting and not yet in INIT state or device is in BOOTSRAP state off Device in INIT state ERR red on Error in application co...

Page 22: ...d IoT LEDs The LEDs indicate the status of the Ethernet connection and the device identification Status LED Description LNK green on Ethernet connection established off No Ethernet connection ACT yellow flashes Data is transmitted via the Ethernet interface off No data transmission IoT green flashes Device identification active 7 2 4 Voltage supply 34191 The interface for voltage supply X31 has th...

Page 23: ...ion IOL yellow off Port configured as DI DO pin 4 C Q OFF on Port configured as DI DO pin 4 C Q ON green flashes 1 Hz Port configured as IO Link no IO Link device detected flashes 2 Hz Port configured as IO Link PROOPERATE state on Port configured as IO Link OPERATE state red flashes 2 Hz Port configuration error or short circuit or overload US on Transmission error DI yellow off Digital input pin...

Page 24: ... parameter setting of the AL1332 the IoT interface and or the fieldbus interface must be configured according to the network environment Configure fieldbus interface Integrate the IO Link master into the TwinCAT project S 64 Configure IoT interface LR DEVICE IoT Configure IP settings S 29 or Configure IoT interface S 40 IoT fieldbus interface has valid settings User can set the parameters of the A...

Page 25: ...ycle 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 articles This article number is stored along with a link to the produkt page on the ifm website Serial Serial number of the IO Link device LR Mode Interval Cycle time for the communication with the SmartObserver Diagnostic information of the device N...

Page 26: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 26 9 Configuration Content LR DEVICE 27 ifm IoT Core 38 EtherCAT 63 33858 ...

Page 27: ...herCAT interface 32 IO Link ports Activate data transfer to LR AGENT or LR SMARTOBSERVER 33 IO Link ports Configure operating mode 34 IO Link ports Set the device validation and data storage 35 Info Show device information 36 Firmware Reset device to factory settings 36 Firmware Reboot the device 36 Configure IO Link devices 37 33692 On delivery the AL1332 is configured with the factory settings F...

Page 28: ...IO Link master and the connected IO Link devices without being connected to the AL1332 OFFLINE mode The configuration created in this way can be stored as a file lrp and loaded to the AL1332 and activated at a later date Further information about offline parameter setting Operating instructions LR DEVICE Fail safe values of the IO Link ports 52521 The AL1332 has no failsafe function for the output...

Page 29: ...re the IP settings of the IoT interface Select IoT menu The menu page shows the current settings Set the following parameters as required Name Description Possible values DHCP Activate deactivate the DHCP client of the device Static IP IP settings were set by the user DHCP IP settings are set by a DHCP server in the network IP address IP address of the IoT port Factory setting 169 254 X X Subnet m...

Page 30: ...The set password is not displayed Save changed values on the device The security mode only protects the access to the device via the IoT interface The user name administrator cannot be changed The security mode can be enabled without setting the password During the attempt to write to the device LR DEVICE requires to enter and confirm the password After entering the password the user has unrestric...

Page 31: ...herCAT and IoT Core have read access rights to events alarms EtherCAT IoT read only EtherCAT has read and write access rights to parameters and process data EtherCAT has read access rights to events alarms IoT Core only has read access rights to parameters process data and events alarms IoT only IoT Core has read and write access rights to parameters and process data IoT has read access rights to ...

Page 32: ... transfer 500 2147483647 500 ms 2147483647 ms Application Tag Source identifier of the IO Link master in the structure of LR AGENT or LR SMARTOBSERVER String32 Factory setting AL1332 After changing the parameter Port LR Agent or SMARTOBSERVER or Application Tag it may take 120 seconds before the device establishes a new TCP connection To prevent the delay Reboot the device after changing the the p...

Page 33: ... interface to the LR AGENT or LR SMARTOBSERVER has to be correctly configured IoT Configure the interface to LR AGENT or LR SMARTOBSERVER S 32 To activate deactivate data transfer Select Port x menu x 1 8 The menu page shows the current settings Set the following parameters as required Name Description Possible values Transmission to LR Agent or SMARTOBSERVER Transfer of process data of the connec...

Page 34: ...s 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 time actual Current cycle time of the data transfer between IO Link master and IO Link device on the port value in microseconds Parameter can only be read Cycle time preset Cycle time of the data transfer between the IO Link m...

Page 35: ...n vendor ID and device ID no there is no automatic storage changes of the current parameter values will not be stored yes recovery of the parameter values when connecting an identical IO Link device with factory settings The options only apply if the IO Link port is in the operating mode IO Link For options Type compatible V1 1 device with Backup Restore and Type compatible V1 1 device with Restor...

Page 36: ...ion of the IO Link master Bootloader revision Bootloader version of the IO Link master Serial number Serial number 9 1 11 Firmware Reset device to factory settings 33838 When the IO Link master is reset all parameters are set to the factory settings 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 DE...

Page 37: ...gure access rights S 31 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 detects IO Link master 2 Add IO Link device Under ONLINE Click on the required IO Link master LR DEVICE automatically detects the IO Link devices connected to the IO Link master e g ifm sensor KG5065 3 Configure IO Link devic...

Page 38: ...d device information of the IO Link master 54 Read information about IO Link devices 54 Subscribe to events 55 MQTT support 57 Programmers notes 58 52244 General notes on the ifm IoT Core Programmers notes S 58 9 2 1 First steps 52245 To read the device description of the AL1332 Send the following POST request to the AL1332 code request cid 1 adr gettree AL1332 returns the device description as st...

Page 39: ...t element of type device Service Description getidentity Read device information getdatamulti Read several parameter values sequentially getelementinfo Read the uid of the AL1332 setelementinfo Write the uid of the AL1332 Depending on the read and write access rights the following services can be applied to elements of type data Service Description getdata Read the value of the element setdata Wri...

Page 40: ...s of the IoT port rw network ipaddress IP address of the IoT port rw network subnetmask Subnet mask of the network segment rw network ipdefaultgateway IP address of the network gateway rw rw read and write Applicable services Name Description network setblock Write all values of the substructure at once If the parameter Access rights is set to EtherCAT IoT using IoT and EtherCAT projection then th...

Page 41: ...ork In the activated security mode the following restrictions apply Access only with authentication password protected user account Access only via secure https connection Transport Layer Security TLS The security mode only protects the access to the device via the IoT interface The standard value for users is administrator The set password cannot be read with getdata The current status of the sec...

Page 42: ...ts of 2 steps 1 Activate security mode Use service setdata with datapoint iotsetup security securitymode to activate the security mode Request code request cid 1 adr iotsetup security securitymode setdata data newvalue 1 Response cid 1 code 200 2 Set required password Use service setdata with data point iotsetup security password to set the required password Request code request cid 1 adr iotsetup...

Page 43: ...as a Base64 coded character string administrator YWRtaW5pc3RyYXRvcg password cGFzc3dvcmQ Request code request cid 1 adr processdatamaster temperature getdata auth user YWRtaW5pc3RyYXRvcg passwd cGFzc3dvcmQ Response cid 1 data value 37 code 200 Example reset password 54686 Task The existing password is to be reset Solution To reset a password disable the security mode To disable it enter the user n...

Page 44: ...21 X22 the AL1332 will be integrated in the EtherCAT network Substructure fieldbussetup Available data points Name Description Access hostname Name of the IO Link master in the fieldbus project rw fieldbusfirmware Firmware version of the IO Link master r connectionstatus Status of the connection to the EtherCAT network r r read only rw read and write ...

Page 45: ...urer that is to be validated rw validation_deviceid IO Link ID of the device that is to be validated rw datastorage Data storage area of the port rw datastorage maxsize Maximum size of the data storage area in bytes r datastorage chunksize Size of a data segment in bytes r datastorage size Size of the data storage area in bytes r r read only rw read and write parameter only editable if connection ...

Page 46: ...he reading process with length length starts code request cid 1 adr iolinkmaster port 2 datastorage getblobdata data pos 0 length h code request cid 1 adr iolinkmaster port 2 datastorage getblobdata data pos h length h code request cid 1 adr iolinkmaster port 2 datastorage getblobdata data pos 2 h length h code request cid 1 adr iolinkmaster port 2 datastorage getblobdata data pos n h length h Exa...

Page 47: ...IO Link device acyclic iolwriteacyclic Write a parameter of an IO Link device acyclic Example Read the parameter value of an IO Link device 33847 Task Read the serial number of the ifm temperature sensor TN2531 at IO Link port X02 Solution Read the serial number with the iolreadacyclic service from the IO Link device index 21 subindex 0 Request code request cid 4711 adr iolinkmaster port 2 iolinkd...

Page 48: ...ction normally closed Solution Change the parameter ou1 of the sensor to the value 4 using the iolwriteacyclicdata service The parameter can be accessed via IO Link index 580 subindex 0 IO Link description of the sensor Request code request cid 4711 adr iolinkmaster port 2 iolinkdevice iolwriteacyclic data index 580 subindex 0 value 34 The value has to be given in hexadecimal format The conversion...

Page 49: ...plication tag rw rw read and write Example Change name of the IO Link master a33823 Task Set the name of the IO Link master to AL1332 for the representation in the LR SMARTOBSERVER Solution Change the parameter Application Tag with the setdata service to the value AL1332 The data point of the parameter Application Tag in the device description object is devicetag applicationtag Request code reques...

Page 50: ... only changeable if not connected to fieldbus PLC Example Read process data of an IO Link device 33842 Task Read the current measured value of the ifm temperature sensor TN2531 at IO Link port X02 Solution Read the data point for the process input data with the getdata service Request code request cid 4711 adr iolinkmaster port 2 iolinkdevice pdin getdata Response cid 4711 data value 03C9 code 200...

Page 51: ...container maxsize Maximum size of the container area in bytes r container chunksize Size of a data segment in bytes r container size Size of the container area in bytes r r only read w write only Applicable services Name Description factoryreset Reset IO Link master to factory settings reboot Reboot IO Link master signal Trigger the flashing of the status LED install Install firmware transferred t...

Page 52: ...a BASE64 string 2 Start the transfer of the firmware Start the transfer of the firmware via the service start_stream_set parameter size size of the firmware file code request cid 1 adr firmware container start_stream_set data size 356676 3 Load the firmware into the flash memory of the IO Link master Send the BASE64 string of the firmware file to the IO Link master fragment by fragment value strin...

Page 53: ...on of the device supply r r read only Example Read several parameter values of the IO Link master simultaneously 33840 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 getdatamulti service data point temperature processdatamaster temperature data point serial number deviceinfo serialnumber Request ...

Page 54: ... r fieldbustype Fieldbus r r read only Additional information about the AL1332 can be read with the getidentity service Service getidentity S 110 9 2 13 Read information about IO Link devices 52339 The user can obtain information about the IO Link devices connected to the IO Link ports Substructure iolinkmaster port n iolinkdevice n 1 8 Available data points Name Description Access status Status o...

Page 55: ...update of the subscribed values rw iolinkmaster port n portevent Display of the following events on IO Link port n IO Link device connected IO Link device disconnected Operating mode of the IO Link port changed r iolinkmaster port n iolinkdevice iolinkevent Display of IO Link events r r read only rw read and write Applicable services Name Description datachanged subscribe Subscribe to an event mes...

Page 56: ... the operating temperature of the IO Link master Solution Subscribe to the required data using the subscribe service Request code request cid 4711 adr timer 1 counter datachanged subscribe data callback http 192 168 0 44 80 temp datatosend iolinkmaster port 2 iolinkdevice productname iolinkmaster port 2 iolinkdevice pdin processdatamaster temperature Additionally the interval of the timer 1 has to...

Page 57: ...to send messages to a MQTT broker PUBLISH Example Publish the temperature to an MQTT broker 54687 Task Publish the temperature of an IO Link master to an MQTT broker IP address MQTT broker 192 168 82 100 port 1883 Topic abc Solution xxx Request code request cid 1 adr iolinkmaster port 1 portevent datachanged subscribe data callback mqtt 192 168 81 100 1883 abc datatosend processdatamaster temperat...

Page 58: ...y has an IoT Core The IoT Core allows the user to address the AL1332 from IT networks via a REST API and to integrate it into Internet of Things applications A device description is stored on the AL1332 This device description is a structured machine readable data object in JSON format All current values of parameters process data diagnostic data and device information are mapped in this data obje...

Page 59: ...rameter Description ip IP address of the IoT interface data_point Data point which is to be accessed service Service The syntax of the return of the IoT Core is cid id data value resp_data code diag_code Parameter Description id Correlation ID for the assignment of request and return resp_data Value of the data point depending on the data type of the data point diag_code Diagnostic code IoT Core D...

Page 60: ...ce Service to be performed Overview IoT services S 107 data req_data Data to be transferred to the IoT Core e g new values syntax depending on the service auth usr_id user name base64 coded default value administrator password password base64 coded optional only required for services that submit data to the IoT core e g setdata optional only required if security mode is activated The syntax of the...

Page 61: ... Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 61 Example POST request 54035 Request code request cid 4711 adr devicetag applicationtag getdata Response cid 4711 data value AL1332 code 200 ...

Page 62: ...P settings of the IoT core changed application has to reboot the device Wait for min 1 second before the device is rebooted IP settings have been successfully changed IO Link master will be restarted wait for at least 1 second 400 Bad request Invalid request 401 Unauthorized Non authorised request 403 Forbidden Forbidden request 500 Internal Server Error Internal fault 503 Service Unavailable The ...

Page 63: ...e configured with any EtherCAT compatible projection software The information in the following sections refers to the EtherCAT projection software TwinCAT 3 1 9 3 1 Install ESI file 34067 To represent the AL1332 in a field bus projection software ifm electronic provides an ESI file www ifm com In the ESI file all parameters process data and their valid value ranges are defined To integrate the ESI...

Page 64: ...ng project 2 Configure EtherCAT PLC and IO periphery Select and configure EtherCAT PLC and requested I O periphery Project contains EtherCAT PLC and I O periphery 3 Integrate the AL1332 into the project In the Solution Explorer Right click on devices to which the AL1332 is connected Context menu appears In the context menu Select Add new item Window Insert EtherCAT Device appears Select the AL1332...

Page 65: ... Index 0x2000 S 88 9 3 4 Configure IO Link ports 33886 The IO Link ports are configured via the CoE interface TwinCAT online help The user can configure each IO Link port separately The configuration is made via the following parameters Name Description Reference IO Settings Configuration of the IO Link ports X01 X08 Port Configuration 0x8000 S 91 Vendor Specific IO Settings Manufacturer specific ...

Page 66: ... the Solution Explorer Double click on the node of the AL1332 The window shows the available configuration options Select the tab Slots The window shows the current configuration of the cyclic data 2 Assign fieldbus modules In the left half of the table Select click on slot of the requested IO Link port In the right half of the table Click on the requested fieldbus module Click on to assign the re...

Page 67: ...IO Link Outputs 0x7000 S 90 In operating mode Digial Input DI the digital process value of the IO Link port will be mapped to the first byte of the input data sub index 0x01 In operating mode Digial Output DO the digital process value of the IO Link port will be mapped to the first byte of the output data sub index 0x01 Valid values 0x000 OFF 0x001 ON During the configuration of the fieldbus slots...

Page 68: ...F000 Status of the IO Link devices at the IO Link port X01 X08 Port qualifier Device Status Port Status 0xF000 S 93 When the IO Link master is integrated into a EtherCAT project TwinCAT automatically creates variables for diagnostic and status information in the Solution Explorer They are grouped in folders under the device node The user can link the variables directly with the elements of a globa...

Page 69: ...Events will only be overwritten when they are read and acknowledged The configuration is done via sub index 0x05 The eventsare stored in sub indexes 0x06 0x46 9 3 9 Configure IO Link devices 33881 The IO Link master supports the configuration of the connected IO Link devices from the EtherCAT projection software The parameters of an IO Link device are set via IO Link index and subindex The number ...

Page 70: ...e Access to the IO Link master with AoE is not supported The function blocks for using AoE are part of the tc2_system libTwinCAT library The following rules apply to the inputs of the ADS function blocks Input Description Possible values PORT ADS communication port 0x1000 IO Link port number 0x1001 0x1002 0x1008 IO Link port X01 IO Link port X02 IO Link port X08 IDXGRP AoE index group 0xF302 IDXOF...

Page 71: ... function blocks for using CoE are part of the Tc2_EtherCAT library function library Add Tc2_EtherCAT library function block library to the project Description of the function blocks Help function of TwinCAT The following rules apply to the inputs of the CoE function blocks Input Description Possible values sNetId AMS net ID of the EtherCAT master to which the IO Link master is connected depends o...

Page 72: ...s locked 2 Check status In the status byte 0x310n sub index 0x02 read status information If status 0xFF command processing is pending repeat step 2 If status 0xFF command processing is finished continue with step 3 3 Read command response In the response buffer 0x310n sub index 0x03 read response data The request channel is unlocked Next command processing can be initiated The AL1332 can only proc...

Page 73: ... firmware 74 Replace IO Link device 75 51990 The operation of the unit is maintenance free Dispose of the unit in an environmentally friendly way in accordance with the applicable national regulations when it is no longer used 10 1 Cleaning process 51991 Clean the surface of the unit when necessary Do not use any caustic cleaning agents for this ...

Page 74: ...ettings of the interface to the LR SMARTOBSERVER Prerequisites Zip file with new firmware has been downloaded and unpacked Ethernet connection between laptop PC and device is established Security mode is disabled 1 Call up web interface Start web browser Enter the following into the address field of the browser and confirm with ENTER http IP address of the device web update Web browser shows the F...

Page 75: ...rts 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 Save changes 2 Replace IO Link device Disconnect old IO Link device from IO Link master Connect new IO Link device with the same IO Link port of the AL1332 IO Link master copies parameter values from the data memory to the new I...

Page 76: ...6 11 Factory settings 33849 In the factory settings the device has the following parameter settings Parameter Factory setting IP address IoT interface 169 254 X X Subnet mask IoT interface 255 255 0 0 IP gateway address IoT interface 0 0 0 0 Host name blank Data storage empty ...

Page 77: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 77 12 Accessories 33870 List of accessories of AL1332 www ifm com Product page Accessories ...

Page 78: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 78 13 Appendix Content Technical data 79 EtherCAT 83 ifm IoT Core 100 33879 ...

Page 79: ... 1 Application 33878 Application Application I O modules for field applications Daisy chain function Fieldbus interface 13 1 2 Electrical data 33808 Electrical data Operating voltage V 20 30 DC US to SELV PELV Current Consumption mA 300 3900 US Protection class III Sensor supply US Max current load total A 3 6 13 1 3 Inputs outputs 34068 Inputs outputs Total number of inputs and outputs 16 configu...

Page 80: ... 13 1 6 Interfaces 34078 Interfaces Communication interface Ethernet IO Link Communication interface IO Link TCP IP EtherCAT Ethernet Transmission standard 10Base T 100Base TX Transmission rate MBit s 10 100 Protocol EtherCAT Zero config Factory settings MAC address see type label IO Link master Type of transmission COM 1 COM 2 COM 3 IO Link revision V1 1 Number of ports Class A 8 IoT interface Tr...

Page 81: ... temperature C 25 60 Storage temperature C 25 85 Max perm relative air humidity 90 Max height above sea level m 2000 Protection rating IP 65 IP 66 IP 67 Pollution Degree 2 13 1 8 Approvals tests 33877 Approval tests EMC EN 61000 6 2 EN 61000 6 4 MTTF Years 90 13 1 9 Mechanical data 34050 Mechanical data Weight g 404 Materials Housing PA socket brass nickel plated ...

Page 82: ...t connection M12 Wiring 1 24 V DC US 2 3 GND US 4 Ethernet IN OUT X21 X22 Plug and socket connection M12 Wiring 1 TX 2 RX 3 TX 4 RX 5 IoT X23 Plug and socket connection M12 Wiring 1 TX 2 RX 3 TX 4 RX 5 Process connection IO Link ports Class A X01 X08 Plug and socket connection M12 Wiring 1 Sensor supply US L 2 DI 3 Sensor supply US L 4 C Q IO Link 5 ...

Page 83: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 83 13 2 EtherCAT Content Parameter data 84 Cyclic data 85 Acyclic data 86 Events 96 33674 ...

Page 84: ...tput data IOL_Out_8Byte 8 byte output data IOL_Out_16Byte 16 byte output data IOL_Out_32Byte 32 byte output data IOL_4 4_I O bytes 4 byte input data 4 byte output data default IOL_8 8_I O bytes 8 byte input data 8 byte output data IOL_4 16_I O bytes 4 byte input data 16 byte output data IOL_16 4_I O bytes 16 byte input data 4 byte output data IOL_16 16_I O bytes 16 byte input data 16 byte output d...

Page 85: ...amp in 0x10F8 64 bit UINT64 r 0x1A81 TxPDO Mapping of Device Status Inputs References to TxPDO Data of Device Status in 0xF100 nn 8 bit for all ports UINT32 r 0x1A82 TxPDO Mapping of Port Qualifier Inputs References to TxPDO Data of Port Qualifier in 0xF101 0n 8 bit for all ports UINT32 r 0x70n0 Output Area RxPDO Data Outputs RxPDOs the cyclic data itself of all modules one index for each module m...

Page 86: ...7 Manufacturer Specific Index 0x2000 88 IO Link Acyclic Command 0x3100 89 IO Link Inputs 0x6000 90 IO Link Outputs 0x7000 90 Port Configuration 0x8000 91 Port Mode 0x9000 92 Diagnostics Data 0xA000 93 Device Status Port Status 0xF000 93 33868 Note 34057 The device implements a Modular Device Profile with an IO Link profile according to ETG 5001 1 ...

Page 87: ...eference Data type Access 0x1000 Device Type MDP Profile 0x184C1389 UINT32 r 0x1008 Manufacturer Device Name IO Link Master DL EC 8P IP67 STRING r 0x1009 Manufacturer Hardware Version z B AA STRING r 0x100A Manufacturer Software Version STRING r 0x1018 Identity Object 0x1 Vendor ID 0x622 UINT32 r 0x2 Product Code AL1332 UINT32 r 0x3 Revision Number UINT32 r 0x4 Serial Number UINT32 r 0x10F8 Timest...

Page 88: ...r 0x2004 Order Number AL1332 STRING r 0x2005 Manufacturing Date STRING r 0x2006 QS Date STRING r 0x2007 Installation Location user defined max 20 characters STRING rw 0x200A Equipment ID user defined max 20 characters STRING rw 0x2F00 Reset To Factory 0xA500 Factory Reset of System NVMEM UINT16 w 0xA501 Factory Reset of System 0x2F01 Device Localization 0x00 LED RDY blinking for 5 s UINT8 w 0x2F02...

Page 89: ... For Write only Length of following data 0x01 0xE8 Byte 5 For Write only Data 0x00 0xE8 0x02 Status 0x00 Command completed no error no response data UINT8 r 0x01 Command completed no error response data available 0x02 Command completed error no response data 0x03 Command completed error response data available 0xFF Command is executing pending 0x03 Response Buffer Byte 0 Status see Subindex 0x02 A...

Page 90: ...iption Possible values Data type Access 0x60n0 IO Link Inputs 0x01 Byte 1 je Byte 0x00 0xFF pro Byte UINT8 r 0x20 Byte 32 r read only IO Link Outputs 0x7000 33667 Output data of the IO Link ports X01 X08 Selection of the IO Link port via n n 0 port X01 n 1 port X02 Index Sub index Description Possible values Data type Access 0x70n0 IO Link Outputs 0x01 Byte 1 pro Byte 0x00 0xFF pro Byte UINT8 rw 0...

Page 91: ...ronic 0x20 IO Link Revision 0x10 IO Link Revision 1 0 UINT8 rw 0x11 IO Link Revision 1 1 0x22 Cycle Time UINT32 rw 0x24 Process Data In Length UINT8 rw 0x25 Process Data Out Length UINT8 rw 0x28 Master Control 0x00 Deactivated UINT16 rw 0x01 Digital Input 0x02 Digital Output 0x03 IO Link 0x80n8 Vendor Specific Port Configuration 0x01 Validation ID 0x00 No check UINT8 rw 0x01 V1 0 Device no DS 0x02...

Page 92: ...vices Selection of the IO Link port via n n 0 port X01 n 1 port X02 Index Sub index Description Possible values Data type Access 0x90n0 Port Mode 0x04 Device ID UINT32 r 0x05 Vendor ID UINT32 r 0x20 IO Link Revision UINT8 r 0x21 Frame Capability UINT8 r 0x22 Cycle Time UINT8 r 0x24 PD In Length UINT8 r 0x25 PD Out Length UINT8 r r read only ...

Page 93: ...NT8 r r read only Device Status Port Status 0xF000 33812 Status of the IO Link device at the port X01 X08 Selection of the IO Link port via n n 0 port X01 n 1 port X02 Index Sub index Description Possible values Data type Access 0xF000 Module Device Profile 0x01 Module Index Distance 0x0010 UINT16 r 0x02 Maximum number of modules 0x0008 UINT16 r 0xF030 Configured Module Ident List 0xF050 Detected ...

Page 94: ...hown The other error messages will be surpressed 0x0 No error 0x3 Invalid Device ID 0x4 Invalid Vendor ID 0x7 Invalid cycle time 0x8 Invalid length of PD In 0x9 Invalid length of PD Out 0xA No device detected 0xB Supply voltage low or short circuit 0xD Unspecified error Port State State of the IO Link port 0x0 Deactivated 0x1 Digital Input 0x2 Digital Output 0x3 OP IO Link Operate state 0x4 STOP I...

Page 95: ...OFF 0x1 ON PVO Port validity output Validity of the output data of the IO Link device 0x0 invalid 0x1 valid DACT Device deactivated shows if the IO Link port is configured and can be used 0x0 activated and can be used 0x1 deactivated or not available DA Device available shows if the IO Link device has been recognised and if the device is in the preoperate or in the operate state 0x0 No device 0x1 ...

Page 96: ... Writing Subindex 0x03 Written value without checking 0x46 255 Writing SDO Abort with codes 0x06090030 or 0x06090031 value of parameter written too high Acknowledge Mode Subindex 5 Bit 4 1 0 Read No messages have been acknowledge so far Writing All acknowledged messages will be deleted 1 5 Writing The slave shall return SDO Abort with codes 0x06090030 value range of parameter exceeded or 0x0609003...

Page 97: ...efault 1 Warning messages will not be stored in the diagnosis message queue Bit 3 Disable error messages 0 Error messages are stored in the message queue default 1 Error messages will not be stored in the diagnosis message queue Bit 4 Mode selection for diagnosis history handling 0 Overwrite Mode 1 Acknowledge Mode Bit 5 Overwrite Discard Information Overwrite Mode 1 unacknowledged messages have b...

Page 98: ...onfiguration has failed Byte 1 5 unused 0xFF03 IO Link Device Lost disconnected Byte 1 IO Link Port 0x00 Port 01 0xFF04 IO Link Device Fault validation error or PD length mismatch Byte 1 IO Link Port 0x00 Port 01 0xFF05 IO Link Device Operating Byte 1 IO Link Port 0x00 Port 01 Byte 2 Old status code Byte 3 Old info code Byte 4 New status code Byte 5 New info code Flags Event type Bit 0 3 0x00 Info...

Page 99: ...eabhängig IODD Beschreibung des IO Link Devices UINT16 r Flags Parameter 3 Data type Parameter 3 0x0005 UINT8 UINT16 r Parameter 3 Event Qualifier Bit 0 2 0x1 PHL UINT8 r 0x2 DL 0x3 AL 0x4 APPL Bit 3 0x0 Source Device 0x1 Source Master Bit 4 5 0x1 Event Type Info Message 0x2 Event Type Warning Message 0x3 Event Error Message Bit 6 7 0x1 Message Type Single 0x2 Message Type Going 0x3 Message TYpe C...

Page 100: ...IO Link Master with EtherCAT Interface DataLine 8 Ports IP 65 IP 66 IP 67 100 13 3 ifm IoT Core Content Overview IoT profile 101 Overview IoT types 106 Overview IoT services 107 33803 ...

Page 101: ...ftware uploadedablesoftware 105 Profile timer 105 34054 Profile blob 52264 Element identifier Characteristics Mandatory Comments blobname type data profiles blob Characterises the element as device information size type data mandatory chunksize type data mandatory setblobdata type service optional getblobdata type service optional start_stream_set type service optional stream_set type service opti...

Page 102: ...oducttext type data optional ordernumber type data optional productiondate type data optional productioncode type data optional hwrevision type data mandatory swrevision type data mandatory bootloaderrevision type data optional vendor type data optional vendortext type data optional vendorurl type data optional vendorlogo type data optional productwebsite type data optional supportcontact type dat...

Page 103: ...ent type data mandatory Profile iolinkmaster 34205 Element identifier Properties Mandatory Comments masterport type structure profile iolinkmaster Executable service mode type data profile parameter mandatory comspeed type data profile parameter mandatory mastercycletime_actual type data profile parameter mandatory mastercycletime_preset type data profile parameter mandatory validation_datastorage...

Page 104: ...profile parameter optional ipversion type data profile parameter optional hostname type data profile parameter optional autonegotiation type data profile parameter optional portspeed type data profile parameter optional enablenetwork type service optional disablenetwork type service optional Profile parameter 34215 The profile is used to mark the elements of type data as parameters acyclic data Th...

Page 105: ...pe structure profiles software uploadablesoft ware Software that can be loaded to the device via the IoT Core lastinstall type data optional installhistory type data optional container type data profile blob mandatory preinstall type service optional install type service mandatory postinstall type service optional abortinstall type service optional installstatus type data optional Profile timer 34...

Page 106: ...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 network event Element is an event that can be started by the firmware and sends messages data Element is a data point device Root element a device represents ...

Page 107: ...111 Service iolreadacyclic 112 Service iolwriteacyclic 112 Service reboot 112 Service setblock 113 Service setdata 113 Service setelementinfo 114 Service signal 114 Service subscribe 115 Service unsubscribe 115 34056 Service factoryreset 34184 Name factoryreset Description The service sets the parameters of the device to the factory settings Request data field data none Response data field data no...

Page 108: ...lement type mandatory STRING Type of the element format optional JSON object Format of the data content uid optional STRING profiles optional JSON array subs mandatory JSON array Subelements hash optional STRING Example code request cid 4 adr gettree Service getdata 34183 Name getdata Description Service reads the value of a data point and provides it Request data field data none Return data field...

Page 109: ...nt Request data field data Data field Required field Data type Description datatosend mandatory ARRAY OF STRINGS List of data points to be requested data points must support the service getdata datatosend url1 url2 urlx consistent optional BOOL Response data field data for each requested data point Data field Required field Data type Description url mandatory STRING Data point request code mandato...

Page 110: ...RAY OF OBJECTS device optional AL1332 device serialnumber optional Serial number device hwrevision optional Hardware version device swrevision optional Software version device custom optional Security optional Security options security securitymode optional ENUM shows if the security mode is activated security authscheme optional ENUM shows the active authentication scheme security ispasswordset o...

Page 111: ...ddress port path Response data field data Data field Required field Data type Description callback mandatory STRING Address to which IoT Core event notifications are to be sent complete URL http ipaddress port path datatosend mandatory ARRAY OF STRINGS List of subscribed data points Example Request code request cid 4715 adr timer 1 counter datachanged getsubscriptioninfo data callback http 192 168...

Page 112: ...mandatory STRING Value of the parameter Value in hexadecimal format Service iolwriteacyclic 34177 Name iolwriteacyclic Description The service acyclically writes the parameter value of an IO Link device The parameter is accessed via IO Link index and subindex Request data field data Data field Required field Data type Description index mandatory NUMBER IO Link index of the parameter subindex manda...

Page 113: ...port the service setdata consistent optional BOOL Response data field data none Example code request cid 4711 adr iotsetup network setblock data consistent true datatosend ipaddress 192 168 0 6 ipdefaultgatewa y 192 168 0 250 Service setdata 34196 Name setdata Description The service sets the value of the data point Request data field data Data field Required field Data type Description newvalue m...

Page 114: ...N array format optional JSON object Response data field data Data field Required field Data type Description identifier mandatory STRING Identifier of the element type mandatory STRING Type of the element format optional JSON object Format of the data or the service content uid optional STRING profiles optional JSON array hash optional STRING Service signal 33819 Name signal Description The servic...

Page 115: ... http ipaddress port path datatosend mandatory ARRAY OF STRINGS List from URLs of data elements elements have to support getdata Response data field data none Service unsubscribe 34197 Name unsubscribe Description The service deletes an existing subscription unsubcribe is successful if cid and the callback address are registered for a subscription subscribe If the STRING DELETE is provided in call...

Page 116: ...arameter values of the IO Link master simultaneously 53 Read the parameter value of an IO Link device 47 Request with authentication 43 reset password 43 Subscribe to event 56 Update firmware 52 Explanation of Symbols 6 F Factory settings 76 Fail safe values of the IO Link ports 28 45 Fieldbus Configure EtherCAT interface 32 Fieldbus parameters 84 Firmware Reboot the device 36 Reset device to fact...

Page 117: ...dedablesoftware 105 timer 105 Programmers notes 58 Prohibited use 9 Purpose of the document 5 R Read write cyclic process data 50 Read and write cyclic process data 67 Read device and diagnostic information 25 Read device information of the IO Link master 54 Read diagnostic and status information 68 Read diagnostic data of the AL1332 53 Read information about IO Link devices 54 Read IO Link events...

Reviews: