Commissioning
These commissioning instructions assume that the temperature controller is fully commissioned.
In the first step it is necessary that an array of type ST_TcPfw_ClockTimerItf is created in the global variables. The array size reflects the number of weekly timers. Subsequently, the following constants are to be created:
Constant definition
Variable | Short description | Example value | Maximum values |
---|---|---|---|
cnPfwAppClockTimerFirst | Initial index to set the size of the array and thus the number of weekly timers. | 1 | 1 |
cnPfwAppClockTimerLast | End index to set the size of the array and thus the number of weekly timers. | 2 | Limited by computing power and memory |
cnPfwClockTimerCamFirst | Initial index to set the size of the array and thus the number of channels per weekly timer. | 1 | 1 |
cnPfwClockTimerCamLas3 | End index to set the size of the array and thus the number of channels per weekly timer. | 3 | 9 |
Parameterization
In order to transfer the correct time to the timer, the following structure must be observed:
The structure ST_TcPfw_ClockTimerItf is divided into Q and Day, where Day is a two-dimensional array. The first index indicates the number of the day of the week (1=Monday, 2=Tuesday,3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday) and the second index indicates the number of the corresponding channel. This two-dimensional array is again divided into an On-Array and an Off-Array. Both On-Array and Off-Array has three elements for:
- On/Off[1]=hour in the value range 0...23,
- On/Off[2]=minute in the value range 0...59,
- On/Off[3]=second in the value range 0...59.
This is used to set the switch-on and switch-off time and to set output Q accordingly.
Parameterization
A very simple application has been prepared as a sample project.
- All program lines referring to the weekly timer are marked with (*ClockTimer*).
- If different times are entered into the array during the running program, the corresponding output will be active at the corresponding times.
- Example:
- On Tuesday from 17:00 to 18:00 standby / the output stClockTimer[1].Q[1] must activate the controller in the application.