4 l_memreaddint, L_memreaddint, Function library lenzememdrv.lib – Lenze DDS Function library MemDrv User Manual

Page 20

Advertising
background image

4.4

L_MemReadDINT

Function library LenzeMemDrv.lib

Functions for RAM memory access

4−6

L

LenzeMemDrv.lib EN 1.1

4.4

L_MemReadDINT

DINT

L_MemReadDINT(byRamBlockNr, wOffset)

This function can be used to read a 32−bit value of type "double integer" from a RAM block of the PLC.

wOffset

Block 1 (64KByte)

Block 2 (64 KByte)

RAM

byRamBlockNr

1

n

Block n (64 KByte)

2

Double Integer

(32 Bit)

return value

Transfer parameters

Identifiers

Data type

Info/possible settings

byRamBlockNr

Byte

Selecting the RAM memory block from which the 32−bit value is to be read.

1 RAM memory 1, size: 64 kbytes

2 RAM memory 2, size: 64 kbytes

wOffset

Word

Start address within the selected RAM memory block from which the 32−bit value is to be read.

0 ... 65532 Start address (offset)

Return value: Double integer

Value

Meaning

Data

32−bit value read in the RAM memory block byRamBlockNr from position wOffset.

ZERO

Read request has not been transferred to the operating system since the transfer parameters are faulty:
byRamBlockNr is invalid.

Advertising