5 l_memreaddword, L_memreaddword, Function library lenzememdrv.lib – Lenze DDS Function library MemDrv User Manual

Page 21

Advertising
background image

Function library LenzeMemDrv.lib

Functions for RAM memory access

4.5

L_MemReadDWORD

4−7

L

LenzeMemDrv.lib EN 1.1

4.5

L_MemReadDWORD

DWORD

L_MemReadDWORD(byRamBlockNr, wOffset)

This function can be used to read a 32−bit value of type "double word" 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 Word

(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 word

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