turck BL20-E-4IOL Operating Instructions Manual Download Page 57

55

2018/10

7

Step 7 (PROFIBUS-DP/PROFINET): IOL_CALL (FB102)

7.1

Example project

7.1.1

Used Hardware

Siemens S7, CPU 315-2 PN/DP, 6ES7-2EH13-0AB0 with PROFINET

Turck multiprotocol gateway BL20-E-GW-EN (VN03-00) 

IO-Link Master BL20-E-4IOL with
IO-Link port 1: Turck temperature sensor,TS-500-LUUPN8X-H1141
IO-Link port 2: not used
IO-Link port 3: not used
IO-Link port 4: Turck I/O hub, TBIL-M1-16DIP

7.1.2

Used Software

SIMATIC Manager, Step 7, version 5.5, SP2

Summary of Contents for BL20-E-4IOL

Page 1: ...Your Global Automation Partner BL 4IOL IO Link Master Modules for BL20 and BL67 Operating instructions...

Page 2: ...2 Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com...

Page 3: ...iew 11 4 2 Properties and Features 11 4 3 Compatible gateways 11 4 3 1 Compatible BL20 gateways 11 4 3 2 Compatible BL20 gateways CODESSYS programmable 12 4 3 3 Compatible BL67 gateways 12 4 3 4 Compa...

Page 4: ...ALL 47 6 1 General 47 6 2 IOL_CALL in accordance with IO Link specification 47 6 3 Turck IO Link Function Blocks 48 6 3 1 IO Link CALL Turck 49 6 3 2 STATUS communication error status 51 6 3 3 IOL_STA...

Page 5: ...figuration in CODESYS 78 9 2 1 Prerequisites 78 9 2 2 Configuration of the IO Link ports 78 9 3 Usage of the function block in CODESYS 80 9 3 1 Example accesses with IOL_CALL 81 10 Appendix 87 10 1 St...

Page 6: ...Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 4...

Page 7: ...carefully read by anyone mount ing commissioning operating maintaining dismantling or disposing of the device 1 2 Explanation of Symbols Used The following symbols are used in these instructions CALL...

Page 8: ...com Data sheet Manuals for the BL20 and BL67 I O modules Manuals for the BL20 and BL67 gateways Approvals CAD data 1 4 Feedback about these instructions We make every effort to ensure that these instr...

Page 9: ...2 Muelheim an der Ruhr Germany Turck supports you with your projects from initial analysis to the commissioning of your applica tion The Turck product database contains software tools for programming...

Page 10: ...Notes on the Product Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 8...

Page 11: ...e modular I O systems BL20 and BL67 They can be connected to several fieldbus systems and Ethernet protocols via the respective gateways They transmit signals of the connected IO Link devices to the g...

Page 12: ...For Your Safety Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 10...

Page 13: ...ated in IO Link mode IOL or in standard I O mode DI mode The four universal digital channels are designed as XSG channels and can therefore be parameter ized as in or output 4 1 Device Overview 4 2 Pr...

Page 14: ...e version PROFIBUS DP BL20 GW DPV1 6827234 V1 30 BL20 E GW DP 6827250 V1 29 CANopen BL20 E GW CO 6827252 BL20 GWBR CANOPEN 6827167 DeviceNet BL20 E GW DN 6827301 BL20 GWBR DNET 6827168 Multi protocol...

Page 15: ...s 10 ms Repeat rate 1 s 1 s Sensor supply From moUL 24 V DC 20 4 VDC 30 VDC From Vsens 24 V DC 20 4 VDC 30 VDC Short circuit protection yes 4 A via the gateway Output current IA 0 5 A IAMAX 0 6 A acco...

Page 16: ...field IO Link Number of ports 4 4 IO Link specification V1 0 V1 1 according to IEC 61 131 9 V1 0 V1 1 according to IEC 61 131 9 IO Link port type Class A Class A Frame type Supports all specified fra...

Page 17: ...n or output is provided at terminals 5 8 ATTENTION Wrong supply of IO Link devices Damage to the electronics The IO Link devices must only be supplied with the voltage provided at the supply ter minal...

Page 18: ...e protected by a fuse with max 8 A 10A depending on type of gateway More information can be found in the respective gateway manuals ATTENTION Wrong ground potential Damage to the electronics The IO Li...

Page 19: ...Bit 2 Bit 1 Bit 0 Status 0 XSG8 XSG7 XSG6 XSG5 DI4 DI3 DI2 DI1 1 OC8 OC7 OC6 OC5 DVS4 DVS3 DVS2 DVS1 Process input data 2 to 15 31 Mapped process input data Name Value Meaning DIx Digital input 0 No s...

Page 20: ...data 2 to 15 31 Mapped process output data Name Value Meaning DDx Deactivate diagnostics 0 no Diagnostic messages are sent depending on the setting of the param eter Deactive diagnostics 1 Yes All dia...

Page 21: ...High Byte MSByte Most Significant Byte Mapping by Master field bus PLC Process input data mapping IO Link device Devices at channel 1 4 Channel parameterization s S 23 Byte A Byte A Byte 0 Status Byte...

Page 22: ...s not check if the connected device matches the configured one 0010 IO Link with compatible device Pin 4 BL67 of the respective connector or the respective terminal 1 2 3 or 4 BL20 is operated in IO L...

Page 23: ...g signals are interrupted Data storage mode Synchronization of parameter data of IO Link devices storing the parameter of the connected device in the master If the synchronization is not possible a di...

Page 24: ...0 No BL67 The output at pin 2 of the respective connector port is deactivated BL20 The output at the respective terminal 5 to 8 is deactivated 01 Yes BL67 The output at pin 2 of the respective connect...

Page 25: ...vent to the fieldbus Process input data mapping Optimization of the process data mapping for the used fieldbus The I O Link data can be swapped depending on the used fieldbus in order to achieve an op...

Page 26: ...8 byte 0110 10 byte 0111 12 byte 1000 1110 reserved 1111 14 byte Channel Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Channel 1 0 XSG10 Data storage mode Quick Start Up Operation mode 1 Cycle...

Page 27: ...and device ID and the serial number of the connected device match the data of the configured one If the master detects a mismatch the IO Link com munication is established but there is no process dat...

Page 28: ...ith IO Link specification V1 0 do not support data storage In this case the data storage has to be deactivated data storage mode 11 deactivated clear Quick Start Up For fast applications e g tool chan...

Page 29: ...10 Notifications and warnings The master transmits all IO Link Events to the fieldbus except for IO Link notifications and warnings 11 Yes The master doesn t transmit any IO Link Event to the fieldbu...

Page 30: ...efines the length of the process output data which are mapped to the fieldbus for this port 0000 0 byte 0001 1 byte 0010 2 byte 0011 4 byte 0100 6 byte 0101 8 byte 0110 10 byte 0111 12 byte 1000 14 by...

Page 31: ...6 8 0 83 67 2 0 96 97 6 0 A9 128 0 BC 4 8 0 30 20 0 62 38 4 0 84 68 8 0 97 99 2 0 AA 129 6 0 BD 5 6 0 38 20 8 0 64 40 0 85 70 4 0 98 100 8 0 AB 131 2 0 BE 6 4 0 40 21 6 0 66 41 6 0 86 72 0 99 102 4 0...

Page 32: ...s The TURCK DTMs offer besides the normal parameters of the IO Link master modules special func tion for configuring the master module Fig 3 Special DTM functions Automatic IO Link detection The data...

Page 33: ...ation dis turbed or and no field voltage con nected Check if more than two ad joining electronics modules have been pulled This concerns modules located between this module and the gateway Check the f...

Page 34: ...eaction from the connected device to the sending of output data only valid for devices with an output data length 0 connected device sends an error process data invalid see also Start up problems freq...

Page 35: ...Diagnostic telegram Channel Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Device diagnostics Master diagnostics Channel 1 0 EVTD1 EVTD2 PDinvalid HWERR DSERR CFGERR res OC 1 GenERR OLD OV UV OF...

Page 36: ...the IO Link index Device Access Locks index 0 C of the connected device and unlock the device Master device diagnostics PDinvalid Process input data invalid The IO Link master or the IO Link device r...

Page 37: ...asure ment range has been chosen too high OFLW Upper limit value exceeded The process value exceeds the parameterized measurement range or the chosen measure ment range has been chosen too low UV Unde...

Page 38: ...eters to the new device The application can be re started without any further intervention using a configuration tool or similar In the BL20 BL67 IO Link masters the data storage mode can be set using...

Page 39: ...used in the installation is for example parameterized via a DTM DS_UPLOAD_FLAG 1 Changes in the device s parameter see The IO Link device is already connected to the master Para IOLD parameter data of...

Page 40: ...not been con nected to the master before Para IOLD parameter data of the IO Link device NOTE If a device change is necessary when data storage is activated the following has to be observed An IO Link...

Page 41: ...clear The data set in the master is deleted The synchronization of parameter sets is deactivated 5 4 6 Data storage in tool changing applications Para IOLD parameter data of the IO Link device Fig 6...

Page 42: ...IO Link master functionalities port 0 is done via index 65535 Subindex 64 Master Port Validation Configuration This object serves for writing a defined configuration of the IO Link ports into the mas...

Page 43: ...ENDOR_ID 2 byte Unsigned 16 DEVICE_ID 4 byte Unsigned 32 FUNCTION_ID 2 byte Unsigned 16 Value 0 SERIAL_NUMBER 16 byte String Entity_ Port IO Link subindex Read Write Length Description 0 65 r 255 byte...

Page 44: ...7 6 5 4 3 2 1 0 0 x PD_Valid input port 1 x PD_Valid output port 1 x PD_Valid input port 2 x PD_Valid output port 2 x PD_Valid input port 3 x PD_Valid output port 3 x PD_Valid input port 4 x PD_Valid...

Page 45: ...ing and configuration is overwritten The data storage buffer is deleted as well Byte 3 Byte 2 Byte 1 Byte 0 0xEF 0xBE 0xAD 0xDE Entity_ Port IO Link subindex Read Write Length Description 0 67 w 1 byt...

Page 46: ...IO Link Port Content Length Format Description Port 1 Vendor_ID 2 byte UINT16 Vendor ID of the connected device Device_ID 4 byte UINT32 Device ID of the connected device Function_ID 2 byte UINT16 res...

Page 47: ...nnected device does not support data storage Overflow of the data storage buffer Remedy Connect a device that supports data storage Clear the data storage buffer Deactivate the data storage TCYC The d...

Page 48: ...the connected device device ID vendor ID serial number does not do not match the data which are stored in the master for this device Remedy Change the device Adapt the master parameterization see par...

Page 49: ...ws the function block as it is defined in the specification NOTE Depending on the PLC manufacturer the IO Link CALL function block can differ from the specification for example in the representation o...

Page 50: ...all function block for PROFINET according to PNO or respectively PI specification The function block is supported by all Turck IO Link masters with mutipro tocol functionality The use of the function...

Page 51: ...NT Number of the IO Link index which has to be written or read pbyRecord_IOL_Data Pointer to byte Definition of a possible sub index iLen INT Length of the data to be read or written For the write acc...

Page 52: ...BOOL Error while executing the read or write access dwStatus DWORD Communication error status Status of the acyclic communication see STATUS communication error status Seite 51 dwIOL_Stauts DWORD IO...

Page 53: ...y bus failure 0 xx80A6xx MASTER_NO_DATA No data received 0 xx80A7xx MASTER_BUSY BL20 BL67 gateway busy 0 xx80A9xx MASTER_FEATURE_NOT_ SUPPORTED BL20 BL67 gateway does not support the function 0 xx80AA...

Page 54: ...expected 0 7001 Wrong IOL_CALL Decoding error 0 7002 Port blocked The accessed port is occupied by another task reserved 0 8000 Timeout Timeout IOL master or IOL device port busy 0 8001 Wrong index E...

Page 55: ...limit 0 8032 PAR_VALLTLIM Parameter value below the lower limit 0 8033 VAL_LENOVRRUN Length of data to be written does not match the length defined for this parameter 0 8034 VAL_LENUNDRUN 0 8035 FUNC...

Page 56: ...The IO Link function block IOL_CALL Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 54...

Page 57: ...6ES7 2EH13 0AB0 with PROFINET Turck multiprotocol gateway BL20 E GW EN VN03 00 IO Link Master BL20 E 4IOL with IO Link port 1 Turck temperature sensor TS 500 LUUPN8X H1141 IO Link port 2 not used IO...

Page 58: ...DP PROFINET IOL_CALL FB102 Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 56 7 2 Configuration 7 2 1 Configuration of the IO Link master Fig 9 Configuration of th...

Page 59: ...ice etc In process input data length and process output data length enter the length of process data of the connected device which have to be mapped to the field bus for this port see also Param eters...

Page 60: ...ed in case of a device exchange check of vendor ID device ID etc see also Parameters Seite 20 Device Turck temperature sensor TS 500 LUUPN8X H1141 2 byte process data Port 2 and port 3 configured as D...

Page 61: ...e of the function block in Step 7 Kapitel 6 contains a general description of the function block and its in and output variables The IO Link function block IOL_CALL Fig 12 Example of Siemens FB IO Lin...

Page 62: ...SPDU indices of IO Link devices can be found in the respective device docu mentation read access Reading out the product name product name index 0x12 of the Turck IO Link I O hub TBIL M1 16DIP at IO L...

Page 63: ...Activate the read access via a rising edge at REQ In this example the result of this request can be seen in the process data table VAT Sensor 1 Fig 14 Activating the read access Fig 15 Process data of...

Page 64: ...pdate time display rotated by 180 for the TURCK tem perature sensor TS 500 LUUPN8X H1141 at IO Link port 1 Write the input variables as follows description see above Fig 16 Extract from the documentat...

Page 65: ...e in the variable table VAT and is then written IOL_INDEX 0 55 Index for Measured value update time rotating disabling a display see above LEN_READ 1 1 byte is written Fig 17 Input variables for write...

Page 66: ...urck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 64 Activate the read access via a rising edge at REQ The sensor s display is now rotated for about 180 the update time is...

Page 67: ...N BL67 GW EN with IO Link master module BL67 4IOL at slot 1 of the BL67 station IO Link device at BL67 4IOL 8 1 2 Used Software Totally Integrated Automation Portal V15 Port 1 Turck temperature sensor...

Page 68: ...Link mode with different configuration as well as in DI mode see also parameter Operation mode Seite 25 Port in IO Link mode with identical device with compatible device etc In process input data leng...

Page 69: ...of a device exchange see also Parameters Seite 20 Device Turck temperature sensor TS 500 LUUPN8X H1141 2 byte process data Port 2 and port 3 configured as DI Port 4 IO Link without validation Every IO...

Page 70: ...a general description of the function block and its in and output variables Fig 22 Example call of Siemens FB IO_LINK_DEVICE NOTE The access to the Port0 functions of the TBEN Lx 8IOL with an IOL_INDE...

Page 71: ...O Link devices can be found in the respective device docu mentation NOTE The function block access to the device an the connected sensors is done via the input variable ID The value which has to be se...

Page 72: ...TBIL M1 16DIP at IO Link port 6 Write the function block s input variables as follows description see above Variable Value Meaning REQ TRUE Send a request ID 263 Hardware identifier of BL67 4IOL Fig 2...

Page 73: ...71 2018 10 Activate the read access via a rising edge at REQ Fig 25 Activating the read access...

Page 74: ...ck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 72 In this example the result of this request can be seen in the watch table row 19 and following in the IO Link Record Fig...

Page 75: ...the function block s input variables as follows description see above Fig 27 Extract from the documentation for Turck temperature sensors Variable Value Meaning ID 263 Hardware identifier of BL67 4IOL...

Page 76: ...IOL_DEVICE Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 74 Set the variable RD_WR Sensor 1 to TRUE for activating the write access Fig 28 Input variables for wr...

Page 77: ...75 2018 10 Set the value to be written 0x05 via the first word of IO Link Record in the watch table Fig 29 Control value for index 0 55...

Page 78: ...o KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 76 Activate the write access via a rising edge at REQ The sensor s display is now rotated for about 180 the update time is set to 60...

Page 79: ...re TURCK BL67 PG EN V3 firmware version V1 1 5 0 IO Link Master BL67 4IOL with IO Link port 1 Turck temperature sensor TS 500 LUUPN8X H1141 IO Link port 2 not used IO Link port 3 not used IO Link port...

Page 80: ...h different configuration as well as in DI mode see also parameter Operation mode Seite 25 Port in IO Link mode with identical device with compatible device etc In process input data length and proces...

Page 81: ...etc see Parameters Seite 20 Device Turck temperature sensor TS 500 LUUPN8X H1141 2 byte process data Port 1 and Port 2 configured as DI Port 3 IO Link without validation Every IO Link device will be...

Page 82: ...e turck com www turck com 80 9 3 Usage of the function block in CODESYS Kapitel 6 contains a general description of the function block and its in and output variables The IO Link function block IOL_CA...

Page 83: ...the function block as follows Variable Value dec Meaning xRD_WR 0 read access itfModule 1 Instance of the IO Link module Example BL67_4IOL iIndexCap 251 Function block instance usiEntityPort 4 The IO...

Page 84: ...4952 0 F 49 208 4952 264 more turck com www turck com 82 Activate the read access via a rising edge at REQ In this example the result of this request can be found in the data array Record_IOL_Data Fig...

Page 85: ...Turck tempera ture sensor TS 500 LUUPN8X H1141 at IO Link port 1 Write the input variables of the function block as follows Fig 37 Extract from the documentation for Turck temperature sensors Variabl...

Page 86: ...com www turck com 84 uiIOL_Index 85 Index for rotating the display according to IODD in CODESYS V3 in decimal format usiIOL_Subindex 0 0 in this example iLEN 1 1 byte is written For the write access...

Page 87: ...85 2018 10 The value to be written 05 s S 83 is entered in the data array Record_IOL_Data and is then written Fig 39 Input value for write access...

Page 88: ...Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 86 Activate the read access via a rising edge at REQ The sensor s display is now rotated for about 180 the update time...

Page 89: ...r Data storage mode has to be set to deactivated clear if an IO Link V1 0 devices is used Start up Deactivate the data storage mode for the respective IO Link port Download the parameters into the dev...

Page 90: ...ation V1 0 do not support data storage Deactivate the data storage To do so set parameter Data storage mode Seite 21 to deactivated clear The data storage buffer con tains data of another device Clear...

Page 91: ...30 subsidiaries and over 60 representations worldwide www turck com D301333 2018 10 D301333...

Reviews: