Post by timvh on Access Violation sherd memory
CODESYS Forge
talk
(Post)
Maybe it is better to use Interfaces to access the objects instead of pointers. But besides that, is "read_obj_ptr" a method? If yes, you need to call it, so add brackets behind the method call: read_obj_ptr();
Last updated: 6 days ago
Access Violation sherd memory
CODESYS Forge
talk
(Thread)
Access Violation sherd memory
Last updated: 6 days ago
Post by timvh on Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Post)
Maybe check: - The library manager, are you maybe missing some libraries - Tools - CODESYS installer: update the CODESYS Visualization and Visualization support - Project - Project environment: maybe you need to update the visualization profile
Last updated: 6 days ago
Textfield display problem
CODESYS Forge
talk
(Thread)
Textfield display problem
Last updated: 6 days ago
Post by gseidel on SMC_ERROR.SMC_AXIS_NOT_READY_FOR_MOTION when using Drive Virtual
CODESYS Forge
talk
(Post)
Hi ducng, you need to make sure that MC_Power.Status is TRUE before you give a rising edge to MC_MoveRelative.Execute. (This is the same for virtual and real axes). Best regards, Georg
Last updated: 6 days ago
Post by imdatatas on SMC_ERROR.SMC_AXIS_NOT_READY_FOR_MOTION when using Drive Virtual
CODESYS Forge
talk
(Post)
@ducng, Another possible situation could be that normally there are 3 inputs for MC_Power. In your above images, I can't see the "bDriveStart" input activated. As Mr. @gseidel mentioned, you need to make sure MC_Power.Status output should be TRUE. Issuing any movement command without activating the axis would naturally result in an error. For MC_Power; You can set the Enable and bDriveStart inputs to TRUE and try turning the axis activation on and off using only the bRegulatorOn input. Regards, Imdat
Last updated: 5 days ago
Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Thread)
Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
Last updated: 5 days ago
Post by imdatatas on Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Post)
Unfortunately, the "C0138: No matching 'FB_Init" method found" error is a nightmare for CODESYS V3.5 SP21. I'm not sure if anything has been done about this or if anything will be fixed. I've encountered the same issue many times, and it was only resolved by completely uninstalling SP21, deleting all related files and folders from my computer, and then installing SP19. So, I've given up on using SP21 and switched back to SP19patch7. Here are some previous posts regarding the "C0138: No matching 'FB_Init" on SP21 of Codesys. https://forge.codesys.com/forge/talk/Visualization/thread/0763d6ca8e/ https://forge.codesys.com/forge/talk/Motion/thread/9074005bf4/
Last updated: 5 days ago
Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Thread)
Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
Last updated: 5 days ago
Post by scrisp on Source code changes since last download
CODESYS Forge
talk
(Post)
Why does CODESYS 3.5 show the message “Source code changes since last download” even though I did not create or modify any new variables? When I go online with the PLC, it detects changes and suggests synchronizing, but nothing was actually changed in the project. What could cause this and how can I fix it?
Last updated: 5 days ago
Post by valenting on License problem with Raspberry Pi
CODESYS Forge
talk
(Post)
Hello, I have a raspberry pi with a license installed, but Codesys stops after 2 hours, and when I start it manually I have the following message: pszInfo=!!!! no runtime license - running in demo mode(~2 hours) I tried using License Manager, and got the following message: Licensing info not available. There is no dongle attached to the device. I have this message frequently, and usually removing the content of /var/opt/codesys/.cmact_license makes it work. After doing it and restarting Codesys, I have an empty Softcontainer without my License. I tried using "Install license" using the .WibuCmRau file for the corresponding license and got the following message: Licensing info not available. The device does not support this service. I also tried using Additional Functions > Restore Licenses with the Ticket ID and got the following message: This device does not support automatic license backup. How can I reinstall the license to this Raspberry Pi?
Last updated: 5 days ago
Post by gseidel on MC_Phasing state explenation
CODESYS Forge
talk
(Post)
Hi kenth1973, MC_Phasing has been improved in recent versions. I would recommend to install the latest version of SoftMotion (4.20.1.0) and test whether the problem still exists, and if so, what the error identifier is. (Also check the PLC log in this case, it might contain additional information.) Setting the internal state of the FB is not recommended, it could lead to malfunction of the FB and unintended movements of the drive. Best regards, Georg
Last updated: 5 days ago
Post by gseidel on STEPPER CODESYS SOFTMOTION_DRIVE
CODESYS Forge
talk
(Post)
Hi kalmeyer, I would recommend to have a look at these examples. They come with a project and a description: https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_basic_examples_single_axis.html. Best regards, Georg
Last updated: 5 days ago
STEPPER CODESYS SOFTMOTION_DRIVE
CODESYS Forge
talk
(Thread)
STEPPER CODESYS SOFTMOTION_DRIVE
Last updated: 5 days ago
Post by ducng on SMC_ERROR.SMC_AXIS_NOT_READY_FOR_MOTION when using Drive Virtual
CODESYS Forge
talk
(Post)
@gseidel @imdatatas Thank you for your help.
Last updated: 4 days ago
Motion 🇬🇧
CODESYS Forge
talk
(Discussion)
Realizing single or multi axis motion control, CAM, CNC and Robotic applications
Last updated: 4 days ago
Post by durallymax on Source code changes since last download
CODESYS Forge
talk
(Post)
What do the details show? Is it requesting an online change or download? If the compile file is missing, it will request a download. Several things can trigger an online change, if you haven't changed the code, likely libraries. The details should provide some guidance.
Last updated: 2 days ago
Runtime 🇬🇧
CODESYS Forge
talk
(Discussion)
Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms
Last updated: 2 days ago
Post by davidbo on License problem with Raspberry Pi
CODESYS Forge
talk
(Post)
To simplify your problem you shall not select dongle and get dongle errors. Do as shown In some cases you need 2 different licenses depending on the metrics. And yes the system gives not always give proper error messages when you try to reinstall a license
Last updated: 2 days ago
Source code changes since last download
CODESYS Forge
talk
(Thread)
Source code changes since last download
Last updated: 2 days ago
License problem with Raspberry Pi
CODESYS Forge
talk
(Thread)
License problem with Raspberry Pi
Last updated: 2 days ago
Post by jbcregen on Accessing parameters from a structure or function block with the web interface
CODESYS Forge
talk
(Post)
I have a project with hundreds of OPC-UA variables available on the network. A lot of these variables are used actively in various scripts that run in background in the OS (Linux). I'm experimenting with Automation Server and I have a hard time understanding how the web interface populates its parameters list for a given PLC (<plc details="" parameters="" for="" plc="" 'xyz'="">).</plc> In this page, it looks like the only variables available are the ones that are of a "base" type : bool, TIME, String, INT, etc. All the variables that are nested into function blocks or structures are not available in the web interface, even if they are available to any OPC-UA client. Is this a limitation of the Automation Server or is there something that can be done in Codesys?
Last updated: 1 day ago
Post by eschwellinger on Accessing parameters from a structure or function block with the web interface
CODESYS Forge
talk
(Post)
yes, but you could use a demo project in the analyzer to check other types: https://analyzer-eu.automation-server.com/help/en/tags this should work.
Last updated: 20 hours ago
HTML 5 - Controls -> Change Content-Security-Policy settings
CODESYS Forge
talk
(Thread)
HTML 5 - Controls -> Change Content-Security-Policy settings
Last updated: 2025-11-11
Post by swol on HTML 5 - Controls -> Change Content-Security-Policy settings
CODESYS Forge
talk
(Post)
Sorry for being late to the party... so it is not possible to use the webbrowser tool to display external websites in a visu anymore? As it is not possible to simply "adjust the ContentSecurityPolicyIncludeTrustedOrigins setting in the automatically generated webvisu.cfg.json file" as stated in the docs? We need to display data read from a Raspberry Pi (part of our computer network) in our webvisu. We used to do it by entering the Pi's IP address as the URL variable in the webbrowser element but now (I don't know since when, I'm new on the job) "The page’s settings blocked the loading of a resource (frame-src) at 'IP address' because it violates the following directive: “default-src 'self' 'unsafe-inline'”. What are the options for displaying the data?
Last updated: 2025-11-11
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.