Mitsubishi MELFA CR1D Instruction Manual page 301

Table of Contents

Advertisement

M_Out/M_Outb/M_Outw
[Function]
Writes or references external output signal.
M_Out:Output signal bit.
M_Outb:Output signal byte (8 bits).
M_Outw:Output signal word (16 bits).
[Format]
Example)M_Out(<Equation>)=<Numeric Variable>
Example)M_Outb(<Equation>)=<Numeric Variable>
Example)M_Outw(<Equation>)=<Numeric Variable>
Example)M_Outw(<Equation>)=<Numeric Variable> Dly <Time>
[Terminology]
<Numeric Variable>
<Equation>
<Time>
[Reference Program]
1 M_Out(2)=1
2 M_Outb(2)=&HFF
3 M_Outw(2)=&HFFFF
4 M4=M_Outb(2) AND &H0F
[Explanation]
(1) This is used when writing or referencing external output signals.
(2) Numbers in 900's will be used as I/O signals for the hand.
(3) Numbers 6000 and beyond will be referenced/assigned to the CC-Link (optional).
(4) Refer to
Page 193, "
M_PI
[Function]
Returns pi (3.14159265358979).
[Format]
Example)<Numeric Variable>=M_PI
[Terminology]
<Numeric Variable>
[Reference Program]
1 M1=M_PI
[Explanation]
(1) A variable to be assigned will be a real value.
(2) This variable only reads the data.
Specifies the numerical variable to assign.
Specify the output signal number.
0 to 255 : Standard remote outputs.
900 to 907 : Hand output.
2000 to 5071 : Output signal of PROFIBUS.
6000 to 8047 : Remote output for CC-Link.
Describe the output time for the pulse output as a constant or numeric opera-
tion expression. Unit: [Seconds]
' Turn ON output signal 2 (1 bit).
' Turns ON 8-bits starting from the output signal 2.
' Turns ON 16-bits starting from the output signal 2.
' M4 will contain the 4-bit information starting from output signal 2.
Dly (Delay)" for the explanation of pulse output.
Specifies the numerical variable to assign.
' 3.14159265358979 is assigned to M1.
Detailed explanation of Robot Status Variable 4-288
4MELFA-BASIC IV

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents