Algorithm 1 - Equal directional control

This algorithm is NOT available in f.w. >= 4.2

This algorithm is the only algorithm available for f.w. < 4.0.

Internal temperature control algorithm parameters

This command must be used carefully and according to the used online temp. control algorithms. Be sure that the default command parameters aren’t satisfactory before overwriting them. The following parameters are introduced for ease of command explanation:

  • Pfirst/last: Indicate the first motor position change in valve opening direction and the last motor position change in valve closing direction;

  • Pnext: Indicate the next motor position change in valve opening/closing direction;

  • Talg: The period for motor position change decisions depending on the desired and measured temperatures;

  • Tdiff open/close: Temperature difference between the target TtargetT_{target} and measured TmeasuredT_{measured} temperatures, to be surpassed, to get decision for valve movement. This parameter is set with separate command for compatibility with older device software versions.

Check Figure 1 for command and entire internal algorithm operation understanding. The example scenario shown on the figure is for heating primary device mode. The algorithm operation is analogical for cooling device primary mode with the only difference that under cooling mode the valve is opened in order to lower the ambient temperature, not to rise it. Check the table below for additional algorithm understanding under different device primary modes.

Device primary mode

Heating

Cooling

Valve opened if

(Ttargettmeasured)>Tdiffopen(T_{target}-t_{measured}) > T_{diff open}

(TtargetTmeasured)<Tdiffopen(T_{target} - T_{measured}) < -T_{diff open}

Valve closed if

(TtargetTmeasured)<Tdiffclose(T_{target}-T_{measured}) < -T_{diff close}

(TtargetTmeasured)>Tdiffclosed(T_{target} - T_{measured}) > T_{diff closed}

! Important note on the algorithm operation.

The implemented temperature control algorithm is compliant with the stepper motor mechanical system. It's mandatory the valve to be opened and later closed with same number of movements per direction. Also, each movement at one of the directions must be with equal number of steps, to the corresponding movement to the other direction. This fashion of motor control is needed, to struggle the loss of generated steps, due to the motor mechanical system backlash. It can be observed at Figure 1.

If Vicki works in mode at which the motor position is set through the server, it is mandatory the server moves the valve with same number of steps, as the internal algorithm (Pfirst/last, Pnext). Also, Pfirst/last/next values less than 16 steps are meaningless.

Figure 1

This command is used to get Vicki internal temperature control alg. parameters from Figure 1, except Tdiff open/close. Server sends the command code and the response is sent from Vicki together with the next keep-alive command. The sent command request and the received command response are described in Table 23. The keep-alive in the response is omitted for clarity.

Byte index

Sent request

Received response

0

16 – Command code.

16 – The command code.

1

XX – Internal algorithm temperature check period in minutes – Talg.

2

XX – Internal algorithm first/last opening/closing steps – Pfirst/last.

3

XX – Internal algorithm next opening/closing steps – Pnext.

Table 23

Example command sent from server: 0x16;

Example command response: 0x16141111 – Talg=20 minutes, Pfirst/last=17 steps,

Pnext=17 steps.

Internal temperature control algorithm parameters – Tdiff only

This command is used to get Vicki internal temperature control alg. parameters Tdiff open/close from Figure 1. Server sends the command code and the response is sent from Vicki together with the next keep-alive command. The sent command request and the received command response are described in Table 24. The keep-alive in the response is omitted for clarity.

Byte index

Sent request

Received response

0

17 – Command code.

17 – The command code.

1

XX – Tdiff open value, [°C]. The resolution is 1°C.

2

XX – Tdiff close value, [°C]. The resolution is 1°C.

Table 24

Example command sent from server: 0x17;

Example command response: 0x170201 – Tdiff open=2°C, Tdiff close=1°C.

Last updated