Mitsubishi MELFA CR1D Instruction Manual page 275

Table of Contents

Advertisement

Substitute
[Function]
The results of an operation are substituted in a variable or array variable.
[Format]
<Variable Name> = <Expression 1>
For pulse substitution
<Variable Name> = <Expression 1> Dly <Expression 2>
[Terminology]
<Variable Name>
<Expression 1>
<Expression 2>
[Reference Program]
(1) Substitution of the variable operation result .
1 P100=P1+P2*2
(2) Output of the signal.
2 M_Out(10)=1
(3) Pulse output of the signal.
3 M_Out(17)=1 Dly 2.0
[Explanation]
(1) When using this additionally for the pulse output, the pulse will be executed in parallel with the execution
of the commands on the following steps.
(2) Be aware that if a pulse is output by M_Outb or M_Outw, the bits are reversed in 8-bit units or 16-bit
units, respectively. It is not possible to reverse at any bit widths.
(3) If the End command or program's last step is executed during the designated time, or if the program exe-
cution is stopped due to an emergency stop, etc., the output state will be held. But, the output reversed
after the designated time.
Designate the variable name of the value is to be substituted.
(Refer to the syntax diagram for the types of variables.)
Substitution value. Describe an numeric value operation expression.
Pulse timer. Describe an numeric value operation expression.
' Turn on the output signal 10.
' Turn on the output signal 17 for 2 seconds.
Detailed explanation of command words 4-262
4MELFA-BASIC IV

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents