Relative Calculation Of Position Data (Multiplication); Relative Calculation Of Position Data (Addition) - Mitsubishi Electric CR750-Q Instruction Manual

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

Advertisement

Class
Operator
Meaning
Logical
And
Logical AND operation M1=M_Inb(1) And &H0F
operation
Or
Logical OR operation M_Outb(20)=M1 Or &H80
Not
NOT operation
Xor
Exclusive OR
operation
<<
Logical left shift
operation
>>
Logical right shift
operation.
Note1) Please refer to
Note 2) Please refer to
Statement example
M1=Not M_Inw(1)
N2=M1 Xor M_Inw(1)
M1=M1<<2
M1=M1>>1
Page 122, "Relative calculation of position data
Page 122, "Relative calculation of position data
'Convert the input signal bit 1 to 4 status and substitute in numeric
variable M1. (Input signal bits 5 to 8 remain OFF.)
'Output the numeric variable M1 value to output signal bit 20 to 27.
Output bit signal 27 is always ON at this time.
'Reverse the status of input signal bit 1 to 16 to create a value, and
substitute in numeric variable M1.
'Obtain the exclusive OR of the states of M1 and the input signal bits 1
to 16, convert into a value and substitute in numeric variable M2.
'Shift numeric variable M1 two bits to the left.
'Shift numeric variable M1 bit to the right.
(multiplication)".
(Addition)".
MELFA-BASIC V functions 4-121
4MELFA-BASIC V

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents