SELT_8MS: Table value selection for 8 MS values

Block SELT_8MS (FB881) provides 8 parameterized Multistate values based on one input value (selector).

Principle of operation

The block is parameterized in the value table containing rows [ValRow1..24] at max. 8 Multistate values to be output [ValOut1..8] each.

At runtime, input value [Row] determines row [ValRow1..24] whose parameterized Multistate values are output to outputs [Out1..8].

 

IF

THEN

[Out1]=

[Out2]=

[Out3]=

[Out4]=

[Out5]=

[Out6]=

[Out7]=

[Out8]=

[Row]=1

[ValRow1]
_ValOut1

[ValRow1]
_ValOut2

[ValRow1]
_ValOut3

[ValRow1]
_ValOut4

[ValRow1]
_ValOut5

[ValRow1]
_ValOut6

[ValRow1]
_ValOut7

[ValRow1]
_ValOut8

[Row]=2

[ValRow2]
_ValOut1

[ValRow2]
_...

...

 

 

 

 

 

...

 

 

 

 

 

 

 

 

Another table [RowCnd] allows for assigning input values [Row] to a particular row [_Row..].

 

IF

AND
[RowCnd]

THEN

Name

Value

[Out1]=

[Out8]=

[Row]=1

[RowCnd]
_Row1]


1

[ValRow1]
_ValOut1

[ValRow1]
_ValOut8

[Row]=7

[RowCnd]
_Row2]


7

[ValRow2]
_ValOut1

[ValRow2]
_ValOut8

[Row]=2

[RowCnd]
_Row3]


2

[ValRow3]
_ValOut1

[ValRow3]
_ValOut8

...

 

 

 

 

 

 

If input value [Row] does not contain a valid row value, or if no valid assignment to a row is possible, exception values [EcptVal _Out1]..[EcptVal _ValOut8] are output and [Ecpt]=1 is set.

Inputs

Pin

E

Description

Row

pa

Row (selector value)

RowCnd
_Row1
...
_Row24

pa

Row condition

Assignment table input value -> Row

Specific input values [Row] are assigned to a specific row [_Row..].

ValRow1
_ValOut1
...
_ValOut8

pa

Value row 1

8 parameterizable Multistate values of a row

8 Multistate values [_ValOut1]..[_ValOut8] are assigned to one row [ValRow1..24].

EcptVal
_ValOut1
...
_ValOut8

 

Exception value

Outputs

Pin

E

Description

Out1..8

a

Output 1..8

Ecpt

 

Exception

DataBlkItf

 

Data block interface

Input values

Pin

Description

Data type

Standard value

E.g. engineering unit or text group

Min.

Max.

Row

Row

Multistate

Off

Off...Stage15, Max

1

32767

RowCnd
_Row1..24

Row condition


Multistate


Off


Off...Stage15

1

16

ValRow1..24
_ValOut1..8

Value row 1


Multistate


Off


Off...Stage15

1

16

EcptVal
_ValOut1..8

Exeption value


Multistate


Off


Off...Stage15, Max


1

32767

Output values

Pin

Description

Data type

Standard value

E.g. engineering unit or text group

Min.

Max.

Out1..8

Output 1

Real

 

Off...Stage15, Max

1

32767

Ecpt

Exception

Boolean

Inactive

Inactive, Active

 

 

DataBlkItf
_DatablockNr
_LblInt
_StartAdr

Data block interface

 

 

 

 

 

Use

 

 

Process response

Standard (see General rules and information).

Troubleshooting

Standard (see General rules and information).