Logo Home controller - Introduction
Home controller - Interface application
Home controller - Schematic Diagram
Home controller - Analog Configuration
Home controller - Download
Home controller - Links

   

   

             

Interface Application

Main Window

The SerReg software includes two applications - Interface application and Analog Configuration Tool. The interface application is designed to provide a friendly and flexible interface to the controller. The main window of the interface application is shown below ( fig. 1 ). Analog Configuration Tool is a utility that helps to configurate the analog inputs. It will be described in detail later in Analog Configuration topic.

Main Window of Interface application
fig.1 Main Window

Overview of the main window controls:

redbullet Black display - the current analog value ( PV )
redbullet Red LED - the output relay is turned on
redbullet Green LED - the output relay is turned off
redbullet Combo box - the number of the comunication port ( RS232 ) COM 1 to 8
redbullet The name of the channel - user can change it from the configuration dialog
redbullet Yelloy LED - blinks when the microcontroller sends data
redbullet Start button - turns the output relay on
redbullet Stop button - turns the output relay off
redbullet Auto On Channel 1 ( 2, 3 ) - when checked, activates the automatic mode
redbullet Configuration button - opens the configuration dialog ( fig.3 )
Tray bar
When the main window is minimized, it goes to the tray bar.

Additional analog displays


fig.2 Alphanumeric Displays

The current analog value ( PV ) of every channel can be shown on the desktop as an alphanumeric display ( fig. 2 ).This is convenient when the main window is minimised.To enable this feature select Show Value On Desktop checkbox in the configuration dialog box ( fig. 3 ) of the corresponding channel.You can change the position of this dislplay on the desktop by clicking and holding the left mouse button ( the cursor will change to a cross-hair ).Also when you double-click it, a configuration dialog box is opened. This dialog box allows to adjust settings such as font typeface, font size or colors when the output relay is turn on or off.


Configuration dialog for an alphanumeric display

Common controls of Desktop Settings dialog:

Font combo box - sets the typeface name of the font
Font size combo box - sets the size of the font
Channel ON button - sets the color of the display when the output relay is turned on
Channel OFF button - sets the color of the display when the output relay is turned off
View Channel Name - when checked, shows the channel name

Manual mode

The output relay can be manually turned on/off any time by Start / Stop buttons of the interface application. The function of the Start / Stop buttons is duplicated by the button B1 ( 2, 3 ) on the front panel. If you want to turn the relay on, press and release B1 ( 2, 3 ). Press and release B1 ( 2, 3 ) again when you want to turn it off.

Automatic mode

When Auto On Channel 1 ( 2, 3 ) is checked, activates the automatic mode of the corresponding channel. Just like the Start / Stop buttons the function of Auto On Channel 1 ( 2, 3 ) is duplicated by the buttons Shift and B1 ( 2, 3 ) on the front panel. If you want to switch the automatic mode on, press both Shift and B1 ( 2, 3 ) buttons simultaneously until the LED VD1 ( 2, 3 ) comes on. Press Shift and B1 ( 2, 3 ) buttons simultaneously again until the LED VD1 ( 2, 3 ) comes off when you want to switch it off. This mode doesn't forbid you to switch the output relay manually. The "output" of the controller is logical OR between the manual and automatic mode. Further, you can click on Configuration button to open the configuration dialog ( fig.3 ). Here you can adjust all settings related to the automatic mode of the corresponding channel. When you open this dialog, the interface application receives the configuration data from the microcontroller. When you send them to the microcontroller, the real time clock is automaticly synchronized with the PC clock.

Configuration dialog
fig.3 Configuration dialog

Common controls of the configuration dialog:

redbullet Send to PIC - sends the configuration data to the microcontroller
redbullet File to PIC - loads the configuration data from a file
redbullet PIC to File - saves the configuration data to a file
redbullet Exit - exits from this dialog but doesn't send any data to the microcontroller
redbullet Current Time - loads the current PC time in the date and time fields
redbullet Convert File - loads a transformation file
redbullet Enable Buttons - enables ( default ) or disables the buttons on the front panel
redbullet Channel Name - sets the name of the channel in the main window
redbullet Filter - sets the digital filter of the current analog value in the main window ( 1 - none, 128 - strong )
redbullet Time Scheduler - enables or disables ( default ) the time scheduler function
redbullet Regulator - enables or disables ( default ) the regulator function
redbullet Turn on when the PV is above the SP - mode of the regulator function. See below.
redbullet Turn on when the PV is below the SP - mode of the regulator function. See below.
redbullet Daily Cycle - mode of the time scheduler function. See below.
redbullet Weekly Cycle - mode of the time scheduler function. See below.

Time Scheduler

bluebullet Daily Cycle - once the daily cycle has been programmed, it will repeat every day of the week until reprogrammed.
Time Scheduler - Daily Cycle

  1. Select Time Scheduler checkbox.
  2. Click on Daily Cycle radio button.
  3. Select the desired Time Interval(s)( 1..8 ) by clicking on the corresponding checkbox(es).
  4. Enter the start and stop time(s).
  5. Click on Send to PIC button.

bluebullet Weekly Cycle - once the weekly cycle has been programmed, it will repeat every week until reprogrammed.
Time Scheduler - Weekly Cycle

  1. Select Time Scheduler checkbox.
  2. Click on Weekly Cycle radio button.
  3. Select the desired Time Interval(s)( 1..8 ) by clicking on the corresponding checkbox(es).
  4. Enter the start day(s) and time(s).
  5. Enter the stop day(s) and time(s).
  6. Click on Send to PIC button.

Stationary SP Regulator

bluebullet Turn on when the PV is above the SP
Stationary SP Regulator - Turn on when the PV is above the SP

Stationary SP Regulator - Turn on when the PV is above the SP ( time diagram )
  1. Select Regulator checkbox.
  2. Click on Turn on when the PV is above the SP radio button.
  3. Enter the desired setpoint in Single SP edit box.
  4. Enter the desired hysteresis in Hysteresis edit box.
  5. Click on Send to PIC button.

bluebullet Turn on when the PV is below the SP
Stationary SP Regulator - Turn on when the PV is below the SP

Stationary SP Regulator - Turn on when the PV is below the SP ( time diagram )
  1. Select Regulator checkbox.
  2. Click on Turn on when the PV is below the SP radio button.
  3. Enter the desired setpoint in Single SP edit box.
  4. Enter the desired hysteresis in Hysteresis edit box.
  5. Click on Send to PIC button.

Non-Stationary SP Regulator

Non-Stationary SP Regulator

Non-Stationary SP Regulator ( time diagram )
  1. Select Regulator and Time Scheduler check boxes.
  2. Choose Daily Cycle or Weekly Cycle radio button.
  3. Choose Turn on when the PV is above the SP or Turn on when the PV is below the SP radio button.
  4. Select the desired Time Interval(s)( 1..8 ) by clicking on the corresponding checkbox(es).
  5. Enter the start and stop time(s).
  6. If Weekly Cycle is selected, enter the start and stop day(s).
  7. Enter the desired setpoint(s) in SP( 1..8 ) edit box(es).
  8. Enter the desired hysteresis in Hysteresis edit box.
  9. Click on Send to PIC button.



 

Last modified :
09.04.2006