Array of pointers to output
CODESYS Forge
talk
(Thread)
Array of pointers to output
Last updated: 2013-05-13
2 byte array convert to uint
CODESYS Forge
talk
(Thread)
2 byte array convert to uint
Last updated: 2019-04-30
Pointer to Array in Funktionsbaustein verwenden
CODESYS Forge
talk
(Thread)
Pointer to Array in Funktionsbaustein verwenden
Last updated: 2009-11-12
Word to array of byte
CODESYS Forge
talk
(Thread)
Word to array of byte
Last updated: 2022-09-22
REFERENCE TO in an array
CODESYS Forge
talk
(Thread)
REFERENCE TO in an array
Last updated: 2024-10-14
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
How to convert UDINT to array of bytes ?
CODESYS Forge
talk
(Thread)
How to convert UDINT to array of bytes ?
Last updated: 2023-03-10
Post by corriibme on JSON Utilities and SetArray
CODESYS Forge
talk
(Post)
Hello @florian, Could you please help with how to set an array value? I've been trying to use the with the setKeyWithArray method which creates the key with an empty array value. But I have been unable to set items in this array? objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindexx); //iValue: array[0..n] of int; Best regards
Last updated: 2024-05-11
Convert 2 diff type of int to real type
CODESYS Forge
talk
(Thread)
Convert 2 diff type of int to real type
Last updated: 2021-08-17
convert INT Type to STRING Type
CODESYS Forge
talk
(Thread)
convert INT Type to STRING Type
Last updated: 2009-10-22
Pack TWO INT variable to one DINT variable
CODESYS Forge
talk
(Thread)
Pack TWO INT variable to one DINT variable
Last updated: 2024-05-07
Post by tvm on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
It will be a reference, because it's a VAR_IN_OUT. it's a little weird debugging the array online. It just shows as a POINTER TO INT, and you can't actually see the array from the function side. But you can still work with it as a normal array, not a pointer.
Last updated: 2024-01-09
Anzeige INT in Webvisu
CODESYS Forge
talk
(Thread)
Anzeige INT in Webvisu
Last updated: 2010-12-13
Dividing DINT/INT variables
CODESYS Forge
talk
(Thread)
Dividing DINT/INT variables
Last updated: 2020-10-24
Post by tvm on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
maybe this would be a better approach, then you don't have to pass the constant at all. FUNCTION fun : INT VAR_IN_OUT arr: ARRAY[*] OF INT; END_VAR VAR lower: DINT; upper: DINT; END_VAR lower:= LOWER_BOUND(arr, 1); upper:= UPPER_BOUND(arr, 1); see here as well https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_datatype_array/
Last updated: 2024-01-08
Post by corriibme on Setting array values with JSON Utilities SL
CODESYS Forge
talk
(Post)
I have been trying to set an array value to a JSON structure of this form: {"key": [1,2,3,4]} While I have been able to create the key and set its value to an empty array, I've not had any luck in putting any value in that array. objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindex); iValue2: ARRAY[0..3] OF INT:= [1,2,3,4]; The two lines of code above produce {"key6": []} . The second line essentially has no effect.
Last updated: 2024-05-12
Post by rickj on Defining local variables that can be independent with several users.
CODESYS Forge
talk
(Post)
You need to create an array with one element for each possible user. I usually define these arrays in the root screen. FrameIndex : Array [0..MaxUsers] OF INT; Then use the global CurrentClientId (defined by one of the VISU libraries) to index the array element used to select the frame. FrameIndex[CurrentClientId]
Last updated: 2023-10-21
Post by damian177 on Persistence variables PFC200
CODESYS Forge
talk
(Post)
Hi, I using persistence variables like below: VAR_GLOBAL PERSISTENT RETAIN id_worker1: ARRAY [0..3] OF INT := [231,234,176,222]; id_worker2: ARRAY [0..3] OF INT := [211,129,125,221]; Initial values can cause some problems?
Last updated: 2023-12-08
how to declare an array size without constant
CODESYS Forge
talk
(Thread)
how to declare an array size without constant
Last updated: 2016-11-16
Exporting Array from Codesys to Text or Excel
CODESYS Forge
talk
(Thread)
Exporting Array from Codesys to Text or Excel
Last updated: 2018-10-10
Transfer array of byte to i2c-device
CODESYS Forge
talk
(Thread)
Transfer array of byte to i2c-device
Last updated: 2022-08-12
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
How do I convert string to array of bytes?
CODESYS Forge
talk
(Thread)
How do I convert string to array of bytes?
Last updated: 2010-04-09
y no array of bool to bool
CODESYS Forge
talk
(Thread)
y no array of bool to bool
Last updated: 2013-02-22
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
.