Recipe Commands SECTION 6 Functions and Methods
85
Typical Example
WriteMessage("C:\CX-SUPERVISOR\TESTFILE.TXT", 0,
"Hello World", TRUE)
The text 'Hello World' is written at the start of the 'C:\CX-
SUPERVISOR\TESTFILE.TXT' file and a carriage return and line feed is
appended which moves and subsequent text to the start of the next line.
6-10 Recipe Commands
6-10-1 DisplayRecipes
Syntax
returnstate = DisplayRecipes()
Remarks
Typical Example
DisplayRecipes()
The current recipes is displayed.
References
Refer to the CX-Supervisor User Manual for details of recipes.
6-10-2 DownloadRecipe
Syntax
returnstate = DownloadRecipe("recipename")
Remarks
Typical Example
DownloadRecipe("recipe1")
The recipe 'recipe1' is downloaded.
References
Refer to the CX-Supervisor User Manual for details of recipes.
6-10-3 UploadRecipe
Syntax
returnstate = UploadRecipe("recipename", processed)
Remarks
Note: When the text is written into the file it overwrites any existing text that may exist
at this location.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
recipename string The name of the recipe to be downloaded.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.