Init (FB)¶
FUNCTION_BLOCK Init EXTENDS CBM.ETrigA
Initialize the CSVWriter
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xExecuteBOOLRising 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
xAbortBOOLTRUE: Action is stopped immediately and all outputs are reset to their initial values.ETrigA
Output
xDoneBOOLTRUE: Action successfully completedETrigA
xBusyBOOLTRUE: Function block activeETrigA
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrigA
xAbortedBOOLTRUE: Action aborted by userETrigA
Input
sDirectoryPathSTRINGThe directory, where the file is saved, e.g. „C:directory“
sFileNameSTRINGThe file name, e.g. „file.csv“
sRowSeparatorSTRING‚$R$N‘
The row separator. Default: ‚$n‘
sColumnSeparatorSTRING‚;‘
The column separator. Default: ‚;‘
Output
eErrorInout
rCSVWriterReference to the CSVWriter-FB