L_cbbytearraytoint, Function library "lenzeconversionbox – Lenze Function library LenzeConversionBox User Manual

Page 10

Advertising
background image

Function library "LenzeConversionBox"

Function blocks

L_cbByteArrayToInt - Convert array of byte into 4 individual integers

10

L

DMS 1.0 EN - 07/2011 - TD05

3.3

L_cbByteArrayToInt - Convert array of byte into 4 individual integers

This FB converts an ARRAY OF BYTE consisting of 8 elements of the BYTE data type into 4

individual integers. The element 1 of the array is the lower-order byte of the nInt0 output

and the element 2 is the higher-order byte of the nInt0 output, etc.

Inputs

Outputs

Call possible in:

;

Cyclic task

;

Interrupt task

;

Time-controlled task (INTERVAL)

;

Event-controlled task (EVENT)

L_cbByteArrayToInt

⎯ abyByteArray

nInt0 ⎯
nInt1 ⎯
nInt2 ⎯
nInt3 ⎯

Identifier/data type

Information/possible settings

abyByteArray

ARRAY[1..8] OF BYTE

Array with 8 elements from BYTE data type

Identifier/data type

Value/meaning

nInt0

INT

Element 1+2 of the abyByteArray input

nInt1

INT

Element 3+4 of the abyByteArray input

nInt2

INT

Element 5+6 of the abyByteArray input

nInt3

INT

Element 7+8 of the abyByteArray input

Advertising