GlobalConstants ¶ Constants (GVL)
Constants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_udiBufferSize UDINT 32000
CSVWriter ¶ Enums ERROR (Enum) FunctionBlocks 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) GlobalConstants Buffersize (ParamList) Objects CSVWriter (FunctionBlock) AddBOOL (Method) AddBYTE (Method) AddDATE (Method) AddDATE_AND_TIME (Method) AddDINT (Method) AddDWORD (Method) AddINT (Method) AddLINT (Method) AddLREAL (Method) AddLTIME (Method) AddLWORD (Method) AddREAL (Method) AddSINT (Method) AddSTRING (Method) AddTIME (Method) AddTIME_OF_DAY (Method) AddUDINT (Method) AddUINT (Method) AddULINT (Method) AddUSINT (Method) AddWORD (Method) GetFileSize (Method) InitSave (Method) NewFile (Method) NewLine (Method) Save (Method) SetSeparator (Method) ICSVObject (Interface) AddValue (Method) Save (Method) Visualization GlobalTextList (GlobalTextList)
CSV Utility SL Library Documentation ¶ Company : CODESYS Title : CSV Utility SL Version : 1.11.0.0 Categories : Application|Utils Namespace : CSV Author : CODESYS Development GmbH Placeholder : CSV_Utility_SL Description [ 1 ] ¶ A library to write and read CSV files. Contents: ¶ CSVReader Enums Function Blocks GlobalConstants CSVWriter Enums FunctionBlocks GlobalConstants Objects Visualization GetSupplierVersion (Function) Indices and tables ¶ [ 1 ] Based on CSV Utility SL.library, last modified 14.08.2024, 09:20:27. LibDoc 4.5.0.0 The content file CSV Utility SL.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 14.08.2024, 09:20:36.
CSVReader ¶ Enums CSV_ERROR (Enum) Function Blocks CSVReaderInit (FunctionBlock) NextElement (FunctionBlock) NextLine (FunctionBlock) ReadAll (FunctionBlock) GlobalConstants Constants (GVL)
CSV_ERROR (ENUM) ¶ TYPE CSV_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 CANNOT_SET_POSITION CANNOT_READ_DATA END_OF_BUFFER CANNOT_READ_DIRECTORY CANNOT_OPEN_DIRECTORY CANNOT_CLOSE_DIRECTORY CANNOT_GET_FILE_SIZE INVALID_HANDLE MAXIMUM_ELEMENT_SIZE_EXCEEDED INVALID_LICENSE INVALID_POINTER INVALID_FILE_NAME
Function Blocks ¶ CSVReaderInit (FunctionBlock) NextElement (FunctionBlock) NextLine (FunctionBlock) ReadAll (FunctionBlock)
CSVReaderInit (FB) ¶ FUNCTION_BLOCK CSVReaderInit EXTENDS CBM.ETrig Initialization of the CSV reader. InOut: Scope Name Type Initial 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 ) are present at the outputs for exactly one cycle. ETrig Output xDone BOOL TRUE : Action successfully completed ETrig xBusy BOOL TRUE : Function block active ETrig xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrig Input szFileName STRING Filename of the CSV file sLineSeparator STRING(2) ‘$R$N’ Line separator, default: ‘$R$N’ sColumnSeparator STRING(1) ‘;’ Column separator, default: ‘;’ xCloseFile BOOL Close the file Output eError CSV_ERROR Error code hFile SysFile.RTS_IEC_HANDLE File handle