Setting array values with JSON Utilities SL
CODESYS Forge
talk
(Thread)
Setting array values with JSON Utilities SL
Last updated: 2024-05-23
Cancelling a selection from a "combobox array" in Visu
CODESYS Forge
talk
(Thread)
Cancelling a selection from a "combobox array" in Visu
Last updated: 2024-07-17
Length of string and Array of bytes
CODESYS Forge
talk
(Thread)
Length of string and Array of bytes
Last updated: 2025-04-02
Reset an Array[] in one line, possible?
CODESYS Forge
talk
(Thread)
Reset an Array[] in one line, possible?
Last updated: 2025-04-03
Variable Length Array - Cannot mix variable and fixed length dimensions?
CODESYS Forge
talk
(Thread)
Variable Length Array - Cannot mix variable and fixed length dimensions?
Last updated: 2025-05-26
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
Post by mubeta on UNION statement is not supported in the ethercat data exchange
CODESYS Forge
talk
(Post)
Hi all, I am using a unionn statement for merge in integer data type some values that are received in byte from the i/o cards, but, using this simple and light technique, is not recognized by the ethercat data exchange and in fact the tags are not updated. In my opinion it's a very big bug.
Last updated: 2025-02-05
Post by imdatatas on Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW
CODESYS Forge
talk
(Post)
Hello, I am encountering an interesting problem as below in SP20patch5 variable definition area. I think this is a bug. As can be seen in the attached screenshot, it assigns the same %MW or %QW address to all elements of the array. I hope Codesys team can solve this problem in the next version. Best regards, Imdat
Last updated: 2025-03-17
Post by timvh on Readable IO names
CODESYS Forge
talk
(Post)
IF you create an ENUM {attribute 'qualified_only'} {attribute 'strict'} TYPE E_IO : ( FIRST := 0, SECOND := 1 ); END_TYPE You should be able to access the array items like: IOCard_OUTPUT[E_IO.FIRST]
Last updated: 2024-09-28
How to change data format of 'Trend' time data to DT or something else
CODESYS Forge
talk
(Thread)
How to change data format of 'Trend' time data to DT or something else
Last updated: 2021-05-10
Post by leon78 on Codesys 3.5 SP17 Patch 2 CheckBounds (POUs for Implicit Checks)
CODESYS Forge
talk
(Post)
Unfortunately, it was fixed in SP19, but I need SP17 CDS-82162 Bug Compiler: Checkbounds is not working for dynamic arrays with VAR_IN_OUT as index access Fixed [[GENERAL]] Compilerversion >= 3.5.19.0 https://de.codesys.com/fileadmin/data/Images/System/Releaseinformation/Release-Notes-CODESYS-35190.html
Last updated: 2023-11-16
OPC connection with many data
CODESYS Forge
talk
(Thread)
OPC connection with many data
Last updated: 2014-04-26
Beckhoff - Siemens Profinet data exchange
CODESYS Forge
talk
(Thread)
Beckhoff - Siemens Profinet data exchange
Last updated: 2018-10-10
Data storage and Export in Codesys
CODESYS Forge
talk
(Thread)
Data storage and Export in Codesys
Last updated: 2023-10-29
Serial modem data exchange
CODESYS Forge
talk
(Thread)
Serial modem data exchange
Last updated: 2022-10-04
AcuCD 240 data conversions
CODESYS Forge
talk
(Thread)
AcuCD 240 data conversions
Last updated: 2013-06-22
XY chart - pointers for data
CODESYS Forge
talk
(Thread)
XY chart - pointers for data
Last updated: 2020-12-14
data consistency in ProfibusDP
CODESYS Forge
talk
(Thread)
data consistency in ProfibusDP
Last updated: 2008-10-13
Error when importing PLCopen XML data
CODESYS Forge
talk
(Thread)
Error when importing PLCopen XML data
Last updated: 2015-06-23
Recording data to CSV files
CODESYS Forge
talk
(Thread)
Recording data to CSV files
Last updated: 2018-02-13
OPC Datasources No Live Data
CODESYS Forge
talk
(Thread)
OPC Datasources No Live Data
Last updated: 2021-11-19
Webvisu Trace from Application data recorder?
CODESYS Forge
talk
(Thread)
Webvisu Trace from Application data recorder?
Last updated: 2018-10-15
Data Types and following variables comments
CODESYS Forge
talk
(Thread)
Data Types and following variables comments
Last updated: 2014-11-25
CODESYS Sensor App GPS Data
CODESYS Forge
talk
(Thread)
CODESYS Sensor App GPS Data
Last updated: 2021-10-14
Trend Data To CSV Files?
CODESYS Forge
talk
(Thread)
Trend Data To CSV Files?
Last updated: 2022-06-03
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
.