Mitsubishi Electric CR750-Q Instruction Manual page 329

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
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
Page 166, "4.9 Operators"
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.
for the types of variables.)
Detailed explanation of command words 4-309
4MELFA-BASIC V

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents