EasyManua.ls Logo

Panasonic VR2 Series - Logic Operation Commands; And; Not

Panasonic VR2 Series
236 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
16-37
16-10. Logic operation commands
16-10-1. AND
Format
AND [Variable] [Data]
Function It carries out logical multiplication.
Condition Standard.
Variable Variable whose value is to be referred to, and
the calculated value is to be assigned to.
(GB, LB)
Lock condition None.
Syntax check Error if variable other than byte type
variable is specified.
Data Value or variable (GB, LB) Variable should be
byte type.
Note: It carries out logical multiplication of each bit.
A B A AND B
0 0 0
0 1 0
1 0 0
Example Store the result of logical multiplication
of LB001 and LB002 to LB001.
AND LB001, LB002
1 1 1
16-10-2. NOT
Format
NOT [Variable] [Data]
Function It carries out logical NOT.
Condition Standard.
Lock condition None.
Variable Variable whose value is to be referred to, and
the calculated value is to be assigned to.
(GB, LB)
Syntax check Error if variable other than byte type
variable is specified.
Data Value or variable (GB, LB) Variable should be
byte type.
Note: As logical not is carried out for each bit,
NOT 0 = 11111111
255
A NOT A
0 1
Example Store the result of logical not of LB002
to LB001.
NOT LB001, LB002
1 0
16-10-3. OR
Format
OR [Variable] [Data]
Function It carries out logical OR.
Condition Standard.
Lock condition None.
Variable Variable whose value is to be referred to, and
the calculated value is to be assigned to.
(GB, LB)
Syntax check Error if variable other than byte type
variable is specified.
Data Value or variable (GB, LB) Variable should be
byte type.
Note: It carries out logical multiplication of each bit.
A B A OR B
0 0 0
0 1 1
1 0 1
Example Store the result of logical OR of LB001
and LB002 to LB001.
OR LB001, LB002
1 1 1

Table of Contents

Related product manuals