Post by nano on How to access to variable value through symbolic string name
CODESYS Forge
talk
(Post)
i know, this is the reason for us either. PLC-Handler is to big, and only available with additional Contracts/Costs. OPC-UA is to slow for us. As described, there is a solution available, but im not allowed to post them here. i would prefer you send a message at codesys store by "have a question" or similar called. Not sure. Or, if an Codesys-Official Member allows to share that informations, i can give you the right hints.
Last updated: 2024-06-15
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 mini-developer on Precompilation Error NBS.UDP_Peer
CODESYS Forge
talk
(Post)
Hello, I use the Library NBS from "caa net base services". After opening the Project i get 19 errors from the message window "Precompilation", most of them because it doesn't recognise a component of the FB "NBS.UD_Peer". (see photo) After compiling the Project at least 2 times, there are no errors. Is there a reason and solution for this behavior? Is there a problem with resolving the library? Thanks for any clue
Last updated: 2024-08-23
Post by tcarlbom on Read tag values using external program
CODESYS Forge
talk
(Post)
This is my first time posting in this forum and I am new to codesys. I am a fullstack developer and I am trying to figure out how the following. What would be the best approach to create a own/custom tag browser? Either directly in codesys ide or using a separate custom program (perhaps a winforms application). 1.a. Shall I parse the .project xml file to get a list of all tags in the project? 1b. Shall I use python scripting in codesys ide to get a list of tags? Once one have selected some tags. These tags shall be exposed to a python program which will be acting as a edge computer. It’s fine to be able to import a file. 2a. I found a library called codesys plchandler which (as I understand) acts a rest api server. Is this correct? If so, can I query the api from a custom python script, ie can query what tags exist in project and or read tag values? My research so far. From earlier projects I know that using opc ua would be perfect for this but from my opinion it’s bloating the plc since it’s resource intensive. So opc ua is not an option. Codesys automation server is neat. But I don’t want to rely on some cloud services and subscription based pricing. There seem to be several interesting codesys libraries like mqtt, tcp server and NVL sender which would help me expose plc tags. But all have a common problem. One have to manually write what tags which will be used in these function blocks. I want a similar experience like “selecting” tags in the opc ua or the codesys tracing, ie a tag browser.
Last updated: 2024-06-28
Post by davidbo on How to switch between dynamic IP address and dynamic?
CODESYS Forge
talk
(Post)
I want to make an application with a UI for CODESYS Control for Raspberry Pi MC SL which make it possible to switch between dynamin and fixed IP address and to set the IP address. However I do not know whether that is possible?
Last updated: 2023-11-06
What is the best way to upgrade a project to a new version of Codesys?
CODESYS Forge
talk
(Thread)
What is the best way to upgrade a project to a new version of Codesys?
Last updated: 2022-03-01
How to convert a standard robot program into an excutive list when a robot runs?
CODESYS Forge
talk
(Thread)
How to convert a standard robot program into an excutive list when a robot runs?
Last updated: 2023-11-25
Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?
CODESYS Forge
talk
(Thread)
Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?
Last updated: 2022-02-15
I want to control a industrial machine with "CODESYS Control Win V3" and a Profibus_DP slave
CODESYS Forge
talk
(Thread)
I want to control a industrial machine with "CODESYS Control Win V3" and a Profibus_DP slave
Last updated: 2018-09-24
how implement a load cell with Raspberry Pi in CODESYS using a HX711 ADC?
CODESYS Forge
talk
(Thread)
how implement a load cell with Raspberry Pi in CODESYS using a HX711 ADC?
Last updated: 2021-05-30
Connect a I/O module (EAP Module 2020) as a slave to Revolution PI
CODESYS Forge
talk
(Thread)
Connect a I/O module (EAP Module 2020) as a slave to Revolution PI
Last updated: 2018-03-09
Declaring a FB within a struct and calling it in ST
CODESYS Forge
talk
(Thread)
Declaring a FB within a struct and calling it in ST
Last updated: 2021-09-30
How do I pass a array throught a function and return an array - Pointers
CODESYS Forge
talk
(Thread)
How do I pass a array throught a function and return an array - Pointers
Last updated: 2018-04-16
Attempt to upgrade a pi 3 from a working V3.5.11 to V3.5.15 fails
CODESYS Forge
talk
(Thread)
Attempt to upgrade a pi 3 from a working V3.5.11 to V3.5.15 fails
Last updated: 2021-07-13
Access to a GVL and seraching for a variable inside of it (Pyhton)
CODESYS Forge
talk
(Thread)
Access to a GVL and seraching for a variable inside of it (Pyhton)
Last updated: 2022-07-25
missing namespace in autodeclaration of a datatype declared inside a library
CODESYS Forge
talk
(Thread)
missing namespace in autodeclaration of a datatype declared inside a library
Last updated: 2020-07-13
It it possible to connect 100 EtherCAT Slaves to a Codesys Master on a RaspberryPi 3
CODESYS Forge
talk
(Thread)
It it possible to connect 100 EtherCAT Slaves to a Codesys Master on a RaspberryPi 3
Last updated: 2020-12-14
Pass the second array dimension into a function as a parameter
CODESYS Forge
talk
(Thread)
Pass the second array dimension into a function as a parameter
Last updated: 2022-05-10
[OOP] How to implement "HAS A"... that is, instance of class within a class
CODESYS Forge
talk
(Thread)
[OOP] How to implement "HAS A"... that is, instance of class within a class
Last updated: 2017-06-07
Accessing Webvisu remotely to a Pi with a Cellular USB dongle
CODESYS Forge
talk
(Thread)
Accessing Webvisu remotely to a Pi with a Cellular USB dongle
Last updated: 2019-08-12
[ Windows ] How to Restart PLC in CMD line ? ( a Stop followed by a Start )
CODESYS Forge
talk
(Thread)
[ Windows ] How to Restart PLC in CMD line ? ( a Stop followed by a Start )
Last updated: 2020-03-27
Check if a directory exists and then copy a file in it
CODESYS Forge
talk
(Thread)
Check if a directory exists and then copy a file in it
Last updated: 2016-06-25
Can't link process data variables to IO from a positionsensor while using a demo soft PLC
CODESYS Forge
talk
(Thread)
Can't link process data variables to IO from a positionsensor while using a demo soft PLC
Last updated: 2022-03-04
it is possible to add a function template to a program from scripting ...
CODESYS Forge
talk
(Thread)
it is possible to add a function template to a program from scripting ...
Last updated: 2018-05-25
How can you Toggle a Function BOOL input from a different POU?
CODESYS Forge
talk
(Thread)
How can you Toggle a Function BOOL input from a different POU?
Last updated: 2021-08-01
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
.