35
10 Programming Using IO-Link
17
Enter the following function name.
Function name: MOVE
18
Click Enter Variable at In and Out in
the MOVE block, and enter each of
the following variable names.
In:
UINT#10#81
Out:
Variable name: DeviceObject
Data type: _sIOLOBJ_ACCESS
Specify the index No. where the error code of the safety light curtain is stored.
19
Click DeviceObject at Out, and
change to the following variable
name.
Variable name: DeviceObject.Index
20
Right-click the MOVE block, and click Copy.
21
Right-click the MOVE block, and click
Paste.
The block is reused for creating the
block that specifies the Sub-Index No.
where the error code of the safety
light curtain is stored.
22
Change In and Out of the MOVE
block on the second tier to each of
the following.
In: USINT#10#0
Out: DeviceObject.Subindex
23
Right-click the MOVE block on the
second tier, and click Insert Function
Block.
24
Click Enter Type Name, and enter
the following function block name.
Function block name: IOL_ReadObj