Name: SKMainViewBasic_t

Type: Function block

Language type: ST

Description:

This FUNCTION_BLOCK manages FREE Smart local display LEDs and keys, detecting long presses ('hot-key' functions) of them, in fundamental view

Input/Output:

Name Type Description
enable BOOL Menu enabled: it can be disabled due to a user command (issued in order to enter a sub-menu)

Input:

Name Type Description
showOff BOOL show Off on right display
rightValueType USINT Kind of value to show on LCD's right display
rightValue INT Value to show on LCD's right display
showLeftValue BOOL show left value otherwise hours is displayed
leftValueType USINT Kind of value to show on LCD's left display
leftValue INT Value to show on LCD's left display, if leftValueType is not TEXT
leftText STRING[4] Text to print on LCD's left display, if leftValueType is TEXT
generalAlarm BOOL generalAlarm is active
generalAlarmMsg STRING[4] Message to display when generalAlarm is active
alarm USINT 0 = no alarm currently active, 1 = at least one alarm is currently active, 2 = all active alarms can be reset

Output:

Name Type Description
enableSetMenu BOOL If TRUE, the user issued a command to switch to set menu
enablePrgMenu BOOL If TRUE, the user issued a command to switch to Prg menu
timeout BOOL Timeout detected in fundamental view
longdownrequest BOOL long down request
longescrequest BOOL long esc request
longsetrequest BOOL long set request
longuprequest BOOL long up request
uprequest BOOL up request
downrequest BOOL down request