Erase big Array of Real
CODESYS Forge
talk
(Thread)
Erase big Array of Real
Last updated: 2019-10-02
Array of pointers to output
CODESYS Forge
talk
(Thread)
Array of pointers to output
Last updated: 2013-05-13
DWORD mit Array of BOOL überlagern?
CODESYS Forge
talk
(Thread)
DWORD mit Array of BOOL überlagern?
Last updated: 2006-04-26
Sort alphabeticaly an ARRAY of STRING
CODESYS Forge
talk
(Thread)
Sort alphabeticaly an ARRAY of STRING
Last updated: 2021-07-18
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
Array of UDT Compare
CODESYS Forge
talk
(Thread)
Array of UDT Compare
Last updated: 2024-04-08
The configuration file of the PLC
CODESYS Forge
talk
(Thread)
The configuration file of the PLC
Last updated: 2016-04-11
Problem using the GPIOs of the Beaglebone Black
CODESYS Forge
talk
(Thread)
Problem using the GPIOs of the Beaglebone Black
Last updated: 2017-03-24
The state of the 3S CANopen libraries, alternatives
CODESYS Forge
talk
(Thread)
The state of the 3S CANopen libraries, alternatives
Last updated: 2012-09-12
Get the Status of the Canopen Master/Node
CODESYS Forge
talk
(Thread)
Get the Status of the Canopen Master/Node
Last updated: 2010-12-02
Setting of the language for the installer
CODESYS Forge
talk
(Thread)
Setting of the language for the installer
Last updated: 2013-02-06
Programmicaly get the name of the current Task?
CODESYS Forge
talk
(Thread)
Programmicaly get the name of the current Task?
Last updated: 2023-06-17
Change the Opening Position of the Dialog using VU.FbOpenDialog
CODESYS Forge
talk
(Thread)
Change the Opening Position of the Dialog using VU.FbOpenDialog
Last updated: 2024-05-09
Signing Packages without exposing the password of the certificate
CODESYS Forge
talk
(Thread)
Signing Packages without exposing the password of the certificate
Last updated: 2024-08-20
Post by timvh on Configuring a 2's compliment
CODESYS Forge
talk
(Post)
You could create a DUT of the Type Union and add an array of 2 bytes + an Int. Then write the byte values in the array of the Union and read the Int. Or VAR iInt : INT; byHigh : BYTE := 2#1111_1111; byLow : BYTE := 2#1111_1111; END_VAR iInt := TO_INT(byHigh*16#100 + byLow);
Last updated: 2024-09-28
Assign Initial Value of Array of Byte
CODESYS Forge
talk
(Thread)
Assign Initial Value of Array of Byte
Last updated: 2019-03-08
How to Calculate Checksum of an array of bytes?
CODESYS Forge
talk
(Thread)
How to Calculate Checksum of an array of bytes?
Last updated: 2016-05-08
Retrieve number of elements in an array of function blocks
CODESYS Forge
talk
(Thread)
Retrieve number of elements in an array of function blocks
Last updated: 2020-04-19
SDO_WRITE 4byte Index
CODESYS Forge
talk
(Thread)
SDO_WRITE 4byte Index
Last updated: 2018-05-30
Frame Index
CODESYS Forge
talk
(Thread)
Frame Index
Last updated: 2021-10-26
Post by enricoghisla on Functional block
CODESYS Forge
talk
(Post)
How can i access to the variable in the FB from outside without put them in the in/out?
Last updated: 2024-04-16
Post by enricoghisla on Functional block
CODESYS Forge
talk
(Post)
How can i access to the variable in the FB from outside without put them in the in/out?
Last updated: 2024-04-16
Post by paro on OPCUA array max length?
CODESYS Forge
talk
(Post)
I think the amount of data is already relatively high and maybe it has something to do with that? Maybe also the CPU load of your device? an array with string(5000)? and have you tested with how many array elements it still works?
Last updated: 2024-02-17
Post by george32 on CSV file and string manipulation.
CODESYS Forge
talk
(Post)
Dear folks, I think I have a rather simple question but I could not find the right answer to my question: I have made with Excel a CSV file where I would like to have some general data regarding my program variables. I have made an program what let me read the file. The string I am currently get is at follows: 'IP_Adres;192.168.45.12$R$NPort_number;2000$R$NCycle_time;43$R$NStart_Standard_IO;20$R$N' Now I want to split the string in multiple part, which I later would connect to the right variable. By Google and experimenting I have reached to the following code for the first part of the splitting proces: // Splitting the BOM of the string: Received_string := FileReadString; IF LEFT(STR:=New_string,3)= '' THEN Received_string_without_BOM :=RIGHT(STR:= Received_string,SIZE:= (LEN(STR:= Received_string))-3); END_IF //Splitting the remaining string in part for later declaration. WHILE index = 0 DO index_split_part := FIND(STR1:= Received_string_without_BOM,STR2:= '$R$N'); Part_of_String[index]:=LEFT(STR:=Received_string_without_BOM, SIZE:= index_split_part); index := index + 1; END_WHILE However in the splitting proces I could not understand what is really happening. I understand that the Find() function returns the first value the $R$N in the Received_string_without_BOM. This would mean that the index_split_part := 23 I|P| _ |A |d|r|e|s|;|1_|9 |2 |. |1 |6 |8 |. |4 |5 |. |1 |2 |$ |R |$ |N |P | 1|2| 3 |4 |5|6|7|0|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27| So the next part is to read the first 23 characters of the Received_string_without_BOM with the LEFT() function. I expected that the outcome the following was: 'IP_Adres;192.168.45.12$'. However the outcome is: 'IP_Adres;192.168.45.12$R'. I do not understand where the R after the $ sign comes from, because its place is 24 so it would not be added to the part_of the_string[index]. If I hard coded value 24 for the size it gives me the following return: 'IP_Adres;192.168.45.12$R$N'. I would expect everything till the R but the code adds the $N also to the string. I hope someone could explain to my what I am seeing wrong in my point of view? With kind regards, George
Last updated: 2024-09-27
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
.