String Array to Byte Array problem
CODESYS Forge
talk
(Thread)
String Array to Byte Array problem
Last updated: 2008-09-04
STRUCT to BYTE ARRAY
CODESYS Forge
talk
(Thread)
STRUCT to BYTE ARRAY
Last updated: 2023-07-10
Convert Byte into Array
CODESYS Forge
talk
(Thread)
Convert Byte into Array
Last updated: 2019-01-21
Pointer ARRAY BYTE to ARRAY BOOL
CODESYS Forge
talk
(Thread)
Pointer ARRAY BYTE to ARRAY BOOL
Last updated: 2008-06-06
Convert string to byte array.
CODESYS Forge
talk
(Thread)
Convert string to byte array.
Last updated: 2021-12-29
Integer type to byte array
CODESYS Forge
talk
(Thread)
Integer type to byte array
Last updated: 2015-11-25
Einzelne Werte aus ARRAY OF BYTE
CODESYS Forge
talk
(Thread)
Einzelne Werte aus ARRAY OF BYTE
Last updated: 2005-11-14
2 byte array convert to uint
CODESYS Forge
talk
(Thread)
2 byte array convert to uint
Last updated: 2019-04-30
Assigning array of byte
CODESYS Forge
talk
(Thread)
Assigning array of byte
Last updated: 2015-11-26
Word to array of byte
CODESYS Forge
talk
(Thread)
Word to array of byte
Last updated: 2022-09-22
Assign Initial Value of Array of Byte
CODESYS Forge
talk
(Thread)
Assign Initial Value of Array of Byte
Last updated: 2019-03-08
Transfer array of byte to i2c-device
CODESYS Forge
talk
(Thread)
Transfer array of byte to i2c-device
Last updated: 2022-08-12
Convert array of 4 byte to real
CODESYS Forge
talk
(Thread)
Convert array of 4 byte to real
Last updated: 2021-06-30
Array of array
CODESYS Forge
talk
(Thread)
Array of array
Last updated: 2021-05-28
Low Byte High Byte to Word
CODESYS Forge
talk
(Thread)
Low Byte High Byte to Word
Last updated: 2009-05-04
Low Byte High Byte to Word
CODESYS Forge
talk
(Thread)
Low Byte High Byte to Word
Last updated: 2009-05-04
addressin an array of byte containing bits of type bool
CODESYS Forge
talk
(Thread)
addressin an array of byte containing bits of type bool
Last updated: 2018-11-14
How I should define a huge size byte array in CoDeSys V3?
CODESYS Forge
talk
(Thread)
How I should define a huge size byte array in CoDeSys V3?
Last updated: 2013-05-09
How I should define a huge size byte array in CoDeSys V3?
CODESYS Forge
talk
(Thread)
How I should define a huge size byte array in CoDeSys V3?
Last updated: 2013-08-30
Grosses Array in kleines Array schreiben
CODESYS Forge
talk
(Thread)
Grosses Array in kleines Array schreiben
Last updated: 2009-06-15
Zugriff bei Deklaration ARRAY OF ARRAY
CODESYS Forge
talk
(Thread)
Zugriff bei Deklaration ARRAY OF ARRAY
Last updated: 2011-11-03
Post by voffi on Converting UINT into bytes and converting 2Bytes into UINT
CODESYS Forge
talk
(Post)
There are some ways. One is to use SHR and SHL and it depends on your byte order in the data array. For Motorola byte order: PROGRAM PLC_PRG VAR u : UINT; byte_array_in : ARRAY [1..8] OF BYTE := [16#11, 16#12, 16#13, 16#14, 16#15, 16#16, 16#17]; byte_array_out : ARRAY [1..8] OF BYTE; END_VAR u := SHL(TO_UINT(byte_array_in[2]), 8) + TO_UINT(byte_array_in[1]); byte_array_out[1] := TO_BYTE(u); byte_array_out[2] := TO_BYTE(SHR(u, 8)); If it's Intel byte order just change 1 and 2 in the array indexes.
Last updated: 2023-12-07
REAL to BYTE[],BYTE[] to REAL.
CODESYS Forge
talk
(Thread)
REAL to BYTE[],BYTE[] to REAL.
Last updated: 2017-02-23
"Byte Swapping"
CODESYS Forge
talk
(Thread)
"Byte Swapping"
Last updated: 2005-10-11
Pointer to Byte
CODESYS Forge
talk
(Thread)
Pointer to Byte
Last updated: 2023-08-10
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.