SVN + Git Repositories
Hey Eddy, hab' dir das Projekt mal angehängt. Ist ein "proof of concept". Also erwarte nicht zu viel 😉 Folgende Zeilen sind vielleicht interessant: // call main szCommand := CONCAT(CONCAT('hugo=', DWORD_TO_STRING(hugo)), '$n'); SysFile.SysFileWrite(hFifo, ADR(szCommand), LEN(szCommand), 0); szCommand := CONCAT('main', '$n'); SysFile.SysFileWrite(hFifo, ADR(szCommand), LEN(szCommand), 0); Damit habe ich einen Zähler in eine Variable, Namens "hugo" geschrieben. Und dann die Methode "main" aufgerufen....
Hi Eddy! Bin gerade unterwegs. Aber ich habe einen experimentellen aufbau in dem ich was ganz ähnliches probiert hab, was nur noch nicht so stabil und flexibel lief, wie ich es mir gewünscht hätte. Das kann ich aber gerne mit dir Teilen. Die groben Eckpfeiler was ich gemacht habe: SysProcessExecuteCommand2 aufgerufen um das script zu starten im Script den Prozess "daemonized" im Script eine Pipe angelegt im FB die pipe geöffnet aus dem FB Kommandos geschrieben, um Funktionen in dem python skript...
Didn't try it, but i expect two problems from the code: 1st: fopen( xExecute:= TRUE, xExecute is not toggled, so it is only executed once. maybe this would help: fopen( xExecute:= bWrite, 2nd: eFileMode:= 0, if you want to append a line, you need to set the filemode to "append". But this was just the first impression, on first sight. Cheers, Ingo
Allura Release Event
From the description of writing an driver for a ADC via SPI I do only need a FB that contains the connector (also from SPI the template). Within the MCP3008 template there is the connector PLUS a additional FB contains "IBase", "ICmpIoDrv" and "ICmpIoDrvParameter". So what is the right way how to do it? Are both FBs needed? Actually not. But I found, that this is a clever design, as it hides some complexity. You have one function block, which contains the business logic to access the device. And...
Allura Release Event
Are the drivers really documented so badly? I hoped that they are helpful. Your approach was fully correct this far. If you started with the MCP3008, you should already be fine. Just make sure, that you use a unique ID, as described here: https://forge.codesys.com/drv/io-drivers/doc/Generic/#device-identification If you are curious about a specific concept, we can discuss this separatly.
fixed audio bug in windows
Hi Arno! Wo die Applikationsdaten und Config Files liegen sehe ich fast als Prio 2. Initial hast du ja geschrieben, dass das Runtime sich automatisch nach 10 sec. beendet. Ist das noch genau so? Falls ja, würde ich noch gerne wissen ob du es auch mit der 4.0.1.0 probiert hast. Dann würde ich das nämlich mal nachstellen und debuggen. Grüße, Ingo
At least my two cents from the runtime perspective: It should not be, that the number of processes increase, under normal circumstances. But, indeed, if the command produces a lot of output, I can imagine, that the current implementation of SysProcess might have such problems. So, I would recommend you to test it, by calling your own bash script, which is in fact doing the same as you do now, but discards the output. E.g. (untested): command0 : STRING := 'mysqlite3 '; 1 2#!/bin/bash exec "sqlite3"...
Error in DC Sync
fixed some issues for windows, but still has problems in the "concat" step
That's the main use case, but it might also be helpful in other scenarios.
Infinity Racing / Formular Student
Infinity Racing / Formular Student
Infinity Racing / Formular Student
To answer your last question first: You need no input. The commands are designed, they are crunching through all files recursively. The reason for this "weired" design is the main use case, for which I designed them: "Execute easy build tasks" So a command might look like "codesys compile-library" , and it operates on the whole repo (magically). Checkout this documentation, to understand the idea: https://forge.codesys.com/forge/wiki/Continuous%20Integration/ So, maybe you now also got an idea on...
To answer your last question first: You need no input. The commands are designed, they are crunching through all files recursively. The reason for this "weired" design is the main use case, for which I designed them: "Execute easy build tasks" So a command might look like "codesys compile-library" , and it operates on the whole repo (magically). Checkout this documentation, to understand the idea: https://forge.codesys.com/forge/wiki/Continuous%20Integration/ So, maybe you now also got an idea on...
Yes, exactly! In combination with cfUnit, I also experienced with this script https://forge.codesys.com/tol/codesys-4-linux/docker/ci/master/tree/codesys-ide/scripts/build-test.py You can start it in the container simply with the command "codesys build-test". While it worked locally, I didn't get it to run in my productive environment. But this was related to Drone, which I used as a test runner. This command builds a boot app, which I then started with this script: https://forge.codesys.com/tol/codesys-4-linux/docker/ci/master/tree/codesys-ide/codesyscontrol...
First question is, if you want to run the CODESYS IDE or the CODESYS Control Runtime (the PLC) in a container. For the IDE: https://forge.codesys.com/tol/codesys-4-linux/home/Home/#ide For the Runtime: https://forge.codesys.com/trg/linux-sl/ But those are just the images. To learn how to use them, you need more docker experience.
This is frequently asked here: https://forge.codesys.com/forge/talk/search/?q=Spi+maxspeed
Project Maintenance
Good to hear that! While I can't help technically, as I don't have those devices here in use, I am always willing to help in creating a project on Forge. If you have problems, let me know!
Generic
@wienni what's the idea behind this project? Did you encounter any problems? Talk Topic about project #smartpi-drv
Hi Shahwalid, welcome to our Forge! Unfortunately Blog posts are not the right place, to get in contact, ask questions to our community. Please check out our discussion platform CODESYS Talk. See you there...
Hi! Sounds like your problem is a few layers below your application. So if it worked already, and now doesn't. I assume it is either a problem of: the hardware the USB cable the linux driver the CODESYS configuration To exclude the first two, you could test the adapter on another PC or device. To see if the linux driver works at all, you may test it when CODESYS is not running, with minicom or s.th. similar. In the CODESYS configuration I can only imagine, that: the whole file is corrupted, and can't...
Hab' ich selbst noch nichts mit gemacht. @robert das wäre doch etwas für die Examples, oder!?
4 years later, this is still correct. The SVN integration is available already for a long time, and can even be used for free, if you host your projects here on CODESYS Forge. The Git Integration will be available this year, as part of the professional developer edition: https://www.codesys.com/products/codesys-engineering/professional-developer-edition.html
Hi Andrija, this is a rather old question. I am trying to answering it anyway after such a long time, as it seems to be a popular one. Sorry for being so late. The website you found on www.codesys.com, describes the reference systems of the runtime system toolkit. This is the software, which is sold to PLC manufacturers. Unfortunately there is no such version available for direct CODESYS users, which runs on an STM32. But for other systems, you can use the Runtime from the CODESYS Store: https://store.codesys.com/softsps.html...
Startpage
Home
I retested it with 4.0.0.0 and upgraded the package to it again.
downgraded to SP15 again.
downgraded to SP16
upgrade to 4.0.0.0 (for testing)
Home
corrected edge version to 4.0.0.0
Home
downgraded to SP15
changed version to SP16
Home
Home
upgraded again
Dann fehlt dir bestimmt auch noch die Library von hier: http://forum.codesys.com/viewtopic.php?f=23&t=5872&x=10868&p=11014&lan=en Die musst du, ähnlich wie die devdesc.xml, vorher installieren. Das schließe ich aus der Fehlermeldung. Ihm fehlt halt die Lib ;) Die variablen Mappen - dazu findest du bestimmt was passendes auf Youtube. Hab gerade keinen PC um dir 'nen Screenshot zu machen.
Hi Entdecker, erfahrungsgemäß liegt es nicht daran, dass dir keiner helfen kann, aber vermutlich gerade keiner Lust auf orakeln hat. Die Leute hier (auch die Deutschsprachigen) sind meistens sehr hilfsbereit. Also wenn du deinen Fehler genauer beschreibst, haben bestimmt einige Leute eine Idee. Ganz grob zum Vorgehen: wenn du I2C oder SPI nutzen willst musst das im RaspiOS erst aktiviert werden. Das geht z.B. in 'nem Config File auf der SD Karte. danach hängt man den Treiber ein, wie du's gemacht...
I am not John, but can give you recommendations anyway 😉 Debian Buster Most current Linux SL from the store And if you have realtime requirements, Debian has readily patched kernels included. The packages are named like "linux-image-...-rt" Cheers, Ingo
Grid snap: inconsistent and cumbersome behaviour
Hi Anton! Unfortunately you came to the wrong spot. Please file a bug report in the CODESYS Store. This ticket system here is used for bugs on the webpage or infringement reports and such things.
Grid snap: inconsistent and cumbersome behaviour
Home
Home
- support mp4 input
Register not sending confirmation email
not able to download 'Visualization Elements' example
Why not? You basically attach a few digital signals to an FB, and get a value out of it.
OK, then you should give us an explaination of your problem first. Currently I only know, that you have problems. But I don't know which. explain what you did explain what doesn't work as expected give us the error messages, if there were some ...
In general: define a high priority task call the FB there map the digital output of the FB to a GPIO output That's it 😉 But as you might have read this thread, it seems to only work with one output. Seems like the GPIO driver has problems with multiple outputs.
downgraded linux SL version, because of connection problems...