BITTOINT8 (129)


BITTOINT8 (129)

ID                          129

 

 

Application:

PLC

SIM

 

Group: DATA CONVERSION

 

Short description:

Function that converts 8 bits to an integer value.

 

Inputs (8):

no.

type

impulse

mark

notes

1

B

no

IN1

Input value no. 1 (oldest bit)

2 B no IN2 Input value no. 2
3 B no IN3 Input value no. 3
4 B no IN4 Input value no. 4
5 B no IN5 Input value no. 5
6 B no IN6 Input value no. 6
7 B no IN7 Input value no. 7
8 B no IN8 Input value no. 8 (youngest bit)


Outputs (1):

no.

type

impulse

mark

notes

1

I

no

OUT

Integer type output value


Settings: none

Function operation:

The BITTOINT8 function converts the input 8 bits to an integer output value. Sample conversion for OUT = 5:

IN1

IN2

IN3

IN4

IN5

IN6 IN7 IN8

0

0

0

0

0

1 0 1

 

R registers and M markers used: none