Mitsubishi MELFA CR1D Instruction Manual page 127

Table of Contents

Advertisement

Operato
Class
Meaning
r
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
Note2) Please refer to
Statement example
M1=Not M_Inw(1)
N2=M1 Xor M_Inw(1)
M1=M1<<2
M1=M1>>1
Page 115, "Relative calculation of position data
Page 115, "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-114
4MELFA-BASIC V

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents