ClientRequestWriteSingle
(FB)
FUNCTION_BLOCK ABSTRACT ClientRequestWriteSingle EXTENDS ClientRequest
WriteSingle client request base class for WriteSingleCoil, WriteSingleRegister and MaskWriteRegister.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOut
UDINT
Max. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDone
BOOL
Ready condition reached
ETrigTo
xBusy
BOOL
Operation is running
ETrigTo
xError
BOOL
Error condition reached
ETrigTo
Inout
rClient
Reference to Client.
Input
uiUnitId
UINT
0
Unit-Id to send the request to.
udiReplyTimeout
UDINT
(50 * 1000)
Reply timeout in µs - accepted maxmimum time between request message send and reply message receveived - default 50ms.
uiMaxRetries
UINT
0
Maximum number of request retries in case of “reply timeout”.
Output
eErrorID
Error status
eException
Request exception code.
uiRetryCnt
UINT
0
Number of request retries in case of “reply timeout”.
Input
uiItem
UINT
0
“data item” to write.