![Mitsubishi Electric CR750 Series Instruction Manual Download Page 351](http://html.mh-extra.com/html/mitsubishi-electric/cr750-series/cr750-series_instruction-manual_238840351.webp)
Detailed explanation of Robot Status Variable
4-331
M_DIn32
[Function]
Obtains 32-bit data via the CC-Link register from an external device.
[Format]
[Terminology]
<Numeric Variable>
Specifies a long-precision integer number variable to be
substituted.
<Equation/Inputting register number> The range of CC-Link register numbers that can be specified is
from 6000 to 6254.
[Reference Program]
1 M1=M_DIn(6000)
' Obtains a value of 32 bits from CC-Link register number 6000
and 6001, and assigns that value to M1&.
2 M2%=6002
' Assigns 6002 to M2%.
3 M3&=M_DIn32(M2%) And &H7FFFF ' Obtains a value of 32 bits from the CC-Link register number
specified by M2%, and assigns the lowest 19-bit value from that
value to M3&.
[Explanation]
(1) Two points are used for obtaining 32-bit data from the specified CC-Link register number.
(2) Use a long-precision integer number variable for <Numeric Variable>. If any other variable is used, the
correct information cannot be obtained.
(3) Specify a CC-Link register number between 6000 and 6254. If a number outside the range is specified,
an all-zero value will be returned and no error will be generated.
(4) M_DIn32 is read-only.
Example)<Numeric Variable>=M_DIn32 (<Equation/Inputting register number>)