Mitsubishi Electric CR750-Q Instruction Manual page 228

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

Advertisement

4MELFA-BASIC V
[Explanation]
(1) An input signal is read when referencing this variable.
(2) An output signal is written when assigning a value to this variable.
(3) It is not allowed to reference an output signal by this variable. Use the M_Out variable in order to refer-
ence an output signal.
(4) The variable name can have up to 16 characters. Refer to the
can be used in program"
(5) When mask information is designated, only the specified signal will be validated.
Example) In the reference program (2) the 20th step, the input/output data with a bit width of eight is
masked by 0F in hexadecimal. Thus, if PORT 2 is used thereafter;
• When used as an input signal (M1 = PORT 2):
Numbers 5 to 8 are used for input, and numbers 9 to 12 are always treated as 0.
• When used as an output signal (PORT 2 = M1):
Data to be output this time is output to numbers 5 to 8, and the status currently being output
is retained at numbers 9 to 12.
Def Jnt (Define Joint)
[Function]
This instruction declares joint type position variables. It is used when using a variable with a name that
begins with a character other than "J." It is not necessary to declare variables whose names begin with the
character "J" using the Def Jnt instruction.
[Format]
Def[]Jnt[] <Joint variable name> [, <Joint variable name>]...
[Terminology]
<Joint variable name>
[Reference Program]
1 Def Jnt SAFE
2 Mov J1
3 SAFE = (-50,120,30,300,0,0,0,0)
4 Mov SAFE
[Explanation]
(1) Use this instruction to define a joint position variable by a name beginning with a character other than J.
(2) The variable name can have up to 16 characters. Refer to the
can be used in program"
names, the maximum value (240 characters including command) can be set on one step.
(3) A variable becomes a global variable that is shared among programs by placing "_" after J in the variable
name and writing it in a base program.
Refer to
Page 145, "4.4.24 User-defined external variables"
4-208 Detailed explanation of command words
for the characters that can be used.
No. 12
No.5 (Input/output bit No.)
0 0 0 0 1 1 1 1
Invalid
Valid
No. 12
No.5 (Input/output bit No.)
* * * * 1 1 1 1
(a)
(b)
(a) Retains the current output status
(b) Output data of this time
Designate a variable name.
' Declare "SAFE" as a joint variable.
' For joint type position variables starting with J, the definition of
"Def Jnt" is not required.
' Move to SAFE.
for the characters that can be used. When designating multiple variable
Page 136, "4.4.6 Types of characters that
Page 136, "4.4.6 Types of characters that
for details.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents