device manual io-link master - ifm · 3 5 scale drawing ... the device is both profibus dpv1 slave...

41
Device manual IO-Link master AC2625 7390982 / 01 08 / 2013 UK

Upload: vomien

Post on 20-Feb-2019

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

Device manual IO-Link master

AC2625

7390

982

/ 01

08 /

2013

UK

Page 2: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

2

Contents1 Preliminary note � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 42 Safety instructions � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 53 Technical features� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 7

3�1 IO-Link � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 73�2 Technical data � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 73�3 Approvals and tests � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 103�4 Connections � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 10

3�4�1 Supply voltage � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 103�5 Scale drawing� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �113�6 Addressing � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 123�7 Process image � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 133�8 Status displays and diagnostic messages � � � � � � � � � � � � � � � � � � � � � � � � 143�9 Diagnostic messages / status messages via software � � � � � � � � � � � � � � � 16

3�9�1 Structure of the diagnostic message � � � � � � � � � � � � � � � � � � � � � � � � 163�10 IO-Link events � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 183�11 Error codes to PROFIBUS-DPV1 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 193�12 GSD file � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 20

3�12�1 Entries in the GSD file � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 203�13 Configuration in IO-Link mode � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 213�14 Configuration in SIO mode � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 223�15 Parameter setting � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 22

3�15�1 Parameters of the IOLMM (slot 1, IO-Link master module) � � � � � 233�15�2 Parameters of the IOLMMs (slot 1) � � � � � � � � � � � � � � � � � � � � � � � � 233�15�3 Parameters of slots 2 to 5, IO-Link device modules (IOLDM) � � � � 24

3�16 Generic IO-Link devices � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 243�17 Parameters of the generic IO-Link devices � � � � � � � � � � � � � � � � � � � � � � 253�18 Description of user data for acyclic services � � � � � � � � � � � � � � � � � � � � � 26

4 Connection to a Siemens S7 - use of an ifm example project � � � � � � � � � � � � � 274�1 Introductory Notes � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 27

4�1�1 Device master data (GSD)� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 274�2 Example application with Siemens PLC and FB 102 (IO-Link CALL) � � � 27

4�2�1 Example application – prerequisites � � � � � � � � � � � � � � � � � � � � � � � � 274�2�2 Hardware used� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 274�2�3 Software used � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 28

4�3 The example project� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 284�3�1 Hardware configuration � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 294�3�2 Configuration of the IOLMMs (IO-Link master module) � � � � � � � � � � 304�3�3 Configuration of the IO-Link ports � � � � � � � � � � � � � � � � � � � � � � � � � � 314�3�4 Example for the parameterisation of a generic sensor � � � � � � � � � � 344�3�5 Using the function block� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 364�3�6 Example accesses with IOL_CALL � � � � � � � � � � � � � � � � � � � � � � � � � 37

Page 3: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

3

This document is the original instructions�

Page 4: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

4

1 Preliminary noteThis document applies to devices of the "Field modules DP" (art� no: AC2625)� These instructions are part of the device�This document is intended for specialists� These specialists are people who are qualified by their appropriate training and their experience to see risks and to avoid possible hazards that may be caused during operation or maintenance of the device� The document contains information about the correct handling of the device�Read this document before use to familiarise yourself with operating conditions, installation and operation� Keep this document during the entire duration of use of the device�Adhere to the safety instructions�Symbols► Instructions> Reaction, result[…] Designation of keys, buttons or indications→ Cross-reference

Important note Non-compliance can result in malfunction or interference�Information Supplementary note

Warning signs used

WARNINGWarning of serious personal injury� Death or serious irreversible injuries may result�

CAUTION Warning of personal injury� Slight reversible injuries may result�

NOTE Warning of damage to property�

Page 5: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

5

2 Safety instructionsThese instructions contain texts and figures concerning the correct handling of the device and must be read before installation or use�Observe the operating instructions� Non-observance of the instructions, operation which is not in accordance with use as prescribed below, wrong installation or incorrect handling can seriously affect the safety of operators and machinery�

► Prepare installation ► Disconnect the power supply of the device� ► Ensure that devices cannot be accidentally restarted� ► Verify safe isolation from the supply� ► Earth and short circuit� ► Cover or enclose adjacent units that are live� ► Follow the specific mounting instructions of the device� ► Only suitably qualified personnel in accordance with EN 50 110-1/-2 (VDC 0105 part 100) is permitted to work on this device/system�

► Before installation and before touching the device ensure that you are free of electrostatic charge�

► The functional earth (FE) must be connected to the protective earth (PE) or to the potential equalisation� The system installer is responsible for implementing this connection�

► Connecting cables and signal lines must be installed in such a manner that inductive or capacitive interference do not impair the automatic functions�

► Install automation equipment and related operating elements in such a way that they are protected against unintentional operation�

► Suitable safety hardware and software measures should be implemented for the I/O interface so that a line or wire breakage on the signal side does not result in undefined states in the automation device�

► Ensure a reliable electrical isolation of the low voltage for the 24 V supply� Only use power supplies compliant with IEC 60 364-4-41 or HD 384�4�41 S2 (VDE 0100 part 410)�

► Fluctuations or deviations of the mains voltage from the rated value must not exceed the tolerance limits specified in the technical data; otherwise this may cause malfunction and dangerous operation�

► E-stop devices to IEC/EN 60 204-1 must be effective in all operating modes of the automation device� Unlatching the e-stop devices must not cause restart�

Page 6: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

6

► Devices that are designed for mounting in housings or control cabinets must only be operated and controlled after they have been installed with the housing closed� Desktop or portable units must only be operated and controlled in enclosed housings�

► Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or failure� This should not cause dangerous operating states even for a short time� If necessary, an emergency stop must be carried out�

► Wherever faults in the automation system may cause personal injuries or damage to property, external measures must be implemented to ensure a safe operating state in the event of a fault or malfunction (e�g� by means of separate limit switches, mechanical interlocks etc�)

► The electrical installation must be carried out in accordance with the relevant regulations (e�g� with regard to cable cross-sections, fuses, PE)�

► All work relating to transport, installation, commissioning and maintenance must only be carried out by qualified personnel� (IEC 60 364 or HD 384 or DIN VDE 0100 and national work safety regulations have to be observed)�

► All shrouds and doors must be kept closed during operation�

Page 7: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

7

3 Technical features3.1 IO-LinkThe device is a modular PROFIBUS-DPV1 slave for the connection to a maximum of 4 IO-Link sensors based on physics 2 (3-wire technology)� The device is both PROFIBUS DPV1 slave and IO-Link master at the same time� The four C/Q channels (pin 4) can be parameterised independently and operated in either the IO-Link mode (IOL) or in the standard IO mode (SIO)� In the PLC's hardware configuration the device is treated as a virtual modular slave with 5 modules� Slot 1 represents the IO-Link master module (IOLMM) and slots 2 to 5 represent the I/O-Link devices�Parameterisation can optionally be done over GSD (per DP master class) or per FDT/DTM (per DP master class 2), see Chapter 4� Besides the described IO-Link functionality, the module offers additionally four digital pnp inputs at pin 2 of the individual M12 sockets�

3.2 Technical data

Power supply

UB nominal value (range) 24 V DC (21�6 to 28�4 VDC)

IB max� 200 mA

UL 24 V DC (21�6 to 28�4 VDC) Not required, only monitored for a possible transmission�

Physical interface

● Fieldbus

PROFIBUS-DP 9�6 kBit/s to 12 MBit/sPotential isolation between fieldbus and operating voltage

Addressing fieldbus 1 - 100 via dec� rotary coding switches (00 = addr� 100)

Fieldbus connection technology 2 × M12

Fieldbus shield connection via PROFIBUS-DP cable

● Inputs Pin 4 in SIO mode and pin 2

Number of channels 4 (8) digital pnp inputs (EN 61131-2)

Input voltage 21�6���28�4 VDC from operating voltage

Page 8: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

8

Signal voltage low level -3 to 5 VDC (EN 61131-2, type 2)

Signal voltage high level 11 to 30 VDC (EN 61131-2, type 2)

Max� input current 6 mA

● Inputs (IO-Link mode) pin 4

Parameterisation (supports IO-Link specification V1�0)

GSD, function block and FDT/DTM

Synchronisation Port-spanning synchronisation possible

Diagnostics Mapping of IO-Link diagnostics to DP diagnostics

Supported devices Max� 32 byte input / 32 byte output

Frame type Supports all specified frame types

Transmission rate 4�8 kBaud (COM 1) / 38�4 kBaud (COM 2)

Physical transmission layer Corresponds to 3-wire physics (PHY2)

Communication modes SDPU over function block and FDT/DTM

Communication Supports IO-Link specification V1�0

● Sensor supply

RON (input resistance) 190 mΩ

IA (output current) 0�5 A

IAMAX 0�6 A, to IEC 6 11 31-2

● Isolating voltages

UTDP (PROFIBUS/ supply) 1000 V DC

UTIOLDP (PROFIBUS/ IO-Link port) 1000 V DC

UTIIOL (IO-Link port/ IO-Link port) 0 V DC

UTIOL (IO-Link port/ supply) 0 V DC

Ambient temperature 0 to +55 °C

Storage temperature - 25 to +70 °C

Relative humidity to EN 61131-2/EN 50178

5 to 95 % (indoor), no condensation permissible (storage at 45 °C, no function test)

Page 9: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

9

Climatic tests to IEC 61131-2

Corrosive gas SO2: 10 ppm (rel� humidity < 75 %, no condensation) H2S: 1�0 ppm (rel� humidity < 75 %, no condensation)

● Vibration resistance

10 to 57 Hz, constant amplitude 0�075 mm, 1 g

Yes

57 to 150 Hz, constant acceleration 1 g

Yes

Vibration mode Frequency cycles with a change rate of 1 octave/min

Duration of the frequency cycles 20 frequency cycles per coordinate axis

● Shock resistance to IEC 68-2-27 18 shocks, semi-sinusoidal 15 g threshold/11 ms, each in ± direction per space coordinate

● Continuous shock resistance to IEC 68-2-29

1000 shocks, semi-sinusoidal 25 g threshold/6 ms, each in ± direction per space coordinate

● Drop and topple

Drop height (weight <10 kg) 1�0 m

Drop height (weight 10 to 40 kg) 0�5 m

Test cycles 7 (device with packaging, electrically tested PCBs)

● Electromagnetic compatibility (EMC) to EN 50082-2 (industry) – Static electricity to EN 61000-4-2

Discharge through air (direct) 8 kV

Relay discharge (indirect) 4 kV

● Electromagnetic HF fields to EN 61000-4-3 and ENV 50 204

10 V/m

● Conducted interferences, induced by HF fields to EN 61000-4-6

10 V

● Fast transients (burst) to EN 61000-4-4

● Emitted interference to EN 50081-2 (industry)

to EN 55011 class A, group 1

Material PA6 (polyamide), potting compound: polyurethane

Page 10: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

10

Installation 2 x mounting holes 3 mm

Contacts CuZn, gold-plated

This device can cause radio disturbances in residential areas and in small industrial areas (residential, business and trading)� In this case the operator is requested to take appropriate measures at his own cost�

3.3 Approvals and tests

Approvals

CE, cULus

Tests (EN 61131-2)

Cold DIN IEC 68-2-1, temperature -25 °C, duration 96 h; device not in use

Dry heat DIN IEC 68-2-2, temperature -85 °C, duration 96 h; device not in use

Damp heat, cyclic DIN IEC 68-2-30, temperature +55 °C, duration 2 cycles of 12 h each; device in use

Degree of soiling to IEC 664 (EN 61 131)

2

Degree of protection to IEC 529 IP67

3.4 ConnectionsFieldbus connection (PROFIBUS-DP connection) The connection to PROFIBUS-DP is made using two M12 connectors�

4

2 1

35

1: 5 V DC2: BUS-A3: GND4: BUS-B5: not connected

3

1 2

45

1: 5 V DC2: BUS-A3: GND4: BUS-B5: not connected

M12 connector for PROFIBUS connection

3.4.1 Supply voltageThe supply voltage is connected via 4-pole M8 connectors on each module� Operating voltage UB

The 24 V DC operating voltage UB is used to supply the fieldbus (termination), the processor logic, the IO-Link ports as well as the sensors� The operating voltage is electrically isolated from the fieldbus (ASIC)�

Page 11: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

11

Load voltage UL

The load voltage UL is not used in the module, but only monitored and provided for possible transmission�

��

��

1: 24 V DC UB

2: 24 V DC UL

3: GND4: GND

��

��

1: 24 V DC UB

2: 24 V DC UL

3: GND4: GND

Pin connection M8 plug and M8 socket

3.5 Scale drawing

210

203

3023

31,5

21,3

22,6

M12x1

M12x1

M8x1

M12x1

36,520

26,533

3,5

3,5

Page 12: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

12

M12 connector for IO-LinkThe connection of max� 4 IO-Link sensors is made via pin 4 of the 4 M12 sockets on the device� Pin 2 of each socket can be used to connect simple pnp inputs� In case of more complex sensors, pin 2 can, for example, be used as an input for a sensor switch point�

� �

1: 24 V DC2: Input3: GND4: C/Q (IO-Link)5: not connected

Pin connection of the M12 sockets:

3.6 AddressingAddressing of the IO-Link master on PROFIBUS-DP is done via 2 decimal rotary coding switches�Max� 99 addresses (01 to 100) can be assigned; switch position 01 corresponds to address [1], switch position 00 to address [100]�

01 = address 100 = address 100

Rotary coding switches for addressing

Each address may be assigned only once in the entire bus structure� After addressing, the cover of the rotary coding switches must be closed by tightening the screw� Make sure that the seal in the cover is not damaged or slipped� Protection rating IP67 can only be ensured when the cover is closed correctly�

Page 13: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

13

3.7 Process imageThe device supplies 2 byte process input data; it does not use process output data�Process input data

Bytes Bit Name default Description

0 0 DI channel 0 (port 1) 0 Status pin 4 of port 1, if in SIO mode

1 DI channel 1 (port 1) 0 Status pin 2 of port 1

2 DI channel 2 (port 2) 0 Status pin 4 of port 2, if in SIO mode

3 DI channel 3 (port 2) 0 Status pin 2 of port 2

4 DI channel 4 (port 3) 0 Status pin 4 of port 3, if in SIO mode

5 DI channel 5 (port 3) 0 Status pin 2 of port 3

6 DI channel 6 (port 4) 0 Status pin 4 of port 4, if in SIO mode

7 DI channel 7 (port 4) 0 Status pin 2 of port 4

1 0 PD valid channel 0 (port 1) 0 Process data (PD) valid at [1]

1 PD valid channel 1 (port 1) 0 Process data (PD) valid at [1]

2 PD valid channel 2 (port 2) 0 Process data (PD) valid at [1]

3 PD valid channel 3 (port 2) 0 Process data (PD) valid at [1]

4 PD valid channel 4 (port 3) 0 Process data (PD) valid at [1]

5 PD valid channel 5 (port 3) 0 Process data (PD) valid at [1]

6 PD valid channel 6 (port 4) 0 Process data (PD) valid at [1]

7 PD valid channel 7 (port 4) 0 Process data (PD) valid at [1]

Page 14: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

14

3.8 Status displays and diagnostic messagesStatus displays via LEDsThe module provides the following LEDs for status display:PROFIBUS DP (not labelled; beneath the cover for the address switches): 2 LEDs (left RED, right GREEN) displaying the status of the PROFIBUS communication�RUN and ERR Display of operating state and hardware or firmware errors�UB and UL

Monitoring of operation and load voltage�Channel LEDs 0, 2, 4, 6 : status display for the IO-Link ports (pin 4 of the M12 sockets) 1, 3, 5, 7: status display for the digital inputs (pin 2 of the M12 sockets)Meaning of the LEDs

LED Status Description Corrective measures

DP 2 LEDs

green, ONRed, OFF

Device is in Data Exchange

green, ONRed, ON

Baud rate detected; device is wai-ting for parameters (WAIT_PRM) or for configuration (WAIT_CFG)�

False parameterisation and/or configuration of the device�The device possibly has to be configured in the hardware configuration�

Green, 4 HzRed, 4 Hz

Hardware errors: no control of any other LED

The device has to be replaced� Please contact your ifm contact�

Green, OFFRed, ON

No PROFIBUS found, no baud rate detected

Check the physical properties of the PROFIBUS (connection, terminating resistance, etc�)�

ERR OFF No extended diagnostics active

-

Red, flashing 0�5 Hz

Extended diagnostics active Flashes in case of a channel error together with the respective channel LEDs

Red, flashing, 4 Hz

Hardware error The device has to be replaced� Please contact your ifm contact�

Page 15: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

15

LED Status Description Corrective measures

RUN ON Device ready for operation -

OFF Firmware error The watchdog function of the device initialises a reset (undefined flashing possible)� If the error remains, the unit has to be replaced� Please contact your ifm contact�

UB ON Operating voltage ok -

OFF Operating voltage below defined tolerances

Check the voltage supply at the device or at the used power supply�

4 Hz Operating voltage above defined tolerances

UL ON Load voltage ok -

OFF Load voltage below defined tolerances

UL is not used in the device� It is only provided for a possible transmission� Check the voltage supply at the device or at the used power supply�4 Hz Load voltage above defined

tolerances

LEDs 0, 2, 4, 6

OFF Port in SIO mode, but no input signal on pin 4

-

Green IO-Link mode, no error -

Green, flashing, 0�5 Hz andERR Red, flashing 0� 5 Hz

Diagnostic message at port:Port in SIO mode:no supply or overload at port Port in IO-Link mode: no supply or overload at portwire break, parameter error or error at the connected device

Yellow Port in SIO mode: active input signal at pin 4

LEDs1,3,5,7

OFF Pin 2: no input signal

Yellow Pin 2: active input signal

Page 16: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

16

3.9 Diagnostic messages / status messages via softwareThe diagnostic message of the IO-Link master AC2625 contains the following types of diagnostics:

Length Note

DP standard diagnosis 5 byte

Channel-specific diagnosis 3 byte Contains the standard PROFIBUS-DP error codes (see table 5) per channel which sends diagnostics� If multiple channels send a channel-specific diagnosis, 3 bytes are sent successively for each channel�

Device-specific diagnosis, IOLMM diagnosis

5 byte Diagnostics which affect the entire module (undervoltage, overvoltage), but which are displayed at the IOLMM (slot 1)�

Device-specific diagnosis, event diagnosis, see also [IO-Link events]

8 byte Event messages from the IO-Link devices at ports 1 to 4 per channel�If multiple devices send a device-specific dia-gnosis, 8 bytes are sent successively for each IO-Link device�

3.9.1 Structure of the diagnostic message

DP standard diagnosis

Byte 0

������

Byte 5

Channel-specific diagnosis

Byte 0 Header 0×80

Byte 1 Channel 0xC0 + IO-Link port Number of the IO-Link channel which sends a diagnosis

Byte 2 Type DP Error Code (see table 5)

Device-specific diagnosis, IOLMM diagnosis

byte 0 Header 0×05 Length of the diagnosis

Byte 1 Type 0A0 Vendor specific

Page 17: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

17

Byte 2 Slot 0x01 Slot of the IO-Link master (IOLMM)

Byte 3 Specifier 0×00

Byte 4 Data_Byte0 Diagnostic message bit 0: UB_TOO_LOWbit 1: UB_TOO_HIGHbit 2: UL_TOO_LOWbit 3: UL_TOO_HIGHbits 4���7: reserved

Device-specific diagnosis, event diagnosis

Byte 0 Header 0x08 Length

Byte 1 Type 0x81 Status message

Byte 2 Slot 0x01 Slot of the IO-Link master (IOLMM)

Byte 3 Specifier 0×00

Byte 4 Data_Byte0 IOL_EventQualifier Events to IO-Link specification see [IO-Link events]

Byte 5 Data_Byte1 IOL_ChannelNumber

Byte 6 Data_Byte2 IOL_EventCodeLow

Byte 7 Data_Byte3 IOL_EventCodeHigh

Page 18: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

18

3.10 IO-Link eventsThe ifm IO-Link master interprets IO-Link event diagnostics sent by the IO-Link device and displays them as a plaintext diagnostic message in the PLC software�

Example for the interpretation of the IO-Link events

Page 19: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

19

3.11 Error codes to PROFIBUS-DPV1The following channel-specific error codes to PROFIBUS-DP are generated by the IO-Link master AC2625:

Value (dec.) Diagnosis Meaning in IO-Link

Error codes (1 to 9 to norm)

2 Undervoltage Undervoltage at the sensor

4 Overload Overload at the output

5 Excess temperature

6 Wire break Port configuration of the master does not match the connected IO-Link deviceIdentification (vendor, device ID) of the IO-Link device failedNo IO-Link device connected

7 Upper limit value exceeded

8 Below lower limit value

9 Error

Page 20: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

20

3.12 GSD fileThe current GSD file of the IO-Link master [ifm_0E4D�gsd] can be downloaded from our homepage www�ifm�com� With the GSD file, IO-Link sensors can be integrated directly into the system and can be parameterised� Unknown sensors, e�g� from third-party vendors, are integrated as generic IO-Link devices�

Chapter 4 of this manual contains more detailed information on the configuration of the IO-Link master and the connected sensors in a Siemens PLC�

3.12.1 Entries in the GSD fileThe GSD file shows the IO-Link master as a modular slave with max� 5 modules� Module/slot 1 is always the IO-Link module (IOLMM = IO-Link master module)� Slots 2 to 5 can be configured freely and can be used as either IO-Link port (IOL) for the connection of IO-Link sensors or as standard IO port (SIO) for the connection of simple digital sensors�

IO-Link master in the GSD fileA = entries for the IO-Link devicesB = entries for the use of ports in SIO mode

Page 21: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

21

3.13 Configuration in IO-Link modeIO-Link devices can be configured as generic sensors (Generic In x byte / Generic Out x byte) according to their process data width� The entry to be selected from the GSD file has to be greater than or equal to the exact process data width of the device used�

Information about the process data width for devices from third-party vendors can be found in the documentation included with the devices�

Example configuration with sensors in IO-Link modeA = third-party sensor as generic sensor in IO-Link mode

Page 22: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

22

3.14 Configuration in SIO modeIO-Link devices can also be configured as generic sensors in SIO mode� The port has to be configured as [Generic 0 byte (SIO mode)]�

If the sensors are operated in SIO mode on slots 2 to 5, their user data are mapped into byte 0 (pin 4) of the IO-Link master (see chapter Process image)�

Example configuration with sensors in SIO modeA = third-party sensor as generic sensor in SIO mode

3.15 Parameter settingIn the configuration software, the IO-Link master is shown as modular slave with an IO-Link master module (IOLMM) at slot 1 and four IO-Link devices at slots 2 to 5� Depending on the connected sensor and the requested function of the slot, the IO-Link devices are either defined as generic IO-Link devices (e�g� sensors from third-party vendors) or as SIO (Standard Input/Output) or from the device list�

Page 23: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

23

3.15.1 Parameters of the IOLMM (slot 1, IO-Link master module) The parameters of the IO-Link master modules (slot 1) control the communication of the entire unit including all connected devices�

The texts in the columns [Parameter name] and [Value/meaning] correspond to those determined in the GSD file�

3.15.2 Parameters of the IOLMMs (slot 1)A = default setting

Parameter name Value/meaning

GSD parameterisation 0 = inactive AThe IO-Link master will not accept parameterisation via GSD file� Only parameterisation via a class 2 master will be accepted�

1 = active The parameterisation of the IO-Link master and the connected devices is done by the PLC (class 1 master)� Any possible parameterisation via class 2 master will be overwritten by the class 1 master�

Single shot event display time The time a single shot event from an IO-Link device will be shown on PROFIBUS�

00 = 5 sec� A

01 = 30 sec�

10 = 5 min�

11 = 15 min�

Port x: cycle mode 00 = free running AThe IO-Link master calculates the fastest possible IO-Link cycle�

01 = synchronousThe cycle time is defined per port through the parameter [Port x: cycle time]�All IO-Link devices at the ports with the same cycle time start synchronously�

10 = fixed value The IO-Link cycle is fixed; the cycle time on which this value is based is set in parameter [Port x: cycle time] (see below)�

Page 24: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

24

Parameter name Value/meaning

Port x: cycle time Setting the IO-Link cycle time at the respective port� Only applies when the parameter [Cycle mode] (see above) is set to [fixed value] or [synchronous]�Steps 0�1 ms: 0000 1111 = 1�5 ms to 0011 1111 = 6�3 msSteps 0�4 ms: 0010 0000 = 6�4 ms to 0111 1111 = 31�6 msSteps 1�6 ms: 1000 0000 = 32�0 ms to 1011 1111 = 132�8 ms

3.15.3 Parameters of slots 2 to 5, IO-Link device modules (IOLDM) The parameters of the IO-Link device modules (slots 2 to 5) always depend on the connected IO-Link device�

3.16 Generic IO-Link devicesSensors which are not part of the IO-Link master's GSD file (e�g� sensors from third-party vendors) are treated as generic IO-Link devices� Please observe that the data width selected in the hardware configurator has to be ≥ the process data width of the connected device� → Chapter 4, Configuration of the IO-Link ports�

Page 25: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

25

3.17 Parameters of the generic IO-Link devicesA = default setting

Parameter name Value/meaning

Identification 00 = any device AThe data width of the connected sensor has to match the data width of the configured one� In addition, the cycle time for the cycle modes [fixed value] and [synchronous] has to be greater than or equal to the minimum cycle time of the device�

10 = same device typeThe connected sensor has to be the same as the configured one� Vendor and device ID have to match�

Vendor 0 A to 32767Enter the vendor ID for the connected sensor

Device ID 1to Device ID 3

0 A to 255Enter the device ID of the connected sensorID 3 is the lowest value�

The following parameters describe the IO-Link index 1 (subindex 1 to 12) which in general has to be supported by all IO-Link devices� If this index is used for parameterisation of the sensors or not depends on the respective sensor� For the meaning of the subindices refer to the documentation of the respective sensor�

Parameterisation IO-Link index 1 Defines whether (and if yes, which) parameter settings from [parameter in subindex 1] to [parameter in subindex 12] can be downloaded to the connected device�0000 = inactive A0001 = write subindex 10010 = write subindex 1 to 2��� 1100 = write subindex 1 to 12

Parameter in subindex 1���Parameter in subindex 12

Parameter settings for the subindices of the sensor

Page 26: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

26

3.18 Description of user data for acyclic servicesThe following instances are defined for the IO-Link master module AC2625:Gateway Application Instance (slot 0)Module Application Instance (slot 1)

Index IM_indexFI_INDEX

Note

255 65000 Identification & Maintaining services, I&M0 to PROFIBUS-DP

Module Application Instance, slot 1

Index IM_indexFI_INDEX

Note

255 65099 IOL-M directory, to IO-Link integration part 1: PROFIBUS and PROFINET

255 65098 Client Access Point (CAP) for IOL_CALL via Profibus C2 connectionto IO-Link integration part 1: PROFIBUS and PROFINET, e�g� for parameterisation with DTM/FDT

254 65098 Client Access Point (CAP) for IOL_CALL via Profibus C1 connection to IO-Link integration part 1: PROFIBUS and PROFINET, e�g� IOL_CALL function block253 65098

252 65098

251 65098

Page 27: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

27

4 Connection to a Siemens S7 - use of an ifm example project4.1 Introductory NotesThis chapter describes the connection of the IO-Link master to a Siemens PLC S7 (C1 master), the parameterisation of the IO-Link master and the connected IO-Link devices per GSD as well as a description of the IO-Link function block [IO-Link CALL] for the S7�

The device can only be used as PROFIBUS-DP slave� The module has no DP master function�

All vendors of control systems offer master modules for their PLCs� The device can easily be connected to these PROFIBUS compliant master modules� In addition, it is possible to use a PC as a master if it has an appropriate PC PROFIBUS card�For detailed information on the individual control systems and automation devices, please refer to the respective manuals supplied by the vendors�

Master modules and PC cards have to comply with the standard for PROFIBUS-DP DIN 19245 part 3�

The designations used in this manual for programmable logic controllers and software programs are registered and protected trademarks belonging to the respective vendor�

4.1.1 Device master data (GSD)The device is integrated into the PROFIBUS-DP structure using the device master data�

The current version of the GSD file [ifm_0E4D�gsd] can be downloaded from the ifm website www�ifm�com� It is also possible to download files for update from the homepage of the PROFIBUS user organisation (www�profibus�com)�

4.2 Example application with Siemens PLC and FB 102 (IO-Link CALL)

4.2.1 Example application – prerequisites

4.2.2 Hardware usedSiemens S7, CPU 315-2EH14-0AB0ifm IO-Link master AC2625, address 40IO-Link port 1 (slot 2): ifm pressure sensor, PI2793IO-Link port 2 (slot 3): not usedIO-Link port 3 (slot 4): Siemens ultrasonic sensor, 6GR6333-3KS00IO-Link port 4 (slot 5): not used

Page 28: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

28

4.2.3 Software usedSIMATIC Manager, step 7, version 5�5, SP2Example project [New] in archive IOL_ifm_jjjj�mm�tt�zip, incl� function block IO-Link CALL (ifm FB 102)�

4.3 The example projectThe project [IOL-ifm] describes the use of the function block IO-Link CALL (ifm FB102) for SPDU communication in IO-Link by means of a simple example�Besides the FB102, various data blocks, user defined data types (UDTs) and Siemens system functions or system function blocks are used in the example project� They are all necessary for the operation of the example project� Their exact function will not be described here�

ifm example projectThe variable tables [HMI], [PDIOLMM], [Sensor19 etc� are, above all, used for handling the function block and for visualising program sequences and process data�

For more detailed information about Siemens SFCs and SFBs as well as about the use of DBs and UDTs, please refer to the online help for the SIMATIC software�

Opening the example projectRetrieve the archive IOL_ifm_jjjj.mm.tt.zip in the SIMATIC Manager using [File] → [Retrieve] and open the example project [IOL-ifm]�

Page 29: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

29

4.3.1 Hardware configurationThe hardware configuration used in the example has to be adapted by each user to his own hardware configuration� In the following description this adaptation is also done according to the hardware configuration mentioned above�

Open the hardware configurator [HW Config] and adapt the configured CPU to the current configuration� In this example a CPU 315-2EH14-0AB0 is used�Double click on the symbol of the AC2625 to open the [Properties DP slave] dialogue box� Use the button [PROFIBUS] under [Node/Master System] to open the dialogue [Properties - PROFIBUS interface AC2625]� In the register tab [Parameters] the node address for the IO-Link master is adapted (in this example address 40)�

Setting the PROFIBUS address

The input and output addresses of the IO-Link master module IOLMM (slot 1) and of the 4 IO-Link ports (slots 2 to 5) also have to be adapted to the application�

Page 30: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

30

4.3.2 Configuration of the IOLMMs (IO-Link master module)Slot 1 of the modular slave contains the IO-Link master module (IOLMM)� The IOLMM is the gateway between IO-Link and PROFIBUS-DP� It prepares the IO-Link data of the IO-Link ports for further processing on PROFIBUS�Parameterisation of the IOLMMThe parameters of the IO-Link master modules (slot 1) control the communication of the entire unit including all connected devices� The parameters of slot 1 (IOLMM) have to be adapted to the application; see also Chapter 3 "Parameterisation", pages 22-24�

Make sure that the parameter [GSD parameterization] is set to active� Otherwise the following parameterisation via GSD done in the hardware configurator will be ignored!

GSD parameterisation

Page 31: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

31

4.3.3 Configuration of the IO-Link ports The 4 ports of the IO-Link master (slot 2 to slot 5) can be operated either in IO-Link mode or in SIO mode (see also [GSD file])�The determining factor for the function mode of the ports is their configuration�IO-Link modeIf the port is to be used in the IO-Link mode, a sensor with a process data width > 0 is selected from the hardware catalogue� IO-Link sensors from ifm [ifm … (IOL mode)] are described in the GSD file of the IO-Link master and can easily be parameterised via GSD parameters� Sensors from third-party vendors are represented as generic IO-Link devices with a maximum number of 32 byte input and/or output data�

The selected generic device has to have a process data width ≥ the process data width of the connected sensor�

For the meaning of the parameters (IO-Link, index 1, subindex x), please refer to the documentation of the respective sensor� SIO modeIf the port is to be operated in the SIO mode, select devices from the hardware catalogue with 0 byte process data [ifm … (SIO mode) or Generic 0 byte (SIO mode)]�Configuration of the IO-Link ports in this exampleAn ifm pressure sensor which is to be operated in the IO-Link mode is connected to IO-Link port 1 (slot 2)� The default entry [Generic In 8 Byte] at slot 2 is therefore replaced by the sensor ifm PI2793 (IOL-mode) from the hardware catalogue�

Page 32: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

32

Parameterisation of the ifm sensor The ifm sensor is parameterised depending on the application as shown for example in the following figure: [Parameterisation via GSD]� A description of the sensor parameters can be found in the documentation of the respective sensor on www�ifm�com�

Parameterisation via GSD

Page 33: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

33

A Siemens ultrasonic sensor PXS310C M18 IO-Link (6GR6333-3KS00) which is also to be operated in the IO-Link mode is connected to IO-Link port 3 (slot 4)� The sensor is not described in the GSD file of the ifm IO-Link master and can therefore only be inserted as generic sensor (see [Configuration of the IO-Link ports])� According to the vendor Siemens it has 2 byte of process data� The default entry [Generic In 8 Byte] at slot 4 is therefore replaced by the entry [Generic In 2 Byte] from the hardware catalogue�

Hardware configuration with generic sensor

Page 34: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

34

4.3.4 Example for the parameterisation of a generic sensorThe parameterisation of a generic sensor via the hardware configurator is only possible when the sensor provides parameters which can be set in IO-Link index 1�According to the vendor documentation, the Siemens sensor used in this project provides the following parameters in IO-Link index 1�Extract from the documentation of the used Siemens sensor

To change the [measuring range near] from 110 mm to 500 mm, the following value has to be written to index 1, subindices 7 + 8:500 mm = 0000 0001 1111 0100 = 0×01F4

– MSB subindex 7 = 0×01 = 1 – LSB subindex 8 = 0×F4 = 244

Whether (and if yes, which) parameter bytes are really written depends on the setting of the parameter [Parameterization IO-Link Index 1]� In this case, the option [Write Subindex 1 to 8] has to be selected�

While writing the parameters, all selected subindices are overwritten; this means that all subindices (in this example 1 to 8) have to contain the requested parameter values in order not to be overwritten by [0]�

Page 35: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

35

Writing the parameter indices

IO-Link ports which might not be used can be configured as [unused port] or as [Generic 0 Byte (SIO mode)]�

Page 36: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

36

4.3.5 Using the function blockThe IO-Link function block IOL_CALL is specified in the IO-Link specification� The ifm FB102 only differs from the specification in some variable names (the variable names to specification are written in brackets behind those of the example project�)�Input variables

DO_IT (REQ) BOOL A rising edge activates the send command�

ID WORD Start address of the input data of the IO-Link master module (slot 1)� In the example program address 0

Index_CAP INT Specification of the function block instance: 251 to 254

RD_WR BOOL 0 = read access1 = write access

PORT (ENTITY_PORT)

INT Address of the IO-Link port which is to be accessed

IOL_INDEX INT Specification of the number of the IO-Link index which has to be read or written�

IOL_SUBINDEX INT Specification of a possible subindex�

LEN _WRITE Specification of the length of the data to be written

LEN_ READ_MAX Maximum number of data to be read during a read access�

Output variables

DONE_VALID BOOL Read or write access has been executed

BUSY BOOL Read or write access in progress

ERROR BOOL Error occurred during read or write access�

STATUS DWORD PROFIBUS DPV1 error messages (to PROFIBUS DP specification) showing errors in the acyclic communication� Busy = 0xFFFFFFFF

IOL_STAUTS DWORD IO-Link error messages (to IO-Link specification) concerning the communication between IO-Link master and connected devices�

LEN_READ INT Length of read data�

Page 37: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

37

4.3.6 Example accesses with IOL_CALLIn this example, the variable table [HMI] helps to visualise the procedure of the read and write access via IOL_CALL� The process data of the sensors are shown in the variable tables [Sensor 1] or [Sensor 2], the process data of the IO-Link master in [PD IOLMM]�Please refer to the sensor documentation for the assignment of the SPDU indices�Read accessReading out the vendor name (vendor name, index 0x10) from ifm pressure sensor PI2793 at IO-Link port 1�Write the input variables of the function block as follows using [Modify variable] (description see above):

READ0_WRITE1 0

ID addr� 0

Index_CAP 251

PORT (ENTITY_PORT) 1

IOL_INDEX 102

LEN_READ 2

Input variables for read access

Page 38: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

38

Next, activate read access using a rising edge at [DO_IT]�

Activating read access

The vendor name can now be seen in variable table [Sensor 1]�

Read data in [Sensor 1]

Page 39: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

39

Write accessChanging the parameter [Measured value update time / turn / deactivate the display] (index 102) to the value 66 (50 ms measured value update time, display turned by 180°) of ifm pressure sensor PI2793 at IO-Link port 1�Write the input variables of the function block using [Modify variable] as follows (description see above):

READ0_WRITE1 1

ID addr� 0

Index_CAP 251

PORT (ENTITY_PORT) 1

IOL_INDEX 102

LEN_READ 2

Input variables for write access

Page 40: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

IO-Link master

40

The value to be written (66) is entered in the variable table, Colum [Modify value] and then written to the module via [Modify variable]�

Value for index 90

Next, the write access has to be activated using a rising edge at [DO_IT]�

Activating write access

The display of the sensor should now be turned by 180°

Page 41: Device manual IO-Link master - ifm · 3 5 Scale drawing ... The device is both PROFIBUS DPV1 slave and IO-Link master at the same

UK

IO-Link master

41