Mitsubishi Electric CR750-Q Instruction Manual page 351

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

Advertisement

M_DIn32
[Function]
Obtains 32-bit data via the CC-Link register from an external device.
[Format]
Example)<Numeric Variable>=M_DIn32 (<Equation/Inputting register number>)
[Terminology]
<Numeric Variable>
<Equation/Inputting register number> The range of CC-Link register numbers that can be specified is
[Reference Program]
1 M1=M_DIn(6000)
2 M2%=6002
3 M3&=M_DIn32(M2%) And &H7FFFF ' Obtains a value of 32 bits from the CC-Link register number
[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.
Specifies a long-precision integer number variable to be
substituted.
from 6000 to 6254.
' Obtains a value of 32 bits from CC-Link register number 6000
and 6001, and assigns that value to M1&.
' Assigns 6002 to M2%.
specified by M2%, and assigns the lowest 19-bit value from that
value to M3&.
Detailed explanation of Robot Status Variable 4-331
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