NewFile (FB)¶
FUNCTION_BLOCK NewFile EXTENDS CBM.ETrigA
A new file is stored. If an empty string is given, a counter is added at the end of the filename, otherwise the file is named like the given value. <br><br> RESULT: The error Code OF TYPE ERROR
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Action startsFalling edge: Resets outputsIf 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 completedETrigA
xBusy
BOOL
TRUE
: Function block activeETrigA
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorETrigA
xAborted
BOOL
TRUE
: Action aborted by userETrigA
Input
sNewFileName
STRING
The name for the new file. Empty string (‚‘) will generate an automatic name
Output
eError
Inout
rCSVWriter
Reference to the CSVWriter-FB