WarpClock.AddTime (METH) ¶ METHOD AddTime step forward in time by a given increment InOut: Scope Name Type Initial Comment Input tAdd TIME TIME#0ms Time to add
WarpClock.ComputeWarpFactor (METH) ¶ METHOD FINAL ComputeWarpFactor : UDINT Computes the “warp” factor to simulate one “warp” clock cycle by a given number of application cycles. Example : two 10ms-application-cycles should lead to 10min warp clock increment - “warp” factor is 30000 Wrong parameters lead to “warp” factor = 1, which in turn makes the “warp” clock run in real time. InOut: Scope Name Type Comment Return ComputeWarpFactor UDINT Input tAppCycle TIME Application cycle time tWarpCycle TIME “Warp” clock cycle time numAppCyclesPerWarpCycle UDINT Number of application cycles needed to trigger one warp cycle
WarpClock.GetDateTime (METH) ¶ METHOD FINAL GetDateTime : ULINT InOut: Scope Name Type Comment Return GetDateTime ULINT date and (UTC) time in milliseconds since 1.1.1970 00:00:00.000 Output eErrorID Util.ERROR Error ID - please note: this method is inherited from Util.IDateTimeProvider so Util.ERROR has to be used here.
WarpClock.GetUtcSystemTime (METH) ¶ METHOD GetUtcSystemTime : ULINT Get the UTC system time in ms since the epoch 1.1.1970 00:00:00.0 - can be used for convenient initialization of uliStartTime. InOut: Scope Name Type Comment Return GetUtcSystemTime ULINT Output eErrorID Error Error ID
WarpClock.GetLocalSystemTime (METH) ¶ METHOD GetLocalSystemTime : ULINT Get the local system time in ms since the epoch 1.1.1970 00:00:00.0 - can be used for convenient initialization of uliStartTime. InOut: Scope Name Type Comment Return GetLocalSystemTime ULINT Input tz Util.TimeZone Timezone Output eErrorID Error Error ID
ERROR (ENUM) ¶ TYPE ERROR : Attributes: qualified_only InOut: Name NO_ERROR FIRST_ERROR TIME_OUT FIRST_MF LAST_ERROR CANNOT_CREATE_FILE BUFFER_IS_LOCKED CANNOT_OPEN_FILE CANNOT_CLOSE_FILE CANNOT_WRITE_DATA END_OF_BUFFER CANNOT_READ_DIRECTORY CANNOT_OPEN_DIRECTORY CANNOT_CLOSE_DIRECTORY CANNOT_GET_FILE_SIZE INVALID_FILE_NAME INVALID_LICENSE
FunctionBlocks ¶ Use this funtionblocks for classic programming. AddBOOL (FunctionBlock) AddBYTE (FunctionBlock) AddDATE (FunctionBlock) AddDATE_AND_TIME (FunctionBlock) AddDINT (FunctionBlock) AddDWORD (FunctionBlock) AddINT (FunctionBlock) AddLINT (FunctionBlock) AddLREAL (FunctionBlock) AddLTIME (FunctionBlock) AddLWORD (FunctionBlock) AddREAL (FunctionBlock) AddSINT (FunctionBlock) AddSTRING (FunctionBlock) AddTIME (FunctionBlock) AddTIME_OF_DAY (FunctionBlock) AddUDINT (FunctionBlock) AddUINT (FunctionBlock) AddULINT (FunctionBlock) AddUSINT (FunctionBlock) AddWORD (FunctionBlock) ETrigATemplate (FunctionBlock) Init (FunctionBlock) NewFile (FunctionBlock) NewLine (FunctionBlock) WriteFile (FunctionBlock)
AddBOOL (FB) ¶ FUNCTION_BLOCK AddBOOL EXTENDS CBM.ETrigA Adds a BOOL value to the buffer. InOut: Scope Name Type Comment Inherited from 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 , iError ) are present at the outputs for exactly one cycle. ETrigA xAbort BOOL TRUE : Action is stopped immediately and all outputs are reset to their initial values. ETrigA Output xDone BOOL TRUE : Action successfully completed ETrigA xBusy BOOL TRUE : Function block active ETrigA xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrigA xAborted BOOL TRUE : Action aborted by user ETrigA Input xInput BOOL The value to be added to the buffer. Output eError ERROR Error code of the call. Inout rCSVWriter CSVWriter Reference to the CSVWrtiter-FB
AddBYTE (FB) ¶ FUNCTION_BLOCK AddBYTE EXTENDS CBM.ETrigA Adds a BYTE value to the buffer. InOut: Scope Name Type Comment Inherited from 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 , iError ) are present at the outputs for exactly one cycle. ETrigA xAbort BOOL TRUE : Action is stopped immediately and all outputs are reset to their initial values. ETrigA Output xDone BOOL TRUE : Action successfully completed ETrigA xBusy BOOL TRUE : Function block active ETrigA xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrigA xAborted BOOL TRUE : Action aborted by user ETrigA Input byInput BYTE The value to be added to the buffer. Output eError ERROR Error code of the call. Inout rCSVWriter CSVWriter Reference to the CSVWrtiter-FB
AddDATE (FB) ¶ FUNCTION_BLOCK AddDATE EXTENDS CBM.ETrigA Adds a DATE value to the buffer. InOut: Scope Name Type Comment Inherited from 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 , iError ) are present at the outputs for exactly one cycle. ETrigA xAbort BOOL TRUE : Action is stopped immediately and all outputs are reset to their initial values. ETrigA Output xDone BOOL TRUE : Action successfully completed ETrigA xBusy BOOL TRUE : Function block active ETrigA xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrigA xAborted BOOL TRUE : Action aborted by user ETrigA Input dateInput DATE The value to be added to the buffer. Output eError ERROR Error code of the call. Inout rCSVWriter CSVWriter Reference to the CSVWrtiter-FB