Mitsubishi MELFA CR1D Instruction Manual page 175

Table of Contents

Advertisement

Clr (Clear)
[Function]
This instruction clears general-purpose output signals, local numerical variables in a program, and numeri-
cal external variables.
[Format]
Clr[]<Type>
[Terminology]
<Type>
[Reference Program]
(1) The general-purpose output signal is output based on the output reset pattern.
1 Clr 1
(2) The local numeric variables and numeric array variables in the program are cleared to 0.
1 Dim MA(10)
2 Def Inte IVAL
3 Clr 2
(3) All external numeric array variables and external numeric array variables are cleared to 0
1 Clr 3
(4) (1) though (3) above are performed simultaneously.
1 Clr 0
[Related parameter]
ORST0 to ORST224
[Related system variables]
M_In/M_Inb/M_Inw,
It is possible to specify either a constant or a variable.
0 : All steps 1 to 3 below are executed.
1 : The general-purpose output signal is cleared based on the output reset pattern.
The output reset pattern is designated with parameters ORST0 to ORST224.
Refer to
Page 374, "5.14 About the output signal reset
( 0: OFF, 1: ON, *: Hold )
2 : All local numeric variables and numeric array variables used in the program are cleared
to zero
3 : Clears all external numerical variables (External system variables and user-defined
external variables) and external numerical array variables, setting them to 0. External
position variables are not cleared.
' Clears MA(1) through MA(10), IVAL and local numeric variables in the program to 0.
M_Out/M_Outb/M_Outw
pattern".
Detailed explanation of command words 4-162
4MELFA-BASIC IV

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents