EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 201

Mitsubishi Electric MELSEC FX Series
838 pages
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...
7 Applied Instructions
7.3 Arithmetic and Logical Operation
199
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 16-bit operation(WOR, WORP)
The logical sum (OR) operation is executed to the contents specified by and in units of bit, and the
result is transferred to the device specified by .
While the command input is OFF, the data of the transfer destination specified by does not change.
While the command input is ON, the data of the transfer sources specified by and do not
change.
When a constant (K) is specified in the transfer sources specified by and , it is automatically
converted into the binary format.
The logical sum operation is executed in units of bit as shown in the table below (1 1 = 1, 0 1 = 1,
0 0 = 0 and 1 0 = 1).
In the table : 1=ON, 0=OFF
2. 32-bit operation(DOR, DORP)
The logical sum (OR) operation is executed to the contents specified by and in units of bit, and the
result is transferred to the device specified by .
While the command input is OFF, the data of the transfer destination specified by does not change.
While the command input is ON, the data of the transfer sources specified by and do not
change.
When a constant (K) is specified in the transfer sources specified by and , it is automatically
converted into the binary format.
The logical sum operation is executed in units of bit as shown in the table below (1 1 = 1, 0 1 = 1,
0 0 = 0 and 1 0 = 1).
In the table : 1=ON, 0=OFF
Cautions
1) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
2) The FX
0, FX0S or FX0N PLC does not support the instructions of pulse operation type.
To execute pulse operation, make the instruction execution condition pulse type.
3) Some restrictions to applicable devices
S1:The FX
3U, FX3UC and FX3G PLCs only are applicable.
S2:The FX
3U and FX3UC PLCs only are applicable.
WOR
Logical operation
(unit: bit)
000
101
011
111
+1, +1,
+1,
DOR instruction
Logical operation
(unit: bit)
000
101
011
111
Command input
Logical sum
data 1
Logical sum
data 2
Logical sum result
WOR
EN
s1
s2
ENO
d1
ds1 s2
Command input
Label2
*1
Label3
*2
*1 This defines the logical sum data or the device that stores the logical sum data.
*2 This defines the device that stores the logical sum result.
Label1
*1
DOR
EN
s1
s2
ENO
d
+1, +1, +1,
s1 s1 s2 s2 d d

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals