Operation
Use CODESYS function blocks
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | more@turck.com | www.turck.com
07.00 | 2022/09 | 231
xExecute
xAbort
udiTimeOut
eCommand
rStatusMapping
rContrlMapping
udiStartAddress
uiDataLength
usiRWHeadAddress
rDiagMapping
pReadDataMapping
pWriteDataMapping
pDataTx
pDataRx
BOOL
BOOL
BOOL
BOOL
ERROR
BusModeTP_t
BusModeRWHead_t
UINT
xDone
xBusy
xError
xAborted
eError
stTP
stRWHeadNotConnected
uiDataRxLength
FB_BusMode
BOOL
BOOL
UDINT
COMMAND
REFERENCE TO BusModeInput_t
REFERENCE TO BusModeOutput_t
UDINT
UINT
USINT
REFERENCE TO ChannelDiag_t
POINTER TO BYTE
POINTER TO BYTE
POINTER TO BYTE
POINTER TO BYTE
Fig.139: FB_BusMode function block
Function blocks — input variables
Name Data type Meaning
xExecute BOOL
0 Ò 1 Ò 0: Execute command
1 Ò 0 Ò 1: Reset outputs
The outputs can only be reset if an action was
stopped, aborted by the user or if an error oc-
curred beforehand.
xAbort BOOL
0 Ò 1 Ò 0: Abort command execution. All
outputs are reset to the initial value.
udiTimeOut UDINT Time in µS, after which the function block
automatically stops command execution
eCommand COMMAND Command code in hexadecimal format,
[}109]
rStatusMapping REFERENCE TO
Compact Input_t
or
Extended Input_t
or
BusMode Input_t
Start address of the process input data
rContrlMapping REFERENCE TO
Compact Out-
put_t or
Extended Out-
put_t or
BusMode Out-
put_t
Start address of the process output data
udiStartAddress UDINT Start address for the selected command, e.g.
start address in the memory of the tag