Jetter AG
Programming | 7
JVM-104-O08 User Manual
27 / 44
Var
Digipot_Count : Int
At
%VL
363000
;
Digipot_Limit_min: Int
At
%VL
363002
;
Digipot_Limit_max: Int
At
%VL
363003
;
Digipot_Button : Int
At
%VL
363001
;
BackgroundLighting: Int
At
%VL
364000
;
End_Var;
Task
Main
Autorun
Digipot_Count :=
0
;
Digipot_Limit_max :=
17
;
Digipot_Limit_min :=
0
;
Loop
If
Digipot_Button
Then
BackgroundLighting :=
255
;
Else
BackgroundLighting := Digipot_Count
* 15
;
End_If
End_Loop
End_Task;
INFO
For more information on this subject, refer to JetSym online help.
7.5.3 Ignition and OFF delay
This chapter covers the ignition and the function
Shutdown()
.
Special registers
The special register 361100 of the JVM-104-O08 is responsible for prompting the
state of the ignition. Where:
If …
… then …
Bit 0 = 0
Ignition is switched on and voltage is
present at terminal 15 Ignition (+)
Bit 0 = 1
Ignition is off and no voltage is present
at terminal 15 Ignition (+)
Default ignition
function
The HMI has the following default settings in connection with ignition:
If …
… and …
… then …
... voltage is applied to the
HMI, ...
... the ignition is off, ...
... the HMI does not boot
up.
... voltage is applied to the
HMI, ...
... the ignition is on, ...
... the HMI boots up.
... the HMI is powered on, ... ... the ignition is switched
off (not the power sup-
ply), ...
... the HMI remains
switched on.
Shutdown() func-
tion - Options
Unlike the default ignition function, the
Shutdown()
function offers the following
options:
■
The HMI can be explicitly shut down.
■
The HMI can be restarted.
Function declara-
tion
Function
Shutdown(Reboot:Bool) :Bool;
Function parame-
ters
The
Shutdown ()
function has the following parameters: