ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
376
BYTE_ARRAY_TO_CSV
3446
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
3548
BYTE_ARRAY_TO_CSV is a help function for other units.
The FB combines the contents of 8 bytes into a string as follows:
H-Byte7,L-Byte7,H-Byte6,L-Byte6,H-Byte5,L-Byte5,H-Byte4,L-Byte4,H-Byte3,L-
Byte3,H-Byte2,L-Byte2,H-Byte1,L-Byte1,H-Byte0,L-Byte0
H-Byte = high byte
L-Byte = low byte
Parameters of the inputs
3549
Parameter
Data type
Description
DATA
ARRAY[1..8] OF BYTE
matrix of 1...8 bytes
Parameters of the outputs
3550
Parameter
Data type
Description
CSV_OUT
STRING(32)
output value in the form of:
H-byte7,L-byte7,H-byte6,L-byte6,
H-byte5,L-byte5,H-byte4,L-byte4,
H-byte3,L-byte3,H-byte2,L-byte2,
H-byte1,L-byte1,H-byte0,L-byte0
H-byte = high byte
L-byte = low byte
In the string every half byte is separated by a comma.