Post by mubeta on STRUCT AT %MW1000
CODESYS Forge
talk
(Post)
This is normal and correct since in CoDeSys static addressing of variables uses the IEC method. A LONG tag has the size of 8 bytes, so %ML0 coincides with %MB0 ... %MB7; %ML1000 with %MB8000 ... %MB8007. (Similar reason for word and other formats). Also the reason the compiler won't let you map the structure to a %MW depends on the fact that the individual base elements are manipulated to 64 bits regardless of the smaller size. That said, it makes me strange that you cannot write a parser without making use of static memory allocation.
Last updated: 2024-08-13
Post by gatto on Comparing Arrays of structure
CODESYS Forge
talk
(Post)
Hi, something like this ?
Last updated: 2024-08-23
Post by eschwellinger on Persistent variables are not read after initialization
CODESYS Forge
talk
(Post)
which version of the runtime do you use?
Last updated: 2024-09-02
Post by ph0010421 on MODBUS TCP REGISTERS CODESYS V3.5
CODESYS Forge
talk
(Post)
hello Use FC3 instead of FC4
Last updated: 2024-10-11
Post by ellocco on Problems with simulation in Window 10
CODESYS Forge
talk
(Post)
@fscardovi You might check the location of your CODESYS.exe.
Last updated: 2024-10-16
Post by eschwellinger on OPC UA Server Status on Win RTE
CODESYS Forge
talk
(Post)
latest version of the Control RTE?
Last updated: 2024-10-21
Post by garrian on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
Thanks for your reply. I belive it is contiguous, I'm writing to adress 0 to 4. Or, do you mean something else? Well, something is happening. If I on the client set adress 1,2,3 to true, only 1 is set to true on the server side. On the client side, the data is array of word. But on the server side, the coils are array of bool. Holding register is array of word on server side. Can this be a problem? Attached screenshot of how it looks at the server side.
Last updated: 2024-11-17
Post by id0mrzl on Track position of dialog
CODESYS Forge
talk
(Post)
Hi, do you already find out the way? Syaiful
Last updated: 2025-02-25
Post by nz-dave on MC_HOMING
CODESYS Forge
talk
(Post)
also get this error in place of the other from time to time.
Last updated: 2025-04-04
Post by vsgn on Passing properties as VAR_IN_OUT variables.
CODESYS Forge
talk
(Post)
Hi, in my experience, the best options for such a case could be: 1. Pass a FunctionBlock via VAR_IN_OUT, containing all variables, mehods and properties needed for the logic of this graphic element (be aware of implementing correcly both get and set accessor for properties) 2. Pass an Interface via VAR_INPUT, of which you can use obviously only Properties and Methods. This is much more elegant for me. Here, you can just pass directly the instance of a FunctionBlock implementing such Interface as input. Hope you'll find this suggestions useful.
Last updated: 2025-05-13
Post by mondinmr on Something of strange in the trace
CODESYS Forge
talk
(Post)
Double message sorry
Last updated: 2025-05-17
Post by andrecavalcante on Warning code C0373
CODESYS Forge
talk
(Post)
Same thing. Anybody has a clue of this warning?!
Last updated: 2025-05-23
Post by eschwellinger on CODESYS Control for Linux ARM SL (32 bit) on Moxa UC-3100 IPC
CODESYS Forge
talk
(Post)
I would recommend to ask Moxa for a newer version of Debian. Debian 9 ("Stretch") has reached its end of life and is no longer receiving security updates from the official Debian Security Team as of June 30, 2022. This means any systems still running Debian 9 are vulnerable to security risks and should be upgraded to a newer, supported version of Debian like Debian 10 ("Buster") or Debian 11 ("Bullseye").
Last updated: 2025-07-14
Post by bmatlove on AXIS_REF_SM3 Error Codes?
CODESYS Forge
talk
(Post)
I'm trying to firm up alarming of axis faults. Declutter the code and figure out what's what. Diving into it, I see the AXIS_REF_SM3 function block provides uiDriveInterfaceError and dwErrorId, but I can't find any significance of these further than Drive interface error number Parameter number: 1014 and Drive specific error identifier, parameter number: 1031, respectively. Is there some corresponding appendix I could use to decode these? Also, is there any relation to the Error ID (of type SMC_Error) of the MC POUs? MC_Jog, MC_Reset, MC_MoveRelative, etc? If so, are the above errors redundant? Thanks in advance.
Last updated: 2025-09-22
Automation Server π¬π§
CODESYS Forge
talk
(Discussion)
The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers
Last updated: 2025-09-26
Post by snhatton on Add device greyed out
CODESYS Forge
talk
(Post)
What type of PLC are you using?
Last updated: 2023-12-19
Post by snhatton on Add device greyed out
CODESYS Forge
talk
(Post)
What type of PLC are you using?
Last updated: 2023-12-19
Post by reinier-geers on Inheritance of axis
CODESYS Forge
talk
(Post)
Do You have a solution ? Ive want the same
Last updated: 2024-01-12
Post by alexgooi on Codesys OPC DA server requires more then 2 GB of ram
CODESYS Forge
talk
(Post)
Last updated: 2024-01-25
Post by jamil on Send_email Codesys V3.5
CODESYS Forge
talk
(Post)
Hello Guys Where can I find the library of Send_Mail (FB)
Last updated: 2024-01-31
Post by jamil on Send_email Codesys V3.5
CODESYS Forge
talk
(Post)
Hello Guys Where can I find the library of Send_Mail (FB)
Last updated: 2024-01-31
Post by jackbrady on Function Blocks and arrays of function blocks
CODESYS Forge
talk
(Post)
Thanks for the reply. Much appreciated.
Last updated: 2024-02-15
Post by jonasz on Discontinuity of A/B/C axis movement.
CODESYS Forge
talk
(Post)
PrtScr
Last updated: 2024-05-09
Post by talhaali on Alarm Class "Notification Actions"
CODESYS Forge
talk
(Post)
Hi, do you have code implementation of this?
Last updated: 2024-06-06
Post by talhaali on Alarm Class "Notification Actions"
CODESYS Forge
talk
(Post)
Hi, do you have code implementation of this?
Last updated: 2024-06-06
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.