Mitsubishi Electric CR750-Q Instruction Manual page 392

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

Advertisement

4MELFA-BASIC V
Table 4-36:<Numeric value>
Numeric
value
Bit width
Note1)
Ex.)12
M_UDevW
M_UDevD
O
Note1) The real value is rounded off.
CAUTION
Note2)
Note3) The ranges of the numerical value which can be outputted are -2147483648 to 2147483647.
[Reference] Assurance of data sent between CPUs
The old data and the new data may be mixed (data separation) in each CPU due to the timing of receiving
data from the other CPU and reading in the host CPU.
The
Fig. 4-35
shows the method to realize the data consistency of the user data for the data transmission in
the multiple CPU high speed transmission function.
1) Preventing 32-bit data separation
Accessing to the user setting area of the multiple CPU high speed transmission area with placing
the address of even number in front (for example, address 10002) can realize the data consistency
for 32 bit data.
Device memory
Fig.4-35:Preventing 32-bit data separation
2) Preventing separation for data exceeding 32 bits
Programs are read from the start of user setting area.
With the write instruction, send data are written from the last address to the start address of the user
setting area.
Therefore, data separation can be avoided by creating an interlock device at the start of data to be
communicated.
4-372 Detailed explanation of Robot Status Variable
constant types
Hexadeci-
Binary
number
mal number
Ex.)&HC
Ex.)&B1100
O
O
O
Note2)
Note2)
Note2)
O
O
For the numerical value of the less than 16 bits of the binary number (-32768 to +32767), the specified constant will
handle as a negative numerical value, if the bit 15 (the 16th bit) turns on. Therefore, please be careful of turning on all
of upper 16 bits. (The sign bit is extended)
Example)
Designation of "-32768(&B1000000000000000)" will output the "&B11111111111111111000000000000000."
[Measures]
After substituting the constant for the long-precision integer number variable as follows, when substituting to this
robot status variable M_YDevD, &B00000000000000001000000000000000 (binary number) can be outputted.
1 M1&=32768
2 M_YDevD(&H20)=M1&
Numeric variables types
Integer
Long-pre-
Single-pre-
cision inte-
cision real
ger
number
number
Ex.)M1!
Ex.)M1%
Ex.)M1&
O
X
Note2)
O
O
CPU shared memory
O: The available, X: unavailable
Double-pre-
Position
cision real
number
Ex.)M1#
Ex.)P1.X
X
X
X
Note3)
O
O
O
G10000
G10001
G10002
Even address
G10003
G10004
G10005
Other variables
Charac-
Joint
ter string
Ex.)J1.J1
Ex.)C1$
X
X
O
X

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents