![FATEK FBs Series Manual Download Page 226](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826226.webp)
Advanced Function Instruction
7 -6 2
FUN 80
MUXI
MULTIPLEX INPUT
FUN 80
MUXI
IN : Multiplex input point number
OT : Multiplex output point number
(must be transistor output point)
N : Multiplex input lines (2~8)
D : Register for storing results
D may combine with V, Z, P0~P9 to serve
indirect address application
X
Y
WY
WM
WS
TMR CTR
HR
OR
SR
ROR
DR
K
XR
Range
Ope-
rand
X0
∣
X240
Y0
∣
Y240
WY0
∣
WY240
WM0
∣
WM1896
WS0
∣
WS984
T0
∣
T255
C0
∣
C255
R0
∣
R3839
R3904
∣
R3967
R3968
∣
R4167
R5000
∣
R8071
D0
∣
D4095
2
∣
8
V
、
Z
P0~P0
IN
○
OT
○
N
○
D
○
○
○
○
○
○
○
○
*
○
*
○
○
z
This instruction uses the multiplex method to read out N lines of input status from 8 consecutive input points
(IN0~IN7) starting from the input point specified by IN. With this method we can obtain 8
×
N input status, but
only need to use 8 input points and N output points.
z
The multiplex scanning method goes through N output points starting from the OT output point. Each scan one
of the N bits will set to 1 and the corresponding line will be selected. OT0 responsible for first line, while OT1
responsible for second line, etc. Until it read all the N lines the 8
×
N status that has been read out is then stored
into the register starting at D, and the execution completed flag "DN" is set as 1 (but is only kept for one
scanning period).
z
With every scan, this instruction retrieves a line for 8 input status, so N lines require N scan cycles before they
can be completed.
EN IN :
X24
80.MUXI
DN
M10
OT :
Y16
4
N :
WR :
D0
WM0
D :
X0
z
This example retrieves 4 lines
×
8 points of input,
32 point status in all. They are stored into the
32-bit register of DWM0 (M0~M31).
Fourth line
Third line
Second line
First line
M24
M25
M26
M27
M28
M29
M30
M31
M16
M17
M18
M19
M20
M21
M22
M23
M8
M9
M10
M0
M1
M2
M11
M3
M4
M12
M5
M13
M14
M6
M7
M15
PLC NPN transistor output
S/S
X24
X25
X26
X27
X28
X29
X30
X31
C
Y16
Y17
Y18
Y19
Y20
Y21
Y22
Y23
24V