ETrigToTl (FB) ¶ FUNCTION_BLOCK ETrigToTl IMPLEMENTS IFBCommand Serves as a basis for E dge Trig gered, T ime o ut constrained, T ime l imited function blocks InOut: Scope Name Type Comment Input xExecute BOOL Rising edge: Action starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values ( xDone , xError ) are present at the outputs for exactly one cycle. udiTimeLimit UDINT Defines how long (µs) an FB (requiring a long time for complete processing) may run until it is forced to return to the calling POU. The value 0 means that there is no time limitation. udiTimeOut UDINT Defines the time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message. Output xDone BOOL TRUE : Action successfully completed xBusy BOOL TRUE : Function block active xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error
ETrigToTlA (FB) ¶ FUNCTION_BLOCK ETrigToTlA IMPLEMENTS IFBCommand Serves as a basis for E dge Trig gered, T ime o ut constrained, T ime l imited, A bortable function blocks InOut: Scope Name Type Comment Input xExecute BOOL Rising edge: Action starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values ( xDone , xError ) are present at the outputs for exactly one cycle. xAbort BOOL TRUE : Action is stopped immediately and all outputs are reset to their initial values. udiTimeLimit UDINT Defines how long (µs) an FB (requiring a long time for complete processing) may run until it is forced to return to the calling POU. The value 0 means that there is no time limitation. udiTimeOut UDINT Defines the time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message. Output xDone BOOL TRUE : Action successfully completed xBusy BOOL TRUE : Function block active xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error xAborted BOOL TRUE : Action aborted by user
LTrig (FB) ¶ FUNCTION_BLOCK LTrig IMPLEMENTS IFBCommand Serves as a basis for L evel Trig gered function blocks InOut: Scope Name Type Comment Input xEnable BOOL TRUE : Action starts FALSE : Action stops, outputs xDone , xBusy , xError are resetted Output xDone BOOL TRUE : Action successfully completed xBusy BOOL TRUE : Function block active xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error
Interfaces ¶ IFBCommand (Interface)
IFBCommand (ITF) ¶ INTERFACE IFBCommand
VersionConstants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_byVersion BYTE 1 gc_byVersion_1 BYTE 0
GetSupplierVersion (FUN) ¶ FUNCTION GetSupplierVersion : WORD InOut: Scope Name Type Return GetSupplierVersion WORD Input xDummy BOOL
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 03.07.2017, 15:37:42 companyName string 3S-Smart Software Solutions GmbH libraryFile CAA_BehaviourModel.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP11 contentFile CAA_BehaviourModel.clean.json version version 2.0.0.0 ProjectInformation Depends on PS bool False Depends on RTS False Released True LastModificationDateTime date 03.07.2017, 15:37:40 LibraryCategories library-category-list Intern|CAA|Foundation Author string 3S - Smart Software Solutions GmbH Company CAA Technical Workgroup DefaultNamespace CBM Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder CAA Behaviour Model Project CAA_BehaviourModel Title CAA Behaviour Model SpecVersion version 3.0.0.0 Version 3.5.11.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Tick Extern ¶ Library Identification ¶ Placeholder: CAA Tick Default Resolution: CAA Tick Extern, * (CAA Technical Workgroup) Namespace: TICKS Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Tick CAA TickUtil Extern ¶ Library Identification ¶ Placeholder: CAA TickUtil Default Resolution: CAA TickUtil Extern, * (CAA Technical Workgroup) Namespace: TICKU Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA TickUtil CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types
CAA Callback Extern Library Documentation ¶ Company CAA Technical Workgroup Title CAA Callback Extern Version 3.5.11.0 Categories Intern|CAA|Runtime Namespace CB Author 3S - Smart Software Solutions GmbH Placeholder CAA Callback Description 1 ¶ In the runtime system different events occur. Each event can be assigned to an event class. Further on each event arises from a certain source. The runtime system has an internal list of registered callback definitions. At each occurring event the runtime system checks its list of callback definitions and if applicable calls a callback function. A callback definition consists of: Event Event class Event source Index of the function which should be called as soon as the event occurs. Event e of class c from source s triggers the callback (e, c, s), if ( e = e OR e = CB.ALL_EVENTS ) AND (( c AND c ) > 0 OR c = CB.ALL_CLASSES ) AND ( s = s OR s = CB.ALL_SOURCES ) A function which should be used as callback function, must have the following interface: FUNCTION Callback < Name > : BOOL VAR_INPUT dwSpec : DWORD ; (* CB.Event and CB.EventClass *) dwParam : DWORD ; (* Application specific Parameter *) dwSource : DWORD ; (* CB.EventSource *) END_VAR The data types are DWORDs in order to be compatible to CODESYS V2.3. These however refer to the enumerations specified in brackets. Parameter dwSpec via function CB.DecodeEvent and CB.DecodeClass can be split in two variables of type CB.Event and CB.EventClass. The parameter dwSource can be converted to data type CB.EventSource with the help of the DWORD_TO_INT conversion. Note CODESYS V3.x: As from CODESYS 3.x the POUs are not addressed any longer by an index. Due to this fact the structure and the interpretation of the CB_Callback data type must be adapted correspondingly. The interface of function CallFunctionByIndex also changes. Note On the structure and usage of the callback functions: The function name must have a prefix „Callback”. The function must not contain any local variables. The function must not be checked with breakpoints. Note CODESYS V3.x: The function muss be parameterized with property Enable system call ! Multiple callbacks may be assigned to one event. A callback (event, -class, -source, function index) however can get registered only once; if one tries to assign an identical callback, CB_RegisterCallback will dump an error. After a reset of the PLC all registered callbacks will be deregistered immediately. Callbacks, which are possible registered on event CB_AFTER_RESET, will be called once more before the automatic deregistration. Regard that callback functions can be called immediately after the event has occurred. Thereby an currently running IEC task can be interrupted. The programmer must be aware that this might raise similar problems like there are in multitasking systems (data consistency etc.); besides that the run time of a callback function should be kept as short as possible, because it blocks the whole system. The return value of the callback function is of no significance . Contents: ¶ CAA Callback Enums Functions Globale Constants Structs Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Indices and tables ¶ 1 Based on CAA_Callback_Extern.library, last modified 03.07.2017, 15:37:46. LibDoc 4.4.0.0-b.27 The content file CAA_Callback_Extern.clean.json was generated with CODESYS V3.5 SP11 on 03.07.2017, 15:37:49.