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
xExecuteBOOLRising edge: Starts defined operationFALSE: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOutUDINTMax. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDoneBOOLReady condition reached
ETrigTo
xBusyBOOLOperation is running
ETrigTo
xErrorBOOLError condition reached
ETrigTo
Inout
rClientReference to Client.
Input
uiUnitIdUINT0
Unit-Id to send the request to.
udiReplyTimeoutUDINT(50 * 1000)
Reply timeout in µs - accepted maxmimum time between request message send and reply message receveived - default 50ms.
uiMaxRetriesUINT0
Maximum number of request retries in case of “reply timeout”.
Output
eErrorIDError status
eExceptionRequest exception code.
uiRetryCntUINT0
Number of request retries in case of “reply timeout”.
Input
uiItemUINT0
“data item” to write.