Post by john-martin on Send file from codesys to...... ftp, cloud, etc
CODESYS Forge
talk
(Post)
Hi everybody, I am looking for a solution to send files, for example, to an ftp or a cloud. I can't use oscat library because 64 bit controller are not supported. Therefore, I see that the IIoT library has some functions that might help me to implement this sending process in codesys. Does anyone have any examples of how to do this? I have spent some days with this issue without success. Best regards.
Last updated: 2023-11-02
Post by drno on AlarmMgr Database Error in method WriteToStorage: Error code = 30531, Action = 1030
CODESYS Forge
talk
(Post)
Hallo zusammen, auf einer Industriesteuerung (Target-Version 3.5.5.0) läuft unter anderem eine Alarmverwaltung mit Alarmspeicherung. Offensichtlich kann kein Schreibzugriff auf das .sqlite File durchgeführt werden, daher ist die Alarmhistorie nicht mehr verfügbar. Versuche mit unterschiedlichen Unterverzeichnissen führten nicht zum Erfolg. Die Datei "application.alarmstorage.sqlite" wird zwar angelegt, aber es erfolgen keine Einträge. Hat jemand eine Idee dazu? Die Steuerung ist ca. 8 Jahre in Betrieb, die Alarmhistorie hat früher mal funktioniert. Danke, LG
Last updated: 2023-11-21
Post by spiessli on Softmotion axis to CANopen Maxon IDX drive
CODESYS Forge
talk
(Post)
Hi, I want to use Maxon IDX drives for some simple robotic applications. I have used Maxon's Epos for generating a DCF file to import in Codesys (attached). Then I can add the IDX motors under a CANopen manager in the device tree. Unfortunately, I cannot add a "softmotion axis" to the IDX motors. Now I am wondering, why? Without being able to attach a softmotion axis to the device in the device tree, the use of the motor is greatly reduced... spiessli
Last updated: 2024-01-05
Post by eschwellinger on Edge Gateway online, but PLC is not online
CODESYS Forge
talk
(Post)
we need some logfiles from the edge gateway /etc/Gateway.cfg [CmpLog] CmpEdgeGateway.Filter=0xFFFFFFFF Logger.0.Name=/tmp/codesysedge.log Logger.0.Filter=0x0000000F Logger.0.Enable=1 Logger.0.MaxEntries=100000 Logger.0.MaxFileSize=5000000 Logger.0.MaxFiles=1 Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file Logger.0.Type=0x314 ;Set the timestamp to RTC and does the scan via Automation Server show the plc?
Last updated: 2024-01-09
Post by felipemsgarcia on Edge Gateway online, but PLC is not online
CODESYS Forge
talk
(Post)
Hi Edwin, The PLC is already in the automation server so nothing happens when I scan the network, however the PLC show offline (not connected). Please see logs below. [CmpLog] Logger.0.Name=codesysedge.log Logger.0.Filter=0x0000000F Logger.0.Enable=1 Logger.0.MaxEntries=100000 Logger.0.MaxFileSize=1000000 Logger.0.MaxFiles=1 Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file Logger.0.Type=0x314 ;Set the timestamp to RTC Thank you!
Last updated: 2024-01-09
Post by jaspergain on Access to the path *** is denied
CODESYS Forge
talk
(Post)
Hello, Recently I upgraded to 3.5.19.50 and have been having errors/issues when doing a download/online change. The message as seen in the attachment pops up. The file in the path is different every time. However when I login again afterwards all works fine. This issue does not happen on older versions. Any clue what the issue could be? I did an reinstall/repair but the issue reappeared again... Thanks in advance!
Last updated: 2024-01-25
Post by rpostwvu on Shared Memory Access Issues
CODESYS Forge
talk
(Post)
I got the shared memory example. I'm pretty sure I'm successfully created a memory space, CreateResult returns 18. szName:='CodesysDataShare'; hShm := SysSharedMemoryCreate(szName, 0, ADR(uxiSize), ADR(CreateResult)); I'm trying to access this memory with a C# application, but I get "Unable to Find Specified File". I suspect that Codesys and/or Visual Studio code alters the name I choose? Being in Windows, I cant find a way to see the mapped memory list. ~~~ using (var mmfRead = MemoryMappedFile.OpenExisting("CodesysDataShare",MemoryMappedFileRights.ReadWrite)) ~~~
Last updated: 2024-01-29
Post by jshirazi on Restore license on Raspberry Pi
CODESYS Forge
talk
(Post)
Hi, I recently got a license for Raspberry Pi, after license activation I made a backup copy of "CMLicenseNew.WibuCmRaU" file to a safe place. Things got complicated and I tried to downgrade OS for some reason after that I tried several times/ways to restore my license with no luck. the specifications are as follows: Raspberry Pi 4 Model B Rev 1.1 codesyscontrol 4.10.0.0 SDK 3.5.19.30 Logs: **** ERROR: CodeMWriteLicenseFile: 'CMLicenseNew.WibuCmRaU' failed: Container not found or Server dose not support .... So if someone know a solution for this please kindly help me. Regards
Last updated: 2024-02-03
Post by tk096 on SMC_Interpolator + SMC_controAxislbyPos
CODESYS Forge
talk
(Post)
Hi, you can define a start position for your GCode. How the start position can be defined depends on the CompileMode: For File and SMC_CNC_REF: Set the start position input of SMC_NCInterpreter (https://content.helpme-codesys.com/en/libs/SM3_CNC/Current/SM_CNC_POUs/NC2/Interpreter/SMC_NCInterpreter.html) For SMC_OutQueue: * Right-click on the CNC object in the project tree * Select Properties * Select the tab 'CNC' * Set the start position Concerning your second question: If the new set position cannot be reached with the given velocity limit (AXIS_REF_SM3.fSWMaxVelocity), SMC_controlAxisByPos will report bStopIpo and close the 'gap' with the given gap dynamics (SMC_controlAxisByPos.fGap*).
Last updated: 2024-02-07
Post by thomasrohnerch on Color Change for Symbols not working
CODESYS Forge
talk
(Post)
I have some Symbols from the Visualization Toolbox on my Target Visu on the Computer. I tried many Symbols, mainly Arrows. I'm able to control the visibility with condition e.g. "GVL.actual_testvalues.speed <= 0" But I can't do "Toggle color" with boolean GVL.b_toggle_color. Neither "TRUE" nor "FALSE" does change anything. Is this a known issue? I'm using CODESYS V3.5 SP19 Patch 5 + (64-bit). See attached file with more Version-Info. I'm currently using Style 6, Gradient axial 2, 3.5.12.0. I had the same issue with Default 3.5.16.0.
Last updated: 2024-02-08
Post by kleeswi on SysFileOpen does not work after update to V3.5 SP19 Patch 5
CODESYS Forge
talk
(Post)
I use the function SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_WRITE, pErrorFileOpen); to open and write a file. Since the update from Codesys V3.5 SP17 to V3.5 SP19 Patch 5 it does not work anymore. I first had SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_APPEND_PLUS, pErrorFileOpen); in both versions. hFile_Test is a pointer to byte. It gives an exceptional error when dereferencing the hFile_Test pointer. Edit: I use Codesys on a Raspberry pi
Last updated: 2024-02-19
Post by mimodia1 on I do not have any reedings in RUN MODE from MPU6050........
CODESYS Forge
talk
(Post)
Good morning, mecke96. Exactly the same thing happens to me, although I have not done the part of executing a .py file. It only reads the temperature and the counter, but the other values are zero as in your image "no readings". I have tested the MPU6050 device on an Arduino and it works. Could you tell me if you solved it?
Last updated: 2024-03-29
Post by esave on Stepper Drive with Ethercat
CODESYS Forge
talk
(Post)
I bought and installed SoftMotion Light now. When I try to add a SoftMotion Light Axis to my stepper drive and I go online it shows: "The license is missing or invalid". See picture What am I doing wrong? This is the right way right? First add your EtherCat XML-File from your stepper driver and then add the SoftMotion Light axis right? Thanks for your help esave
Last updated: 2024-04-25
Post by gseidel on CNC - system goes to X=0 Y=0 before CNC file execution starts, how to avoid that?
CODESYS Forge
talk
(Post)
Hi peterned, the start position given in the CNC properties is only used if you use the compile mode OutQueue. With compile mode SMC_CNC_REF, you need to provide the start position in the IEC application. The function block SMC_NCInterpreter has an input piStartPosition. You can initialize it with the output of the forward kinematic transormation FB for your machine. In your case probably SMC_TRAFOF_Gantry2. Best regards, Georg
Last updated: 2024-04-30
Post by rabaggett on CODESYS control for Raspberry Pi 64 SL errors
CODESYS Forge
talk
(Post)
Update: I started over. I saved progress at each step. all compiled zero errors, zero warnings. Pre-processor messages remain, but I can make progress. Until I try to re- load the project file in Codesys. Re-loaded files error as above when compiled, even though they compiled error-free immediately before saving. Is my installation borked? (Not easy to re-install due to IT madness...)
Last updated: 2024-05-03
Post by william-blandon on RecipeManCommands.ReloadRecipes
CODESYS Forge
talk
(Post)
Hello. I'm trying to use RecipeManCommands.ReloadRecipes Method for getting recipes from files. When I call the method it does not generate any error but also not reload any recipe to the recipe definition. Actually I have 6 recipe files on the directory PlcLogic. The rest of the methods work creating recipes, saving to file, etc. Does any one have the same issue? it is something to be set on the recipe manager?
Last updated: 2024-05-16
Post by wollvieh on License Activation Problems
CODESYS Forge
talk
(Post)
on a raspberry pi delete the folder and its content before licensing. /var/opt/codesys/cmactlicense If you plug this SD card in another raspi ( which has another hw-serial number) you'll get a second empty softcontainer. This could lead to an unlicensed PFC (it could only handle one container) The solution is: To delete the /var/opt/codesys/cmactlicense directory and content of it and then aktivate the lizenz via WibuCmRau file and Lizenzmanager.
Last updated: 2024-06-24
Post by taqamert on Codesys 2.3 & Peak PCAN
CODESYS Forge
talk
(Post)
Despite working on it for days, I haven't achieved any results. I followed the necessary steps one by one as mentioned in the file you sent, but there hasn't been the slightest change. I couldn't find the step you mentioned "Set the 'Can Board Type' to PCAN USB" in the Word document. There is no such setting anywhere I looked. Is there a more detailed explanation available, or can you explain it in more detail? What am I missing?
Last updated: 2024-07-16
Post by kleeswi on Visualization scaling problem with B&R T30 panel
CODESYS Forge
talk
(Post)
I have found a work around. I have written a python scripts that runs on user login (entry in .bashrc) which overwrites the webvisu.htm and webvisu.cfg.json file with the configuration for the B&R T30 panel (resolution and disable scaling). First I tried to add this setting to the the CODESYSControl.cfg, but that does not work following the big CODESYS Control V3 Manual. [CmpTargetVisu] Application.WindowPositionX=0 Application.WindowPositionY=0 Application.WindowSizeWidth=800 Application.WindowSizeHeight=480
Last updated: 2024-07-30
Post by pavanifm on Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
CODESYS Forge
talk
(Post)
'--noUI' option of Command line interface for test manager test script not executing when triggered from CI as well as from Local PC however is it working for execution of python scripts from CLI. can we start codesys test manager scripts from CLI interface without any GUI in background process of windows? i can see simlillar questions asked but no answer yet. otherwise, what is the solution to built test automation framework using Test Manager & GIT CI/CD?
Last updated: 2024-08-07
Post by pavanifm on Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
CODESYS Forge
talk
(Post)
'--noUI' option of Command line interface for test manager test script not executing when triggered from CI as well as from Local PC however is it working for execution of python scripts from CLI. can we start codesys test manager scripts from CLI interface without any GUI in background process of windows? i can see simlillar questions asked but no answer yet. otherwise, what is the solution to built test automation framework using Test Manager & GIT CI/CD?
Last updated: 2024-08-07
Post by pavanifm on Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
CODESYS Forge
talk
(Post)
'--noUI' option of Command line interface for test manager test script not executing when triggered from CI as well as from Local PC however is it working for execution of python scripts from CLI. can we start codesys test manager scripts from CLI interface without any GUI in background process of windows? i can see simlillar questions asked but no answer yet. otherwise, what is the solution to built test automation framework using Test Manager & GIT CI/CD?
Last updated: 2024-08-07
Post by pavanifm on Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
CODESYS Forge
talk
(Post)
'--noUI' option of Command line interface for test manager test script not executing when triggered from CI as well as from Local PC however is it working for execution of python scripts from CLI. can we start codesys test manager scripts from CLI interface without any GUI in background process of windows? i can see simlillar questions asked but no answer yet. otherwise, what is the solution to built test automation framework using Test Manager & GIT CI/CD?
Last updated: 2024-08-07
Post by pietrobalint on Retain / Persistent Variables in Codesys for Raspberry Pi
CODESYS Forge
talk
(Post)
Hi micik, I am not sure I am using well the code, because I checked the directory and there is no retains.ret file. Now I deleted the code from my project and the values are still works as persistant variables after ssh reboot it seems to me they retain as their previous value. So I am a bit confused, maybe 4.12.0.0 Raspberry Pi SL solved the persitent variable problem...
Last updated: 2024-08-20
Post by wbj0t on tool 'update raspberry pi' unavailable
CODESYS Forge
talk
(Post)
Doesnt matter. I have installed sp20 with latest RP 4.13. Same problem. Anyway My large project in RP 4.10 and SP 19 and I need these versions and use same installation programm for Codesys IDE and RP4 package. I did install again, because my SSD broke and now cant update raspberry... I dont know how to translate correctly project to newest version - there are 52769 errors and incompatabilities: after updates libraries anyway some errors still because of devices... I found solution with .deb file from raspberry package - dont need IDE anymore for update raspberry.
Last updated: 2024-09-27
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
.