EasyManua.ls Logo

Mitsubishi Electric CR760-D - Page 372

Mitsubishi Electric CR760-D
730 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-352 Detailed explanation of Robot Status Variable
4MELFA-BASIC V
M_Out/M_Outb/M_Out8/M_Outw/M_Out16
[Function]
Writes or references external output signal.
M_Out:Output signal bit.
M_Outb or M_Out8:Output signal byte (8 bits).
M_Outw or M_Out16:Output signal word (16 bits).
[Format]
[Terminology]
<Numeric value 1> Specify the output signal number. Supplementary explanation is shown in Table 4-26.
(1)CR7xx-Q series
10000 to 18191: Multi-CPU share device
716 to 723: Multi-hand output.
900 to 907: Hand output.
(2)CR7xx-D series
0 to 255: Standard remote outputs.
716 to 723: Multi-hand output.
900 to 907: Hand output.
2000 to 5071: Input signal of PROFIBUS.
6000 to 8047: Remote input for CC-Link.
<Numeric Variable> Specifies the numerical variable to assign.
<Numeric value 2>, <Numeric value 3>, <Numeric value 4>
Describe the value to output by the numeric variable, the constant, or numerical
arithmetic expression.Supplementary explanation is shown in Table 4-27.
Numerical range
<Numeric value 2>: 0 or 1 (&H0 or &H1)
<Numeric value 3>: -128 to +127 (&H80 to &H7F)
<Numeric value 4>: -32768 to +32767 (&H8000 to &H7FFF)
<Time> Describe the output time for the pulse output as a constant or numeric opera-
tion expression. Unit: [Seconds]
<Numeric Variable> Specifies the numerical variable to assign. Supplementary explanation is shown in
Table 4-28.
[Reference Program]
1 M_Out(2)=1 ' Turn ON output signal 2 (1 bit).
2 M_Outb(2)=&HFF ' Turns ON 8-bits starting from the output signal 2.
3 M_Outw(2)=&HFFFF ' Turns ON 16-bits starting from the output signal 2.
4 M4=M_Outb(2) AND &H0F ' M4 will contain the 4-bit information starting from output signal 2.
[Explanation]
(1) This is used when writing or referencing external output signals.
(2) Numbers 6000 and beyond will be referenced/assigned to the CC-Link (optional).
(3) Refer to Page 216, "Dly (Delay)" for the explanation of pulse output.
(4) By high-speed mode setting of parameter: SYNCIO, the updating cycle to the external output signal can
be made speedy. However, always make interlock of signal to take synchronization. Because to make
the timing of the I/O signal correct. Refer to SYNCIO in Page 455, "SYNCIO"
Example)M_Out(<Numeric value 1>)=<Numeric value 2>
Example)M_Outb(<Numeric value 1>) or M_Out8(<Numeric value 1>)=<Numeric value 3>
Example)M_Outw(<Numeric value 1>) or M_Out16(<Numeric value 1>)=<Numeric value 4>
Example)M_Out(<Numeric value 1>)=<Numeric value 2> Dly <Time>
Example)<Numeric Variable>=M_Out(<Numeric value 1>)

Table of Contents

Related product manuals