Home
User manual - IO-Link Master for BL20 and BL67
Contents
1. CALL FB 102 0850 REQ State sensor 1 REQ DB249 DBX6 2 ID 2 State sensor 1 ID DB249 DBDB8 INDEX CAP State sensor 1 CAP DB249 DBW12 RD WR TRUE ENTITY PORT State sensor 1 PORT DB249 DBW14 FI INDEX L W 16 FE4A IOL INDEX State sensor 1 IOL INDEX DB249 DBW16 RECORD IOL DATA A1 Container 1 DONE VALID State sensor 1 DONE VALID DB249 DBX6 3 BUSY State sensor 1 BUSY DB249 DBX6 4 ERROR State sensor 1 ERROR DB249 DBX6 5 STATUS State sensor 1 STATUS DB249 DBD22 IOL STATUS State sensor 1 IOL STATUS 08249 08026 State sensor 1 RD LEN DB249 DBW32 State sensor 1 IOL SUBINDEX DB249 DBW18 DB249 DBW20 P DB1 DBX0 0 State sensor 1 LEN Expected Data Type OUT DWORD offline lt 5 2 Nw1 Ln18 12 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in Step 7 6 3 1 Example accesses with IOL CALL In this example the variable table HMI serves to visualize the procedure of the read and write access via IOL_CALL The devices process data are shown the variable tables Sensor1 or Sensor2 The assignment of the SPDU indices of IO Link devices can be found in the respective device documen tation Read access Reading out the product name product name index 0x12 of the TURCK IO Link I O hub TBIL M1 16DIP at IO Link port 4 1 Please write the function block s input variables a
2. 5 4 2 1 Special DTM 5 10 4 3 Diagnostic and status messages uuussssssonssnnnnnnnnnnnnnsnsnsnnnnnnnnnnsnnsnnnnsnnnssnnnsnnnnnnnnnsssssnnnnnnnnnnnnsssnssssene 11 4 3 1 IE StAtUs rct 11 4 3 2 50 13 Diagnostic 13 4 4 The principle of the data storage eee esee esses eee se eee se esses sese ss osse osse ssssose 16 4 4 1 4 4 2 Parameter data storage mode activated 4 4 3 Parameter data storage mode read in 4 44 Parameter data storage mode overwrite 4 4 5 Parameter data storage mode deactivated 19 4 5 Functions for the acyclic communication via IO Link CALL eee eene ee 20 4 5 1 Port functions for port 0 IO Link master 20 Subindex 64 Master Port Validation 20 Subindex 65 IO Link Events see Subindex 66 Set Default Parameterization Subindex 67 Teach Mode Subindex 68 Master Port Scan Configuration ee eese testet tton tta tena ttis tts at ttes ttt 23 Subindex 69 Exten
3. 1 4 Notes concerning planning installation of this product retener 1 4 IO Link IO Link the fieldbus independent communication interface General technical Data Transmission RE Fieldbus Ethernet and ED DEM te een Technical features Ep 3 2 Mod le OVENI W nnne E 3 2 Compatible gateways 3 3 MCI Call EVERTI 3 5 Base modules wiring diagrams 20s0000000000000r0n000n00nn00nennennennnsnnsnnnsnnnnnsnnnsnnsnnnsnnsnnnsnnsnnsnnnsnnnsnnsnnsnnnsnnsnnnne 3 7 General RE 3 7 bli ER TEEN 3 7 20 erh 3 7 Function description Process LIT Process input HUS E ERE ERR Fee Eae ee Process output data Process data mapping jnnn 4 5 Special DIM FUNCOMS sro ttees ie etti eec rena petes 4
4. eee e esee eee ee eee ene este ta stets e eaa aee e ease seas ee eo eae te aa etta e eS 8 4 Index 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A 1 About this manual 1 1 Documentation concept e eee ecce eee ee eee eee eee senate ee eee esos Popes eee eee PP PPP eee esses PO eee ee esses e esee e Sees sese eee 2 1 2 Explanation of symbols used eere eee eee e een sens ense eese ee eaae eee e eee eee ee eee eese esee esee eee 3 1 2 1 IEEE 1 2 2 Further notes 1 3 General n pe 4 1 3 1 PreSCii Oc ee 4 1 3 2 Notes concerning planning installation of this product 4 0301333 1114 BL20 E 4IOL BL67 4IOL 1 1 About this manual 1 1 Documentation concept This manual contains all information concerning the TURCK IO Link master module for the product series BL20 BL67 BL20 E 4IOL or respectively BL67 41OL The following chapters contain A short description of the communication interface IO Link The general technical data and module properties A description of the IO Link master functionality A general description of the function block FB Call and its in and output variables A description of the usage the IOL CALL in PROFIBUS PROFINET A descripti
5. 9 USER 22 9 MANUAL IO LINK MASTER Sense it Connect it Bus it Solve it All brand and product names are trademarks or registered trade marks of the owner concerned Edition 11 2014 Hans Turck GmbH Muelheim an der Ruhr All rights reserved including those of the translation No part of this manual may be reproduced in any form printed photocopy microfilm or any other process or processed duplicated or distributed by means of electronic systems without written permission of Hans Turck GmbH amp Co KG Muelheim an der Ruhr Subject to alterations without notice PRELIMINARY DOCUMENTATION Industri A Table of Contents 1 1 1 1 2 1 2 1 1 2 2 1 3 1 3 1 1 3 2 2 1 2 1 1 2 1 2 2 1 3 2 1 4 2 1 5 3 1 3 1 1 3 1 2 3 2 3 3 3 3 1 3 3 2 3 3 3 4 1 4 1 1 4 1 2 4 1 3 4 2 4 2 1 4 3 4 3 1 4 3 2 4 4 4 4 1 4 4 2 4 4 3 4 4 4 4 4 5 0301333 1114 BL20 E 4IOL BL67 4IOL About this manual rat ur incipe nedogu 1 2 Explanation of symbols used 20 2 000s002000r00r00n000n0nn0nnennnennennnsnnennnsnnsnnnennunnsnnnsnnsnnnsnssnnnsnnsnnnsnnennnsnnsnnnennennnnne 1 3 MEI 1 3 F rther notes ee kunden nee 1 3 5 E E E E E E E E E E A EE E 1 4 Prescribediuse ERE T
6. ow on mu nw 0001 Call xReq xReq Call usiSlot 1 Call iIndexCap 251 Call xRD WR FALSE Call usiEntityPort 4 Call uiIOL_Index uilndex Call usiIOL_Subindex usiSubIndex Call pbyRecord_IOI_Data ADR RE D Call ilen ilen TRUES Call usiSlot 16 01 Call ilndexCap 6 00FB Call xRD WR 5 Call usiEntityPort 16404 Call uilOL Index 1640012 Call usilOL Subindex 16400 Call pbyRecord IOL Data lt 00becfd0 gt Call iLen 1640020 El e Call lo lo m Call xDoneValid Call xBusy Call xError Call dwStatus Call dwIOL Status Call iRD Len Call xDoneValid Call xBusy 198 Call xError is Call dwStatus 16 00000000 Call dwIOL Status 16 00000000 Call iRD Len 16 000D ProcessData_In 16 000000AD ProcessData_In2 16 00F3 4 ONLINE localhost ber Tep lp_ SIM RUNNING BP FORCE DV c 4 LB ProcessData_In IB2 ProcessData_In2 IB3 D 0301333 1114 BL20 E 4IOL BL67 4IOL 7 7 IOL CALL in CODESYS 2 3 for programmable gateways Write access Changing the parameter Measured value update time rotating disabling a display index 55 to the value 0x05 600 ms measured value update time display rotated by 180 for the TURCK temperature sensor TS 500 LUUPN8X H1 141 at IO Link port 1 Figure 7 7 E
7. A defaultsetting Process output data length Defines the length of the process output data which are mapped to the fieldbus for this port 0000 Obyte 0001 1 byte 0010 2bytea 0011 4 byte 0100 6byte 0101 8 byte 0110 10byte 0111 12 byte 1000 reserved 1110 1111 14 byte Values for the parameter cycle time ms Table 4 4 Time Value Time Value Time Value Time Value Time Value Time Value 00 autoa 152 0x56 304 0 7 592 0 91 896 oxA4 120 OxB7 ms 08 0x08 16 58 312 7 60 8 0x92 912 0 5 1216 OxB8 16 168 0 5 32 0 80 624 0x93 928 oxA6 1322 OxB9 24 ox 8 176 OxsC 336 Ox81 64 0 94 944 OxA7 1248 OxBA 32 0x20 184 5 35 2 0 82 65 6 0x95 96 OxA8 126 4 OxBB 4 0x28 19 2 ox60 368 0x83 67 2 0x96 976 0 9 128 OxBC 48 0 30 20 0x62 38 4 Ox84 68 8 0x97 992 0xAA 129 6 0xBD 56 0x38 208 0 64 40 oxss 704 0x98 100 8 OxAB 131 2 OxBE 64 0 40 216 0x66 41 6 0 86 72 0x99 102 4 OxAC 132 8 OxBF 72 0x42 22 4 68 43 2 0x87 73 6 Ox9A 104 OxAD l 8 0x44 23 2 0x6A 448 oxss 752 Ox9B 105 6 OxAE 88 0x46 240 Ox6C 464 0x89 76 8 Ox9C 107 2 OxAF 9 6 0 48 248 Ox6E 48 oxsA 78 4 Ox9D 108 8 OxBO 10 4 Ox4A 25 6 0x70 496 Ox8B 80 9 1104 0 1 112 oxac 264 0x7
8. 1640020 ProcessData In 16400000045 ProcessData In2 16 00F3 Call xReq Call usiSlot cq HD Call usiSlot 163401 Call ilndexCap 251 Call ilndexCap 16 00FB Call xRD_WR FALSE Call xRD VR WEB Call usiEntityPor H Call usiEntityPort 16 04 Call uiIOI_Index Call uilOL Index 16 0012 Call usilOL Subindex usiSubIndex Call usilOL Subindex 16400 Call pbyRecord IOL Data ADR READ Call pbyRecord IOL Data lt 00becfd0 gt Call iLen iLen Call ilen 1640020 iCall Call xDoneValid Call xDoneValid Call xBusy Call xBusy Call xError Call xError SH Call dwStatus Call dwStatus 16400000000 Call dwIOL Status Call dwIOL Status 16400000000 iCall iRD Len Call iRD Len 16 000D ProcessData In 16400000045 ProcessData In2 16 00F3 ProcessData In IB2 IB3 ProcessData_In2 Lin 1 Col 1 localhost ber Tcp Ip RUNNING BP FORCE Dv READ c uj 3 Inthis example the result of this request can be found in the data array READ Figure 7 6 CoDesys B120 PG EN dIOLpro PLC PRG PRG ST Process data of Eile Edit Project Insert Extras Online Window Help the sensor aau 65 Face 16 0000 E FB 16349 16 4C 1624D TBIL M1 16DIP 16 4D 16 31 1 16 16 2D 16 31 16 36 16 44 16 49 16 50 16 00 16 00 16 00 16 00 T own won
9. 6 2 2 Configuration of the IO Link ports The 4 ports of the IO Link master can be operated in IO Link mode with different configuration as well as in DI mode see also parameter Betriebsart page 4 5 Figure 6 2 CoDeSys BL20 PG EN 4IOL pro 2 Configuration of File Edit Project Insert Extras Online Window Help the IO Link ports gau DOT A 2 Resources pic Configuration fo S 53 Bibliothek BLxsloSys B Confi i Bibliothek C Users s Base parameters Input Output User parameters Bibliothek FbSlave lib BL20 E 4IOL Global Variables thernet IP Vords SLOT Max length of input data 1024 Byte Length of input data 18 Byte Gi Tools Max length of output data 1024 Byte Length of output data 16 Byte Alarm confi length of in output data 2048 Byte Length of in output data 32 Byte figuration Library Manager Max number of modules 74 Number of modules 1 Ed Loo E Input Modules Selected Modules Ej PLC Browser 1 BL20 BR 24VDC RED BL20 E 4IDL FEE PLC Configuration BL20 2DI 24VDC P BL20 2DI 24VDC N Bi Sampling Trace BL20 201 120 230VAC Target Settings Task configuration Module Properties lt lt Delete Q Watch and Recipe M 1 95 Workspace Name BL20 E 410L Config C3 0x0F O OF BB Ox9B 0 40 Length input Byte 16 Cancel Properties Length output Byte 16 Symbolic names operation mode K1 IO Link with identical data storage mode K1 deactivated clear cycle time
10. usiSubIndex uilndex 16 1 POUs 2 DemoFB PLC PRG PRG ProcessData ProcessData xReq usiSlot ilIndexCap xReq WR FALSE usiEntityPort 4 uilOL Index uilndex 16 00 0012 In 16 00000095 In2 16 00F3 1 251 iIndexCap xRD usiEntityPort uilOL Index 1640012 1580 16 00FB FALSH 16404 usilOL Subindex usiSubIndes Call usilOL Subindex 16 00 pbyRecord IOL Call pbyRecord IOL Data 00 9 iLen ilen Call ilen 1640020 zDoneValid Call xDoneValid xBusy Call xBusy A xError Call xError dwStatus Call dwStatus 163400000000 dwIOL Status Call dwIOL Status 16400000000 iRD Len Call iRD Len 1640000 ProcessData In IB2 ProcessData In 16 00000095 ProcessData_In2 IB3 ProcessData_In2 16 00F3 D Lin 5 Col 20 ONLINE localhost ber _ SIM RUNNING BP FORCE 0 READ 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in CODESYS 2 3 2 Afterthis the read access has to be activated via a rising edge at REQ Figure 7 5 CoDeSys BL20 PG EN dlOLpro IPLC PRG PRG ST ela Activating the File Edit Project Insert Extras Online Window Help 9 read access BIEL Bote sa d uilndex 1640012 iLen
11. 1 2 3 or 4 BL20 is operated in IO Link mode The master checks if the device type vendor ID 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 data exchange The device remains in the safe state Pre Operate Parameters and diagnostic information can be read and respectively written 4 5 Function description Table 4 3 Name Parameters Value Meaning A defaultsetting Mode V 0011 DI with parameter access Pin 4 BL67 of the respective connector or the respective terminal 1 2 3 or 4 BL20 is generally operated as simple digital input However an acyclic parameter access from the PLC or the DTM is possible The IO Link master starts the port in IO link mode parameterizes the device and sets the port back into DI mode The port remains in DI mode until a new IO Link request is sent from the higher level control Data storage is not supported Connected devices have to support the SIO mode DI mode 0100 DI Pin 4 BL67 of the respective connector or the respective terminal 1 2 3 or 4 BL20 is operated as simple digital input Data storage is not supported NOTE Parameter Mode DI with parameter access In case of a parameter access the IO Link communication at the port is started Switching signals are interrupted Data stor
12. A1 Container_A1 2 B416400 2 i A1 Container A1 3 3 i A1 Container A1 4 HEX E 4 1 _ 1 5 081 088 5 1 1 6 DB1 DBB 6 1 117 L3 081 088 7 A1 Container_A1 8 HEX 9 1081 088 8 A1 Container_A1 9 HEX LE 081 088 9 A1 Container_A1 10 081 088 10 7A1 Container A1 11 HEX 11 A1 Container 1 HEX 12 A1 Container_A1 13 HEX 13 A1 Container A1 14 HEX 14 A1 Container A1 15 HEX 15 A1 Container A1 16 HEX 16 A1 Container A1 17 HEX 17 A1 Container A1 18 HEX 18 AT Container A1 19 HEX DBB 19 Container A1 20 ZEICHEN BLoor 4IOL SIMATIC 300 1 57 3 a 7 Figure 6 11 an j Activating the K Table Edit Insert PLC Variable View Options Window Help snster Hilfe en Diele 5 leel x fes amp Sofa Sr de process data raw HEX B 16 FF 6 1 State sensor 1 RD WR BOOL 1 0 12 write parameter a 6 2 State sensor 1 REQ BOOL 41 0 71 start call 6 3 State sensor 1 DONE VALID BOOL 6 4 State sensor 1 BUSY BOOL 6 5 State sensor 1 ERROR T BOOL IOL Call paramerter for sensor 1 E B249 DBD 8 State sensor 17 0 DEZ L 30 12 State sensor 1 CAP DEZ 251 14 i State sensor 1 PORT DEZ 1 16 St
13. Nominal current from field supply lt 50 mA Inverse polarity protection yes Power loss lt 2 6W Galvanic isolation 500 V DC Bridging power failure Time 10 ms Repeat rate 1 s Sensor supply from from Vens 24V DC 20 4 VDC to 30 VDC 24 V DC 20 4 VDC to 30 VDC Short circuit protection yes 4A via the gateway Output current I 0 5 1 0 6 A according to IEC 6 11 31 2 Operating temperature Oto 55 40 to 70 Restriction Usage of the IO Link port as digital input 40 to 55 C Connection technology Push in tension clamp termi 12 nals Inputs 4 Input type digital pnp inputs type 1 according to EN 61 131 2 2007 Signal voltage low level 5V High level signal voltage gt 11V Low level signal current 1 5 mA XSG 5 mA IO Link port as DI High level signal current 2 1 to 3 7 mA XSG 6 to 12 mA IO Link port as DI Electrical isolation electronic to field 0301333 1114 BL20 E 4IOL BL67 4IOL 3 5 Technical features Outputs 4 Output type pnp Output current per channel 0 5 A Output delay 1ms Load type ohmic inductive lamp load Resistive load 480 Load impedance inductive lt 1 2H Lamp load lt 3W Switching frequency resistive lt 200 Hz Switching frequency inductive lt 2Hz Switching frequency lamp load lt 20 Hz Electrical isolation IO Link electronic to field Number of
14. error of acyclic communi s not always applicable Sion Status Codes Table 5 3 StatusCode Name Meaning Status Codes OxFF000000 TIMEOUT Internal error in the communication with the module OxOOFFFFOO INVALID HANDLE OxOOFFFEOO HANDLE OUT OF BUFFERS OxOOFFFDOO HANDLE DESTINA TION UNAVAILABLE OxOOFFFCOO HANDLE UNKNOWN OxOOFFFBOO HANDLE METHOD INVALID Oxxx80A0xx MASTER_READ_ERROR Error while reading Oxxx80A1xx MASTER WRITE ERROR Error while writing Oxxx80A2xx MASTER MODULE Failure ofthe BL20 BL67 gateway or respectively bus FAILURE failure Oxxx80A6xx MASTER NO DATA No data received Oxxx80A7xx MASTER_BUSY BL20 BL67 gateway busy Oxxx80A9xx MASTER_FEATURE_NOT_ BL20 BL67 gateway does not support the function SUPPORTED Oxxx80AAxx MASTER RESOURCE BL20 BL67 gateway not available UNAVAILABLE Oxxx80BOxx ACCESS INVALID INDEX Index invalid wrong INDEX CAP used Oxxx80B1xx ACCESS_WRITE_ Length of data to be written can not be handled from LENGTH_ERROR the module possible wrong module accessed Oxxx80B2xx ACCESS INVALID Wrong slot accessed DESTINATION Oxxx80B03xx ACCESS TYPE CONFLICT IOL CALL invalid Oxxx80B5xx ACCESS STATE CONFLICT Error in IOL_CALL sequence Oxxx80B6xx ACCESS DENIED IOL Link master module refuses the access 0301333 1114 BL20 E 4IOL BL67 4IOL 5 5 The IO Link function block IOL CALL RESOURCE BUSY Meaning The IO Link master module is busy or is waiting for an RESOURCE _ UNAVAILABLE answer of the con
15. 10 Diagnostic and status messages eese eese eese eere eene estne seen senes etos sesso stesse ense ense esee senes espe eene eene se 4 11 M 4 11 Diagnosticdata 4 13 The principle of the data storage mechanism Parameter data storage mode activated Parameter data storage mode read in Parameter data storage mode overwrite Parameter data storage mode deactivated 4 19 4 5 4 5 1 5 1 5 2 5 2 1 5 2 2 5 2 3 5 2 4 6 1 6 1 1 6 1 2 6 2 6 2 1 6 2 2 6 3 6 3 1 7 1 7 1 1 7 1 2 7 2 7 2 1 7 2 2 7 3 7 3 1 8 1 8 2 8 3 Functions for the acyclic communication via IO Link CALL sscoussnsssonssonnsnnnssnnsnonenonnsnnnsnnnennnssnnnsnanennnnne 4 20 Port functions for port 0 IO Link master 4 20 The IO Link function block IOL CALL Gen Cal T 5 2 IOL CALL in accordance with IO Link specification e eee eese ee eee e eere ee eroe eee a ae enne ee ense teas taa 5 2 Input Variables see tbe tenti TE ceto eed tte te dte rats Output variables STATUS communication error status STATUS EE IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET Example project Used hardware e Det cie c
16. 16400000049 ProcessData In2 16 00F3 a Lin 6 Col 20 ONLINE localhost ber _ SIM RUNNING BP FORCE DV READ 0301333 1114 BL20 E 4IOL BL67 4IOL 7 9 IOL CALL in CODESYS 2 3 for programmable gateways 3 Afterthis the write access has to be activated via a rising edge at REO EL Figure 7 9 CoDeSys BL20 PG EN 4IOL pro PLC_PRG PRG ST balba Activating the File Edit Project Insert Extras Online Window Help e write access 21518 z 0001 0002 0003 0004 0005 0006 uilndex 16 0055 0008 ilen 16 0001 0009 ProcessData In 16 000000B5 0010 ProcessData 16 00F3 0012 xReq xReq usiSlot 1 Call usiSlot 16801 ilndexCap 251 Call iIndexCap 16 00FB xRD WR TRU Call xRD VR GB usiEntityPor Call usiEntityPort 16401 uilOL Index Call uilOL Index 1640055 usilOL Subindex usiSubIndex Call usilOL Subindex 16 00 pbyRecord IOL Data ADR WRITE Call pbyRecord IOL Data 00 0 iLen ilen Call iLen 1640001 iCall xDoneValid Call xDoneValid WA Call xBusy HN xError Call xError 5 dwStatus Call dwStatus 16400000000 dwIOL Status Call dwIOL Status 16400000000 iRD Len Call iRD Len 1630000 ProcessData_In XIB2 ProcessData In 16 000000B5 ProcessData In2 ProcessData In2 16 0
17. 2 and port 3 configured as DI Port 4 10 Link without validation Every IO Link device will be accepted as exchange device in case of a device exchange Parameters page 4 5 Device TURCK O hub TBIL M1 16DIP 2 byte process data Figure 7 2 CoDeSys BL20 PG EN 4IOLpro Steuerungskonfiguration bala Configuration of Datei Bearbeiten Projekt Einf gen Extras Online Fenster Hilfe the IO Link ports 21518 653 A Example project B Confi Ressourcen 09 28 Bibliothek BLxxloSys lib 11 7 11 11 2 CJ Bibliothek C Users scheuech Desl thernet lP Word Max Lange Input 1024 Byte L nge Input Bibliothek FbSlave lib 6 6 12 08 00 3 Max L nge Output 1024 Byte L nge Output 3 Globale Variablen Max L nge In Output 2048 Byte L nge In Output i7 Globale_Variablen Max Modulanzahl 74 Anzahl Module Variablen Konfiguration C Tools Basisparameter Ein Ausg nge Anwenderparameter E Eingabemodule Ausgewahlte Module r BL20 BR 24VDC RED BL20 E 410L Alarmkonfiguration BL20 2DI 24VDC P 92 Arbeitsbereich BL20 2DI 24VDC N fii Biblictheksverwalter BL20 2DI 120 230vAC Ej Logbuch BL20 4DI 24VDC P Ej PLC Browser BL20 4DI 24VDC N lt lt Entfernen 5 skonfiguration Moduleigenschaften A Taskkonfiguration pe Traceaufzeichnung BL20 E 4IOL i OK Eigenschaften FR Watch und Rezepturveralter OxC3 0KOF OxOF OsBB 0x9B 0440 gt Con
18. 9 Entity IO Link Read Length Description Set Default Port subindex Write Parameterization 0 66 w 4 byte Writing this object sets the IO Link master back to factory settings Any parameter setting and configuration is overwritten The data storage buffer is deleted as well Structure ofthe reset command Byte 3 Byte 2 Byte 1 Byte 0 OxEF OxBE OxAD OxDE 0301333 1114 BL20 E 4IOL BL67 41OL 4 21 Function description Table 4 10 Subindex 67 Teach Mode Entity IO Link Read Length Description Teach Mode Port subindex Write 0 67 w 1 byte The master reads all data device Id ven dor ID serial number etc from the con nected device and saves them All all previ ously saved device data are overwritten Structure of the Teach command Byte 0 0x00 Teaching all 4 ports 0x01 Teaching port 1 0x02 Teaching port 2 0x03 Teaching port 3 0x04 Teaching port 4 0x05 OxFF reserved 4 22 0301333 1114 BL20 E 4IOL BL67 41OL Functions for the acyclic communication via IO Link CALL Subindex 68 Master Port Scan Configuration Industri A Table 4 11 Entity IO Link Read Length Description MasterPortScan Port subindex Write Configuration 0 68 r max 120 byte This object serves for reading the configuration of the IO Link devices con nected to the IO Link master 28 byte are returned per IO Link port Table 5 IO Link Content Length Format Descripti
19. BASICS Standard I O connection technologies point to point connection unshielded 20 m wire length Cyclic process data transfer in typ 2 3 ms Parallel service data exchange without any impact on the process data Communication via 24 V pulse modulation standard UART protocol Communication between master and device in 3 different transmission speeds 4 800 Baud COM 1 38 400 Baud COM 2 230 400 Baud COM 3 2 2 0301333 1114 BL20 E 4IOL BL67 4IOL IO Link the fieldbus independent communication interface Industri A 2 1 2 Data transmission TECHNICAL BASICS Basically 4 different types of data exist which are transmitted either cyclically or acyclically Process data cyclic data exchange Value status cyclic data exchange Device data gt acyclic data exchange Events gt acyclic data exchange Process data The devices process data are transmitted cyclically whereas the process data size is defined through the device The device process data can contain from 0 to 32 Byte for both in and output Value status The value status displays if process data are valid or not It is transmitted cyclically with the process data Device data Device data are parameters identification data and diagnostic information The transmis sion is done acyclically and only on demand of the IO Link master Events Events are error messages or warnings maintenance data Error messa
20. FbSlave li C3 Global Variables Tools Alarm configuration Mm Library tu Log Ei PLC Browser i PLC Configuration A Sampling Trace em Target Settings Task configuration Watch and Recipe 32 Workspace om seele ESS lt description gt Funktion Block for acylclic communication to an IO Link Master lt br gt lt br gt NOTE use ID 0 in case of an PG lt br gt lt description gt FUNCTION_BLOCK IOL_CALL V R INPUT xReq BOOL Request function 0 gt 1 start usiSlot USINT Slot 1 to 72 x ilndexCap INT Identifier of an IOL D or IOL k xRD VR BOOL FALSE Read TRUE write usiEntityPort USINT 0 IO Link Master 1 4 Port uilOL_Index OUINT IO Link index 0 32767 IOL D usilOL Subindex 7 IO Link subindex 0 255 x pbyRecord IOL Data POINTER TO BYTE rray of IOL data object bytes iLen INT length of pabyRecord IOL Data END V R V R OUTPUT xDoneValid BOOL Flag indicating the successful xBusy BOOL Flag indicating the function is xError t BOOL Flag indicating the abortion of dwStatus DWORD Completion or bus error code E dwIOL Status DWORD Completion or IOL M Table 37 iRD Len INT ctual data length of an IOL de END V R IOL CALL xReq BOOL xDoneValid BOOLL usiSlot USINT xBusy BOOLL ilndexCap INT xError BOOLL xRD VR BOOL dwStat
21. IO Link Master IO Link Device Data storage mode overwrite Para IOLD parameter data of the IO Link device 4 4 5 Parameter data storage mode deactivated clear 8 The data set in the master is deleted The synchronization of parameter sets is deactivated IO Link Master IO Link Device Data storage mode deactivated clear 0301333 1114 BL20 E 4lOL BL67 41OL 4 19 Function description 4 5 Functions for the acyclic communication via IO Link CALL The acyclic access to the data of IO Link devices is realized via IO Link CALLs Therefore it is necessary to distinguish between data of an IO Link master or of an IO Link device The addressing of the IO Link CALL is realized via the so called Entity Port It defines which device is addressed via the CALL Entity Port 0 IO Link master module IOLM BL20 BL67 4IOL Entitiy Port 1 IO Link device at 1st channel Entitiy Port 2 2 IO Link device at 2nd channel Entitiy Port 3 2 IO Link device at 3rd channel Entitiy Port 4 IO Link device at 4th channel 4 5 1 Port functions for port 0 IO Link master Subindex 64 Master Port Validation Configuration Table 4 7 Entity IO Link Read Length Description Master Port Port subindex Write Validation Configuration 0 64 w max 72 byte This object serves for writing a defined configuration of the IO Link ports into the master Subindex 65 IO Link Events Table 4 8 Entity IO Lin
22. O 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 IO HUB TBIL M1 16DIP 7 1 2 Used software CODESYS V2 3 9 35 Target Support Package for BL20 PG EN IP version 2 1 3 0 7 2 0301333 1114 BL20 E 4IOL BL67 4IOL Configuration in CODESYS 2 3 7 2 Configuration in CODESYS 2 3 7 2 1 Configuration of the IO Link master i lt Y Figure 7 1 CoDeSys BL20 PG EN 4IOLpro jme Sm Con figuration f Eile Edit Project Insert Extras Online Window Help the IO Linkmaster 1919 2998 Base parameters Input Output User parameters Global Variables L Ethernet IP Vords SLOT Max length of input data 1024 Byte Lenath of input data 16 Byte Max length of output data 1024 Byte Length of output data 16 Byte 8 Alarm configuration Max length of in output data 2048 Byte Length of in output data 32 Byte Library Manager Max number of modules 74 Number of modules 1 E Log Input Modules Selected Modules Ej PLC Browser BL20 BR 24VDC RED BL20 E 410L PLC Configuration BL20 2DI 24VDC P By Sam ling Trace BL20 2DI 24VDC N mn BL20 2DI 120 230VAC Target Settings BL20 4DI 24VDL P 3 Task configuration BL20 4DI 24VDC N Delete f Q Watch and Recipe M BL20 4DI NAMUR 92 Workspac
23. State sensor 1 RD WR BOOL 1 12 write parameter a DB249 DBX 62 State sensor 1 REQ BOOL I 0 71 start call F DB249 DBX 6 3 State sensor 1 DONE VALID BOOL DB249 DBX 6 4 State sensor 1 BOOL DB249 DBX 6 5 State sensor 1 BOOL I lOL Call paramerter for sensor 1 DB249 DBD 8 State sensor 1 DEZ L 30 DB249 DBW 12 State sensor 1 CAP DEZ 251 DB249 DBW 14 State sensor 1 PORT DEZ 1 DB249 DBW 16 State sensor 17101 HEX DB249 DBW 18 State sensor 1 IOL_SUBINDEX DEZ DB249 DBW 20 State sensor 1 LEN DEZ 1 1 DB249 DBW 30 State sensor 1 LEN_READ_MAX DEZ 0 DB249DBD 22 State sensor 1 STATUS HEX DW 16 00000000 08249080 26 State sensor 1 STATUS HEX Dw 16 00000000 DB249 DBW 32 State sensor 1 RD_LEN DEZ 0 1 PESE State sensor T RD LEN DEZ 6 10 Bboc 4IOLNSIMATIC 300 1 S7 Programm 3 CE lt 52 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in Step 7 2 Thevalue to be written 0x05 is entered as control value in the variable table VAT and is then writ ten Figure 6 10 r 3 RE Control value for MJ Table Edit Insert PLC Variable View Options Window Help nster Hilfe me a osal a salele x e 2 Safes e eset ae sm Status vae Woot vate 2 0 A1 Container A1 1 HEX 8 16 05 _B 16 05 1
24. TECHNICAL BASICS FDT enables a fieldbus and system independent engineering environment to be set up Generic DTMs allow any type of sensor and actuator to be integrated easily in the system 0301333 1114 BL20 E 4IOL BL67 4IOL 2 5 IO Link 2 6 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A 3 Technical features 3 1 1 1 M U 3 1 1 Module overi m 3 1 2 Compatible gateways sentientes mtem siete d nfi hti nd aT WR i d MD ds BE20 gateways 20 CODESYS programmable gateways Gateways nenn BL67 CODESYS programmable gateways 3 2 II SnIcni cme 5 3 3 3 3 1 3 3 2 3 3 3 0301333 1114 BL20 E 4IOL BL67 4IOL 3 1 Technical features 3 1 General The TURCK IO Link master modules BL20 E 4IOL or respectively BL67 4IOL are technology modules of the modular I O systems BL20 and BL67 They can be connected to several fieldbus systems and Ether net protocols via the respective gateways The IO Link module provides 4 IO Link master channels and 4 universal digital channels PNP The four IO Link channels can be parameterized independently and can optionally be operated in IO Link mode IOL or in standard mode DI mode The four
25. Table 4 3 Value Meaning Device Status 0 Device works correctly 1 Maintenance Event 2 Out of Specification Event 3 Functional check 4 Error 5 255 reserved 0301333 1114 BL20 E 4IOL BL67 4IOL 4 25 Function description 4 26 0301333 1114 BL20 E 4IOL BL67 41OL Industri A 5 ThelO Link function block IOL_CALL 5 1 GOO e 5 2 5 2 IOL CALL in accordance with IO Link specification e ecce ee eee ee ee eere eee eene eee esee esso se ete eeu 5 2 5 2 1 HAUT Elf 5 2 2 Output variables 5 2 3 STATUS communication error status 5 2 4 IOL STATUS 0301333 1114 BL20 E 4IOL BL67 4IOL 5 1 The IO Link function block IOL CALL 5 1 General The IO Link function block IOL_CALL is specified in the IO Link specification IO Link Integration Part 1 Technical Specification for PROFIBUS and PROFINET NOTE Depending on the PLC manufacturer the IO Link CALL function block can differ from the specification for example in the representation or the use of variables 5 2 CALL in accordance with IO Link specification The following figure shows the function block as it is defined in the specification Figure 5 1 IOL CALL in IOL CALL accordance with BOOL DONE VALID BOOL IO Link specifica BUSY BOOL tion DWORD INT INDEX_CAP BOOL RD_WR ERROR BOOL INT ENTITY POR
26. devices is done via terminals 1 to 4 The universal XSG channel in or output is provided at terminals 5 to 8 0301333 1114 BL20 E 4IOL BL67 4IOL 3 7 Technical features Special notes for supplying the IO Link devices for BL20 igure 3 4 BL20 Gateway E 4lOL ower supply o UL the IO Link wit ee devices when maoa i HMO using BL20 E 4IOL U 3 e O IO Link Device 1 24 VDC 8 6 O 2 2 GND m H 4 IO Link intern 1 n 9 GNDsys Nen 1 optional bo So ek oS SSS I Insufficient fuse protection of U Damage to the electronics U hasto be protected by a fuse with max 8 A 10 A depending on type of gateway More information can be found in the respective gateway manuals ATTENTION I Wrong ground potential Damage to the electronics gt The IO Link devices must be supplied with the same potential as U of the gateway or the BR PF module if used 3 8 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A 4 Function description 4 1 Process image e 2 4 1 1 Process input data ERR ERE OL 2 4 1 2 Process output data 3 4 1 3 Process data eb R epe crees cese eee 4 4 2 jn
27. e RR ERE EEG 7 1 input variables ssssssssssssssssssssssseseessesnenennennnnnnnssensessenene 5 3 IOL STATUS anna 5 7 output variables eerte 5 4 ESI A e 6 1 5 5 5 IO Link nen 22 1 data transmission 2 3 FDT DTM 2 5 transmission media 2 4 M master FUNCTION description eet 4 1 LED status displays ettet 4 11 parameters esistenti tnsnsttttttttttttttttttttets 4 5 process data mapping 4 4 PFOCESS Image 4 2 process input data 4 2 4 3 master diagnostics 4 13 Module Application Instance 4 20 module overview eeeeeeeettttttnnnnnnnnnttttt 3 2 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A operation ri 1 4 operation trouble free 1 4 P port function Extended Port Diagnostics O Link Events Master Port Validation Configuration 4 20 4 23 Set Default Parameterization 4 21 Teach Mode 4 22 prescribed 1 4 process data mapping erret 4 4 process Image nennen 4 2 Process input data mapping s 4 2 process input data mapping ennt 4 2 process output data mapping es 4 3 S safety measures waceecessssss
28. g via DTM at the device etc 0301333 1114 BL20 E 4IOL BL67 41OL The principle of the data storage mechanism Industri A 4 4 2 Parameter data storage mode activated 8 The synchronization of the parameter sets is bidirectional The most actual data set master or device is valid This means The data set in the device is actual if DS UPLOAD FLAG 1 The data set the master is actual if DS UPLOAD FLAG 0 Parameterizing a device in the installation A device which is already used in the installation is for example parameterized via a DTM DS UPLOAD FLAG 1 changes in the device s parameter see IO Link Master IO Link Device The IO Link device is already connected to the master Para IOLD parameter data of the IO Link device Maintenance exchange device in delivery status A defective device is replaced by a device in delivery status DS UPLOAD FLAG 0 no changes in the device s parameter set 10 Link Master 10 Link Device The IO Link device has not been connected to the master before Para IOLD parameter data of the IO Link device 0301333 1114 BL20 E 4IOL BL67 41OL 4 17 Function description Maintenance exchange device with eventually modified parameter set A defective device is replaced by a device with a parameter set that was already changed before for example via DTM DS UPLOAD FLAG 1 changes in the device s parameter see IO Link
29. ports 4 IO Link specification IO Link port type V1 0 V1 1 according to IEC 61 131 9 Class A Frame type Supports all specified frame types Supported devices Maximum 14 byte input 14 byte output Transmission rate 4 8 kbps COM 1 38 4 kbps COM 2 230 4 kbps COM 3 Transmission cable Length max 20 m standard cables 3 or 4 wire depending on the application unshielded 3 6 0301333 1114 BL20 E 4IOL BL67 41OL Base modules wiring diagrams Industri A 3 3 Base modules wiring diagrams 3 3 1 General ATTENTION I Wrong supply of IO Link devices Damage to the electronics gt The IO Link devices must only be supplied with the voltage provided at the supply termi nals BL67 Vens pin 1 and 3 BL20 U terminal 9 and 10 GND 4 C Q IO Link FE 3 3 2 BL67 Table 3 6 Base module Wiring diagram Wiring diagram BL67 BL67 B 4M12 lt 623 u gt The connection of the at maximum 4 IO Link devices is done via pin 4 of the 4 M12 connectors The universal XSG channel in or output is provided at pin 2 3 3 3 BL20 Figure 3 3 Wiring diagram Wiring diagram BL20 1 Kanal 1 20 Kanal 2 3 Kanal 3 4 Kanal 4 5Q XSG Kanal 5 6 XSG Kanal 6 7 Kanal 7 8 XSG Kanal 8 9 cuo 10 uL The connection of the at maximum 4 IO Link
30. rotating disabling a display see Figure 7 7 Extract from the documentation for TURCK temperature sen sors LEN 1 1 byte is written 2 Thevalue to be written 0x05 is entered in the data array WRITE and is then written Figure 7 8 fe CoDeSys BL20 PG EN_4IOL pro PLC PRG PRG ST LET Input variables for File Edit Project Insert Extras Online Window Help a x write access aau goras ESENE x 16 0000 Call WRITE 2 RITE 3 WRITE 4 xReq iLen xDoneValid xBusy xError dwStatus iRD Len ProcessData In ProcessData_In2 IB3 16 00 16 00 16 00 WRITE 5 16 00 WRITE 6 16 00 RITE 16 00 WRITE 8 16 00 B Deno xReq usiSubIndex 16 00 uilndex 16 0055 lt 16400555 iLen 1640001 16 0001 gt ProcessData In 16 000000A9 Tn 16 NNTD xReq usiSlot 1 iIndexCap 251 xRD_WR TRUE usiEntityPort 1 uiIOL_Index uiIndex usiIOL_Subindex usiSubIndex pbyRecord_IOL_Data ADR WRITE iLen dwIOL Status AIB2 usiSlo ilndexCap xRD usiEntityPort 16401 uilOL Indez 1640055 Call usilOL Subindex 16400 Call pbyRecord IOL Data lt 00becfd0 gt Call iLen 1640001 16 00FB 5 Call Call Call Call Call Call xDoneValid xBusy xError dwStatus 16400000000 dwlIOL Status 16 00000000 iRD Len 16 0000 ProcessData In
31. the device 0x8036 FUNC UNAVAILTEMP Function temporarily not available in the device 0x8040 PARA SETNVALID Invalid parameter Parameters not consistent with other parameters in the device 0x8041 PARA SETINCONSIST Inconsistent parameters 0x8082 APP DEVNOTRDY Application not ready device is busy 0x8100 UNSPECIFIC Vendor specific see device documentation 0x8101 to VENDOR SPECIFIC Ox80FF 5 8 0301333 1114 BL20 E A4IOL BL67 4IOL Industri A 6 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 6 1 Example project 6 1 1 Used hardware 6 1 2 USEC 5 E 6 2 Configuration in HW Config 200002200020000000000000000000000000000000000000000000000n0000n00 0000000000000 sess sss se sss ss esae 6 3 62 1 Configuration of the IO Link master 6 3 6 2 2 Configuration of the IO Link 6 4 6 3 Usage of the function block in Step 7 sssssosonnnnnnssssnunnnnnnnunnnnnnsnsnnnnnnsnssnnnnnnsnnnnnnnnsnsunnnnnnnnnnnnnsssnen 6 6 6 3 1 Example accesses with IOL CALL 6 7 Read access Write access 0301333 1114 BL20 E 4IOL BL67 4IOL 6 1 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 6 1 Example project 6 1 1 Used hardware 8 Siemens 57 CPU 315 2 PN DP 6ES7 2EH13 0A
32. 0 E 4IOL BL67 4IOL 5 7 The IO Link function block IOL CALL Table 5 5 Error Code Name Meaning IOL Error Types acc to spec 0x1000 COM ERR Communication error Possible sources Possible cause the addressed port is parameterized as Dl and is not in IO Link mode 0x1100 SERVICE TIMEOUT Timeout in communication Device does not respond in time 0x5600 M ISDU CHECKSUM Master reports checksum error access to device not possible 0x5700 M ISDU ILLEGAL Device can not respond to master request 0x8000 APP DEV Application error in the device 0x8011 IDX NOTAVAIL Index not available 0x8012 SUBIDX NOTAVAIL Sub index not available 0x8020 SERV NOTAVAIL Service temporarily not available 0x8021 SERV NOTAVAIL LOCCTRL Service temporarily not available device is busy g teaching or parameterization of the device at the device active 0x8022 SERV NOTAVAIL DEVCTRL Service temporarily not available device is busy e g teaching or parameterization of the device via DTM PLC etc active 0x8023 IDX NOT WRITEABLE Access denied index not writable 0x8030 PAR VALOUTOFRNG Parameter value out of range 0x8031 VALGTLIM Parameter value above the upper limit 0x8032 PAR VALLTLIM Parameter value below the lower limit 0x8033 VAL LENOVRRUN Length of data to be written does not match the length defined for this parameter 0x8034 VAL LENUNDRUN 0x8035 FUNC NOTAVAIL Function not available in
33. 0F3 li 2 n Lin 6 Col 20 localhost ber Tcp lp RUNNING FORCE READ 4 1 4 sensor s display is now rotated for about 180 the update time is set to 600 ms 7 10 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A 8 Appendix 8 1 Start up IO Link Device with IO Link V 1 0 eee e ee e eee eee eene eoo e eee ee esos P ee eee sees ese e eese eeu 2 8 2 Start up IO Link Device with IO Link V 1 1 eee e eee eee ee ee e eere eene eoo e ete eee esos P ee e esee sese e eee e eeu 3 8 3 Start up problems frequent failure causes eee eee eee ee ee e ee eee eee eese esae eee eee eee esee sesso esee eese 4 0301333 1114 BL20 E 4IOL BL67 4IOL 8 1 Appendix 8 1 Start up IO Link Device with IO Link V1 0 In general the following applies IO Link devices in accordance with IO Link specification V1 0 do not support data storage This means that the parameter Data storage mode has to be set to deactivated clear if an IO Link V1 0 devices is used Figure 8 1 Data storage mode deacti vated clear 8 2 1 Edit View Project Device Device tag 3 HOST PC TCP 192 168 1 100 1P 192 168 1 30 BL20 PG EN gt BL Service Etherr S gt BL20 PG EN IP gt F Modulbus gt IO Link1 gt 10 Link 2 gt 10 Link 3 gt IO Link 4 rate MM E
34. 0x01 200 200 ms measured value update time 0x02 600 600 ms measured value update time 0x03 r50 50 ms measured value update time display rotated by 180 0x04 r200 200 ms measured value update time display rotated by 180 0x05 r600 600 ms measured value update time display rotated by 180 0x06 OFF Display disabled Index 0x56 Behaviour of output 1 in the event of error Value hexadecimal Menu item Function 0x00 Foul Output off 0x01 Fou2 Output on 0301333 1114 BL20 E 4IOL BL67 4IOL 6 9 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 1 Please write the function block s input variables as follows description see above Table 6 2 Variable Value Meaning Example input variables WR 1 Write access ID 30 Start address of the module s output data accord ing to the configuration in HW Config CAP INDEX CAP 251 Function block instance PORT ENTITY PORT 1 The IO Link device is connected to port 1 IOL INDEX 0x55 Index for Measured value update time rotating disabling a display see above LEN READ 1 1 byte is written Figure 6 9 KA Var HMI BLo 4lOL SIMATIC 3000 A CPU 315 2 PN DP S7 Programm 3 ONLINE Inputvariablesfor Table Edit Insert PLC Variable View Options Window Help write access 011 a x a e e x 8 Ser ale A Il sensor 1 ED 30 1 process data raw 30 HEX B 16 FF DB249 DBX 6 1
35. 1 Container 1 A1 Container _ 12 2 A1 Container_A1 3 3 A1 Container_A1 4 081 088 4 A1 Container 081 088 5 At Container A1 6 6 7 8 9 DB1 DBB DB1 DBB 4 i DB1 DBB A1 Container A1 7 A1 Container_A1 8 A1 Container_A1 DB1 DBB DB1 DBB DBIDBB 10 A3 Container 12 A1 Container A1 13 13 A1 Container_A1 14 14 A1 Container 15 A1 Container A1 16 16 Container 17 A1 Container A1 18 081 088 18 At Container A1 19 DB1DBB 19 A1 Container A1 20 BLox 4IOL SIMATIC 300 1 S7 Programm 3 6 8 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in Step 7 Write access Changing the parameter Measured value update time rotating disabling a display index 55 to the value 0x05 600 ms measured value update time display rotated by 180 for the TURCK temperature sensor TS 500 LUUPN8X H1141 at IO Link port 1 Figure 6 8 Extract from the documentation for TURCK tem perature sensors Temperature sensors TS series IO Link Parameters Specific On Request Data Objects Parameter values Index 0x54 Displayed unit Value hexadezcimal Menu item Function 0x00 0x01 F T 0x02 k k 0x03 Ohm Ohm Measured value update time rotating disabling a display Value hexadecimal Menu item Function 0x00 50 50 ms measured value update time
36. 14 BL20 E 41OL BL67 410L 3 3 Technical features BL67 gateways Table 3 3 Fieldbus Product Ident no from Compatible BL67 FW version t TON PLC systems with PROFIBUS DP master PROFIBUS DP BL67 GW DPV1 6827232 V1 27 Multiprotocol Ethernet gateway for PROFINET EtherNet IP or Modbus TCP Ethernet BL67 GW EN 6827214 gt V3 1 0 0 PROFINET EtherNet IP Modbus TCP BL67 CODESYS programmable gateways NOTE the programmable gateways the version of the Target Support Package always has to be observed in addition to the firmware version Table 3 4 Fieldbus Product Ident no from from Target Compatible pro FW version Support grammableBL67 Package gateways PLC systems with PROFIBUS DP master PROFIBUS DP BL67 PG DP 6827240 V2 0 5 0 V2 1 3 0 PLC systems with Modbus master or PC based solutions using a Modbus driver software Modbus TCP BL67 PG EN 6827241 V2 1 1 0 V2 1 3 0 PLC systems with EtherNet IP Scanner master EtherNet IP BL67 PG EN IP 6827246 V2 10 0 3 V2 1 3 0 3 4 0301333 1114 BL20 E 4IOL BL67 4IOL Technical data Industri A 3 2 Technical data NOTE H For all technical data that are specific for the product lines please read the I O manuals of the respective product family BL20 D300717 and BL67 D300529 Table 3 5 BL20 E 4IOL BL67 4IOL Technical data Module bus current max 40 mA
37. 2 512 oxsc 816 Ox9F 112 oxB2 gt 120 0 4 272 0 4 528 0 8 832 1136 oxB3 12 8 50 28 0 76 544 Ox8E 848 OxA1 1152 OxB4 13 6 52 28 8 0x78 56 oxsF 864 OxA2 1168 OxB5 144 0x54 29 6 O0x7A 57 6 0x90 88 oxa3 1184 OxB6 A automatic The lowest cycle time supported by the device is taken from the table 0301333 1114 BL20 E 41OL BL67 410L 4 9 Function description 4 2 1 Special DTM functions The TURCK offer besides the normal parameters of the IO Link master modules special function for configuring the master module Figure 4 1 Special DTM func Fil Edit View Project Device Extras Window Help tons Dee d i i Bei 028 00 159 8 2 5 Project ax 01 BL20 E 410 Parameterization E 192 168 1 254 BL20 E GW EN gt EF Modulbus 5 98 01 BL20 E 410L IO Link 1 s D Autom IO Link detection selection 10 Link 3 Factory settings selection 10 Link 4 I0 Link channel 1 10 Link port parameters Mode I0 Link without validation Data storage mode activated Cycle time automatic Revision automatic Activate Quick Start Up no S Diagnostic settings Process input data invalid diagnostic generated Deactivate diagnostics notifications and warnings Data mapping Process input data mapping swap 16 bit Process input data le
38. 2 1 1 General technical information c secsscsssssssesssesssessnssssesssesssesssscssessassssessnssssesssscssssussssessnscsscesscssscssnscsscssnsesscsssecascssncessessnecssessseesee 2 2 1 2 D ta 3 2 1 3 Transmission media 2 1 4 Fieldbus Ethernet integration 2 1 5 IO Link and FDT DTM 0301333 1114 BL20 E 4IOL BL67 4IOL 2 1 IO Link 2 1 IO Link the fieldbus independent communication interface Q IO Link TECHNICAL BASICS IO Link is a fieldbus independent communication interface for sensors and actuators It is based on the IO Link specification IO Link Interface and System Specification version 1 1 2 November 2012 and on the IEC 61131 9 2013 09 ed 1 0 Programmable controllers part 9 Single drop digital communication interface for small sensors and actuators SDCI IO Link is a point to point connection between an IO Link device e g sensor I O hub valve terminal and the IO Link master Up to now the binary connection was only designed for transferring switching information but IO Link now allows 2 bytes to be transferred normally in a 2 3 ms cycle via a combined switching status and data channel Other information can be exchanged in addition to the process values such as parameters or diagnostic messages This enables communication with sensors and actuators down to the last meter to be estab lished for universal communication 2 1 1 General technical information TECHNICAL
39. BO with PROFINET TURCK multiprotocol gateway BL20 E GW EN VNO3 00 O 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 IO HUB TBIL M1 16DIP 6 1 2 Used software E SIMATIC Manager Step 7 version 5 5 SP2 6 2 0301333 1114 BL20 E 4IOL BL67 4IOL Configuration in HW Config 6 2 Configuration in HW Config 6 2 1 Configuration of the IO Link master Figure 6 1 Ih HW Config SIMATIC 300 1 Configuration BLo 4IOL Configuration of Station Edit Insert PLC View Options Window Help thelO Linkmaster yg e ame Ethemet 1 PROFINET IO System 100 CPU 315 2 PN DP 1 20 9 Order number address Q address Diagnostic address Comment AMT MET Press F1 to get Help 0301333 1114 BL20 E 4IOL BL67 4IOL PROFIBUS DP PROFIBUS PA PROFINET ID SIMATIC 300 SIMATIC 400 FE m PROFIBUS DP slaves for SIMATIC 57 M7 and C distributed rack Suchen ail Profile Standard SIMATIC PC Based Control 3C SIMATIC PC Station Tr IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET
40. Figure 6 3 properties BL2O E 41OL R S1 Configuration of General Addresses Parameters the IO Link ports Example project p en T module parameterization activate Mode Chi 10 Link with identical device Data storage mode deactivated clear time automatic evision Chl automatic Activate Quick Start Up Chl no rocess input data invalid Chl diagnostic generated Deactivate diagnostics notifications and warnings Input data mapping Chl direct Input data length Chl 10 byte Output data mapping Chi direct Output data length Chl 10 byte m Mode Ch2 DI activated r x automatic Properties BL20 E 4IOL R S1 cs automatic General Addresses Parameters rocess input datainvalidCh diagnostic generated Deactivate diagnostics notifications and warnings Value input data mapping Ch2 direct E Input data length Ch2 2byte input data length Ch2 2 byte Output data mapping Ch2 direct Output data Ch2 direct Output data length Ch2 2 byte Mode Ch3 DI Data storage mode Ch3 activated Cycle time Ch3 0 8 ms Revision Ch3 automatic Activate Quick Start Up Ch3 no 2 Process input data invalid Ch3 diagnostic generated Deactivate diagnostics notifications and warnings amp Input data mapp
41. Master IO Link Device The IO Link device has not been connected to the master before Para IOLD parameter data of the IO Link device NOTE Fl If a device change is necessary when data storage is activated the following has to be observed An IO Link exchange device with unknown parameter data should be reset to factory defaults before connecting it to the master This prevents unknown device parameter settings to be downloaded to the master when establishing the connection TURCK IO Link devices can be reset to factory settings via a system command using a generic IO Link DTM and the device specific IODD For the reset of third party devices please read the corresponding manufacturer documenta tion 0301333 1114 BL20 E 4IOL BL67 41OL The principle of the data storage mechanism Industri A 4 4 3 Parameter data storage mode read in 8 The data set in the device is always the reference data set 8 The synchronization of the parameter sets is unidirectional towards to the master 8 The status of the DS_UPLOAD_FLAG is ignored Figure 4 3 IO Link Master 10 Link Device Data storage mode read in Para IOLD parameter data of the IO Link device 4 4 4 Parameter data storage mode overwrite 8 The data set in the master is always the reference data set 8 The synchronization of the parameter sets is unidirectional towards to the device 8 The status of the DS_UPLOAD_FLAG is ignored Figure 4 4
42. RD IOL DATA Source destination for the data to be read or written 5 3 The IO Link function block IOL CALL 5 2 2 Output variables The following description of the function block variables is partially taken from this IO Link specifica tion Table 5 2 Name Output variables IO Link Spec Data Type Meaning DONE VALID BOOL The read or write access has been executed BUSY BOOL The read or write access is actually in progress ERROR BOOL Error while executing the read or write access STATUS DWORD Communication error status Status of the acyclic communication see STATUS communication error status page 5 5 IOL STATUS DWORD IO Link error messages in accordance with IO Link Inte gration Part 1 Technical Specification for PROFIBUS and PROFINET and IO Link Interface and System which concern the communication between IO Link master and connected devices see IOL STATUS page 5 7 LEN INT Length of the data which were read 5 4 0301333 1114 BL20 E A4IOL BL67 4IOL IOL CALL in accordance with IO Link specification Industri A 5 2 3 STATUS communication error status The status of the acyclic communication contains 4 byte and is structured as follows Byte Byte 2 Byte 1 Byte 0 0x80 Error code see Table 5 Vendor specific identifier Specifies the error as an 3 Vendor specific identifier not always applicable
43. T STATUS DWORD INT FI INDEX IOL STATUS BOOL INT IOL INDEX INT IOL SUBINDEX DWORD INT LEN ANY RECORD IOL DATA 5 2 0301333 1114 BL20 E 4IOL BL67 4IOL IOL CALL in accordance with IO Link specification 5 2 1 Input variables Industri A The following description of the function block variables is partially taken from this IO Link specifica tion Table 5 1 Name Input variables IO Link Spec Data Type Meaning REQ BOOL A rising edge triggers the send command ID DWORD Address of the IO Link master module PROFIBUS PROFINET Siemens Start address of the input data of the IO Link master module CODESYS Slot number of the IO Link master module in the BL20 BL67 station INDEX CAP INT Function block instance 251 to 254 RD WR BOOL 0 read access 1 write access ENTITY PORT INT Address of the IO Link port to be accessed FI INDEX INT Fix value 65098 defines the access as IO Link CALL IOL INDEX INT Number of the IO Link index which has to be written or read IOL SUBINDEX INT Definition of a possible sub index LEN INT Length of the data to be read written 0301333 1114 BL20 E 4IOL BL67 4IOL This information is not necessary for the Siemens IOL CALL IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET page 6 1 For the IOL CALL CODESYS IOL CALL in CODESYS 2 3 for programmable gateways page 7 1 the length of the data to be read or written is necessary RECO
44. age 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 diagnostic message is displayed DS pr see section Diagnostic data In this case select option 11 deactivated clear in order to clear the data buffer of the device 00 activated Synchronization of parameter data activated The most actual data master or device serve as the reference data 01 overwrite Synchronization of parameter data activated the data in the mas ter serve as reference data 10 read in Synchronization of parameter data activated The data in the con nected IO Link device serve as reference data 11 deactivated clear A Synchronization of parameter data deactivated The data set in the master is deleted NOTE IO Link devices in accordance with 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 4 6 0301333 1114 BL20 E 4IOL BL67 41OL Parameters Table 4 3 Parameters A default setting Value Industri A Quick Start Up For fast applications e g tool changing applications the start up time of IO Link devices can be short ened The start up time defined in the IO Link specification TSD Device Detection Time is reduced 00 noA The start up time is within the specified rang
45. aster to the fieldbus Depending on the parame terization the master transmits Events based on their priority to the fieldbus or not 00 no The master transmits all IO Link Events to the fieldbus 01 notifications The master transmits all IO Link Events to the fieldbus except for IO Link notifications 10 notifications and The master transmits all IO Link Events to the fieldbus except for warnings A IO Link notifications and warnings 11 yes The master doesn t transmit any IO Link Event 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 optimized data mapping on the fieldbus side 00 direct The process data are not swapped 01 swap 16 bit A The process data are swapped word wise 10 swap 32 bit The process data are swapped double word wise 11 swap all All bytes are swapped Process output data mapping see above Process input data mapping Process input data length Defines the length of the process input data which are mapped to the fieldbus for this port 0000 Obyte 0001 1 byte 0010 2bytea 0011 4byte 0100 6byte 0101 8 byte 0110 10byte 0111 12 byte 1000 reserved 1110 1111 14 byte 0301333 1114 BL20 E 4IOL BL67 41OL Parameters Industri A Table 4 3 Name Meaning Parameters Value
46. ate sensor 17101 INDEX HEX W 16 0055 18 i State sensor 1 IOL_SUBINDEX DEZ 20 i State sensor 1 LEN DEZ 1 30 State sensor 1 LEN_READ DEZ DB249DBD 22 State sensor 1 STATUS HEX 108249080 26 State sensor 1 IOL_STATUS HEX DB249 DBW 32 State sensor 1 RD_LEN DEZ il sensor 2 u BLox 4IOL SIMATIC 300 1 S7 Programm 3 WOM 056 52 7 4 The sensor s display is now rotated for about 180 the update time is set to 600 ms 0301333 1114 BL20 E 4IOL BL67 4IOL 6 11 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 6 12 0301333 1114 BL20 E 4IOL BL67 41OL Industri A 7 CODESYS 2 3 for programmable gateways 7 1 Example project 7 1 1 Used hardware 7 1 2 Used Sof Wale tit 7 2 Configuration in CODESYS 2 3 0ssssssssssssnnssnnnssnnsssnnssnsnnsnnnnsnsnsnsnnsnsnnsnnnsnsnsnssnnnsnnnsnnnnensnnennnnnnnnnnnne 3 7 2 1 Configuration of the IO Link master 3 7 2 2 Configuration of the IO Link ports Port configuration in the example project 7 3 Usage of the function block in CODESYS 2 3 usssssesssnsnssnnnnnnssnunnnnnnnsnnnnnsnnnnnnnsnssunnnnnnnnnnannsnsssennnns 5 7 3 1 Example accesses with IOL CALL Read access Write access 0301333 1114 BL20 E 4IOL BL67 4IOL 7 1 IOL CALL in CODESYS 2 3 for programmable gateways 7 1 Example project 7 1 1 Used hardware TURCK BL20 PG EN IP FW V 2 10 0 3
47. automatic revision K1 automatic activate Quick Start Up no input data invalid Kl diagnostic generated deactivate diagnostics Knotifications and warn input data mapping Kl swap 16 bit input data length 1 2 byte output data mapping Kl swap 16 bit D ONLINE Dv READ Portin IO Link mode with identical device with compatible device 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 Parameter page 4 9 Port in DI mode DI with parameter access DI It is reasonable to set the process input data length and process output data length to 0 in order not to block bytes with digital data in the process data mapping on the fieldbus 6 4 0301333 1114 BL20 E 4IOL BL67 4IOL Configuration in HW Config Port configuration in the example project Port 1 10 Link with identical device Only an identical exchange device is accepted in case of a device exchange check of vendor ID device ID etc see also Parameter page 4 5 Device TURCK temperature sensor TS 500 LUUPN8X H1141 2 byte process data Port 2 and port 3 configured as DI Port 4 10 Link without validation Every IO Link device will be accepted as exchange device i case of a device exchange Parameter page 4 5 Device TURCK l O hub TBIL M1 16DIP 2 byte process data
48. current XSG channel 0 No overcurrent 1 Overcurrent at the output if the XSG channel is used as output Mapped process input data Process input data of the connected device It depends on the parameterization of the channel which data are shown in which order see param eter process input data length and process input data mapping 4 2 0301333 1114 BL20 E 4IOL BL67 4IOL Process image 4 1 2 Process output data Industri A Byte Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Control 0 XSG8 XSG7 XSG6 XSG5 reserved 1 reserved Process out 2 to put data map 15 Mapped process output data ping Table 4 2 Name Value Meaning Process output data XSGx XSG output 0 Output not active 1 Output active max output current 0 6 A Process output data Mapped process output data of the connected device It depends on the parameterization of the channel which data are shown in which order see param eter process output data length and process output data mapping 0301333 1114 BL20 E 4IOL BL67 4IOL 4 3 Function description 4 1 3 Process data mapping The mapping of process data can be adapted application specifically via the master s parameterization Depending on the used fieldbus it can be necessary to swap process data word wise double word wise or completely in order to align them to the data structure in the PLC The process data mapping is d
49. ded Port Diagnostics 24 DI a se U IE RR 25 0301333 1114 BL20 E 4IOL BL67 4IOL 4 1 Function description 4 1 Process image The 4IOL module provides a maximum of 16 byte of process input data and a maximum of 16 byte of process output data The process image can be adapted application specifically via the module s parameterization see Pro cess data mapping page 4 4 4 1 1 Process input data Byte Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Status 0 XSG8 XSG7 XSG6 XSG5 014 DI3 DI2 DI 1 OC8 OC7 OC6 OC5 DVS4 DVS3 DVS2 DVS1 Process input 2 to data mapping 15 Mapped process input data Table 4 1 Name Value Meaning Processinputdata mapping Dix Digital input 0 No signal at DI 1 Input signal at DI XSGx XSG input 0 No signal at XSG 1 Input signal at XSG DVSx Input value valid Data Valid Signal 0 The IO Link data are not valid Possible causes Sensor supply is below the admissible range IO Link port is parameterized as simple digital input No device connected to the masters No input data received from the connected device only valid for devices with an input data length 0 No reaction from the connected device to the sending of output data only valid for devices with an output data length 0 The connected device sends an error process input data invalid 1 The IO Link data are valid OCx Over
50. e 0 5 s All IO Link devices in accordance with the specification can be operated 01 yes The start up time is reduced to approx 100 ms It is not supported by every IO Link device It can thus be necessary to check if the used IO Link device starts in this mode Activate output 00 noA BL67 The output at pin 2 ofthe 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 connector port is activated BL20 The output at the respective terminal 5 to 8 is activated Cycle time 00 automatic A The Master reads the minimum cycle time from the connected device 000000 0 8 to 132 8 ms 01 110011 11 0x01 OxBF Settable in steps of 0 8 or 1 6 ms see Table 4 4 Parameter values cycle time ms page 4 9 Revision 00 automatic A The Master defines the IO Link revision automatically 01 V1 0 Process input data invalid IO Link Revision V 1 0 is used 00 diagnostics generated A If the process data are invalid a respective diagnostic message is generated 01 no diagnostics generated Invalid process data do not cause a diagnostic message 0301333 1114 BL20 E 4IOL BL67 41OL 4 7 Function description Table 4 3 Parameters A default setting 4 8 Name Meaning Value Deactivate diagnostics Influences the sending of IO Link Events from the m
51. e BL20 E 8DI 24VDC P BL2O 16DI 24VDC P BL20 E 16DI 24VDC P P BL20 32DI 24VDC P BL20 1AI4 0 4 20m amp BL20 1AI U 10 0 10VDC z BL20 2A1 1 0 4 20mA BL20 2AI U 10 0 10VDC BL20 2AI PT NI 2 3 BL20 2Al Thermo Pl BL20 2AIH I BL20 E 4AI TC 4 D m JONLINE READ L d 7 2 2 Configuration of the IO Link ports The 4 ports of the IO Link master can be operated in IO Link mode with different configuration as well as in DI mode see also parameter Mode page 4 5 Portin IO Link mode with identical device with compatible device 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 Parameters page 4 8 E Port DI mode DI with parameter access DI is reasonable to set the process input data length and process output data length to 0 in order not to block bytes with digital data in the process data mapping on the fieldbus 0301333 1114 BL20 E 4IOL BL67 4IOL 7 3 IOL CALL in CODESYS 2 3 for programmable gateways Port configuration in the example project Port 1 10 Link with identical device Only an identical exchange device is accepted in case of a device exchange check of vendor ID device ID etc see also Parameters page 4 5 Device TURCK temperature sensor TS 500 LUUPN8X H1 141 2 byte process data Port
52. e buffer of the master To do so set the parameter Data storage mode to deactivated clear see page 4 6 and re activate the data storage if nec essary Overflow of the data storage buffer Clearthe data storage buffer of the master To do so set the parameter Data storage mode to deactivated clear see page 4 6 and re activate the data storage if nec essary Parameter access for data storage not possible The connected device may be locked for parameter changes or for data storage Check the status of the IO Link index Device Access Locks index of the connected device and unlock the device Master device diagnostics PD invalid Process input data invalid The IO Link master or the IO Link device report invalid process input data The connected device is not in status operate which means it is not ready for operation Possible sources The connected device does not match the configured one additional diagnostic message Wrong or missing device Certain IO Link devices send a process input data invalid diagnosis if the process value cannot be measured Deactivate the sending of the process input data invalid diagnosis for the respective port To do so change the parameter Process input data invalid to no diagnostics generated see page 4 7 Device diagnostics For the exact specification of the device diagnostics please read the device documentation
53. ead to a better understanding of the device functions for example The experi enced user can skip this information gt CALL TO ACTION This symbol identifies steps that the user has to perform RESULTS OF ACTION This symbol identifies relevant results of steps 0301333 1114 BL20 E 4IOL BL67 4IOL 1 3 About this manual 1 3 General notes Please read this section carefully Safety aspects cannot be left to chance when dealing with electrical equipment This manual includes all information necessary for the prescribed use of the modules BL20 E 4IOL and BL67 A4IOL It has been specially conceived for personnel with the necessary qualifications 1 3 1 Prescribed use The devices described in this manual must be used only in applications prescribed in this manual or in the respective technical descriptions and only with certified components and devices from third party manufacturers Appropriate transport storage deployment and mounting as well as careful operating and thorough maintenance guarantee the trouble free and safe operation of these devices 1 3 2 Notes concerning planning installation of this product All respective safety measures and accident protection guidelines must be considered carefully and without exception 1 4 0301333 1114 BL20 E 4IOL BL67 4IOL Industri A 2 10 Link 2 1 10 Link the fieldbus independent communication interface ossossssssssnnsssnsssnssnssnsnssnsnsnsnnsnunee 2
54. ei USEC SOPEW SIE e Configuration HW Config 6 3 Configuration of the IO Link master nnt ettet 6 3 Configuration of the IO Link ports Usage of the function block in Step 7 ussnussonssonnssnnsnonenonnssnnsnanennnnsnnnsnanennnnsnnnsnnnsnnnnsnnnsnunsnnnennnnsnnnennnennnnsnnn 6 6 Example accesses CALL artt n medi seit iae tud stil eut 6 7 IOL CALL in CODESYS 2 3 for programmable gateways Example project 7 2 7 2 Us d 7 2 Configuration in CODESYS 2 3 cursuosesusennossnnnennnsnnnsnnensnnnnne Configuration of the IO Link Configuration of the IO Eink ports ee Eee ei Lin Usage of the function block in CODESYS 2 3 scuusonnssonenonnsnnnssnnsnonnsnnnsnunennnnsnnnnnunsnnnnsnnnssnnennnennnnennnennnssnnnenen 7 5 Example accesses with AOL CALL en a teste 7 6 Appendix Start up IO Link Device with IO Link V 1 0 ecce eee eere ee eere ee ee ense ette teens eaa see eaae eee ee e tese eee 8 2 Start up IO Link Device with IO Link V1 1 0s0000ss0000s00000s0000000000000000n00000200000200002000800000 0000000000000 000 tese eee 8 3 Start up problems frequent failure causes
55. etermined channel by channel through the parameters process input data mapping process output data mapping process input data length and process output data length see section Parameters Example mapping for field buses with Little Endian format Channel parameterization Devices at channel 1 4 Mapping by master fieldbus gt PLC Mapping IO Link device see page 4 8 Byte A ByteA Byte 0 Status Byte 1 Control Byte 2 Distance Low byte Distance High byte 2 byte process Byte 3 High byte Low byte a Byte 4 Digital signal 1 8 Digital signal 1 8 2 byte process Byte 5 Digital signal 9 15 Digital signal 9 15 data direct Byte 6 Angle x axis Low byte Angle x axis High byte 4 byte process Byte 7 High byte Low byte data swap 16 bit Byte 8 Angle y axis Low byte Angle y axis High byte Byte 9 High byte Low byte Byte 10 Diagnostics Counter MSByte 4 byte process Byte 11 Counter Low byte position value High byte data Byte 12 Position value High byte Low byte a Byte 13 MSByte Diagnostics Byte 14 reserved Byte 15 reserved A MSByte Most Significant Byte 4 4 0301333 1114 BL20 E 4IOL BL67 41OL Parameters Industri A 4 2 Parameters The module provides 16 byte parameter data 4 byte pe
56. fig fa Zielsystemeinstellungen Eingabel nge Byte 16 Abbrechen Ausgabelange Byte 16 Symbolische Namen Parameter operation mode K1 IO Link with identicaB data storage mode K1 deactivated clear BE cycle time K1 automatic revision K1 automatic activate Quick Start Up no input data invalid K1 diagnostic generated deactivate diagnostics Knotifications and warB input data mapping Kl swap 16 bit input data length K1 2 byte output data mapping K1 swap 16 bit ONLNE UB LESEN 7 4 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in CODESYS 2 3 7 3 Figure 7 3 TURCK FB in CODESYS 2 3 Usage of the function block in CODESYS 2 3 The chapter 5 contains a general description of the function block and its in and output variables The IO Link function block IOL CALL The IOL CALL FB is part of the TURCK library BLxx_PG_FB lib This TURCK library is contained in the device s Target Support Package The Target Support Package can be downloaded at the programmable gateway e g at BL20 PG EN under www turck de r CoDeSys PG EN 4IOL pro Library Manager De BL20 PG EN 40 I File Edit Project Insert Extras Online Window Help Standard lib 4 10 BLxxloSys lib 11 FbSlave lib 6 6 1 Resources B Bibliothek BLxsloSy Bibliothek C Users Bibliothek
57. figured one wrong Link port at the master vendor ID device ID etc Correct the vendor ID device ID etc The parameterization can be done by teaching the master via lOL CALL using the port function Subindex 67 Teach Mode or via a manual port parameteriza tion Process input Certain IO Link devices send a Deactivate the sending of the process data invalid process input data invalid diag input data invalid diagnosis for the nosis if the respective port process value can not be mea To do so set parameter sured Process input data invalid to no diag nostic generated see page 4 7 8 4 0301333 1114 BL20 E A4IOL BL67 4IOL 9 Index A accident protection guideline s 1 4 B base modules e 3 7 BL20 E 4IOL 3 2 67 4 nassen nennen 3 2 compatible gateways s ttttttntnnnrettttttcnns 3 3 D data storage principle 4 16 device diagnostics 4 13 diagnostic and status messages 4 11 diagnostic data reete 4 13 Diagnostic telegram e eeeentttnrttttttttcnnnn 4 13 documentation concept 1 2 E Ethernet fieldbus Ethernet integration m explanation of symbols used s F failure causes ceeseesssssssssssssssssssssssssssssssssmussssssssssssssesssssesceeseeeeeeseeee 8 4 function block CALL 5 1 IOL CALL SCODESYS 2 3 etse iei
58. ges are transmitted from the device to the PLC or similar via the IO Link master The IO Link master itself can also transmit events and status information Those events can be for example an open cir cuit communication loss or an overload 0301333 1114 BL20 E 4IOL BL67 4IOL 2 3 IO Link 2 1 3 Transmission media TECHNICAL BASICS IO Link does not require any special wiring The sensors and actuators can continue to be con nected using the proven attractively priced and unshielded industrial cables The operating modes available for selection are the standard switch mode and the commu nication mode 2 1 4 Fieldbus Ethernet integration zx TECHNICAL BASICS Usage of the standard transport mechanisms of established fieldbusses sensor actuator buses DPVO DPV1 Ethernet simple integration in engineering systems by means of configuration files GSD GSDML comfortable usage of even complex product features by means of tool based engineering FDT DTM Figure 2 1 IO Link overview 255997 EtherneviP gt gt EtherCAT 05 228980 CANopen FELDBUS Drehgeber und Linearweg Temperatur Druck Str mung Optoelektronik und Ultraschall Induktiver Koppler VO Hub ANDARD GINA 2 4 0301333 1114 BL20 E 4IOL BL67 4IOL IO Link the fieldbus independent communication interface Industri A 2 1 5 IO Link and FDT DTM
59. ing Ch3 direct input data length Ch3 2byte Output data mapping Ch3 direct E Output data length Ch3 2 byte Mode Ch4 1O Link without validation E Data storage mode Ch4 activated Cycle time Ch4 automatic Revision Ch4 automatic Activate Quick Start Up Ch4 no Process input data invalid Ch4 diagnostic generated Deactivate diagnostics notifications and warnings Input data mapping Ch4 direct Input data length Ch4 Z byte Output data Ch4 direct m EMT e 4 0301333 1114 BL20 E 4IOL BL67 4IOL 6 5 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 6 3 Usage of the function block in Step 7 The chapter 5 contains a general description of the function block and its in and output variables The IO Link function block IOL CALL Figure 6 4 RZ LAD STL FBD OBI Cycle Execution Bboc4IOLVSIMATIC 300 1 CPU 315 5 15169 Example call of XC File Edit Insert PLC Debug View Options Window Help 8 Siemens FB De POS s Belo Ss 7 1 OB E2 HE HR IO Link CALL Contents Of EnvironmentXInterface FB102 in OB1 Interface _ TI FA New network d Teme o 6 6 gy FB blocks FC blocks 58 blocks SFC blocks Multiple instances 9 Libraries
60. k Read Length Description IO Link Events Port subindex Write 0 65 r 255 byte This object serves for reading the IO Link events NOTE On appears coming diagnostics and Single Shot Events are shown as long as they are pending 4 20 0301333 1114 BL20 E 4IOL BL67 41OL Functions for the acyclic communication via IO Link CALL Structure of the read data Industri A 8 Byte 0 contains 2 bit per IO Link port which show if the process data of the connected device are valid or not 8 ByteOis followed by 4 byte per Diagnostic Event which clearly assign and specify the diagnostic message A maximum of 14 Events per IO Link port are shown Byte Bit 7 6 5 4 3 2 1 0 0 x PD_Valid input port 1 PD Valid output port 1 x PD_Valid input port 2 X PD_Valid output port 2 PD Valid input port 3 x PD_Valid output port 3 x PD_Valid input port 4 x PD_Valid output port 4 1 Qualifier Defines the type of the Event Warning Notification Single Shot Event etc in accor dance with IO Link specifica tion IO Link Interface and System 2 Port Indication of the IO Link port which sends an Event 3 Event Code high byte High or respectively low byte 4 Event Code low byte of the Event Code sent 222 Qualifier see byte 1 4 223 Port 224 Event Code high byte 225 Event Code low byte Subindex 66 Set Default Parameterization Table 4
61. k specification which is not clearly specified Read out the device event codes in order to be able to specify the error more precisely 0301333 1114 BL20 E 4IOL BL67 41OL 4 15 Function description 4 4 Theprinciple of the data storage mechanism 4 4 1 General Data storage enables a user to change an IO Link device when maintenance is required without any configuration or parameterization The IO Link master as well as the IO link device store the device parameters The data storage mecha nism serves for synchronizing these different data storage buffers In case of a device change the master writes the stored device parameters to the new device The application can be re started without any further intervention using a configuration tool or similar In the BIO Link masters for BL20 BL67 the data storage mode can be set using the parameter data stor age mode see Parameters page 4 5 Data storage mode 00 activated page 4 17 01 overwrite see page 4 19 10 read in see page 4 19 11 deactivated clear see page 4 19 Figure 4 2 General principle of the data stor age mechanism 10 Link Master IO Link Device IOLM IOLD DS_UPLOAD_FLAG Para IOLD parameter data of the IO Link device A change of parameters in the device is indicated by the status of the DS_UPLOAD_FLAG bit DS_UPLOAD_FLAG 0 no changes in the device s parameter set 1 changes in the device s parameter set e
62. l ia Device KI Disconnected gt Set parameter factory settings to set to factory settings The DTM resets the device automatically gt Connect the IO Link V1 1 device VATA LED IOL GREEN for the respective port IO Link communication is active Start up steps 2 possibility vovv 0301333 1114 BL20 E 4IOL BL67 4IOL Download the parameters into the device Re activate the data storage if required Download the parameters into the device Connect the IO Link V1 1 device Set the data storage mode to deactivated clear LED IOL GREEN for the respective port IO Link communication is active Appendix 8 3 Start up problems frequent failure causes LED Diagnostics Possible causes Explanation solution DIA Data storage IO Link device in accordance with Deactivate the data storage and IOL error IO Link V1 0 connected To do so set parameter red IO Link devices in accordance with Data storage mode to deactivated flashing IO Link specification V1 0 do not Clear see page 4 6 support data storage The data storage buffer contains Clear the data storage buffer of the mas data of another device ter To do so set the parameter Data storage mode to deactivated clear seepage 4 6 and re activate the data storage if necessary Wrongormissing The connected device does not Change the parameterization of the IO device match the con
63. nected IO Link device INPUT LEN TOO SHORT The index to be read contains more data than defined in the input variable LEN Table 5 3 Status Code Status Codes Oxxx80C2xx Oxxx80C3xx 0xxx8901xx 5 6 0301333 1114 BL20 E 4IOL BL67 4IOL IOL CALL in accordance with IO Link specification 5 2 4 IOL STATUS Industri A The IOL STATUS consists of 2 byte Error Code IOL M Error Codes according to IO Link Integration Part 1 Technical Specification for PROFIBUS and PROFINET and 2 byte Error Type according to IO Link Interface and System Byte 3 Byte 2 Byte 1 Byte 0 IOL M Error Codes see Table 5 4 IOL M Error Codes according to IO Link Integration Part 1 Technical Spec ification for PROFIBUS and PROFINET Error Types see Table 5 5 IOL Error Types according to IO Link Interface and System Table 5 4 Error Code Name Meaning IOL M Error Codes acc to spec 0x0000 No error no error 0x7000 IOL CALL conflict Unexpected write request read request expected 0x7001 WronglOL CALL Decoding error 0x7002 Port blocked The accessed port is occupied by another task reserved 0x8000 Timeout Timeout IOL master or IOL device port busy 0x8001 Wrong index Error IOL index 32767 or 65535 selected 0x8002 Wrong port Port address not available address 0x8003 Wrong port Port fucntion not available function reserved 0301333 1114 BL2
64. ng 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 frequent failure causes page 8 4 Channel in DI mode Green off Status of channel x 0 OFF Green on Status of channel x 2 1 ON 4 7 Green off Status of channel x 0 OFF BL67 or resp Green on Status of channel 1 ON 5 8 flashing Short circuit at output of the BL20 0 5 Hz respective channel 4 12 0301333 1114 BL20 E 4IOL BL67 4IOL Diagnostic and status messages Industri A 4 3 2 Diagnostic data There are different types of diagnostic messages master and device diagnostics The PD diagnostic process data invalid can be sent from both devices IO Link master or IO Link device Master diagnostics The master sends reports problems within the IO Link communication Device diagnostics The device diagnostics map the IO Link Event codes according to the IO Link specification sent from the IO Link devices to the diagnostic telegram of the master Event codes can be read from the connected devices by using appropriate device tools e g IODD Inter preter Further information about the IO Link Event codes and their meaning can be found in the IO Link specification or in the documentation of the connected IO Link devices Diagnostic telegram channel B
65. ngth gt 2 byte Process output data mapping swap 15 bit Process output data length 2 byte S Port configuration 2 10 Link channel 2 selection 5 10 Link port parameters Mode I0 Link without validation Data storage mode 5 activated coa e for this The data the connecte device ar read in new rea in of onlin d B Device 71 D Disconnected Administrator Automatic IO Link detection 4 10 The data of the connected device the connected devices are read in by the master This function affects depending on the parameter group in which it is activated all ports or only one special port the Common group it is valid for the whole module in the Port configuration group it is only valid for the respective port Factory settings The master is set back to its factory settings 0301333 1114 BL20 E 4IOL BL67 4IOL Diagnostic and status messages Industri A 4 3 Diagnostic and status messages 4 3 1 LED status displays This module provides the following LEDs for status displays E DIA Monitors the module status E Channel LEDs BL67 0 3 Status display for the IO Link or respectively DI channels at Pin 4 of the M12 con nectors 4 7 Status display for the XSG channels at Pin 2 of the M12 connectors BL20 1 4 Status display for the IO Link or respec
66. of the device manufacturer D301333 1114 BL20 E 4IOL BL67 41OL Diagnostic and status messages Table 4 6 Bit Diagnostic data HW Error Industri A Meaning Remedy hardware failure General hardware error or device malfunction EVTD2 Out of Specification Events An Out of Specification Event in accordance with the IO Link specification occurred EVTD1 ParaMerr Maintenance Events A Maintenance Event in accordance with the IO Link specification occurred mainte nance necessary Parameterization error The connected device reports a parameterization error loss of parameters no param eter initialization etc OTemp Overtemperature Temperature diagnostic message at the connected device UFLW OFLW Lower limit value underrun The process value lies under the parameterized measurement range or the chosen measurement range has been chosen too high Upper limit value exceeded The process value exceeds the parameterized measurement range or the chosen mea surement range has been chosen too low UV Undervoltage One of the voltages at the connected device is below the defined range OV Overvoltage One of the voltages at the connected device is below the defined range OLD Overload The connected device detected an overload GenERR Common error The device sends an error device status 4 in accordance with IO Lin
67. on Structure ofthe Port response tele gram 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 reserved Serial Number 16 byte String Serial number of the connected device COM Revision 1 byte UINT8 IO Link version Proc In Length 1 byte UINT8 Process input data length of the connected device Proc Out Length 1 byte UINT8 Process output data length of the connected device Cycle time UINT8 Cycle time of the connected device Port 2 Structure similar to port 1 Port 3 Port 4 0301333 1114 BL20 E AIOL BL67 4IOL 4 23 Function description Subindex 69 Extended Port Diagnostics Table 4 1 Entity 10 Link Read Length Description Extended Port Port subindex Write Diagnostics 0 69 r max 8 byte This object serves for reading the Extended Port Diagnostics Structure of the Extended Port Diagnostics Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 ByteO NO SIO TCYC DS F NO DS Byte1 WD MD PDI_H PDI E NO PD Byte Byte 4 Device status according to IO Link specification see Device Status Table 4 2 Diagnostic bit Meaning Meaning of the Extended Port Diagnostics NO DS The parameterized port mode see Parameters page 4 5 does not support data storage Remedy Change the parameterization of the port DS Error in the data storage synchronization not po
68. on of the usage the IOL CALL in CODESYS 2 3 helpful information for the operation of IO Link devices and a list of possible failure causes 1 2 0301333 1114 BL20 E 4IOL BL67 4IOL Explanation of symbols used Industri A 1 2 Explanation of symbols used 1 2 1 Warnings Action related warnings are placed next to potentially dangerous work steps and are marked by graphic symbols Each warning is initiated by a warning sign and a signal word that expresses the grav ity of the danger The warnings have absolutely to be observed DANGER DANGER indicates an immediately dangerous situation with high risk the death or severe injury if not avoided gt WARNING WARNING indicates a potentially dangerous situation with medium risk the death or severe injury if not avoided o CAUTION WARNING indicates a potentially dangerous situation with medium risk the death or severe injury if not avoided ATTENTION CAUTION indicates a potentially dangerous situation with low risk middle or low injury if not avoided 1 2 2 Further notes NOTE In NOTES you find tips recommendations and important information The notes facilitate work provide more information on specific actions and help to avoid overtime by not follow ing the correct procedure TECHNICAL BASICS The technical basics offer technical information the basics and background information This information l
69. r port channel Byte Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Channel 1 0 Activate Quick output Start Up Data storage mode Mode 1 Cycle time 2 Mapping Deactivate diagnos Mapping 5 A Process input Process output data Process Input data 0 5 data invalid Revision mapping deactivate web server 3 Process output data length Process input data length Channel 2 4 7 Assignment similar to channel 1 Channel 3 8 11 Assignment similar to channel 1 Channel 4 12 15 Assignment similar to channel 1 Table 4 3 Name Meaning Parameters Value Mode A default setting 0000 IO Link without Pin 4 BL67 of the respective connector or the respective terminal validation A 1 2 3 or 4 BL20 is operated in IO Link mode The master does not check if the connected device matches the configured one 0001 IO Link with Pin 4 BL67 of the respective connector or the respective terminal compatible device 1 2 3 or 4 BL20 is operated in IO Link mode The master checks if the device type vendor ID and device ID of the connected device matches the device type of the configured one If the master detects a mismatch the IO Link communication is established but there is no process data exchange The device remains in the safe state Pre Operate Parameters and diagnostic information can be read and respectively written 0010 IO Link with Pin 4 BL67 of the respective connector or the respective terminal identical device 0301333 1114 BL20 E 4IOL BL67 41OL
70. s follows description see above Table 6 1 Variable Value Meaning Example input variables RD WR 0 Read access ID 30 Start address of the module s input data accord ing to the configuration in HW Config CAP INDEX CAP 251 Function block instance PORT ENTITY PORT 4 The IO Link device is connected to port 4 IOL INDEX 0x12 Index for product name Figure 6 5 HMI GBboc4IOLVSIMATIC 3000 CPU 315 2 PN DP S7 Programm 3 ONLINE Ses Inputv ariables for a Table Edit Insert PLC Variable View Options Window Help 6 a S lelel x es 2 Ser e Si Modify value 2 sensor 1 TED HEX process data raw TAB HEX 16 DB249 DBX 6 1 State sensor 1 WR BOOL 1 O read 1 write parameter DB249DBX 6 2 State sensor 1 BOOL 1I 0 gt 1 start call DB249 DBX 6 3 State sensor 1 VALID BOOL DB249DBX 6 4 State sensor 1 BUSY BOOL E false DB249DBX 65 State sensor 1 ERROR BOOL tase 7 B I OL Call paramerter for sensor 1 MM 3 IN 08249080 8 State sensor 1 D DEC L 30 30 DB249 DBW 12 State sensor 1 CAP DEC 194 251 DB249 DBW 14 State sensor DEC IT T DB249 DBW 16 State sensor 17101 HEX w 16 0012 W 1640012 DB249DBW 18 State sensor 1 IOL_SUBINDEX DEC PU 0 DB249 DBW 20 State sensor 1 LEN DEC TDB249DBW 30 State sen
71. sor 1 1 READ DEC EM 2 DB249DBD 22 State sensor 1 STATUS HEX DB249DBD 26 State sensor 1 IOL STATUS HEX DB249DBW 32 State sensor 1 RD LEN DEC 1 sensor 2 bi Lx 4IOL SIMATIC 300 1 S7 Programm 4 RUNS Abs lt 52 0301333 1114 BL20 E 4IOL BL67 4IOL 6 7 IOL CALL FB102 in Step 7 PROFIBUS DP PROFINET 2 After this the read access has to be activated via a rising edge at REQ Figure 6 6 Activating the M Table Edit Insert PLC Variable View Options Window Help Bee oela 8 slee x 3 Se Sl fan process data raw i B 16 FF DB249 DBX 6 1 i State sensor 1 RD WR 1 O read 12 write parameter DB249 DBX 6 2 i State sensor 1 REQ H 0 21 start cal 7 i State sensor 1 DONE VALID i State sensor 1 BUSY 51 State sensor 1 ERROR i State sensor 17 0 i State sensor T CAP i State sensor 1 PORT u i State sensor 1 IOL INDEX W 16 0012 i State sensor 17 01 SUBINDEX 0 i State sensor 1 LEN 32 i State sensor 17 5 5 i State sensor 1 JOL STATUS i State sensor 1 RD LEN 3 Inthis example the result of this request can be seen in the process data table VAT Sensor 1 Figure 6 7 r Process data of Table Edit Insert PLC Variable View Options Window the sensor ozal i ox he a m le Sie a 0 A
72. ssible Possible causes Connected 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 device does not support the cycle time parameterized in the master Remedy Increase the cycle time set in the master NO SIO The device does not support the standard DI mode see parameter Mode page 4 5 Remedy Select the IO Link mode for this port NO PD No process data available The connected device is not ready for operation Remedy Check the configuration PDI E The connected device reports invalid process data in accordance with IO Link specification V1 0 The connected device reports invalid process data in accordance with IO Link specification V1 1 4 24 0301333 1114 BL20 E 4IOL BL67 41OL Functions for the acyclic communication via IO Link CALL Industri A Table 4 2 Diagnostic bit Meaning Meaning of the Extended Port Diagnostics MD Missing device No IO Link device detected Remedy Check the IO Link cable Change the device WD Wrong device detected one or more parameters of 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 parameter Mode page 4 5 Device Status
73. ssssssssssssssssssseseceeceeesessssissuttsesssssssssssesesesseeeees 1 4 start up IO Link V1 1 start up problems status displays T technical data 3 5 technical features 3 1 transport appropriate snerseessennmneerssssenssennnuersseerssnennnnsesssesssennnnnsensssenneennnuersn 1 4 troubleshooting s 8 4 U use prescribed 1 4 Ww WAMI GS wiring diagram 9 1 Industrial Automation www turck com Hans Turck GmbH amp Co KG 45472 M lheim an der Ruhr Germany Witzlebenstra e 7 Tel 49 0 208 4952 0 Fax 49 0 208 4952 264 E Mail more turck com Internet www turck com D301333 0914
74. tively DI channels at terminal 1 4 5 8 Status display for the XSG channels at terminal 5 8 Table 4 5 LED Color Status Meaning Remedy Meaning of the LEDs D DIA Red on Module bus communication dis Check if more than two ad turbed or and no field voltage joining electronics modules connected have been pulled This con cerns modules located between this module and the gateway Check the field supply flashing Module diagnostics pending see section Diagnostic data 0 5 Hz page 4 13 0 3 Channel in IO Link mode BL67 EE or resp Green off No IO Link communication connect an IO Link device 1 4 diagnostics deactivated parameterize the channel as DI BL20 if necessary flashing IO Link communication active valid process data Red on No IO Link communication and Possible causes or module error Sensor supply is below the invalid process data admissible range IO Link port is parameterized as simple digital input No device connected to the masters 0301333 1114 BL20 E 4lOL BL67 41OL 4 11 Function description Table 4 5 LED Color Status Meaning Remedy Meaning of the LEDs 0 3 Red flashing IO Link communication active No input data received from BL67 and module error the connected device only or resp invalid process data valid for devices with an input 1 4 data length 0 BL20 No reaction from the con nected device to the sendi
75. ttings or clear the data storage buffer using the parameter data storage mode Figure 8 2 Reset master to factory settings Eile Edit View Project Device Project E TCP 192 168 1 100 1P Ej 192 168 1 30 BL20 PG EN E F Modulbus 01 BL20 E AIOL o P IO Link 1 10 Link 2 IO Link 3 I0 Link 4 gt BL Service Ether 7 gt BL20 PG EN IP gt Modulbus IO Link 1 gt I0O Link 2 gt 10 Link 4 lt NONAME gt Administrator Start up steps 1 possibility 5 0 7 DG Ge lt amp Online paramete Name E _ ZZ RITILUIOO een U Tu Extras Window Help Dea d 2 RR Be 26 8 Bas boje3e E Value Global 8 Common Autom IO Link detection Factory settings 5 10 Link channel 1 5 10 Link port parameters Mode Data storage mode Cycle time Revision Activate Quick Start Up Diagnostic settings Process input data invalid Deactivate diagnostics Data mapping Process input data mapping Process input data length Process output data mapping Process output data length E Port configuration Autom IO Link detection selection selection selection e y ett 10 Link wit deactivated clear automatic automatic no diagnostic generated notifications and warnings swap 16 bit 2 byte swap 15 bit 2 byte selection OK Cance
76. universal digital channels are designed as XSG channels and can therefore be parameterized as in or output Properties 8 4 channel IO Link master according to IO Link specification V1 1 4universal digital channels PNP channel diagnostics 0 5 A 3 1 1 Module overview BL67 41OL Figure 3 1 BL67 41OL BL20 F 4IOL Figure 3 2 BL20 E 4 OL amp e 3 2 0301333 1114 BL20 E A4IOL BL67 4IOL General Industri A 3 1 2 Compatible gateways BL20 gateways Table 3 1 Fieldbus Product Ident no from Compatible BL20 FW version t HORIS PLC systems with PROFIBUS DP master PROFIBUS DP BL20 GW DPV1 6827234 V1 27 BL20 E GW DP 6827250 V1 27 Multiprotocol Ethernet gateway for PROFINET EtherNet IP or Modbus Ethernet BL20 E GW EN 6827239 V3 2 9 0 PROFINET EtherNet IP Modbus TCP BL20 CODESYS programmable gateways NOTE H For the programmable gateways the version of the Target Support Package always has to be observed in addition to the firmware version Table 3 2 Fieldbus Product Ident no from from Target Compatible pro FW version Support Pack grammableBL20 age gateways PLC systems with Modbus master or PC based solutions using a Modbus driver software Modbus TCP BL20 PG EN 6827249 V2 1 1 1 V2 1 3 0 PLC systems with EtherNet IP Scanner master EtherNet IP BL20 PG EN IP 6827248 V2 10 0 3 V2 1 3 0 0301333 11
77. us DWORDL jusiEntityPort USINT dwlIOL Status DWORDI juilOL Index UINT iRD Len INT jusilOL Subindex USINT pbyRecord IOL Data POINTER TO BYTE ilen INT D ONLINE Dv READ 0301333 1114 BL20 E A4IOL BL67 4IOL 7 5 IOL CALL in CODESYS 2 3 for programmable gateways 7 3 1 Example accesses with IOL CALL The assignment of the SPDU indices of IO Link devices can be found in the respective device documen tation Read access Reading out the product name product name index 0x12 of the TURCK IO Link I O hub TBIL M1 16DIP at IO Link port 1 1 Please write the function block s input variables as follows description see below Table 7 1 Variable Value Meaning Example input variables RD WR 0 Read access Slot 1 Position of the module in the BL20 BL67 station IndexCap 251 Function block instance EntityPort 4 The IO Link device is connected to port 4 Index 0x12 Index for product name LEN 32 0x20 32 byte are read out Length of the data to be read min length real length of the data max length length of the defined data buffer Figure 7 4 coDesys BL20 PG EN 4IOL pro PRG PRG ST ol Input variables for Eile Edit Project Insert Extras Online Window Help the read access aeu HOSTS Bec 35 7 6 x 16 0000 Call READ Deno xReq
78. xtract from the documentation for TURCK tem perature sensors Temperature sensors TS series IO Link Parameters Industri A Specific On Request Data Objects Parameter values Index 0x54 Displayed unit Value hexadezcimal Menu item Function 0x00 0x01 F T 0x02 k k 0x03 Ohm Ohm index 0x55 Measured value update time rotating disabling a display Value hexadecimal Menu item Function 0x00 50 50 ms measured value update time 0x01 200 200 ms measured value update time 0x02 600 600 ms measured value update time 0x03 r50 50 ms measured value update time display rotated by 180 0x04 r200 200 ms measured value update time display rotated by 180 0x05 r600 600 ms measured value update time display rotated by 180 0x06 OFF Display disabled Index 0x56 Behaviour of output 1 in the event of error Value hexadecimal Menu item Function 0x00 Foul Output off 0x01 Fou2 Output on 0301333 1114 BL20 E 4IOL BL67 4IOL Usage of the function block in CODESYS 2 3 1 Please write the function block s input variables as follows description see above Table 7 2 Variable Value Meaning Example input variables RD WR 1 Write access Slot 1 Position of the module in the BL20 BL67 station IndexCap 251 Function block instance EntityPort 1 The IO Link device is connected to port 1 IOL Index 0x55 Index for Measured value update time
79. xtras Window Help Dag 122 Be 5 e 09 0 8 2 2108 Bojeje dy Autom IO Link detection Factory settings 9 10 Link channel 1 S 10 Link port parameters Mode Data storage mode Cycle time Revision Activate Quick Start Up Diagnostic settings Process input data invalid Deactivate diagnostics amp Data mapping Process input data mapping Process input data length Process output data mapping Process output data length Port configuration Autom IO Link detection selection selection 10 Link without validation deactivated clear automatic automatic no diagnostic generated notifications and warnings swap 15 bit 2 byte swap 16 bit 2 byte selection Start up steps gt Deactivate the data storage mode for the respective IO Link port gt Download the parameters into the device all other parameters can be set to default settings gt Connect the IO Link V1 0 device LED IOL GREEN for the respective port IO Link communication is active 0301333 1114 BL20 E 4IOL BL67 4IOL Start up IO Link Device with IO Link V1 1 8 2 Start up IO Link Device with IO Link V1 1 In general the following applies 8 The data storage of the master should be cleared before a device with a different device type is con nected to an IO Link port which has already been used before To do so set the master backto factory se
80. yte Bit7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Device diagnostics Master diagnostics Channel 1 0 EVT HWerr res OC 1 Generr OLD OV UV OFLW UFLW OTemp Channel 2 243 Assignment similar to channel 1 Channel 3 4 5 Assignment similar to channel 1 Channel 4 6 7 Assignment similar to channel 1 Table 4 6 Bit Meaning Remedy Diagnostic data Master diagnostics OC overcurrent Overcurrent at the XSG channel if it is parameterized as output CFGerR Wrong or missing device The connected device does not match the Change the parameterization of the IO channel configuration or there is no Link port at the master device connected to the channel Correct the vendor ID device ID etc This diagnostic message depends on the The parameterization can be done by parameterization of the channel see teaching the master via lOL CALL using parameters page 4 5 the port function Subindex 67 Teach Mode or via a manual port parameteriza tion 0301333 1114 BL20 E 4IOL BL67 41OL 4 13 Function description Table 4 6 Bit Diagnostic data Remedy Data storage error DSerr Possible causes Data storage mismatch IO Link device in accordance with IO Link V1 0 connected Deactivate the data storage To do so set parameter Data storage mode to deactivated Clear see page 4 6 The data storage buffer contains data of another device Clear the data storag
Download Pdf Manuals
Related Search
Related Contents
Avaya Multimedia Call Center User's Manual Arat NS1241.3 holder Nissan 2010 Altima Automobile User Manual Brodit ProClip 854768 Operator`s Manual and Parts List Oilless, Single Stage, Direct Drive Copyright © All rights reserved.
Failed to retrieve file