User`s guide
Memor y Copy
Applying a mask to the copy process lets you select individual
bits in the result, for example, to read the value of the fi fth bit by
applying the mask.
Set memory value at termination
Along with initializing memory when the program starts to access
this memory location, this parameter directs the program to s et
memory to a specific value when the program terminates.
Set memory value only at initialization/termination
This block performs operations at three periods during program
execution—initialization, real-time operations, and termination.
When you check this option, the block only doe s the memory
initialization and termination processes. It does not perform any
copies during real-time operatio ns.
Insert custom code before memory write
Select this parameter t o add custom AN SI C code before the
program writes to the specified memory location. When you select
this option, you enable the Custom code parameter where you
enteryourANSICcode.
Custom code
Enter the custom ANSI C code to insert into the generated code
just before the memory write operation. Code you enter in this
field appears in the generated code exactly a s you enter it.
Insert custom code after memory write
Select this parameter to add custom ANSI C code immediate ly
after the program writes to the specified memory location. When
you select this option, you enable the Custom code parameter
where you enter your ANSI C code.
Custom code
Enter the custom ANSI C code to insert into the generated code
just after the m emory write operation. Code you ente r in this field
appears in the generated code e xactly as you enter it.
9-43