From OpenSCADAWiki
Jump to: navigation, search
Configuration.

Configuring and using

1. Create and start a logical controller object with the needed scheduling properties.
2. Create a logical parameter object, for the case of using the logical controller, and select this template for it. Enable the parameter.
  • [JavaLikeCalc] or select this template for the JavaLikeCalc controller; enable the controller; create a parameter "manager" of reflection the representative attributes:
dbDB
dbProgs
comLs
prog
mode
curMode
startTm
curCom
work
3. Into the tab "Template configuration" of the object of the logical parameter, or the controller for [JavaLikeCalc], you need to set:
  • DB: DB name with the tables — to DB, like to "SQLite.vcaBase", where stored or must be stored the prescription-program tables. The empty value is not allowed and will cause an error!
  • DB: Table with programs — to name of the prescriptions-programs table, by default it is "PrescrProgs".
  • Commands controller — left it in the default value "*", to use this parameter's controller for the commands also. You must change this field if you run the manager controller object in a separate logical controller for the commands!
  • [JavaLikeCalc] or and additionally:
  • Commands controller — change this field in a separate logical controller for the commands!
  • [Command-macro] or and additionally:
  • DB: Table with commands — to name of the commands table, by default it is "PrescrComs";
  • Commands controller — set to <empty>.
4. Place the required parameters of the commands together to the manager parameter.
  • [Command-macro] or prepare the required commands in "DB: Table with commands" according to the conception; the empty commands table must be created automatically after starting the object of the logical parameter, or the controller for [JavaLikeCalc]!
5. RESULT: Launching the controller object (where this parameter is created), we must get the operational data in the tab "Attributes" for the: allowed commands list, current mode, work program, current command-step and start time.
  • [JavaLikeCalc] or the JavaLikeCalc controller object directly.
6. In the process of the working, through the tab "Attributes" of operational data, in addition to obtaining the result, it is possible to perform operative setup and control on:
  • Name of the selected program — to set of the selected program name in processing by the manager;
  • Mode — to set the manager mode of the selected prescription-program execution: Finish(-2), Error(-1), Stop(0), Run(1), Pause(2), Pass command(3).