SchedSetTaskInterval (FUN) ¶ FUNCTION SchedSetTaskInterval : RTS_IEC_RESULT <description> Set the actual interval of a cyclic task. If the specified task is no cyclic task, the function return an error. This interface can be used to synchronize a task to another task or to events. </description> <param name=”hSchedTask” type=”IN”>Handle to the task</param> <param name=”tInterval” type=”IN”>New interval in microseconds!</param> <result>error code</result> InOut: Scope Name Type Return SchedSetTaskInterval RTS_IEC_RESULT Input hSchedTask RTS_IEC_HANDLE ulInterval UDINT
SchedUnregisterExternalEvent (FUN) ¶ FUNCTION SchedUnregisterExternalEvent : RTS_IEC_RESULT <description> <p>Unregister an external event, which was registered by SchedRegisterExternalEvent() before.</p> <p>This function should be called on system shutdown</p> <p>Valid Hook: CH_EXIT2</p> </description> <param name=”hExtEvent” type=”IN”>Handle to the external event, that should be unregistered.</param> <errorcode name=”RTS_IEC_RESULT” type=”ERR_OK”>Event was deregistered successfully</errorcode> <errorcode name=”RTS_IEC_RESULT” type=”ERR_PARAMETER”>The event handle was not registered before</errorcode> <result>Error code</result> InOut: Scope Name Type Return SchedUnregisterExternalEvent RTS_IEC_RESULT Input hExtEvent RTS_IEC_HANDLE
SchedWaitBusy (FUN) ¶ FUNCTION SchedWaitBusy : RTS_IEC_RESULT <description> Function to wait busy during a specified time interval. This consumes maximum of processor load! </description> <param name=”ptSleepUs” type=”IN”>Time to sleep in microseconds</param> <result>error code</result> InOut: Scope Name Type Return SchedWaitBusy RTS_IEC_RESULT Inout ptSleepUs SYSTIME
SchedWaitSleep (FUN) ¶ FUNCTION SchedWaitSleep : RTS_IEC_RESULT <description> Function to sleep a specified time interval in microseconds _without_ consuming processor load! </description> <param name=”ptSleepUs” type=”IN”>Time to sleep in microseconds</param> <result>error code</result> InOut: Scope Name Type Return SchedWaitSleep RTS_IEC_RESULT Inout ptSleepUs SYSTIME
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:55:19 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpSchedule.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpSchedule.clean.json version version 2.0.0.0 ProjectInformation LinkInSimulation bool True Released True LastModificationDateTime date 20.04.2021, 15:55:19 LibraryCategories library-category-list System|SysLibs Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 Description See: Description Placeholder CmpSchedule Project CmpSchedule Title CmpSchedule Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpApp ¶ Library Identification ¶ Placeholder: CmpApp Default Resolution: CmpApp, * (System) Namespace: CmpApp Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpApp SysTime ¶ Library Identification ¶ Placeholder: SysTime Default Resolution: SysTime, * (System) Namespace: SysTime Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTime SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
CmpSercos3Master Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title CmpSercos3Master Version 3.5.17.0 Categories System|SysLibs Namespace CmpSercos3Master Author None Placeholder CmpSercos3Master Description 1 ¶ Component for Sercos3 Cosema Indices and tables ¶ 1 Based on CmpSercos3Master.library, last modified 20.04.2021, 15:55:27. LibDoc 4.4.0.0-b.27 The content file CmpSercos3Master.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 15:55:27.
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:55:27 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpSercos3Master.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpSercos3Master.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 20.04.2021, 15:55:27 LibraryCategories library-category-list System|SysLibs Company string 3S - Smart Software Solutions GmbH CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace CmpSercos3Master Description See: Description Placeholder CmpSercos3Master Project CmpSercos3Master Title CmpSercos3Master Version version 3.5.17.0
CommandHandler (FB) ¶ FUNCTION_BLOCK CommandHandler IMPLEMENTS ICmpEventCallback Command Handler for the PLCShell. This function block can be used as a base to register custom Command Handlers in the PLCShell. To implement a new Command Handler, just: extend this function block</li> Call SUPER^.Register() on FB_init</li> Overload CommandHandler() with your own command</li> An example in Pseudocode: FUNCTION BLOCK MyCommandHandler EXTENDS CommandHandler METHOD CommandHandler PlcShellAppend(‘The output of my command’, iBlockID); METHOD FB_init SUPER^.Register(‘myCmd’, ‘myCmd$r$n$tmyHelp’); METHOD FB_exit The registration is done in the function Register() and the deregistration is done in the FB_exit of the base FB. Methods: CommandHandler EventCallback FB_exit FB_init Register Structure: CommandHandler (Method) EventCallback (Method) FB_exit (Method) FB_init (Method) Register (Method)