ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
374
WORD_TO_ARRAY
3440
Unit type = function block (FB)
Contained in the library:
ifm_PDM_FILE_Vxxyyzz.LIB
Available for the following devices:
- PDM360: CR1050, CR1051, CR1060
- PDM360compact: CR1052, CR1053, CR1055, CR1056
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
3542
WORD_TO_ARRAY is a help function for other units.
The FB splits an input word into 2 separate bytes as follows:
Word
WORD
Bit
15 14 13 12
11 10 9 8 7 6 5 4 3 2 1 0
Byte
BYTE 1
BYTE 0
Parameters of the inputs
3543
Parameter
Data type
Description
WORD_IN WORD
input
word
Parameters of the outputs
3544
Parameter
Data type
Description
P_0
BYTE
LSB in the input word
P_1
BYTE
HSB in the input word