Lenze DDS Function library MemDrv Manual de usuario Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 34
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
4.10 L_MemWriteINT
Function library LenzeMemDrv.lib
Functions for RAM memory access
4−12
L
LenzeMemDrv.lib EN 1.1
4.10 L_MemWriteINT
INT. L_MemWriteINT(nData, byRamBlockNr, wOffset)
This function can be used to write the value of a variable of type "integer" into 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)
nData
Transfer parameters
Identifiers Data type Info/possible settings
nData Integer Data value to be written (16 bits).
byRamBlockNr Byte Selecting the RAM memory block into which nData is to be written.
1 RAM memory 1, size: 64 kbytes
2 RAM memory 2, size: 64 kbytes
wOffset Word Destination address in the selected RAM memory block to which nData is to be written.
0 ... 65534 Destination address (offset)
· Only even values are permissible as offset!
Return value: Integer
Value Meaning
0 Write request completed.
−60 Write request has not been transferred to the operating system since the transfer parameters are faulty:
byRamBlockNr is invalid.
−35 Copy job has not been transferred to the operating system since the transfer parameters are faulty:
wOffset is an odd address or a value beyond the permissible range (0 ... 65534).
−50 Copy job has not been transferred to the operating system since the memory is presently accessed
(e. g. via codes).
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 32 33 34

Comentarios a estos manuales

Sin comentarios