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
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
TRUE
: Operation is runningETrigTo
xError
BOOL
TRUE
: Error condition reachedETrigTo
eErrorID
ETrigTo
Input Const
itfAsyncProperty
Input
itfIPAddress
IP address of the communication partner
Output
udiReplyTime
UDINT
Average reply time of the ping request in milliseconds
Methods:
Structure: