![FATEK FBs Series Скачать руководство пользователя страница 161](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826161.webp)
Basic Function Instruction
6 -3 6
FUN 19
D
P
OR
LOGICAL OR
FUN 19
D
P
OR
Operand
Sa: The register to be ORed
Sb: The register to be ORed
D : The register to store the result of OR
The Sa, Sb, D may combine with V, Z, P0~P9 to
serve indirect addressing
WX
WY
WM
WS TMR CTR
HR
IR
OR
HR
HSCR RTCR
SR
ROR
DR
K
Range
Ope-
rand
WX0
∣
WX240
WY0
∣
WY240
WM0
∣
WM1896
WS0
∣
WS984
T0
∣
T255
C0
∣
C255
R0
∣
R3839
R3804
∣
R3903
R3904
∣
R3919
R3920
∣
R4047
R4096
∣
R4127
R4128
∣
R4135
R4136
∣
R4167
R5000
∣
R8071
D0
∣
D4095
16/32 bit
+/-number
Sa
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
Sb
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
D
○
○
○
○
○
○
○
○
○
○
*
○
*
○
●
Performs logical OR operation for the data of Sa and Sb when the operation control input "EN" =1 or "EN
↑
"
(
P
instruction) from 0 to 1. This operation compares the corresponding bits of Sa and Sb (B0~B15 or
B0~B31). The bit in the D is set to 1 if one of the corresponding of Sa or Sb is 1. The bit in the D is set to 0 if
both of the corresponding bits of Sa and Sb is 0.
Example
Operation of 16-bit logical OR
Ladder diagram
Key operations
Mnemonic code
EN
X0
D=0
2
1
0
D :
R
Sa :
Sb :
R
R
19.OR
ORG
ORG X
0
FUN 19
Sa : R
0
Sb : R
1
D : R
2
B15 B0
↓
↓
Sa R0
1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1
Sb R1
1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0
Ø
X0
=
1
B15
B0
↓
↓
D R2
1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1
Содержание FBs Series
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...