ENSEL_R: Enable selector real

Block ENSEL_R (FB458) as a central block allows for selective interconnection of one of 25 real values (1 of 25) to a particular priority.

Functionality

To interconnect multiple real values to a particular priority, block ENSEL_R routes one of the 25 real inputs [Val1..25] to output [Value].

 

The following conditions apply:

Function table

Inputs

Outputs

En1..25

(Boolean)

Val1..25

(Real)

Enable

(Boolean)

Value

(Real)

InNr

(Integer)

0 (No)

Value

0 (No)

DefVal

0

1 (Yes)

Value

1 (Yes)

Value

1 of 25

0 (No)

Value

0 (No)

DefVal

0

1 (Yes)

Value

1 (Yes)

Value

1 of 25

Inputs

Pin

E

Description

En1..En25

pa

Enable 1..25.

Boolean (Default value = 0).

0 (No)

The impacted values input [Val1..25] = "Value" is not enabled.

1 (Yes)

The corresponding value input [Val1..25] = "Value" is enabled by the corresponding enabling pin [En1..25].

The value with the highest priority (lowest number) is transmitted to pin [Value].

Val1..Val25

pa

Value 1..25.

Real (Default value= 0.0)

DefVal

pa

Default value.

Real (Default value= 0.0)

Outputs

Pin

E

Description

Enable

a

Release

Boolean (Default value = 0).

Value

a

Value

Real (Default value= 0.0)

InNr

a

Input number.

Integer (Default value= 0)

Engineering

If Enable1 then

Value:=Value1; Enable:=Yes.

elsif Enable 2 then

Value:=Value2; Enable:=Yes.

elsif Enable 3 then

Value:=Value3; Enable:=Yes.

...

 

else

Enable:=No.

endif

 

 

Process response

Standard (see General rules and information).

Troubleshooting

Standard (see General rules and information).