Post by idir93dz on Identifier 'IoDrvGPIO' not defined
CODESYS Forge
talk
(Post)
Hello, After installing the pi runtime and creating a pi project, I get these errors: [ERROR] Untitled3: Application [Device: PLC Logic]: C0046: Identifier 'IoDrvGPIO' not defined [ERROR] Untitled3: Application [Device: PLC Logic]: C0080: Function block 'IoDrvGPIO' must be instantiated to be accessed [ERROR] Untitled3: Application [Device: PLC Logic]: C0004: 'IoDrvGPIO' is no component of 'IoDrvGPIO'
Last updated: 2024-04-10
Post by dkugler on build (F11) / generate code using a python script file
CODESYS Forge
talk
(Post)
After a project is opened and I have done some changes, I want to start the build or code generating process by a python script file. After the build is done I a Windows sound/beep should appear. Anyone has an example or hint how the .py file has to look like? Thanks!
Last updated: 2024-04-10
Post by eschwellinger on Problem mit control runtime V3 und profinet
CODESYS Forge
talk
(Post)
Hallo Tim, man hat halt einfach mit der Control Win - keine wirkliche harte Echzeit. Man müsste den Fehler genauer analysieren + ich denke er müsste den Slave wieder an den Busholen oder fällt ads ganze Netzwerk aus? Welche Versionen genau sind im Einsatz? Ist das halbwegs aktuell (PN 4.4.0.0?) Grüße Edwin
Last updated: 2024-04-11
Post by thomaspfrimmer on Can't import enums OnlineChangeOption / ResetOption
CODESYS Forge
talk
(Post)
Hello Jusito, Can you share your final code, please ? I tried to implement a similar feature (going online, doing the reset and the start). But I get a timeout on the reset/start when I'm testing the script. If you got something working, I would appreciate to see it.
Last updated: 2024-04-11
Post by danwoodlock on Rpi zero w lost license after 4.11 update
CODESYS Forge
talk
(Post)
Just adding some info: Today I found this post: https://forge.codesys.com/forge/talk/Runtime/thread/264bd530d4/ followed the steps suggested started with a fresh install of raspbian lite, installed 4.11, and then attempted to import my license update file. I get this when I do: Any help is appreciated.
Last updated: 2024-04-15
Post by tomas111 on Black background when loading webvisu
CODESYS Forge
talk
(Post)
Tell me, are there ways to remove the white background from the page loading? I want to change it to a black background. I think there are options with changing /home/codesys_root/PlcLogic/visu/webvisu.htm Perhaps you have already encountered a similar situation. I hope to find the answer to my question.
Last updated: 2024-04-17
Post by installwhat on raspistepper error after install
CODESYS Forge
talk
(Post)
from another post on this forum .... In your library project select Project -> Project Information. On the Properties table remove the "LanguageModelAttribute" Value "Qualified Access Only". This will allow you to access the object without qualifying the access. ...... I guess they've compiled it the library with that setting and now I need to mess around with versions.
Last updated: 2024-04-20
Post by xabier on What wrong with FB SMC_Interpolator?
CODESYS Forge
talk
(Post)
hi Getdone I have the same problem with you...Could resolved this problem?? Can you move with more speed??... I have cicle time 1 ms and the moment increase speed >5mm/s the FB SMC_Interpolator not fine work....Tell me plese if you resolved this problem Thanks Regards XABI
Last updated: 2024-04-30
Post by phoward131 on Numpad decimal value requires leading zero
CODESYS Forge
talk
(Post)
I have noticed on the standard numpad dialog, if a user enters a purely decimal number (ie '.6'), the numpad will not accept the value but gives no indication. One must type a leading zero (ie '0.6') in order for it to work. Is there a way to correct this so that a user can just type the decimal value?
Last updated: 2024-04-30
Post by arslan on G Code Position Shifting
CODESYS Forge
talk
(Post)
Dear friends, I have a issue that. I would like to give a zero offset of any axis in G-Code by G54 from PLC code as below demonstration. N000 G00 X0 Y0 Z0 N010 G54 (offset from PLC) N020 G01 X0 Y0 Z0 . . How to fix it! BR
Last updated: 2024-05-02
Post by bryandimino on OPC Da Server Code Meter Issues after Enabling License
CODESYS Forge
talk
(Post)
I'm trying to get the OPC server setup on my machine and currently I'm not having luck. I went ahead and got my license setup. However when I go to run WinCoDeSysOPC.exe I get an error message that I don't have the code meter licenses installed. Does anyone have any ideas on how I can fix this issue?
Last updated: 2024-05-02
Post by fjgonzalez on Timer On Vijeo
CODESYS Forge
talk
(Post)
Hi. I'm trying to show in Vijeo Designer a timer countdown. But I want to display the data in hour, minutes and seconds. I tried to change the data by converting in the Machine Expert but not able to succeed. Can you help me to find a solution? Regards, FG
Last updated: 2024-05-07
Post by k2saki on Automatic TOOL Length Measurement like Typical CNC Machine.
CODESYS Forge
talk
(Post)
I'd like to measure tool length using SW. How do I set variable from the accurate drive position when switch turn ON/OFF? Hopefully, I'd like to measure Z-Pos with M-Function in G-Code automatically, And I'd like to set it to G43 as tool length correction.
Last updated: 2024-05-09
Post by timvh on Change the Opening Position of the Dialog using VU.FbOpenDialog
CODESYS Forge
talk
(Post)
Probably best to call the FB continuously. So something like this could solve it: IF xOpenLatchSettingDialog THEN xOpenLatchSettingDialog := FALSE; fbOpenLatchSettingsDialog.xExecute := TRUE; END_IF IF fbOpenLatchSettingsDialog.xDone OR fbOpenLatchSettingsDialog.xError THEN fbOpenLatchSettingsDialog.xExecute := FALSE; END_IF TopLeftDialog.iX := 100; TopLeftDialog.iY := 23; fbOpenLatchSettingsDialog( itfClientFilter:= VU.Globals.OnlyTargetVisu, sDialogName:= 'visu_AlarmLatchSettings', xModal:= TRUE, pTopLeftPosition:= ADR(TopLeftDialog) );
Last updated: 2024-05-09
Post by corriibme on JSON Utilities and SetArray
CODESYS Forge
talk
(Post)
Hello @florian, Could you please help with how to set an array value? I've been trying to use the with the setKeyWithArray method which creates the key with an empty array value. But I have been unable to set items in this array? objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindexx); //iValue: array[0..n] of int; Best regards
Last updated: 2024-05-11
Post by kuegerls on CSV Utility SL
CODESYS Forge
talk
(Post)
Hello, I want to read a CSV file using the CSV Utility SL library, but I encounter an 'invalid_handle' error during initialization. What could be the cause? For my test program see the screenshot. I have purchased a license, and it is also installed on my PLC. Thank you in advance. Best regards, Stefan.
Last updated: 2024-05-13
Post by wiresplus on How to display the application name on a visualization (V3.5.16)
CODESYS Forge
talk
(Post)
Hello! I would like to display the project name on the HMI The project name contains the version number That way, a tech knows which version is loaded on the PLC. Is the a standard way to display this, or do I have to hard-code into the HMI (not ideal)?
Last updated: 2024-05-13
Post by matthew on New Ladder Diagram conversion does not work due to missing features
CODESYS Forge
talk
(Post)
Hi @eschwellinger Just wondering if there is any update when the Expression or part of it has no effect will be fixed? Also have the ability to open an FB when online and offline. It would also be great to be able to view the ST code block when online.
Last updated: 2024-05-14
Post by siscu on Raspberry Pi: List of available example applications
CODESYS Forge
talk
(Post)
Could this be turned into a library? I'd love for a way to have the main program call a function block method using the program's I2C_master device. I assume I should be passing the master as a variable for the function block, but I don't see how that could be achieved
Last updated: 2024-05-15
Post by micik on CAA File- FILE_OPERATION_DENIED error
CODESYS Forge
talk
(Post)
Hello, I'm trying to use FILE.Open to open file that exists in the given location. sFileName is formed from "Copy as path" in Windows. So I'm sure file exists and it is in the given location. And still, I get thiss denied error. What could be the problem here? Attached is a screenshot with current implementation.
Last updated: 2024-05-16
Post by felipemsgarcia on Generic EtherCAT slave
CODESYS Forge
talk
(Post)
Hello, Without much info, I would assume that this is an optional object on the EtherCAT network and it's either disconnected or the address doesn't match. I would look into the devices manual or contact the manufacturer for further assistance. And, I would have posted a new topic instead of using a non related one... Cheers!
Last updated: 2024-05-16
Post by xiaoyan on Generic EtherCAT slave
CODESYS Forge
talk
(Post)
Hello Well i need some basic advice. My protegoD drive is shown deactivated in the device tree. i can see its variables and other i/o in online mode but the device itself is deactivated. how can i address this issue. is there any configuration error.using ethercat link to connect to protegoD by Primo MC plc
Last updated: 2024-05-16
Post by schnepper on How to delete main action from SFC Step
CODESYS Forge
talk
(Post)
I added a main action to an SFC step, and then tried to delete it. There is no delete option in the SFC menu nor in the right click menu of the step. I deleted the action from the device tree, but building results in and error saying the action is not defined. Is there a way to delete a main action?
Last updated: 2024-05-23
Post by thisischris on "You are using inconsistent overlay settings, please check your compiler defines for the current application" error
CODESYS Forge
talk
(Post)
Hello. I am a new user. On generating the first test project I am receiving this error message. You are using inconsistent overlay settings, please check your compilerdefines for the current application (-> GENERATE_OVERLAY_VISU) and the setting within the visualization manager. Can anyone help?
Last updated: 2024-05-28
Post by mike22 on Nema 17 Schrittmotor 2.7V kann das sein?
CODESYS Forge
talk
(Post)
Hallo Zusammen, ich wollte gerade einen Nema 17 Schrittmotor beim oyostepper.de bestellen. Auf der Webseite wird der Motor mit 2.7V angegeben. Das kann doch nicht sein oder? Ich möchte ihn mit 24V betreiben. https://www.oyostepper.de/goods-318-Nema-17-Getriebeschrittmotor-mit-50-1-Planetengetriebe-0036-Grad-168A-27V-39Ncm-Getriebe-Schrittmotor.html Das kann doch nicht sein oder?
Last updated: 2024-05-28
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
.