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 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

TRUE: Operation is running

ETrigTo

xError

BOOL

TRUE: Error condition reached

ETrigTo

eErrorID

ERROR

ETrigTo

Input Const

itfAsyncProperty

IAsyncProperty

Input

itfIPAddress

IIPAddress

IP address of the communication partner

Output

udiReplyTime

UDINT

Average reply time of the ping request in milliseconds

Methods:

Structure: