PingRequest (FB)
FUNCTION_BLOCK PUBLIC FINAL PingRequest EXTENDS ETrigTo
Checks the availability of the communication partner with a ping request.
The time out value specifies the time to wait until reply
- InOut:
Scope
Name
Type
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
xBusyBOOLTRUE: Operation is runningETrigTo
xErrorBOOLTRUE: Error condition reachedETrigTo
eErrorIDETrigTo
Input Const
itfAsyncPropertyInput
itfIPAddressIP address of the communication partner
Output
udiReplyTimeUDINTAverage reply time of the ping request in milliseconds
Methods:
RequestPing
SetInitialValue
SampleAction
Structure: