
Connection to a Siemens Step 7 - usage of the TURCK- example program
D301171 - IO-Link master 1108
4-10
Using the function block
The IO-Link function block IOL_Call is specified in the IO-Link Specification.
The TURCK FB102 only differs from the specification in some variable names (the variable
names acc. to the specification are written in brackets behind those of the example project).
Input variables
Output variables
Table 16:
Input variables
DO_IT (REQ)
BOOL
A rising edge activates the send command.
ID
WORD
Starting address of the input data of the IO-
Link master module (slot 1).
In the example program address 8 (
Index_CAP
INT
Specification of the function block instance:
251 to 254 (see also
).
RD_WR
BOOL
0 = read access
1 = write access
PORT (ENTITY_PORT)
INT
Address of the IO-Link port, which has 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
Table 17:
Output variables
DONE_VALID
BOOL
The read or write access has been executed.
BUSY
BOOL
The read or write access is actually executed.
ERROR
BOOL
An error occurred during the read and/or write
access.
STATUS
DWORD
PROFIBUS-DPV1 error message (acc. to
PROFIBUS-DP Specification), which show
errors in the acyclic communication.
Busy = 0xFFFFFFFF
IOL_STAUTS
DWORD
IO-Link error message (acc. to IO-Link Specifi-
cation), which concern the communication
between IO-Link master and connected
devices.
LEN_READ
INT
Length of the read data