# control::B2F

    sys::Obj
      sys::Virtual
        sys::Component
          control::B2F

`public class B2F` `[niagaraIcon="module://icons/x16/control/util/switch.png"]`

B2F 16 bit binary to float encoder object

out = encoded value of inputs, with in16 the MSB and in1 as the LSB. count = sum of the inputs that are active.

count

  `public property float count [readonly]`

  count = sum of the inputs that are active.

in1

  `public property bool in1`

  in1

in10

  `public property bool in10`

  in10

in11

  `public property bool in11`

  in11

in12

  `public property bool in12`

  in12

in13

  `public property bool in13`

  in13

in14

  `public property bool in14`

  in14

in15

  `public property bool in15`

  in15

in16

  `public property bool in16`

  in16

in2

  `public property bool in2`

  in2

in3

  `public property bool in3`

  in3

in4

  `public property bool in4`

  in4

in5

  `public property bool in5`

  in5

in6

  `public property bool in6`

  in6

in7

  `public property bool in7`

  in7

in8

  `public property bool in8`

  in8

in9

  `public property bool in9`

  in9

out

  `public property float out [readonly]`

  out = encoded value of inputs, with in16 the MSB and in1 as the LSB.

execute

  `public virtual override void execute()`

  Execute is called once every scan.