FSoEBase for CODESYS Safety SIL2 Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title FSoEBase for CODESYS Safety SIL2 Version 3.5.18.0 Categories Application|Safety SIL2 Namespace FSoEBase Author 3S - Smart Software Solutions GmbH Placeholder FSoEBase Description 1 ¶ This library implements the FailsSafe over EtherCAT (FSoE) protocol stack for CODESYS Safety SIL2 according to the ETG-specification ETG5100. The implementation is done as an external library, i.e. the FBs as well as the functions of the FBs are implemented as a component of the CODESYS Control SIL2 runtime. Incoming FSoE PDUs can be processed and outgoing FSoE PDUs can be created accordingly. The transport layer for FSoE PDUs has no safety requirements and can be freely chosen. The FSoE PDUs are transmitted from the unsafe context. The transmission is not part of the library and must be implemented by the user of this library. Note: All FBs and methods of the CmpFSoE Base library shall be called in safe context! Contents: ¶ Bibliotheksinformation GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) FSoEBase Enums Function Blocks Indices and tables ¶ 1 Based on FSoEBase.library, last modified 12.04.2022, 12:29:19. LibDoc 4.4.0.0-b.27 The content file FSoEBase.clean.json was generated with CODESYS V3.5 SP16 Patch 1 on 12.04.2022, 12:29:19.
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
Bibliotheksinformation ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
FSoEBase ¶ Enums FSOEDIAG (Enum) FSOESTATE (Enum) Function Blocks Master (FunctionBlock) Init (Method) Input (Method) Output (Method) ResetConnection (Method) Slave (FunctionBlock) Init (Method) Input (Method) Output (Method) ResetConnection (Method)
Enums ¶ FSOEDIAG (Enum) FSOESTATE (Enum)
FSOEDIAG (ENUM) ¶ TYPE FSOEDIAG : Attributes: qualified_only InOut: Name Initial Comment LOCALRESET 0 Local reset ot acknowldegement OF a RESET command INVALID_CMD 1 Unexpected command UNKNOWN_CMD 2 Unknown command INVALID_CONNID 3 Invalid connection id INVALID_CRC 4 Crc error WDEXPIRED 5 Watchdog has expired INVALID_ADDRESS 6 Only slave: Invalid FSoE slave address INVALID_DATA 7 Only master, slave uses next detailed error codes INVALID_COMMPARALEN 8 Invalid communication parameter length INVALID_COMMPARA 9 Invalid communication parameter INVALID_USERPARALEN 10 Invalid application parameter length INVALID_USERPARA 11 Invalid application parameter INVALID_FRAMELEN 16#80 Invalid FSoE frame length NOLICENCE 16#81 Missing licence INVALID_BUFFER 16#82 Invalid buffer, not part of SIL2 memory areas (required for application parameter and the FSoE frame buffers)
FSOESTATE (ENUM) ¶ TYPE FSOESTATE : Attributes: qualified_only InOut: Name Initial Comment INIT 0 INTERNAL FSoE state before execution of method Init RESET 100 FSoE state Reset (outputs are in safe mode) SESSION 101 FSoE state Session, the session ID is being transferred (outputs are in safe mode) CONN 102 FSoE state Connection, the connection ID and FSoE-Address is being transferred (outputs are in safe mode) PARA 103 FSoE state Parameter, the communication and the optional application parameter are being transferred (ooutputs are in safe mode) DATA 104 FSoE state Data, process or failsafe data are being transferred (outputs are only active if the pocess data command is received) ERROR 200 INTERNAL unexpected error, no futher execution of code
Function Blocks ¶ Master (FunctionBlock) Init (Method) Input (Method) Output (Method) ResetConnection (Method) Slave (FunctionBlock) Init (Method) Input (Method) Output (Method) ResetConnection (Method)