Post by nico01 on Integer with comma in visualization
CODESYS Forge
talk
(Post)
Hello everyone, I created a visualization with a lot of REAL, with one or two digits after the decimal point. This causes me problems in terms of rounding and memory... is it possible to display an integer with a comma, like with PROFACE or SIEMENS? It's just an "abuse" of display, the comma is just on the visualization. This limits the memory (16 versus 64 bytes) and rounding is easier to manage... See print screen on proface software THANKS
Last updated: 2023-09-20
Post by mikek10 on Error IoDrvEthernetIP: Connection Failure. (16#1) How to solve
CODESYS Forge
talk
(Post)
Your connection configuration should look something like the attachment. Consuming assembly O->T will be the hex of the assembly you want to reference for output data - I want 102 (DO Data Only) shown in the Wago web page 102 = 16#66. Producing assembly (T->O) is the assembly you require for input data - again shown in the Wago web page - I want 108 (DI Data Only) or 16#6C Then set the number of bytes as per the data in the Wago web page too (both 2 in my case)
Last updated: 2024-07-22
Post by comingback4u on Memory Address Overlap
CODESYS Forge
talk
(Post)
Hello, We use a controller that comes with a bunch of predefined faults. These faults are considered active and historic. They are a 32 byte array but only take up 26 bytes of data. Because of this the historic faults start at address 26 instead of 31. Active faults variable take up address location 0 to 31. Historic faults variable take up address location 26 to 57. Because of this overlap I get an error that these overlap and it wont allow me to download to my controller. This isn't an issue in 3.5.5.4 but becomes an issue in newer version. Is there a way to turn this off? If I change the address location, the historic faults then become broken without doing some manipulation in the code. The software will build just fine. Thank you for your time.
Last updated: 2024-03-07
Post by gilbertamine on Comparing Arrays of structure
CODESYS Forge
talk
(Post)
Hi Everybody, I'm looking for a simple way of comparing two array of a structure. My structure is define like this : TYPE Positions_T : STRUCT PosX: DINT; PosY: DINT; PosZ: DINT; END_STRUCT END_TYPE I have multiples Var : ARRAY [0..220] OF Positions_T, that I need to compare quickly. I don't really want to do a Loop that goes by every 220 points and compare each one of them so I was wondering if there is another way. I came accross the MEM.Compare function, but it require to know the size in Bytes of the memory, and I don't know how to do that... Has anybody an idea on how to do the comparing easily ? Thanks in advance
Last updated: 2024-08-22
How to allow a user to handle certificates without access to sourcecode?
CODESYS Forge
talk
(Thread)
How to allow a user to handle certificates without access to sourcecode?
Last updated: 2024-08-07
Post by paulorb on STRUCT AT %MW1000
CODESYS Forge
talk
(Post)
Hi I am trying to use STRUCT to parse commands from Modbus/TCP, Modbus client will fill the bytes related to a specific command (type, parameters), then PLC (Codesys) will access the command parameters. A STRUCT will simplify a lot the process of parsing the data, so I don't need to parse byte per byte, address will be mapped to a struct and I can use it for parsing the data. From what I understood, the compiler does not allow me to specify the location of the struct for a %MW register. VAR_COMMAND AT %MW1002: structGenericModbusCommand; This will throw: Bad declaration, use '%ML' for 'structGenericModbusCommand' variable But If I change it to %ML, when you go online you see that it is actually allocating the struct in another memory address. When we go online, on GVL we can see: VAR_COMMAND. structGenericModbusCommand %ML1002 commandType COMMANDTYPE %MB8016 ... %MB8020 I am not specifying a pointer or a reference it is a struct type, why is it mapping to a %MW location (random one). How can I control where it is mapping to? I need a consistent way to map STRUCT to specific modbus address. Is it possible? Thanks, Paulo Note I am using a Codesys OEM: Schneider Machine Expert Logic Builder (M241)
Last updated: 2024-08-13
how to add module to raspberry pi
CODESYS Forge
talk
(Thread)
how to add module to raspberry pi
Last updated: 2020-11-24
how to set custom from/to timestamp in Trend
CODESYS Forge
talk
(Thread)
how to set custom from/to timestamp in Trend
Last updated: 2020-03-31
Unable to connect to git remotes through Codesys.
CODESYS Forge
talk
(Thread)
Unable to connect to git remotes through Codesys.
Last updated: 2023-11-10
Codesys to Android App to Cloud Database
CODESYS Forge
talk
(Thread)
Codesys to Android App to Cloud Database
Last updated: 2022-03-10
How to map to values in CAN BUS
CODESYS Forge
talk
(Thread)
How to map to values in CAN BUS
Last updated: 2021-04-29
Using Codesys WebClinet to talk to Sensibo API
CODESYS Forge
talk
(Thread)
Using Codesys WebClinet to talk to Sensibo API
Last updated: 2021-07-20
How to add a VFD to Codesys
CODESYS Forge
talk
(Thread)
How to add a VFD to Codesys
Last updated: 2023-05-12
How to convert Function block diagram to Structured text
CODESYS Forge
talk
(Thread)
How to convert Function block diagram to Structured text
Last updated: 2015-05-04
How to save sensor values ββto a file
CODESYS Forge
talk
(Thread)
How to save sensor values ββto a file
Last updated: 2023-02-22
HMI will not connect to PLC to display visu.
CODESYS Forge
talk
(Thread)
HMI will not connect to PLC to display visu.
Last updated: 2020-02-28
how to Connect CodeSys to many devices?
CODESYS Forge
talk
(Thread)
how to Connect CodeSys to many devices?
Last updated: 2017-08-16
how to communicate codesys to other PLC
CODESYS Forge
talk
(Thread)
how to communicate codesys to other PLC
Last updated: 2011-07-06
Not able to connect to Codesys Gateway on locl machine...
CODESYS Forge
talk
(Thread)
Not able to connect to Codesys Gateway on locl machine...
Last updated: 2021-03-12
how to Connect CodeSys to many devices ?
CODESYS Forge
talk
(Thread)
how to Connect CodeSys to many devices ?
Last updated: 2017-08-17
Connect to telnet server. Where to start?
CODESYS Forge
talk
(Thread)
Connect to telnet server. Where to start?
Last updated: 2022-06-23
Unable to generate chm due to Pi library warning... [solved]
CODESYS Forge
talk
(Thread)
Unable to generate chm due to Pi library warning... [solved]
Last updated: 2018-01-29
How to become a registered user and where to login?
CODESYS Forge
talk
(Thread)
How to become a registered user and where to login?
Last updated: 2015-06-10
Structure to Dword, Dword to structure, using pointers
CODESYS Forge
talk
(Thread)
Structure to Dword, Dword to structure, using pointers
Last updated: 2013-07-03
Python script to add libraries to project
CODESYS Forge
talk
(Thread)
Python script to add libraries to project
Last updated: 2022-09-07
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
.