
6 |
7. Next, the LED functions must be defined.
●
●
●
Function keys F1 and F2 should be assigned LED function Key LED blinking slow. The value in the first input field (see step 3) can be changed in steps with these keys.
Function keys F3 and F4 should be assigned LED function Key LED switched on. These keys switch to other pictures.
For the description of how to assign an LED function to a key, see step 5 under “Main Picture” on page
8. Save this picture under the name INPUT:
●
●
●
Press Esc or F10 Exit.
PCS warns you that the picture is not yet saved.
Enter Y to save the picture.
Enter picture name INPUT in the Save Picture window and press the ↵ key. The picture is then saved and the main menu appears again.
CLOCK Picture (Setting the Real Time Clock)
The date and time of the internal real time clock can be set in this picture. By pressing keys on the Panel, the date and the time are entered in input fields on the Panel display. The real time clock however, is only set when function key F1 (SET HH/MM/SS) or F2 (SET MM/DD/YYYY) is pressed.
To set the real time clock on the PANELWARE Panel, internal variables are used. The following table lists these variables and their functions:
Variable name
DATE_YY_S
DATE_MM_S
DATE_DD_S
TIME_HH_S
TIME_MM_S
TIME_SS_S
DATE_SET
TIME_SET
Data type
Word unsigned
Byte unsigned
Byte unsigned
Byte unsigned
Byte unsigned
Byte unsigned
Byte unsigned
Byte unsigned
Description
Year (Format 19xx)
Month
Day
Hours
Minutes
Seconds
By writing a
By writing a
The input fields are scaled, limiting the entry to a valid range for time and date values. Date and time are set through key functions.
| Chapter 6 Demo Project | 6 - 33 |