ClientRequestWriteMultiple (FB)

FUNCTION_BLOCK ABSTRACT ClientRequestWriteMultiple EXTENDS ClientRequest

Write client request base class for WriteMultipleCoils, WriteMultipleRegisters

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xExecute

BOOL

Rising edge: Starts defined operation
FALSE: Resets the defined operation after ready condition was reached

ETrigTo

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

Client

Reference to Client.

ClientRequest

Input

uiUnitId

UINT

0

Unit-Id to send the request to.

ClientRequest

udiReplyTimeout

UDINT

(50 * 1000)

Reply timeout in µs - accepted maxmimum time between request message send and reply message receveived - default 50ms.

ClientRequest

uiMaxRetries

UINT

0

Maximum number of request retries in case of “reply timeout”.

ClientRequest

Output

eErrorID

Error

Error status

ClientRequest

eException

ExceptionCodes

Request exception code.

ClientRequest

uiRetryCnt

UINT

0

Number of request retries in case of “reply timeout”.

ClientRequest

Input

uiStartItem

UINT

0

First “data item” to write.

uiQuantity

UINT

1

Number of “data items” to write.