Mux; Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

MUX

The MUX instruction selects one of two to five selections.
Instruction
MUX
Multiplexer
Variables
Name
Meaning
K
Selector
In0 to InN
Selections
Out
Selection
result
*1 If you omit an input parameter, the default value is not applied. A building error will occur.
*2 With a CPU Unit with unit version 1.01 or earlier and Sysmac Studio version 1.02 or lower, N is 2 to 4.
*3 If you omit the input parameter that connects to InN, the default value is not applied, and a building error will occur. For
example, if N is 2 and the input parameters that connect to In0 and In1 are omitted, the default values are applied, but if
the input parameter that connects to In2 is omitted, a building error will occur.
Bit strings
K
In0 to InN OK OK OK OK OK
Out
OK OK OK OK OK
*1 With a CPU Unit with unit version 1.02 or later and Sysmac Studio version 1.03 or higher, use a ULINT variable. With a
CPU Unit with unit version 1.01 or earlier and Sysmac Studio version 1.02 or lower, use a USINT variable.
*2 A CPU Unit with unit version 1.02 or later and Sysmac Studio version 1.03 or higher are required to specify enumerations.
2-334
Name
FB/FUN
FUN
I/O
Description
0: Selects In0.
1: Selects In1.
2: Selects In2.
3: Selects In3.
Input
4: Selects In4.
Selections
*2
N is 1 to 4.
Output
Selection result
*1
OK
OK
OK OK
Enumerations can also be specified.
OK
OK OK
Enumerations can also be specified.
Graphic expression
(@)MUX
EN
ENO
K
Out
In0
In1
InN
Valid range
0 to N
Depends on data type.
Depends on data type.
Integers
*1
OK
OK
OK OK OK OK OK OK OK OK OK OK OK
*2
OK
OK OK OK OK OK OK OK OK OK OK OK
*2

NY-series Instructions Reference Manual (W560)

ST expression
Out:=MUX(K, In0, In1, ···,
InN);
Unit
Default
*1
---
*3
0
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents