Post by hermsen on Raspberry Pi 4.12.0.0 SL also stops after 15s
CODESYS Forge
talk
(Post)
After installing this new 4.12.0.0 SL version on my RPi5 8GB and the latest bootloader, the runtime disappeared after 15secs. The bootloader my pi uses is from 2024-06-11. I was able to resolve this issue using this post: https://forge.codesys.com/forge/talk/Runtime/thread/be25c0ff66/ The workaround works for me.
Last updated: 2024-07-06
Post by rschwager on GVL to SHMem
CODESYS Forge
talk
(Post)
Hallo! Have some any idea to transfer whole GVL to Shared Memory? I also shared REATIN memory to shraed meory for making a Retain Backup System without USP in Linux on a FRAM. For an other Application we want to shared the whole GVL off obne part (e.g. GVL_Test). How cvan I get easy the Size and the Address for meory copy?
Last updated: 2024-07-09
Post by stiller on OPC UA RPI 4.8.0.0 Status Code / "out of range"
CODESYS Forge
talk
(Post)
Hello, I have an OPC-UA server with an information model. For many values, there is a defined range (e.g., 0 to 100). If a client enters a value outside this range (e.g., 120), the StatusCode should change to Bad. How can I accomplish this? Any help is appreciated! Thank you in advance. Best regards, Christian Stiller
Last updated: 2024-07-10
Post by ahuckphin on Issues with Modbus Slave with Raspberry Pi
CODESYS Forge
talk
(Post)
codesyscontrol_user.cfg [SysCom] Linux.Devicefile.1 = /dev/ttyUSB0 portnum:=COM.SysCom.SYS_COMPORT1; **parameters are used in the python-script ** method: "rtu" port: "COM8" baudrate: 9600 stopbits: 1 bytesize: 8 parity: 'N' timeout: 1 register address for humidity: 0x000 register address for temperature: 0x001 unit ID: 1 **parameteized in the modbus-master-comport ** see attached files
Last updated: 2024-07-11
Post by mrrobot on No source code available for this object
CODESYS Forge
talk
(Post)
Hello, I have this strange error while I am adding an axis to my slave: "No source code available for this object because it is in the compiled library 'sm3_drive_etc_ds402_cyclic' ..... I looked on google/chatgpt but i cannot find a solution for this issue Any help is welcome ! Thanks in advance Mrrobot
Last updated: 2024-07-15
Post by tk096 on Some 'pathetic' errors in SoftMotion program
CODESYS Forge
talk
(Post)
Hi, I suppose that you are referring to the error code "SMC_FB_WASNT_CALLED_DURING_MOTION"? Starting of Softmotion version 4.15.0.0 the instance path of the function block that has not been called is logged into the device log. This might help you to identify why it has not been called.
Last updated: 2024-07-18
Post by mmpl on Array to String
CODESYS Forge
talk
(Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18
Post by trusty-squire on Confused by dwIpoTime input for SMC_Interpolator
CODESYS Forge
talk
(Post)
OK, that makes sense. Because the FB is provided a specific interval period, it would change the target position accordingly based on the time it "thought" elapsed. If it has the wrong interval provided, it updates the target positions every cycle incorrectly so the axes will end up moving faster or slower. Thanks!
Last updated: 2024-07-22
Post by timvh on Array to String
CODESYS Forge
talk
(Post)
The string_Util_Intern is not the library I referred to. With a CONCAT function (also with the string util library) a search is done for the NULL character. If you concatenate 20000 characters to one string, then the longer the string, the longer it takes to find this NULL character.
Last updated: 2024-07-24
Post by marks on Regarding trend storage access error
CODESYS Forge
talk
(Post)
I had this problem when running the application as a Simulation. When I wrote it to the Pi all worked as expected. If this isn't the case for you, we've seen some issues with sqlite on the Pi's - so reset Origin and re-download may help in that case. Good luck, Mark
Last updated: 2024-07-24
Post by trusty-squire on CNC - How to manipulate SMC_GeoInfo objects
CODESYS Forge
talk
(Post)
Sometimes you just need to pose a question on a forum and re-read it to get clarity. pGeoInfo := SMC_GetObj(poq:=ADR(fbCncInterpreter.poqDataOut), n:=1); This won't work, I'm providing a pointer to a pointer, as poqDataOut is already a pointer! I just need to remove the ADR() and it works. pGeoInfo := SMC_GetObj(poq:=fbCncInterpreter.poqDataOut, n:=1);
Last updated: 2024-07-26
Post by timvh on RAMP_REAL FB is retaining my output value when i try to re use the FB
CODESYS Forge
talk
(Post)
I think, that if you set the timebase to T#0s, that it will be reset. But you can also make your own ramp down with a Timer (make sure the PT time is not T#0s):
Last updated: 2024-07-29
Post by jmfernandes on OpenDir always in error
CODESYS Forge
talk
(Post)
Hello just to give more feedback the error I get is "ERROR_UNKNOWN :represents raw value of 5110" in File.DirOpen. The xDone never gets true, and I never get the listing of files (csv files in this case). In the hDir i get the value of 0 for a DWord!?
Last updated: 2024-07-31
Post by dantheman on Connecting to SoftPLC Only Works By Turning Off Modbus Ethernet Port
CODESYS Forge
talk
(Post)
I've also noticed that when I turn off "enp1s0", suddenly the source IP for the ModbusTCP changes to that of "enp2s0", which is what makes sense to me. When I turn it back on, the source IP remains that of "enp2s0".
Last updated: 2024-08-01
Post by haiderm on MultiTouch : Two fingers pinch to Z00M in/out and rotation gesture.
CODESYS Forge
talk
(Post)
Hello, I am currently trying to implement the Pan gesture and if possible, also the spread-pinch gesture in my project. The Pan gesture seems to work. Was the spread pinch gesture in the meantime fully released, because i haven't been able to get it called? Best Regards, Michael
Last updated: 2024-08-02
Post by flappyman on licenses question
CODESYS Forge
talk
(Post)
I hope this tread will be able to help me. I got your new licenses and it was working perfectly fine. Unfortunately, my PLC got severely damaged and it can not run anymore. Is it possible to somehow release the license so I could use it again. I have all information for the device and can provide it.
Last updated: 2024-08-05
Post by dkugler on Converting hex bytes to float
CODESYS Forge
talk
(Post)
have a look at UNIONs. With a union you are able to write single bytes to the same adress area which belongs to a float variable at the same time. I like to do a lot of convertions belonging to interfaces and fieldbus in this way, f.eg. word / byte swapping etc.
Last updated: 2024-08-06
Post by gepert on parker servo and position
CODESYS Forge
talk
(Post)
Gentleman OMG, I made a huge mistake when i tried and moved shaft by hand i hold cover(as on photo) in my fingers. I was convinced that shaft has key but it there is not key. So when i turn cover it slide on shaft. When i take off cover and drive is in standstill, shaft does not move. So everything works perfectly
Last updated: 2024-08-07
Post by oymyakon on Modbus Lockup
CODESYS Forge
talk
(Post)
Hi i have a project where i am communicating with many modbus devices using TCP to serial. This is all working extremely well except when i turn one of the remote devices off. If i leave the auto reconnect on it still doesn't talk to the rmianing devices and if i turn Auto reconnect off it locks up. Any help would be appreciated. Paul.
Last updated: 2024-08-07
Post by oymyakon on Modbus Lockup
CODESYS Forge
talk
(Post)
Hi i have a project where i am communicating with many modbus devices using TCP to serial. This is all working extremely well except when i turn one of the remote devices off. If i leave the auto reconnect on it still doesn't talk to the rmianing devices and if i turn Auto reconnect off it locks up. Any help would be appreciated. Paul.
Last updated: 2024-08-07
Post by micik on SysFileOpen not working
CODESYS Forge
talk
(Post)
Hi, I have the same problem. Some of the libraries I created over time depend on writing files to a folders like c:\Temp. I can confirm that proposed solution is not working with 3.5.20 Patch 2. Can you please specify wich exactly .cfg file needs to be modified and in what way, in order to include c:\Temp in the SysFile path? Thank you!
Last updated: 2024-08-17
Post by tk096 on gear over gear (2 masters,1 slave) - how to do it?
CODESYS Forge
talk
(Post)
Hi, you could calculate the position/dynamics of the slave axis yourself and use one of the function blocks SMC_FollowPosition/SMC_FollowSetValues to move the slave axis. https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/Direct/SMC_FollowPosition.html https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/Direct/SMC_FollowSetValues.html
Last updated: 2024-08-19
Post by kevinrn on Signing Packages without exposing the password of the certificate
CODESYS Forge
talk
(Post)
Indeed, I'm also seeking a solution for this issue. The main challenge we face is the requirement to use EV (Extended Validation) Certificates. Due to security considerations, it's not possible—nor is it ever recommended in such cases—to export the certificate with its private key.
Last updated: 2024-08-20
Post by abauza on Image Pool using in other libraries
CODESYS Forge
talk
(Post)
Hi I have done some tests and i realised that it's an issue with the visualizator simulator because i uploaded the program to a device and tried to see on the Web browser and I see correcctlu the images of the image pool of the library. I post this for anyone that have the same problem.
Last updated: 2024-08-20
Post by maxsus on Error while processing the visualization: Client id not present or no longer valid
CODESYS Forge
talk
(Post)
I dont know exactly why this error happens, but I think its because you have some wrong whiles. Because when i had that problem it was because I accidently wrote while true then and it was stuck in the loop.
Last updated: 2024-08-21
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
.