Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As next the command flow has to be defined. The proposed command shall be split into two different parts -- one part that processes the input and one part that process the output. To achieve this, insert two "CMD BLOCK"s and set the comment of the first one to "Process input" and the comment of the second one to "Process output". Figure \ref{fig:delayed_off_flow} shows the final command flow.

 



"Process input"

As next the "Process input" block shall be implemented. By doing a double click on the corresponding block, the work sheet of the "CMD BLOCK" opens. Within this work sheet, define the command flow that is shown in the following figure.

...

The command flow of the "Edge detection" block is shown in the following figure.

Image Added

 Image Removed

It consists of the following blocks:

...

After having finished the "Process input" block, the "Process output" block has to be implemented. By doing a double click on the corresponding block, the work sheet of the "CMD BLOCK" opens. Within this work sheet, define the command flow that is shown in the following figure.

 

The command flow of the "Process output" block consists of the following blocks:

...

To provide the command to the NETx BMS Server, it has to be compiled. This can be done by clicking the "Save" icon within the toolbar which saves and compiles the current command. In addition, it is possible to change several options of a command. To open the "Options" dialog, the entry "Options ..." within the menu "File" has to be selected. Within this dialog, basic information about the command can be specified. The flag "Add to Catalog" defines whether the command shall be visible within the catalog of the XLogic Editor. If activated, the command can be reused in other commands. If the option "Auto-Compile" is set, the command is automatically compiled whenever the project is saved.

 

After having compiled the command successfully, close the XLogic editor and go back to the NETx BMS Studio. Afterwards, the new command has to be loaded before it can be used. This can be done by restarting the NETx BMS Server or by loading the command manually by selecting the entry "Load logic module" within the "Tools" menu of the NETx BMS Studio. Then, open the "XCommand event definitions" via the menu "Extensions". Add a new definition and enter a name for the command within the first column. The next column can be left empty since all variables shall only be used locally. Within the third column, select "ON_TIMER_AND_INPUT". This indicates that the command shall be invoked whenever one of the inputs changes and/or after a predefined timer interval has elapsed. To specify the timer interval, enter "1" in the "Options" column. This indicated that the command shall be executed every second in addition to a change of value of an input. Then, press the "..." button within the "XCommand" column. A dialog appears where the command can be selected and configured. Select the "Delayed Off" command from the drop down list. Afterwards, specify the different inputs, outputs, and parameters. A possible configuration is shown in the following figure.

...