Mitsubishi Electric CR750-Q Instruction Manual page 397

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

M_XDev/ M_XDevB/ M_XDevW/ M_XDevD
[Function]
Reads the value of sequencer input signal (X) in the robot controller of CR7xx-Q series. (Only CR7xx-Q
series)
The direct reference of the input signal of the input output unit / input output mixing unit managed by other
CPU is possible. (Refer to
M_XDev: Reads per bit.
M_XDevB: Reads per byte. (8 bits)
M_XDevW: Reads per word. (16 bits)
M_XDevD: Reads per double word. (32 bits)
[Format]
<Numeric Variable> = M_XDev[(<Sequencer input signal number>)]
<Numeric Variable> = M_XDevB[(<Sequencer input signal number>)]
<Numeric Variable> = M_XDevW[(<Sequencer input signal number>)]
<Numeric Variable> = M_XDevD[(<Sequencer input signal number>)]
[Terminology]
<Numeric Variable>
<Sequencer input signal number> Specify the input signal number to refer to with the constant or the
[Reference Program]
1 M1%=M_XDev(1)
2 M2%=M_XDevB(&H10)
3 M3%=M_XDevW(&H20) And &H7
4 M4%=M_XDevW(&H20)
5 M5&=M_XDevD(&H100)
6 P1.Y=M_XDevD(&H100)/1000
[Explanation]
(1) Return the condition of sequencer input signal (X) by the integer value.
(2) Each return the data of the following width about the specified sequencer input-signal number.
M_XDev: 1 bit, M_XDevB:8 bit, M_XDevW:16 bit, M_XDevD:32 bit
Page 545, "5.25 Sequencer input/output unit direct
Specify the numeric variable which substitute the value of the input
signal.
numeric variable.
Although the useful range is "&H0" - "&HFFF" (0 - 4095 in decimal
number) in hexadecimal expression, it differs for each status variable.
M_XDev: &H0 - &HFFF(0 - 4095)
M_XDevB: &H0 - &HFF8(0 - 4088)
M_XDevW: &H0 - &HFF0(0 - 4080)
M_XDevD: &H0 - &HFE0(0 - 4064)
Note) The real number is rounded off.
' The value of the sequencer input signal 1 (1 or 0) is substituted
to M2.
' The value of 8-bit width from 10 (hexadecimal number) of
sequencer input signals is substituted to M2.
' The value of 3-bit width from 20 (hexadecimal number) of
sequencer input signals is substituted to M3.
' The value of 16-bit width from 20 (hexadecimal number) of
sequencer input signals is substituted to M4.
' The value of 32-bit width from 100 (hexadecimal number) of
sequencer input signals is substituted to M5.
' Input the 32-bit width from 100 (hexadecimal number) as an inte-
ger value, and divide by 1000. (Change into the real number)
And the arithmetic result is substituted to Y coordinate value of
the position variable P1.
control")
Detailed explanation of Robot Status Variable 4-377
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