ITOI – Transformation of integer and binary numbers

Block SymbolLicensing group: STANDARD
PIC

Function Description
The ITOI block transforms the input number k, or the binary number (U3 U2 U1 U0)2, from the set {0,1,2,,15} to the output number nk and its binary representation (Y3 Y2 Y1 Y0)2 from the same set. The transformation is described by the following table

k 0 1 2 15








nk n0 n1 n2 n15

where n0, …, n15 are given by the mapping table target vector fktab.

If BINF = off, then the integer input k is active, while for BINF = on the input is defined by the binary inputs (U3 U2 U1 U0)2.

Inputs

k

Integer input of the block

Long (I32)

U0

Binary input digit, weight of 1

Bool

U1

Binary input digit, weight of 2

Bool

U2

Binary input digit, weight of 4

Bool

U3

Binary input digit, weight of 8

Bool

Outputs

nk

Integer output of the block

Long (I32)

Y0

Binary output digit, weight of 1

Bool

Y1

Binary output digit, weight of 2

Bool

Y2

Binary output digit, weight of 4

Bool

Y3

Binary output digit, weight of 8

Bool

Parameters

BINF

Enable the binary selectors  on

Bool

off ..

Disabled (integer input k)

on ...

Enabled (binary input signals U3U0)

fktab

Vector of mapping table target values  [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]

Byte (U8)

2023 © REX Controls s.r.o., www.rexygen.com