Specifications

26
Curtis 1310 Manual, Rev. B
VARIABLE TYPES & QUANTITIES
VCL provides dedicated space in which to store custom variables. There are
four types of variables, based on their type of storage:
volatile memory (RAM)
automatic non-volatile memory (EEPROM)
non-volatile block memory (EEPROM)
parameter non-volatile memory (EEPROM).
Volatile memory variables (RAM) are stored only while power is on; they
are lost at power-down. This is the memory used to hold temporary calculations,
counters, and other variables that are needed only while running. The generic
VCL names for these variables are User1–User120. They must be initialized
on power-up by explicit VCL assignments (e.g., User1 = 12); otherwise they
will be reset to a value of 0.
Automatic non-volatile memory variables (EEPROM) are labeled NVUs
-
er1–NVUser15 in VCL. These 15 variables are stored cyclically while running
and at power-down. They can be recalled by using the NVM_NVUser_Restore
function is used. Thus, they are automatically saved and can then be recalled at
the next power-on cycle, which restores their previous values. See the section
on non-volatile memory access in the VCL Common Functions manual for
more information.
Non-volatile block memory (EEPROM) is 38 blocks of 15 variables (total
of 570 variables), which are stored and recalled using the functions NVM_Block_
Read and NVM_Block_Write. The 38 blocks are called NVM3–NVM40. The
read and write functions will retrieve and store RAM variables (such as User20)
from and into the EEPROM blocks. See the section on non-volatile memory
access in the VCL Common Functions manual for more information.
Parameter non-volatile variables (EEPROM) are a special type of EE
-
PROM variable that is intended to be used to create OEM-defined 1311/1314
parameters. These parameters can be defined as 16-bit words by using the
P_User variables or they can be defined as single bits (On/Off) by using the
P_UserBit variables. Parameter variable values are modified and stored through
the programmer interface (i.e., when a 1311 user changes a parameter setting
using the 1311). They can be read or written to in the VCL code. However, it
is important to note that writing to parameters in VCL will not be stored
in EEPROM nor read by the 1311 or 1314 programmer. At the next power
down, the data changes made by VCL will be lost. These variables are intended
to be used only for creating and defining 1311/1314 parameters.
TYPE QUANTITY RANGE
RAM 120 16-bit variables User1 – User120
160 single-bit variables UserBit1 – UserBit10
NVUser EEPROM 15 variables NVUser1 – NVUser15
Block EEPROM 38 blocks NVM3 NVM40
(15 variables each)
Parameters EEPROM 100 16-bit variables P_User1 P_User100
160 single-bit variables P_UserBit1 – P_UserBit10
5 — VCL