![Mitsubishi Electric CR750 Series Instruction Manual Download Page 360](http://html.mh-extra.com/html/mitsubishi-electric/cr750-series/cr750-series_instruction-manual_238840360.webp)
4-340
Detailed explanation of Robot Status Variable
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]
[Terminology]
<Numeric Variable>
Specifies the numerical variable to assign. Supplementary explanation is
shown in
<Equation>
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.
[Reference Program]
1 M1%=M_In(0)
' M1 will contain the value of the input signal 0 (1 or 0).
2 M2%=M_Inb(0)
' M2 will contain the 8-bit information starting from input signal 0.
3 M3%=M_Inb(3) And &H7
' M3 will contain the 3-bit information starting from input signal 3.
4 M4%=M_Inw(5)
' M4 will contain the 16-bit information starting from input signal 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.
Always make interlock of signal to take synchronization. Failure to observe this
could lead to cause of malfunction by the signal transmitted incorrectly.
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>)
CAUTION