Manual – IPOSplus®
221
17
Standard functions
Compiler – Functions
function name Name of the event function. (Important: In contrast to a function call,
only the name of the function without () is specified here)
Example
#include <constb.h>
#define DI02 0b100 // DI02 = 0b100
TerminalIsOne ()
{
// Statements of the event function
}
main()
{
while(1)
{
// Main program loop task 1
_InputCall( IC_HIGH,DI02,TerminalIsOne );
// if terminal DI02 == HIGH ("1"), call the function
}
}
17.3.13 _Memorize
Syntax
_Memorize ( action )
Description Enables IPOS
plus®
programs and/or variables to be saved or loaded in or from the non-
volatile memory (EEPROM) on the unit. The action is specified via the argument.
Key points action Constant expression for action. action can adopt one of the following values:
INFORMATION
If you use the command in a fast task, you have to set a _Wait command of at least 1
ms after the _Memorize command.
MEM_NOP: No data is saved
MEM_STALL: Saves program and variables
MEM_LDALL: Loads program and variables
MEM_STPRG: Saves program only
MEM_LDPRG: Loads program only
MEM_STDATA: Saves variables only
MEM_LDDATA: Loads variables only
INFORMATION
When using the _Memorize() command with MOVIDRIVE
®
A and MC07B, note that
variables stored in the non-volatile memory (H0 – 127) and all parameters are not writ-
ten cyclically. This is because the number of storage operations with the storage me-
dium EEPROM is restricted to 10
5
storage operations.
This restriction does not apply to MOVIDRIVE
®
B.