Post by jeroenaero on CodeSys Raspberry pi I2C driver not found
CODESYS Forge
talk
(Post)
We use a Compute module 4 it's 64bit based, so i cannot change it to sl.what are the possibilities to get the i2c working?
Last updated: 2024-11-09
Post by andrax on CodeSys Raspberry pi I2C driver not found
CODESYS Forge
talk
(Post)
This is the operating system and has nothing to do with the runtime. Unless you use 64bit commands. You can see for yourself that you have errors with 64bit compilers
Last updated: 2024-11-09
Post by ph0010421 on Converting each character to a string into ASCII
CODESYS Forge
talk
(Post)
So the printer wants an ASCII conversion of the hex equivalent of ASCII characters?? They don't make it easy for us
Last updated: 7 days ago
Post by dogulas on OPC UA C# client connecting to OPC UA CODESYS server
CODESYS Forge
talk
(Post)
mainak, sorry, just saw your post. I have done that and I still get the same exception. the innerResult says "BadSecureChannelClosed 'Remote side closed connection'". Any other tips? Pointers are welcome.
Last updated: 5 days ago
Post by esave on Stepper Drive with Ethercat
CODESYS Forge
talk
(Post)
Hello everybody I am new into Codesys. I have a stepper driver (EM3E-556E) from Leadshine. I want to controll the stepper driver via EtherCat to a ST programm but I dont have any function block or anything that i can use. I only have the XML-File wich I loaded. With it I implemented the drive as a Ethercat slave and now I see these variables. (See picture) I dont know how to controll the stepper drive. And the manufacturer doesnt provide support for me. Can anybody help me or atleast tell me how they would do it?
Last updated: 2024-03-14
Post by zer0g on Modbus Client Request Not Processed
CODESYS Forge
talk
(Post)
I'm using the code bellow which is based on the Codesys example: FUNCTION_BLOCK MODBUS_master_example_ST VAR initDone : BOOL := FALSE; aIPAddress : ARRAY [0..3] OF BYTE := [127,0,0,1]; clientTcp: ModbusFB.ClientTcp; // buffer to read input registers aDataInputRegisters : ARRAY[0..9] OF UINT; // some client requests clientRequestReadInputRegisters: ModbusFB.ClientRequestReadInputRegisters; xExecute: BOOL; END_VAR IF NOT initDone THEN initDone := TRUE; // configure clientTcp clientTcp(aIPaddr:=aIPAddress, uiPort:=502, udiLogOptions := ModbusFB.LoggingOptions.All); // configure clientRequestReadInputRegisters clientRequestReadInputRegisters(rClient:=clientTcp, uiUnitId:=1, udiTimeout:=TO_UDINT(T#1000MS)); END_IF // call the client FB's clientTcp(); clientRequestReadInputRegisters(rClient:=clientTcp,xExecute := xExecute AND NOT clientRequestReadInputRegisters.xBusy ,uiStartItem:=2, uiQuantity:=3, pData:=ADR(aDataInputRegisters[0])); As you can see the clientTCP is called cyclically with the same result.
Last updated: 2024-05-30
Post by micik on Start Codesys project and then execute python script from command line
CODESYS Forge
talk
(Post)
Hello, by searching the forum, I have found an example of batch script that can be used to start codesys projct by temporarily setting env variables. However, I'm not sure how to modify this to start Codesys 3.5.20 and whether or not I need to specify "profile" with Codesys version at all. @echo off SET PROJECT=D:\TestScripts\Data\OnlineTest.project SET VARIABLES=POU.testint,POU.testoutput start /wait CoDeSys.exe --profile="CoDeSys V3.4 SP3" --noUI --runscript="D:\TestScripts\Forum_Environment.py" I have tried the following just to open the test project: SET PROJECT=C:\TEST\Example.project start CODESYS.exe --profile="CODESYS V3.5 SP20 Patch 2" But I'm not sure how to specify this project to be open after py script is executed. The py script should first add required library to the project and then project should be open.
Last updated: 2024-09-30
Post by sunfloweeerrry on Edgelogix-rpi-1000-cm4102032 SPI port connection to PiFace I/O Driver in CodeSys.
CODESYS Forge
talk
(Post)
Please anyone help there is not a lot reference about this.
Last updated: 2023-08-21
Post by eschwellinger on Project compiling error in Simulation mode
CODESYS Forge
talk
(Post)
I fear you need to update if you need a solution for this.
Last updated: 2023-09-08
Post by necatibilgin on How to access files correctly in Linux
CODESYS Forge
talk
(Post)
This may help you. https://forge.codesys.com/forge/talk/Engineering/thread/3da9ded84e/?limit=250#62b3
Last updated: 2023-09-12
Post by snhatton on Integer with comma in visualization
CODESYS Forge
talk
(Post)
Here is some information about formatting different variables types: https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_placeholder_with_formatting_sequence_in_a_string.html I hope this helps!
Last updated: 2023-09-20
Post by fleaplc on FILE_OPERATION_DENIED
CODESYS Forge
talk
(Post)
/var/opt/codesys/PlcLogic not work here, again FILE_OPERATION_DENIED. May I simply moved my files in /var/opt/codesys/PlcLogic or need some particular settings?
Last updated: 2023-09-30
Post by kleeswi on Fehlermeldung Objektverweis nicht in Objektinstanz
CODESYS Forge
talk
(Post)
Ich bekomme diese Fehlermeldung, wenn ich versuche über die Projekteinstellungen einen Benutzer oder eine Gruppe zu erstellen. V3.5 SP17
Last updated: 2023-10-23
Post by mm-sceg on Runtime geht sporadisch in Störung -> RaspiPi4 reagiert nicht mehr
CODESYS Forge
talk
(Post)
Hier noch das syslog vom Raspi und, falls notwendig, noch ein Screenshot vom NodeRed flow
Last updated: 2023-11-11
Post by martin-k on Beispieldateien finden / Inhalt der Packages
CODESYS Forge
talk
(Post)
Hallo, ich habe https://store.codesys.com/de/codesys-in-building-automation-examples.html runtergeladen und mit dem Installer und Adminrechten installiert. Jedoch finde ich auf C: keine *.project* Dateien. Kann mir jemand erklären wie ich an die Examples dran komme? Auch von Wago habe ich Packages bekommen in denen Beispiele enthalten sind. Auch hier finde ich nix. (Googel habe ich gefragt. Aber mit den Stichworten kommen viele Treffer die alle nicht hilfreich waren.) In der Hilfe von Codesys habe ich natürlich auch gesucht, aber auch hier nichts erklärendes gefunden. Angeblich findet sich was in C:\Programme\CODESYS 3.5.19.40\CODESYS\Projects oder auch unter C:\Users\BENUZTERNAME\CODESYS Examples Aber wie geschrieben finde ich auf C:\ nix was ein Beispiel wäre. Wäre echt super wenn mir jemand einen Hinweis geben könnte. Danke im Vorraus, Martin
Last updated: 2023-11-16
Post by ulvis on How to do horizontal scroll in CFC editor?
CODESYS Forge
talk
(Post)
No. UX & GUI is not a Codesys GmbH priority, it seems :-(
Last updated: 2023-11-23
Post by srigan1986 on SP8 - New scriptengine feature - open:VersionUpdateFlags
CODESYS Forge
talk
(Post)
Is this issue of idling before loading libraries resolved in Codesys 3.5.18.40 ?
Last updated: 2023-11-24
Post by egemenaksoy35 on About Codesys Task Executions
CODESYS Forge
talk
(Post)
Hi, Regarding tasks created in Codesys, are they designed to execute sequentially or independently like how an RTOS operates? Best regards.
Last updated: 2023-12-13
Post by trycyclepower on How to transfer data from DINT to Union(16 Bools) which I need to use in Few FBs
CODESYS Forge
talk
(Post)
Thanks a lot, it worked.
Last updated: 2023-12-14
Post by eschwellinger on Raspberry Pi 4 with Legacy Drivers and Codesys 3.5.19 Patch 4
CODESYS Forge
talk
(Post)
what if you use all packages in latest version? pi Runtime 4.10.0.0 ?
Last updated: 2023-12-19
Post by eschwellinger on Raspberry SPS im AutomationServer hinzufügen
CODESYS Forge
talk
(Post)
hm.. das deine Login credentials nicht passen? das sind die, die du beim ersten login mit CODESYS erstellt hast in der SPS!
Last updated: 2024-01-09
Post by gallusrrr on usb2can in Codeysy 3.5 Can Gateway
CODESYS Forge
talk
(Post)
Hallo Forum das ist mein erster Post bei euch also bitte seit nachsichtig :) ich habe mir den: USB zu CAN Konverter Kable for Raspberry Pi4/Pi3B+/Pi3/Pi Zero(W)/Jetson Nano/Tinker Board and Any Single Board Computer Support Windows Linux and Mac OS (USB2CAN-C) Gekauft da er in Linux arbeiten soll dachte ich man kann den so in codesys einbinden da es auf einen Rasperry Pi lauft. Erkannt wird der Adapter als Bus 001 Device 004: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapter Wie bekomme ich den in Codesys mit einen Rasperry pi eingebunden. (Im Internet habe ich nichts gefunden.) ich bedanke mich. euer Martin
Last updated: 2024-01-16
Post by beppo on Config. Error on SM_Drive_GenericDSP402
CODESYS Forge
talk
(Post)
Hello, I'm having similar issue but with EtherCat drives. Did you solve this? Thank in advance, GB
Last updated: 2024-01-31
Post by eschwellinger on CAN-Bus in Demo-Version
CODESYS Forge
talk
(Post)
nein nur die 30 Minuten- aber sonst keine Einschränkung. Gerätebaum alles Grün/Orange? IO Variablen mappen und auch im Programm verwendet?
Last updated: 2024-02-06
Post by goki on Problem mit String in Globaler Variable
CODESYS Forge
talk
(Post)
Hallo Zusammen Gibt es ein Beispiel wie ich dies so im Codesys 3.5 umsetzen kann?
Last updated: 2024-02-09
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
.