Master (FB)ΒΆ

FUNCTION_BLOCK Master

The FSoEBase Master function block implements the master side of the FSoE protocol and is responsible for establishing communication with an FSoE slave, parameterizing it and setting the FSoE watchdog time. With the call of the FB no execution is done, the flow control of the FSoE communication is executed by calling the functions of the FB.

InOut:

Scope

Name

Type

Initial

Comment

Output

S_eState

FSOESTATE

FSoE communication state

S_xProcessData

BOOL

FALSE

true, if the FSoE communication is established and valid FSoE frame with command PPROCESSDATA is received.

S_byLocalError

BYTE

FSOEDIAG.LOCALRESET

the local error of initialization or received FSoE frame event

S_byDeviceError

BYTE

FSOEDIAG.LOCALRESET

the received error from the FSoE device

S_udiResponseTimeMS

UDINT

the FSoE response time in milliseconds for one cycle between FSoE master to slave and back

Methods:

Structure: