Slave.Input (METH)ΒΆ

METHOD Input : SAFEBOOL

Function for temporal monitoring and to handle a received FSoE PDU. The return value of the function indicates if the FB state has changed. The input parameter S_pbyRecvFrame is the reference to a received FSoE PDU with the initialized length S_uiRecvFrameLen. If no new FSoE PDU has been received since the last call, only the check for a timeout regarding the FSoE communication is performed. S_pbyRecvFrame can either be NULL or point to the last FSoE PDU received. If an timeout error has occurred the transition FSOETRANSITION.TO_RESET is set according to the standard with the local error message FSOEDIAG.WDEXPIRED and the function returns with TRUE according to the FB state change. If no timeout error has occurred, the transferred FSoE PDU is checked FOR a change compared to the last call. In case of an unchanged FSoE PDU (no new FSoE PDU received) the state of the FB is unchanged and the function returns with FALSE. In the case of a changed FSoE PDU this is evaluated and a corresponding transition is set according to the protocol specification and the function returns with TRUE. If the function returns with TRUE, the output parameters S_byMasterError, S_uiFWDT and S_xCheckParameterEvent are updated. If the transmission of the communication and application parameters from the master to the slave is completed, i.e. the slave receives the first FSoE PDU with the FSoE command FSOECMD.PROCESSDATA or FSOECMD.FAILSAFEDATA and the check of the plausibility of the receipt of communication and application parameters is valid, then the received monitoring time of the communication at the output S_uiFWD, as well as the flag S_xCheckParameterEvent is set. With the set flag S_xCheckParameterEvent the user is requested to check the set monitoring time and also the application parameters for their validity. In case of an error, the function ResetConnection shall be called with the corresponding error code before the function Output is called, in order to reset the FSoE communication with a corresponding error message. This function shall be called cyclically so that a temporal monitoring of the FSoE communication is ensured.

InOut:

Scope

Name

Type

Return

Input

BOOL

Input

S_pbyRecvFrame

POINTER TO SAFEBYTE