6 Commissioning
| “IO_LINK_CALL” function block
38
2547720000/03/09.2019
Manual Communication module UR20-4COM-IO-LINK
Reading out the event queue
You can read out events from the event queue.
Read out event queue: Request
Data object
Length
[bytes] Description
Example
Length
1)
1
Total length in bytes (0x05)
0x05
Slot
1)
1
Slot coupler (0x00)
0x00
Ext. Function Number
2)
1
0x08 (fixed)
0x08
Port
1
0x00
0x00
FI index
2
65101 (0xF34D)
0xF34D
1) Not for PROFIBUS and PROFINET
2) Not for PROFIBUS and PROFINET
Read out event queue: Response
Data object
Length
[bytes] Description
Example
Length
1)
1
Total length in bytes (0x0F)
0x0F
Slot
1)
1
Slot coupler (0x00)
0x00
Ext. Function Number
2)
1
0x08 (fixed)
0x08
Port
1
0x00
0x00
FI index
2
65101 (0xF34D)
0xF34D
Status
1
PROFIBUS/PROFINET:
Done (0x00), IDLE (0x01), Error (0x80)
Other fieldbus systems:
Error (0x00), DONE (0x01), Busy (0x02)
0x01
Event at slot
1
Coupler (0x00)
I/O module (0x01 ... 0x40)
0x01
Event at port
1
Number of the IO-Link port (0x01 ...0x04) 0x02
Event status
1
OK (0x00), error with event communica-
tion (0x01), event queue empty (0x02) 0x00
Instance
1
Source instance: Physical layer (0x01),
data link layer (0x02), application layer
(0x03), application (0x04)
0x04
Mode
1
Event single shot (0x01), Event disap-
pears (0x02), Event appears (0x03)
0x01
Type
1
Notification (0x01), Warning (0x02),
Error (0x03)
0x02
Source
1
Source device:
IO-Link device (0x00), IO-Link master
(0x01)
0x00
Event code
2
Event code in accordance with IO-Link
specification
0x5012
1) Not for PROFIBUS and PROFINET
2) Not for PROFIBUS and PROFINET
6.10 “IO_LINK_CALL” function block
The “IO_LINK_ CALL” function block allows acyclic communi-
cation with an IO-Link device: device parameters are written
and parameters, measured values and diagnostic data are
read.
,2B/,1.B&$//
5(4
,'
&$3
5'B:5
3257
),B,1'(;
,2/B,1'(;
,2/B68%,1'(;
/(1
5(&25'B,2/B'$7$
'21(B9$/,'
%86<
(5525
67$786
,2/B67$786
/(1
%22/
':25'
,17
%22/
,17
,17
,17
,17
,17
$55$<B2)B%<7(6
%22/
%22/
%22/
':25'
%22/
':25'
“IO_LINK_ CALL” function block
IO_LINK_CALL: input parameters
Parameter
Data type Description
REQ
BOOL
Rising edge starts data transmission
ID
DWORD
HW_ID
Address of the IO-Link master.
S7-300/400: log. start address
S7-1200/1500: Hardware ID
CAP
INT
CAP-ID
PROFIBUS: 227 oder 255
PROFINET: 227
RD_WR
BOOL
0: read access
1: write access
PORT
INT
Number of the IO-Link port (1 ... 4)
FI_INDEX
INT
65098
IOL_INDEX
INT
Parameter index
IOL_SUBINDEX
INT
Parameter subindex
LEN
INT
Length of data to be written in bytes
Read access: not required
Write access: 1 ... 232
RECORD_IOL_DATA ARRAY OF
BYTES
Read access: Target range for data
Write access: Source range for data
Содержание UR20 Series
Страница 1: ...Remote I O System u remote UR20 Communication module UR20 4COM IO LINK Manual Let s connect...
Страница 8: ...8 2547720000 03 09 2019 Manual Communication module UR20 4COM IO LINK...
Страница 10: ...10 2547720000 03 09 2019 Manual Communication module UR20 4COM IO LINK...
Страница 20: ...20 2547720000 03 09 2019 Manual Communication module UR20 4COM IO LINK...
Страница 48: ...48 2547720000 03 09 2019 Manual Communication module UR20 4COM IO LINK...
Страница 54: ...54 2547720000 03 09 2019 Manual Communication module UR20 4COM IO LINK...