Slave (FB)ΒΆ
FUNCTION_BLOCK Slave
The FSoEBase Slave FB implements the slave side of the FSoE protocol. The communication is established from the master side and the slave side receives the corresponding configuration and establishes the communication with the master with the specified parameters. The FSoE watchdog time, for example, is specified by the master side. 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_eStateFSoE state
S_uiFWDTUINTfrom Master received F-WatchdogTime
S_uiConnIdUINTfrom FSoE master received unique connection id
S_xCheckParameterEventBOOLevent to check the stored application parameter. ATTN: Must be done before the method output is called!
S_xProcessDataBOOLFALSE
true, if the FSoE communication is established and valid FSoE frame with command PPROCESSDATA is received.
S_byLocalErrorBYTEFSOEDIAG.LOCALRESET
local fault reason
S_byMasterErrorBYTEFSOEDIAG.LOCALRESET
the reported error from the FSoE master
Methods:
Structure: