Wesley BC-620-4CA User Manual

Page 89

Advertising
background image

Curtis 1234/36/38 Manual,

OS

11

85

2 3 J U LY 2 0 0 8 D R A F T

The VCL functions described in the VCL Common Functions Manual are
available on 1234/36/38 controllers. These controllers also have these addi-
tional functions:

ENABLE_PRECHARGE() ............ p. 103
DISABLE_PRECHARGE() ........... p. 104
SET_DIGOUT() ............................ p. 105
CLEAR_DIGOUT() ....................... p. 105
ENABLE_EMER_REV() ............... p. 106
DISABLE_EMER_REV() .............. p. 106
SET_INTERLOCK() ..................... p. 107
CLEAR_INTERLOCK() ................ p. 107
SETUP_POT_FAULTS() .............. p. 108
START_PUMP() ........................... p. 109
STOP_PUMP() ............................ p. 109

These functions, which are not included in the VCL Common Functions
Manual, are described at the end of Section 7.

VARIABLE TYPES
VCL provides dedicated space in which to store custom variables. There are
four types of variables, based on their type of storage: volatile storage (RAM)
and three types of non-volatile storage (EEPROM) are available.

RAM variables are stored only while power is on; they are lost at power-

down. They must be initialized on power-up by explicit VCL assignments (i.e.,
User1 = 12).

NVUser1–15 EEPROM variables are 15 variables stored at power-down

and recalled by the operating system when the NVM_NVUser_Restore func-
tion is used. Thus, they 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.

Block EEPROM are 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 must point to the RAM variables that the EEPROM blocks should be
written from or read to. For example, NVM_Block_Read(NVM10,0,15,User20)
will read the 15 variables stored in EEPROM block NVM10 and restore
those variables to the 15 variables starting with RAM variable User20 (so the
15 EEPROM variables would be restored to User20–34). See the section on
non-volatile memory access in the VCL Common Functions manual for more
information.

Parameters EEPROM variables are a special type of EEPROM variable

that is intended to be used to create OEM defined 1311 parameters. These 1311
parameters can be defined as 16-bit by using the P_User variables or they can
be defined as bit (On/Off) by using the P_UserBit variables. These variables

7 — VCL

Advertising