Hello, I updated to Patch 6 and can now build without any errors! Thanks!
Hello eschwellinger, Many thanks for your test, interesting, mean you can built it without any error? I will delete all the others files and only keep the projet file and see if I still have the errors.
Maybe could the project file help....
Hello, Nobody can help me...? I'm very embarassed... :-(
Hello, I still have errors when I try to generate the Code of my project (see attached file). When I double clic on the error message it bring me no more info. What are theses errors? How can I solve them? Thank for your help.
Hello, I have this code who worked fine in an other project with a previous SP. Why do I have now errors when I generate this code...? Who can help me pls? Many thanks for your help.
Hello, I have a project who was working in a previous version of Codesys but if I open it now with Codesys 3.5 SP19 Patch2 I have errors after code generation. Who can me please help to solve these errors?
Hello, Any other hints...?
Hello, I tryed this: SysProcessExecuteCommand('amixer cset numid=3 20%', ADR(cmdResult2)); SysProcessExecuteCommand('aplay /home/pi/mb/post.wav', ADR(cmdResult)); But it's not working... the sound is played but the volume is still at maximum...
Hello, Of course with: "amixer cset numid=3 50%" I can change the volume. This is working only if the sound is played in the command line on the Raspi (via Putty) with the command: "aplay /home/pi/mb/post.wav" But when the command is done via Codesys with: "SysProcessExecuteCommand('aplay /home/pi/mb/post.wav', ADR(cmdResult));" the volume set before seems ignored and the sound is played at the maximum volume... What can I do...? Thx Yann
Hello, Many thanks, it's working but now how can I adjust the volume ?
Hello, Many thanks for your answer. What exactly "ADR(Result)" do? How should I declare it? Yann
Hello, To have a good sound quality I would like to use the Amp2 from HifiBerry: https://www.hifiberry.com/shop/boards/hifiberry-amp2/ Is it possible to control it from Codesys? If yes how? Many thanks in advance for your replies. Yann
Hello, To have a good sound quality I would like to use the Amp2 from HifiBerry: https://www.hifiberry.com/shop/boards/hifiberry-amp2/ Is it possible to control it from Codesys? If yes how? Many thanks in advance for your replies.
Hello tvm, Many thanks for the link, it solved the problem!π
Hello, I need your help because I have a compilation error that I never had in the past (see attached file). I also don't know how to resolve it. Many thank for your help.
Hello eschwellinger, Many thanks for this update. Now it's working, many thanks!βΊ
Hello, Can't we use the Ethernet port on the Pi for the EtherCAT and the Wifi to communication with Codesys ?
Hello, In a transition of a SFC I would like to test if a step of an other SFC active is (see attached illustration) But it unfortunately doesn't word. How can I achieve this? Many thanks for your help!
Hello all, I search if it's possible to play an alarm sound trough the webvisu? Has somebody an idea how to achieve this? I use Codesys on a Raspberry Pi 3. In advance thanks for the answers. Best regards Yann
Nobody...? π₯
Hello Codesys community, With an external push button I would like to start a video on a beamer via the HDMI output of a Raspberry Pi 3. The video should be played one time. An other impulse on the input start the video again. How can I achieve this? Many thanks for your answers. Best regards Yann
Hello Codesys community, With an external push button I would like to start a video on a beamer via the HDMI output of a Raspberry Pi 3. The video should be played one time. An other impulse on the input start the video again. How can I achieve this? Many thanks for your answers.
Hello, I have just opened an old project (probably made under Codesys 3.5 SP16) with the version 3.5 SP17 Patch 3. I have an error because it does not find the "Raspberry I2C AdafruitPWM" library. When I try to download the missing library it is not found... What can I do...? In advance many thanks for your help.
Hello, The solution with the "corrected file" from the german forum is working but after a certain random time the runtime stop (waiting wheel on the WebVisu) and the connection to Codesys is stoped (if login). I still can "talk" to the Raspi via PuTTY so is not a network problem. If I run the command sudo service codesyscontrol restart then all come back live again. Any suggestions...?
Hello, The solution with the "corrected file" from the german is working but after a certain random time the runtime stop (waiting wheel on the WebVisu) and the connection to Codesys is stoped (if login). I still can "talk" to the Raspi via PuTTY so is not a network problem. If I run the command sudo service codesyscontrol restart then all come back live again. Any suggestions...?
Hello, I think I have the same problem. What should I do after I downloaded the script file from the German topic ? Many thanks for your help.
Hello "sumkrnboy", Many thanks, now I can again see my devices when I click on the "Scan Network" button.
Hello, Many thx, it has worked, now I don't need any more to do this stupid boring login at each connection.
Hello, I updated a project from 3.15 SP16 to actual SP17 and can't anymore login to upload the new program. I have a "Device User Logon" window, I enter the User name and password and when click OK this window is displayed again and again... I checked the user and password all is correct. I'm totally stuck now. What can I do to upload my new program now? Many thanks in advance for your help!
Hello, I updated a project from 3.15 SP16 to actual SP17 and can't anymore login to upload the new program. I have a "Device User Logon" window, I enter the User name and password and when click OK this window is displayed again and again... I checked the user and password all is correct. I'm totally stuck now. What can I do to upload my new program now?
Hallo, Leider wenn ich die Datei "init-functions" editiert mΓΆchte kommt ein Meldung, dass ich nicht die richtigen Rechte habe. Was kann ich tun...?
Hello, I think I have the same problem. What should I do after I downloaded the script file in the German topic ? Many thanks for your help.
Hello, I'm using Codesys 3.15 SP16 patch 6. When I load a project and connect to my Raspi, Codesys tell me I should update the device from version 4.0.1.0 to 4.1.0.0 in my project. Ok, but the Package Manager do not found any update and it seems 4.0.1.0 for the "Codesys Control for Raspberry Pi" is the last one... What can I do? Many thanks for your help.
Hello, Really, no idea, nobody can help me...? π’
Hello, Iβm trying to get to work a stepper motor with a DRV8825 driver on a Raspberry Pi 3 A+ with Codesys 3.5 SP17. The used stepper motor is a JK20HS30-0604. I applied the following schematic: I already adjust the voltage to about 0,25 V (Vref. = 1/2 I max.) with potentiometer on the DRV8825. I want to achieve a simple example: When I push a button I would like the motor accelerate for 3 seconds to a high speed, then maintain the speed for 2 seconds and then decelerate for 3 seconds until it completely...
Hello, Iβm trying to get to work a stepper motor with a DRV8825 driver. The used stepper motor is a JK20HS30-0604. I applied the following schematic: I already adjust the voltage to about 0,25 V (Vref. = 1/2 I max.) with potentiometer on the DRV8825. I want to achieve a simple example: When I push a button I would like the motor accelerate for 3 seconds to a high speed, then maintain the speed for 2 seconds and then decelerate for 3 seconds until it completely stop. I open the project named Β« StepperTestProject...
Hello "i-campbell", Thank you for your answer. "The libraries are open source, should any enterprising individual or team like to convert them so that they 'compile' in 64-bit simulation mode." Unfortunately this is far away from my knowledge and capabilities. The libraries comes from 3S - Smart Software Solution GmbH. They should provide 64 bits compatible library with Codesys. Best regards Yann
Hello, Since the update to Codesys 3.5 SP17 I have an error with PiFace library when building (see attached file). What can I do? In advance many thanks for your support. Yann
Hello Reinhard, I did it but still have this error message "'SFCReset' is no input of 'GRF7_proc'" :-(
Hello, I would like to reset to the INIT step a SFC. For this I found the differents available Flags : https://help.codesys.com/webapp/_cds_sfc_sfc_flags;product=codesys;version=3.5.16.0 In my case I would like to use "SFCReset" so I activated this Flag in the SFC properties > SFC Settings. Now I would like to activate the reset with a simple push button. Unfortunately when I asign the flag SFCReset to a coil I have a compil error: C0037: 'SFCReset' is no input of 'GRF7_proc' It seems this flag is...
Hello, I would like to reset to the INIT step a SFC. For this I found the differents available Flags : https://help.codesys.com/webapp/_cds_sfc_sfc_flags;product=codesys;version=3.5.16.0 In my case I would like to use "SFCReset" so I activated this Flag in the SFC properties > SFC Settings. Now I would like to activate the reset with a simple push button. Unfortunately when I asign the flag SFCReset to a coil I have a compil error: C0037: 'SFCReset' is no input of 'GRF7_proc' It seems this flag is...
Hello, what do you exactly mean...?
Hello, Any news about this problem? Has somebody downloaded my projet to see the problem?
Hello aseitzinger, Many thanks for your reply. Far too complicated for me! I will simply put external pull up / pull down resistors ! :-D
Hello, Fast all is in the tittle... As explained here: https://raspi.tv/2013/rpi-gpio-basics-6-using-inputs-and-outputs-together-with-rpi-gpio-pull-ups-and-pull-downs it is possible to enable pull-ups and pull-downs internal resistor of a Raspberry. How can I achieve this with Codesys ? Many thanks for your answers.
Hello, Unfortunately I already ask the question here: https://forge.codesys.com/forge/talk/Runtime/thread/c18c2a8aa2/ Nobody seems to know something about this FB in Codesys... :-/ So I'm still waiting any info about it.
Hello, Here you can found my project with this problem. http://www.lerail.ch/autres/Baukran.project.zip
Second screen shot.
Hello, I just install Codesys 3.5 SP17 and the package "ControlLoopLibrary": https://store.codesys.com/control-loop-library.html?___store=en But I have much library errors (see attached screen capture). The library seems installed... what can I do ?
Hello, I'm facing out the same problem. Is there some news about this know problem because I actually can't use the Simulation! Can somebody help me? Many thanks!
Hello, I'm working with a Raspberry Pi and Codesys 3.5 SP16 without license. I know the limitation of the runtime is 2 hours after startup of the Raspberry. I have a MC_Power that go in error after about 28-29 minutes. Is this because of the unlicencied Codesys or is this an other problem ? In advance many thanks for your replies.
Hello, I'm working with a Raspberry Pi and Codesys 3.5 SP16 without license. I know the limitation of the runtime is 2 hours after startup of the Raspberry. I have a MC_Power that go in error after about 28-29 minutes. Is this because the unlicencied Codesys or this this an other problem ? In advance many thanks for your replies.
Hello, Many thanks Edwin! Display the "hidden" parameters was the solution. I can now access to the parameters and I can adjust them!
Hello, Many thanks. Thanks to this "hidden" parameters explained in this topic: https://forge.codesys.com/forge/talk/Runtime/thread/550a63227b/#261e Now I see the parameters and I can adjust them!
Hello, Many thanks for your answers. Here some more info about this FB and his internal code. Can somebody explain me what I need for the inputs and what I get on the output. I will look at the I2C example file again. Many thanks in advance.
Hello, Many thanks for your answers. Here some more info about this FB and his internal code. Can somebody explain me what I need for the inputs and what I get on the output. I will look at the I2C example file again.
Hello, I'm using Codesys v3.5 sp16 patch2 and I'm facing out the same anoying problem. Are the developpers aware of this problem? Will it be fixed soon or do we have an other solution or workaround? In advance many thanks for your reply.
Hello, I see there is a FB in the Codesys Library (look at the attached file). I can't find any help file about this FB. How can I use this FB? What is needed to each input? Why is there no output? In advance many thanks for your answers.
Hello, Nobody use this 16-Channel PWM/Servo from Adafruit? I tried to change the default value 60 to higer but this has no effects. Also when I try to lower the default value -60 without any effect in the run range. I also exposed the problem on the Adafruit forum: https://forums.adafruit.com/viewtopic.php?f=50&t=178077 Adafuit told: "It's working for the standard 90deg servo range, so it generally does work and is supported. But using for angles beyond that is up to the software driver. In this...
Hallo, Da ich auch Servos in meinen Projekten verwenden mΓΆchte, habe ich mir ein Adafruit 16-Kanal PWM/Servo Bonnet fΓΌr Raspberry Pi gekauft. Ich habe das Beispielprojekt "Softmotion Servo Example" geΓΆffnet und ich kann sehen, dass mein Servo so weit so gut lΓ€uft. Mir fΓ€llt auf, dass die Bewegungsgrenze des Servos weit unter der mechanischen Grenze liegt (siehe angehΓ€ngte Datei). Gibt es eine MΓΆglichkeit, die Bewegungsamplitude zu erhΓΆhen? Andere Frage: Ich habe einen Blick in das Projekt geworfen...
Hello, Because I also want to use servos in my projects I buy an Adafruit 16-Channel PWM/Servo Bonnet for Raspberry Pi. I opened the sample project "Softmotion Servo Example" and I can see my servo running so far so good. I notice that the move limit of the servo are far under the mechanical limit (see attached file). Is there a way to increase the movement amplitude? Other question: I had a look into the project and seems to me sooo complicated just to move a model aircraft servo. Is there not a...
Many thx for the link, I changed this "SPI speed setting" from 0 to 100000 and is now working.
Many thx for the link, I changed this "SPI speed setting" from 0 to 100000 and is now working.
Ok, and where is that?
Hello, I use a Raspberry with a PiFace I/O module. I downloaded a Codesys example on the web and is working fine, I can see the inputs and outputs changing TRUE/FALSE, fine. So I try to create a project from scratch (File > New > Standard project) under SPI I added a new device for the PiFace interface and write a simple program (see attached file). The problem is when I run the program all the inputs and outputs are going to TRUE and this is not correct... Is not a hardware problem because with...
I tried to put in the "Action" beneath your POU. In the Step of the SFC is now a little black triangle on the upper right. Also a so called "Main action", not a IEC action.
I tried to put in the "Action" beneath your POU. In the Step of the SFC is now a little black triangle on the upper right.
As I said, the output remains activated.
Hello i-campbell, Unfortunately this does not work. The output remains activated even though the step is no longer active... :-( Don't quite understand why...
Hello all, I am using Codesys v3.5 and I would like to make the following SFC in Codesys (see attached file). No problem to create steps, transitions and actions, however I can't find how to put a condition to an IEC action. In the example above "Reculer P1" if P1 is not backwards (NOT P1 en arrière) for example. Thank you in advance for your help.