Mitsubishi Electric CR750-Q Instruction Manual page 360

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

Advertisement

4MELFA-BASIC V
M_In/M_Inb/M_In8/M_Inw/M_In16
[Function]
Returns the value of the input signal.
M_In: Returns a bit.
M_Inb or M_In8: Returns a byte (8 bits).
M_Inw or M_In16: Returns a word (16 bits).
[Format]
Example) <Numeric Variable>=M_In(<Equation>)
Example) <Numeric Variable>=M_Inb(<Equation>) or M_In8(<Equation>)
Example) <Numeric Variable>=M_Inw(<Equation>) or M_In16(<Equation>)
[Terminology]
<Numeric Variable>
<Equation>
[Reference Program]
1 M1%=M_In(0)
2 M2%=M_Inb(0)
3 M3%=M_Inb(3) And &H7
4 M4%=M_Inw(5)
[Explanation]
(1) Returns the status of the input signal.
(2) M_Inb/M_In8 and M_Inw/M_In16 will return 8- or 16-bit information starting from the specified number.
(3) Although the signal number can be as large as 32767, only the signal numbers with corresponding hard-
ware will return a valid value. Value for a signal number without corresponding hardware is set as unde-
fined.
(4) This variable only reads the data.
CAUTION
4-340 Detailed explanation of Robot Status Variable
Specifies the numerical variable to assign. Supplementary explanation is
shown in
Table
4-22.
Enter the input signal number. Supplementary explanation is shown in
(1)CR7xx-Q series
10000 to 18191: Multi-CPU share device
716 to 731: Multi-hand input.
900 to 907: Hand input.
(2)CR7xx-D series
0 to 255: Standard remote inputs.
716 to 731: Multi-hand input.
900 to 907: Hand input.
2000 to 5071: Input signal of PROFIBUS.
6000 to 8047: Remote input for CC-Link.
' M1 will contain the value of the input signal 0 (1 or 0).
' M2 will contain the 8-bit information starting from input signal 0.
' M3 will contain the 3-bit information starting from input signal 3.
' M4 will contain the 16-bit information starting from input signal 5.
Always make interlock of signal to take synchronization. Failure to observe this
could lead to cause of malfunction by the signal transmitted incorrectly.
Table
4-23.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents