Fnc 27 - Wor / Logical Word Or - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
10.8
FNC 27 – WOR / Logical Word OR
Outline
This instruction executes the logical sum (OR) operation of two numeric values.
1. Instruction format
W
FNC 27
D
OR
2. Set data
Operand type
S
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
1
S
2
D
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (WOR and WORP)
The logical sum (OR) operation is executed to the contents of
transferred to
Command
input
FNC 27
WOR
• While the command input is OFF, the data of the transfer destination
• While the command input is ON, the data of the transfer sources
• When a constant (K) is specified in the transfer sources
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, 1 ∨ 0 = 1).
Logical operation
(unit: bit)
300
Mnemonic
16-bit Instruction
P
7 steps WOR
WORP
Data used for logical sum or word device number storing data
Data used for logical sum or word device number storing data
Word device number storing the logical sum result
Digit Specification
3U
.
D
S
S
1
2
S
1
0
1
0
1
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3UC
S
1
D
S
S
1
2
and
S
1
S
0
0
1
1
10.8 FNC 27 – WOR / Logical Word OR
Mnemonic
Operation Condition
DOR
13 steps
DORP
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Con-
Real
Index
stant
Number
V Z Modify K H
E
and
in units of bit, and the result is
S
2
D
does not change.
D
and
do not change.
S
S
1
2
, it is automatically converted into
S
2
2
WOR (FNC 27) instruction
Continuous
Operation
Pulse (Single)
Operation
Data type
Others
Charac-
Pointer
ter String
" "
P
1: ON, 0: OFF
D
0
1
1
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents