4MELFA-BASIC IV
Detailed explanation of Robot Status Variable
4-278
M_DIn/M_DOut
[Function]
This is used to write or reference the remote register of CC-Link (optional).
M_DIn : References the input register.
M_DOut : Writes or reference the output register.
[Format]
[Terminology]
<Numeric Variable>
Specifies the numerical variable that assigns the CC-Link register value.
<Equation 1>
Specifies the CC-Link register number (6000 or above).
<Equation 2>
Specifies the CC-Link register number (6000 or above).
[Reference Program]
1 M1=M_DIn(6000)
' M1 will contain the CC-Link input register value.
' (If CC-Link station number is 1.)
2 M1=M_DOut(6000)
' M1 will contain the CC-Link output register value.
3 M_DOut(6000)=100
' Writes 100 to the CC-Link output register.
[Explanation]
(1) For details, refer to the "CC-Link Interface Instruction Manual."
(2) Signal numbers in 6,000's will be used for CC-Link.
(3) M_DIn is read-only.
Example)<Numeric Variable>=M_DIn (<Equation 1>)
Example)<Numeric Variable>=M_DOut (<Equation 2>)