L9P_SEL: Input Selection
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9P_SEL DFB compares up to 4 inputs and makes a selection based upon either the highest, lowest, or average value. You choose the inputs to be compared and the comparison criterion. The output is a copy of the selected input.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = enables process control function
Node
Node Type
Name
Data Type
Address Range
Meaning
Middle
IN/OUT
PAR
ARRAY[1...14] OF UINT
%MW
see Parameter PAR below
Bottom
IN
LEN
UINT
14
length of parameter block (can not be changed)
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful
Bottom
ERR
BOOL
ON = operation not successful
Parameter PAR
The data type of the parameter block is ARRAY[1...14] of UINT
Word
Content
Format
1
reserved
UINT
2
reserved
UINT
3
output status
UINT
4
input status
UINT
5, 6
input 1
REAL (Floating Point)
7, 8
input 2
REAL (Floating Point)
9, 10
input 3
REAL (Floating Point)
11, 12
input 4
REAL (Floating Point)
13, 14
output
REAL (Floating Point)
Output Status
Control Expert-IEC bits
Function
0...4
standard output bits (flags)
5
no inputs selected
6
invalid selection modes
7...15
not used
Input Status
Control Expert-IEC bits
Function
0...5
not used
6...7
selection mode
Bit 7
Bit 6
Mode
0
0
select average
1
0
select high
0
1
select low
1
1
reserved / invalid
8
1 = enable input 4
0 = disable input 4
9
1 = enable input 3
0 = disable input 3
10
1 = enable input 2
0 = disable input 2
11
1 = enable input 1
0 = disable input 1
12...15
standard input bits (flags)