MQTT ¶ Function Block MQTT_Bridge (FunctionBlock) CyclicAction (Method) Execute (Method) StartAction (Method) MQTT_CommandSubscriber (FunctionBlock) MQTT_ConfigSubscriber (FunctionBlock) MQTT_EventPublisher (FunctionBlock) MQTT_StatePublisher (FunctionBlock)
Function Block ¶ MQTT_Bridge (FunctionBlock) CyclicAction (Method) Execute (Method) StartAction (Method) MQTT_CommandSubscriber (FunctionBlock) MQTT_ConfigSubscriber (FunctionBlock) MQTT_EventPublisher (FunctionBlock) MQTT_StatePublisher (FunctionBlock)
CSVWriter.AddWORD (METH) ¶ METHOD AddWORD : ERROR Adds a variable of type WORD. RESULT: The error Code of type ERROR InOut: Scope Name Type Comment Return AddWORD ERROR Input wValue WORD The value to be saved
CSVWriter.InitSave (METH) ¶ METHOD InitSave : CSV_ERROR This methods checks if the named file already exists. If so, then this is opened and new data is appended. Otherwise, a new file is created This method must be called once, at the beginning, before the save method is called. RESULT: The error Code of type ERROR InOut: Scope Name Type Comment Return InitSave CSV_ERROR Input sDirectoryPath STRING The directory, where the file is saved, e.g. “C:/directory” sFileName STRING The file name, e.g. “file.csv”
CSVWriter.GetFileSize (METH) ¶ METHOD GetFileSize : __XWORD This function returns the current file size in byte. RESULT: The size of the file. InOut: Scope Name Type Comment Return GetFileSize __XWORD Input peError POINTER TO ERROR The error code
CSVWriter.NewFile (METH) ¶ METHOD NewFile : ERROR 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. RESULT: The error Code of type ERROR InOut: Scope Name Type Comment Return NewFile ERROR Input sFileName STRING The name for the new file. Empty string (‘’) will generate an automatic name
CSVWriter.Save (METH) ¶ METHOD Save : ERROR {attribute ‘hide_all_locals’} This methods saves the buffer data into a file. RESULT: The error Code of type ERROR InOut: Scope Name Type Return Save ERROR
CSVWriter.NewLine (METH) ¶ METHOD NewLine : ERROR A new line is added. RESULT: The error Code of type ERROR InOut: Scope Name Type Return NewLine ERROR
CSVWriter.SetSeparator (METH) ¶ METHOD SetSeparator : ERROR Set the row and column sepator of the file. InOut: Scope Name Type Comment Return SetSeparator ERROR Input sRowSep STRING Row separator sColumnSep STRING Column separator
ICSVObject (ITF) ¶ INTERFACE ICSVObject Methods: AddValue Save Structure: AddValue (Method) Save (Method)