Post by mehmetembedded on Linux ARM64 SL, GPIO Access
CODESYS Forge
talk
(Post)
Hello. I am using TI AM64x evaluation board TMDS64EVM. It has 8 leds connected via I2C to SoC.I wanna control them via codesys GPIO device. Is that possible? If so how I can do it. I had no problem installing codesys runtime, and running program on device. But when it comes to GPIO access, It couldn’t make it.
Last updated: 2024-05-08
Post by mehmetembedded on Linux ARM64 SL, GPIO Access
CODESYS Forge
talk
(Post)
Hello. I am using TI AM64x evaluation board TMDS64EVM. It has 8 leds connected via I2C to SoC.I wanna control them via codesys GPIO device. Is that possible? If so how I can do it. I had no problem installing codesys runtime, and running program on device. But when it comes to GPIO access, It couldn’t make it.
Last updated: 2024-05-08
Post by walkercope on Ethercat bus on Beckhoff CX with Codesys for Linux
CODESYS Forge
talk
(Post)
Has anyone figured out a way to use the ethercat bus on a beckhoff CX using codesys running on linux? Using ethercat on the native NICs works fine but I get a "packet could not be sent" error when trying to scan the ethercat bus device. Errors and hardware in attached image.
Last updated: 2024-05-13
Post by totorovic on IO-LINK Package - new license model
CODESYS Forge
talk
(Post)
Hello, I'm using th IDE Combivis studio 6 (codesys based) and I get an error message when I use IO-link. "The license is missing or invalid. The API is running in demo mode." However the package Manager indicates that no licence is required. It used to work, it seems that the free package has become a paying one. Can Codeys confirm this? BR
Last updated: 2024-06-06
Post by marks on Regarding trend storage access error
CODESYS Forge
talk
(Post)
I had this problem when running the application as a Simulation. When I wrote it to the Pi all worked as expected. If this isn't the case for you, we've seen some issues with sqlite on the Pi's - so reset Origin and re-download may help in that case. Good luck, Mark
Last updated: 2024-07-24
Post by docker on Webvisu client connection monitoring
CODESYS Forge
talk
(Post)
Hi, i am interested in this thread and have tried a couple of the above examples in to determine remote webvisu access. I am having trouble getting the lastusage variable to refresh during runtime? It seems to only log the last usage at initialisation and that is it? how do i gain ongoing access to the time variable as the code is running? Thankyou.
Last updated: 2024-08-26
Post by dengsberg on Disable Communications to 'Modbus_Server_COM_Port' from the logic
CODESYS Forge
talk
(Post)
I have a serial Modbus RTU communicating to the Slave device. But when the control system is not in Run there is no power applied to one of the Modbus Devices. Can I enable / disable the communications to that Modbus Slave in the code based on my running mode, so I don't get all the errors?
Last updated: 2024-08-29
Post by tehthoams on Time will not read 12
CODESYS Forge
talk
(Post)
I know this post is a bit old, but i'm having this same issue: At noon, %t[hh:mm:ss tt] is displaying 00:00:00 PM There is no text variable, just using the default functionality of the visualization for the time display. This is running on an IFM CR1102 display. has anyone solved this?
Last updated: 2024-10-10
Post by csu-chris on No file found
CODESYS Forge
talk
(Post)
I'm having trouble getting started with the SysFile library. I tried copying and running the code found here: https://forge.codesys.com/forge/talk/Engineering/thread/f17c3d0e64/ Every time I try to run the file handle pointer returns: 16#FFFFFFFFFFFFFFFF <dereference of="" invalid="" pointer=""></dereference> I can see the file when I look in the Device -> Files window Any idea what I'm doing wrong?
Last updated: 2024-10-15
Post by winki on Scan Network on gateway created with Control Sl
CODESYS Forge
talk
(Post)
Hello, I am new on CODESYS environement. I am used to BECKHOFF env. I would like to use codesys on debian distribution. I followed this tutorial : https://www.youtube.com/watch?v=TVF0LV279_4 But I am stuck on selected the device. I do not understand, everything is running correctly Someone have an idea ? Loic
Last updated: 2024-10-16
Post by phoward131 on Alarm Table Filtering
CODESYS Forge
talk
(Post)
I actually just found the solution maybe. If anyone else is running into this, go to your Project Settings > Visualization > Advanced (check 'Visible' to see advanced settings) > UNCHECK 'Activate property handling in all element properties.' I am not sure what else unchecking this might affect but it seems to allow the alarm table to be filtered as expected.
Last updated: 2024-10-28
Post by phoward131 on Alarm filtering latch variables
CODESYS Forge
talk
(Post)
I actually just found the solution maybe. If anyone else is running into this, go to your Project Settings > Visualization > Advanced (check 'Visible' to see advanced settings) > UNCHECK 'Activate property handling in all element properties.' I am not sure what else unchecking this might affect but it seems to allow the alarm table to be filtered as expected.
Last updated: 2024-10-28
Post by open on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Hi @ph0010421, I tried the program the TimeTaken is calculated when stop is triggered. I want the TimeTaken to be continuously calculated and counting when a BOOL variable is true. I tried to program this way: Declaration: PROGRAM PLC_PRG VAR bStartStop: BOOL := FALSE; // Start/Stop button bReset: BOOL := FALSE; // Reset button bRunning: BOOL := FALSE; // Flag indicating whether the stopwatch is running tStartTime: TIME; // Variable to store the start time tElapsedTime: TIME; // Variable to store the elapsed time END_VAR Implementation: // Main program logic IF bReset THEN // Reset button pressed, reset the stopwatch bRunning := FALSE; tElapsedTime := T#0s; ELSIF bStartStop THEN // Start/Stop button pressed, toggle the running state IF bRunning THEN // Stop the stopwatch bRunning := FALSE; ELSE // Start the stopwatch bRunning := TRUE; tStartTime := tElapsedTime; END_IF; END_IF // Update the elapsed time when the stopwatch is running IF bRunning THEN tElapsedTime := tElapsedTime + T#1s; // Adjust the time increment as needed END_IF However counting of the seconds is not accurate. I tried changing the main task cycle time interval to 1000ms. The counting of seconds become slower. (see attached) Please help
Last updated: 2023-12-08
Post by tama00 on GPIOs not running with Raspberry Pi 4 (and SPI connection)
CODESYS Forge
talk
(Post)
Hello everyone, I have a working SPI connection (with transferExt) between a Raspberry master with Codesys and an ESP32 slave. I would also like to use a few GPIO pins. Is there a problem with using SPI AND GPIOs? Environment: Raspberry Pi 4+ with Raspian from Oct 23 Codesys V3.4 SP19 Patch 5 with Runtime Version 4.10.0.0 Device: GPIOs B+/Pi2 My problem: The status is displayed as “GPIOs : not running”. And also during mapping the message “The bus is not running. The values shown are perhaps not actual”. However, the variable changes that I make in my program are displayed under “Current Value”. In the Logic Analyzer, the pin toggles during transmission with small intervals of +-4us (seems to be a cyclical disorder, but I don't know where exactly it could be coming from). This applies to pins that I actually use (output) but also to the other GPIOs (not used). With GPIO 4, the line remains permanently high. Attached is a screenshot from the Logic Analyzer. Channel 1,3,5 were GPIO pin 26, 22, 17 Would be very grateful for help. Best regards
Last updated: 2024-05-06
Post by karel-bas on Loosing connection to emulation running on Linux
CODESYS Forge
talk
(Post)
Hello, I am trying to emulate my code but for some reason my Codesys IDE keeps loosing connection to the emulator. I am constantly pinging virtual machine on which its running and its running fine, but codesys refuses to reconect to it, and is not able to rediscover it. Codesys 3.5 SP20 Patch 1 I have linux installed like image in attachment.(using version 4.12) Linux VM is set up to use up to 4 cores and 8gb of ram, with nothing else runing on it. I dont have a license so I am aware that the emulation shouldnt run for more then 120 minutes I am able to, login, get sysinfo, reboot etc from codesys IDE for certain period of time (5minutes) then my connection gets lost, sometimes I can login again, but sometimes i have to reboot the VM. Any suggestions what might be the issue ?
Last updated: 2024-09-19
Post by kreisfilho on Stop raspberry from executing a plc program
CODESYS Forge
talk
(Post)
Hi guys, Can someone inform where in a raspberry pi are stored the codesys programs? I´ve been training the use of a RPI as PLC, which works pretty well, however while both the RPI and PC (running codesys) remain connected to the same network. The question is: how to run the codesys program downloaded to the RPI as a stand alone device (disconnected from the PC)? Thanks! Kreis
Last updated: 2023-08-23
Post by sukrit on What licenses are required for runtime on raspberry pi cm4
CODESYS Forge
talk
(Post)
We have developed a project for 2 servo motors using raspberry pi computemodule 4 on ethercat master. we are using web visualization for display different screens. project is running well in demo. we want to implement it in production envoirment. being new still wondering which licences i need. Can We get this information in codesys devlopment software. code size is approx 5 mb, 1 instance of etharcat master and aproox 100 variables in visaualization.
Last updated: 2023-10-17
Post by fred on Rasperry Control Debian 12
CODESYS Forge
talk
(Post)
Hi, I have Proxmox running on a Rasperry 4 and have debian 12 ARM installed here. I wanted to install Codesys Control for Raspberry on it. According to the messages, the runtime environment and the gateway were installed successfully, but I can't find a device to downplay a program. The sudo service codesys start command fails. (see image) Does somebody has any idea? Thank you for your help! Greetings Fred
Last updated: 2023-11-22
Post by snhatton on Running webvisu with Codesys Control Win V3 in Simulation Mode
CODESYS Forge
talk
(Post)
Yes, you can use the CODESYS ControlWin V3 Soft PLC. However, if simulation is enabled on the device this will disable all communication, so you need to turn off simulation to view the visualization in a web browser. In simulation mode, all IO and communication is disabled for standalone testing. In addition, make sure to set the start visualization in the WebVisu object in the application tree. I hope this helps!
Last updated: 2023-12-04
Post by zatalian on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
CODESYS Forge
talk
(Post)
There seem to be problems with the latest version of raspberry pi os 64bit (I used the lite version). The codesys control runtime crashes after a few seconds. The same runtime works on the raspberry pi image from 2023-10-10 When starting the runtime from the commandline, i get the following error: ooops... this runtime was build for RASPBERRYPI. Hardware version or firmware version not supported! (and yes, I'm running this on a raspberry pi :-)
Last updated: 2023-12-11
Post by nz-dave on Bool turning on in case stament in wrong state?
CODESYS Forge
talk
(Post)
I have a case statement running a process. during one of the steps it has started calling a bool var that is 2 steps further on in the case? i have even tried //commenting it out but it still turns on at the same point in the case. i have also run a trace but cant see anything that would trigger it. Any Ideas? Cheers
Last updated: 2023-12-15
Post by timvh on Minimum system requirements for codesys control standard S
CODESYS Forge
talk
(Post)
It depends on your application which CPU speed and RAM size you need. If you think the Control Standard S license is sufficient then my guess is that your selected PC has no problem running your application. There are no more "hardware" based single licenses available anymore, only application based licenses. So this "Raspberry Pi" restriction for home automation is not applicable anymore. For more information see: https://store.codesys.com/en/howto_applicationbasedlicenses
Last updated: 2024-01-14
Post by ofey on two different OPC clients with different privileges
CODESYS Forge
talk
(Post)
Hi! I have usually only connected one OPC client (our system) to an OPC server created in the codesys environment on a PLC. This OPC client has a lot of write privileges. A customer also want OPC access, but I want to restrict his access to only read certain values. Do you know if this is possible inside the single codesys runtime running on a controller?
Last updated: 2024-02-01
Post by matthew on New Ladder Diagram conversion does not work due to missing features
CODESYS Forge
talk
(Post)
Hi @eschwellinger, I have been trying out v1.0 of the new ladder and have a few questions. I have warnings Expression or part of it has no effect I can't get rid of them, what do they exactly mean? Using the ST_Block, is there a way when online to open the ST_Block and view the running code? Thanks!
Last updated: 2024-02-09
Post by amy123 on CSV Utility CANNOT_OPEN_DIRECTORY
CODESYS Forge
talk
(Post)
Hello, I tried using the CSV Utility SL Example from the CODESYS IIoT Libraries SL. No matter what path I try, I can not get the InitSave to work from CSVWRitersSTExample, line 2. It always gives the error 'CANNOT_OPEN_DIRECTORY'. I am running this on an Windows Azure VM, with Codesys Control Win V3 x64. I added a folder called 'temp' to my C: so that the default 'C:/temp' would work. However it gives CANNOT_OPEN_DIRECTORY. I tried updating to 'C:\temp' with the same result. Any help would be greatly appreciated!
Last updated: 2024-02-14
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
.