191
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
MEMCPY
8160
= memory copy
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0431_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
412
MEMCPY enables writing and reading different types of data directly in the memory.
The FB writes the contents of the address of SRC to the address DST.
► To the addresses SRC and DST apply:
Determine the address by means of the operator ADR and assigne it to the POU!
>
In doing so, as many bytes as indicated under LEN are transmitted. So it is also possible to
transmit exactly one byte of a word variable.
>
Parameters of the inputs
8162
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
DST
DWORD
destination address
Determine the address by means of the operator ADR and
assigne it to the POU!
SRC
DWORD
source address
LEN
WORD
number (> 1) of the data bytes to be transmitted
SWAP_TYPE
BYTE
Swap the byte sequence:
0 = no swapping
e.g.: 1A 2B 3C 4D
1A 2B 3C 4D
1 = swap 2 bytes (WORD, INT, ...)
e.g.: 1A 2B 3C 4D
2B 1A 4D 3C
LEN must be a multiple of 2!
2 = swap 4 bytes (DWORD, DINT, REAL, TIME, ...)
e.g.: 1A 2B 3C 4D
4D 3C 2B 1A
LEN must be a multiple of 4!
Summary of Contents for BasicController CR0431
Page 228: ...228 10 Notizen Notes Notes...