6 l_memreadint, L_memreadint, Function library lenzememdrv.lib – Lenze DDS Function library MemDrv User Manual

Page 22

Advertising
background image

4.6

L_MemReadINT

Function library LenzeMemDrv.lib

Functions for RAM memory access

4−8

L

LenzeMemDrv.lib EN 1.1

4.6

L_MemReadINT

INT.

L_MemReadINT(byRamBlockNr, wOffset)

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

Integer
(16 Bit)

return value

Transfer parameters

Identifiers

Data type

Info/possible settings

byRamBlockNr

Byte

Selecting the RAM memory block from which the 16−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 16−bit value is to be read.

0 ... 65534 Start address (offset)

Return value: Integer

Value

Meaning

Data

16−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