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

Page 11

Advertising
background image

DMS 1.0 EN - 07/2011 - TD05

L

11

Function library "LenzeConversionBox"

Function blocks

L_cbIntToByteArray - Convert 4 individual integers into an array of byte

3.4

L_cbIntToByteArray - Convert 4 individual integers into an array of byte

This FB converts 4 individual integers into an ARRAY OF BYTE consisting of 8 elements of

the BYTE data type. The element 1 of the array is the lower-order byte of the nInt0 input

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

Inputs

Outputs

Call possible in:

;

Cyclic task

;

Interrupt task

;

Time-controlled task (INTERVAL)

;

Event-controlled task (EVENT)

L_cbIntToByteArray

⎯ nInt0

abyByteArray ⎯

⎯ nInt1
⎯ nInt2
⎯ nInt3

Identifier/data type

Information/possible settings

nInt0

INT

Element 1+2 of the abyByteArray output

nInt1

INT

Element 3+4 of the abyByteArray output

nInt2

INT

Element 5+6 of the abyByteArray output

nInt3

INT

Element 7+8 of the abyByteArray output

Identifier/data type

Value/meaning

abyByteArray

ARRAY[1..8] OF BYTE

Array with 8 elements from BYTE data type

Advertising