96
Jetter AG
8 Programming
Memory for non-volatile application program variables
Non-volatile variables are used to store data which must be maintained when
the JVM-507B is de-energized.
Global variables which are assigned to permanent registers (%RL)
Variables are stored in a compact way.
Size: 120,000 bytes
Register numbers: 1,000,000 ... 1,029,999
By JetSym
From HMIs
From the application program
The following program increments the content of four non-volatile variables
every second.
The working range of the counters is between 0 and 255 (variable type: byte).
For these four variables the four bytes of register 1000010 are used.
Var
Cnt1, Cnt2, Cnt3, Cnt4: Byte
At
%RL
1000010
;
End_Var
;
Task
Count4
Autorun
Loop
Inc(Cnt1);
Inc(Cnt2,
2
);
Inc(Cnt3,
5
);
Inc(Cnt4,
10
);
Delay(
T#1s
);
End_Loop
;
End_Task
;
The JetSym setup pane displays the content of the variable. As the type of the
four counters is byte, this will result in counter overflow after a relatively short
time:
Number
Description
Function
1
Current content of the
variable Cnt1
The content of the variable is incremented by
one every second.
Introduction
Characteristics
Memory access
JetSym STX program
Setup pane