2 Instruction Descriptions
2-338
NJ-series Instructions Reference Manual (W502)
If InOut is an array, array element, structure, or structure member, the following processing is per-
formed.
The following figure shows a programming example. The value of variable abc is initialized.
• If InOut is an array that is used as a stack, execute this instruction and also set the variable that man-
ages the number of items stored in the stack to 0.
• If you initialize a cam data variable with this instruction, it will not contain the data that was saved with
the MC_SaveCamTable instruction. It will contain all zeros.
Return value Out is not used when the instruction is used in ST.
InOut Processing
Array All elements in the array are initialized.
Array element Only the specified element is initialized.
Structure All members in the structure are initialized.
Structure member Only the specified member is initialized.
Additional Information
Precautions for Correct Use
Clear(abc);
LD ST
abc abc
Clear
EN ENO
InOut