STATE (ENUM) ¶ TYPE STATE : Redundancy state Attributes: qualified_only InOut: Name Initial Comment RS_START 0 Plc in startup RS_SYNCHRO 1 Plc is synchronising RS_CYCLE_ACTIVE 2 Plc is running in active mode RS_CYCLE_STANDBY 3 Plc is running in standby mode RS_CYCLE_STANDALONE 4 Plc is running in standalone mode RS_CYCLE_ERROR 5 Plc is in error mode - error occured in cycle start or end RS_SIMULATION 6 Plc is running in simulation mode - switched from standby RS_BOOTUP_ERROR 7 Plc is in error mode - error occured during boot up RS_SHUTDOWN_ACTIVE 8 Plc is shut down - was previously active RS_SHUTDOWN_STANDBY 9 Plc is shut down - was previously standby RS_SYNCHRO_ERROR 10 Plc is in error mode - error occured during synchronisation RS_SIMULATION_START 11 Plc is running in simulation mode - started in simulation mode RS_NO_LICENSE 12 No valid license found
Structs ¶ RedundancyState (Struct) SYNC_INFO (Struct)
RedundancyState (STRUCT) ¶ TYPE RedundancyState : STRUCT Redundancy state information InOut: Name Type Comment eRedundancyState STATE Current redundancy state eRedundancyError ERROR Current error stRedundancyError STRING Error text
SYNC_INFO (STRUCT) ¶ TYPE SYNC_INFO : STRUCT InOut: Name Type Comment ulCycle UDINT Redundancy task cycle count ulWaitTimeActive UDINT Valid in active and standby state. [ms] ulWaitTimePassive UDINT Valid in standby state. Always 0 in active plc. [ms] ulWaitTimeMax UDINT Maximum wait time of active plc. [ms] ulWaitTime UDINT Value configured in runtime cfg file. Other controller will be considered as failed if exceeded. [ms] ulTaskInterval UDINT Modified if WaitTimeActive or WaitTimePassive to big, to compensate clock drift. [ms] tSinceLastSync TIME Time since last successful synchronization
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:01:21 companyName string 3S-Smart Software Solutions GmbH libraryFile Redundancy_Itfs.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile Redundancy_Itfs.clean.json version version 2.0.0.0 ProjectInformation IsInterfaceLibrary bool True Released True SourceLibrary False LastModificationDateTime date 20.04.2021, 16:01:21 LibraryCategories library-category-list System|Redundancy Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace Description See: Description DocFormat reStructuredText Project Redundancy_Itfs Title Redundancy Interfaces Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
RDT_Server.RcvCommand (METH) ¶ METHOD RcvCommand It receives a command from a client InOut: Scope Name Type Comment Input itfConnection NBS.IConnection Connection to use psCom POINTER TO RdtProtStructCommPh Pointer where to write command phase header received Output errorProt INT Protocol error
RDT_Server.SetNewCertificate (METH) ¶ METHOD SetNewCertificate : INT Set the new certificate to use InOut: Scope Name Type Return SetNewCertificate INT Input hCert RTS_IEC_HANDLE
RDT_Server.RcvData (METH) ¶ METHOD RcvData It receives data following a command from a client InOut: Scope Name Type Comment Input itfConnection NBS.IConnection Connection to use psCom POINTER TO RdtProtStructCommPh Pointer to command phase header already received pDataRcv __XWORD Pointer where to write data received diSizeRcv DINT Maximum size of the above buffer Output errorProt INT Protocol error
RDT_Server.TrsAnswer (METH) ¶ METHOD TrsAnswer It handles a complete transmisstion of an Answer InOut: Scope Name Type Comment Input itfConnection NBS.IConnection Connection to use psRes POINTER TO RdtProtStructResPh Pointer to result phase header to send pDataTrs __XWORD Pointer to the data to transmit Output errorProt INT Protocol error