Post by damian177 on Codesys and SMS in RPi
CODESYS Forge
talk
(Post)
Hi, I try use IIoT library to send and receive SMS by Raspbery PI and Codesys. I installed IIoT package and added the SMS library, But something is wrong, when I init communication it doesn't work, When I sniffer my communication (AT commands) beetwen RS232 RaspberryPi and my GSM modem I have only below commands: AT+CMEE=1 OK AT+CPIN? +CPIN: READY Anyone have idea what can be wrong ?
Last updated: 2023-09-28
Post by sukrit on What licenses are required for runtime on raspberry pi cm4
CODESYS Forge
talk
(Post)
We have developed a project for 2 servo motors using raspberry pi computemodule 4 on ethercat master. we are using web visualization for display different screens. project is running well in demo. we want to implement it in production envoirment. being new still wondering which licences i need. Can We get this information in codesys devlopment software. code size is approx 5 mb, 1 instance of etharcat master and aproox 100 variables in visaualization.
Last updated: 2023-10-17
Post by mondinmr on Jitter problems on imx8
CODESYS Forge
talk
(Post)
SOLVED!!! In this imx8 max_cstate=1 in kernel boot parameters is not working! We found a workaround: #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <stdint.h> int main(void) { int fd; uint32_t value = 0; fd = open("/dev/cpu_dma_latency", O_WRONLY); if (fd < 0) { perror("Error opening /dev/cpu_dma_latency"); return 1; } if (write(fd, &value, sizeof(value)) != sizeof(value)) { perror("Error writing to /dev/cpu_dma_latency"); close(fd); return 1; } while (1) { pause(); } } This simple code launched before CODESYS do the same work! Now jitter is identical as measured by cyclictest!
Last updated: 2023-10-19
Post by simotion on Online view : code is scanned
CODESYS Forge
talk
(Post)
If I do online monitoring of code in f.i. a function block, I cannot see if the function block is called or not. In software from other vendors you normally have an indication if the online code you are looking on is scanned at that moment or not. Is there a way in Codesys to determine in the online view if (parts) of the code are scanned or not? Thanks
Last updated: 2023-10-23
Post by ekristoffe on Beispieldateien finden / Inhalt der Packages
CODESYS Forge
talk
(Post)
Hello @eschwellinger, Why not using one of those 2 folders: C:\ProgramData\CODESYS C:\Users\Public\Documents\CODESYS The main reason is depending on the company and the user right, the end user may not have the access to use those folders. Also having a non version dependent folder may help if the end user uninstall a previous version and forgot all its sample project where in this previous version installation. Thanks.
Last updated: 2023-11-24
Post by voffi on Converting UINT into bytes and converting 2Bytes into UINT
CODESYS Forge
talk
(Post)
There are some ways. One is to use SHR and SHL and it depends on your byte order in the data array. For Motorola byte order: PROGRAM PLC_PRG VAR u : UINT; byte_array_in : ARRAY [1..8] OF BYTE := [16#11, 16#12, 16#13, 16#14, 16#15, 16#16, 16#17]; byte_array_out : ARRAY [1..8] OF BYTE; END_VAR u := SHL(TO_UINT(byte_array_in[2]), 8) + TO_UINT(byte_array_in[1]); byte_array_out[1] := TO_BYTE(u); byte_array_out[2] := TO_BYTE(SHR(u, 8)); If it's Intel byte order just change 1 and 2 in the array indexes.
Last updated: 2023-12-07
Post by zatalian on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
CODESYS Forge
talk
(Post)
There seem to be problems with the latest version of raspberry pi os 64bit (I used the lite version). The codesys control runtime crashes after a few seconds. The same runtime works on the raspberry pi image from 2023-10-10 When starting the runtime from the commandline, i get the following error: ooops... this runtime was build for RASPBERRYPI. Hardware version or firmware version not supported! (and yes, I'm running this on a raspberry pi :-)
Last updated: 2023-12-11
Post by mg0815 on Codesys Control log "eventbuffer full"
CODESYS Forge
talk
(Post)
Device: RPI 3b or 3B+ System: Wheezy Codesys: 3.5.16.2 I got the Log: 2023-12-13T00:38:43Z, 0x00000054, 2,6,11, !!!! Warning: Eventbuffer full for app=<app>Application</app>; an inputevent with the tag <tag>128</tag> has been dropped This log happens aroud 10 times a second. Sometimes the controller stopped working any more. What is the reason for this? I will update this controller soon (I hope so, but in the meantime I should at least know hoe to prevent this issue) Mario
Last updated: 2023-12-14
Post by mputaggio on Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
CODESYS Forge
talk
(Post)
Hello, We encountered the same issues on both recipe library versions 4.2.0.0 and the newest 4.3.0.0. The Arrays of structs get saved correctly but loading them restores only some indexes, while others get lost or completely wrong. We have been using the same recipes for the last two years on recipe manager vers. 3.5.17 withoud issues. There also seems to be a different behaviour in vers. 4.3.0.0 but it's still incorrectly loading the recipes. Did you find any workaround or solution? Codesys version used: 3.5.19.50
Last updated: 2023-12-15
Post by andrax on Mux I2C
CODESYS Forge
talk
(Post)
the TCA9548a does not work in Codesys. In Pyton this is only queried once and in Codesys cyclically. Of course you can also insert a terminating resistor in each port, then you should have no problems. I use this one: https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html You can simply set the library to the latest version. You do not need Oscat. Do you need an example project for the BMP280?
Last updated: 2024-01-02
Post by andrax on Mux I2C
CODESYS Forge
talk
(Post)
the TCA9548a does not work in Codesys. In Pyton this is only queried once and in Codesys cyclically. Of course you can also insert a terminating resistor in each port, then you should have no problems. I use this one: https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html You can simply set the library to the latest version. You do not need Oscat. Do you need an example project for the BMP280?
Last updated: 2024-01-02
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)
Hello, I couldn't figure what/where the issue was, so I deleted everything from automation server and reinstalled the edge gateway and did the process again. It worked for about a month and then it stopped working again. It presents the same symptom, edge gateway is online but I can't connect to the PLC. Any idea of what could be the issue? Thank you!
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 sturmghost on Visualization using methods and cyclic ST-calls
CODESYS Forge
talk
(Post)
I found a way to do it: You can use, for example, the text variable property of any visualization element and call a function in it. Example: Write a test POU as a function (FUN), like MyTestFun which need a boolean Variable as an input value. Now write into the text variable property: MyTestFun(bBooleanValue) Thats it. The function is called at each visu_task cycle.
Last updated: 2024-01-22
Post by wiresplus on Cannot get INT_TO_TIME working
CODESYS Forge
talk
(Post)
Hello, I have a simple TON timer. It is watching prime loss for a pump. The operator can set the delay via the HMI, it is an integer (seconds) As the TON uses milliseconds, we then multiply the entry by 1000 to get seconds. Seems simple, but... VAR PrimeTimer : TON; primetime : INT; END_VAR PrimeTimer(in:=State>0 AND FlowRate<MinimumFlow,pt:=INT_TO_TIME(primetime *1000)); For an entered 15 seconds (VAR primetime:=15;) the timer reads 49d17h2m26s760ms !!!! What am I doing wrong?
Last updated: 2024-01-26
Post by thomas-moba on "sudo"-Befehle ΓΌber die Funktion "SysProcessExecuteCommand2"
CODESYS Forge
talk
(Post)
Hello, I need to execute "sudo" commands via CoDeSys 3.5 SP 19 P5 using the "SysProcessExecuteCommand2" function. Commands without sudo are no problem, but as soon as sudo is used in a .sh or a single command, it does not work. Command=AllowAll is entered under "SysProcess" in CODESYSControl.cfg. Nevertheless it does not work. Does anyone know what the problem could be? Greetings, Thomas
Last updated: 2024-02-01
Post by matt-s on HMI Pushbutton/Move Instruction
CODESYS Forge
talk
(Post)
I have not gotten to the bottom of this yet no. I have double check that the variables are correct linked. When online with the program I can see the button and rung going true for the move instruction, yet it does not change. Forcing the bit in the program does change the value in Groov View. I am kind of at a loss here, especially since the other POU(For the pumps) does the same thing fine.
Last updated: 2024-02-02
Post by tvm on VisuFbFrameBase.SetInputPositionData: The element id for the input position cannot be determined
CODESYS Forge
talk
(Post)
I'm getting this error on one of my projects. Searching for it I came across this https://www.codesys.com/fileadmin/data/Images/System/Releaseinformation/Patch-Note-CODESYS-Visualization-4300.html which says it was a bug VIS-1394, fixed in Visualization 4.3.0.0. I'm using a previous visu version, what is the cause of this error, and what can be done to work around it?
Last updated: 2024-02-08
Post by goki on WAGO RS485 (753-652) on a 750-362
CODESYS Forge
talk
(Post)
hi guys Maybe someone can help me in this case. Im working with codesys 3.5 with an PFC200 (750-8212) with a Modbus TCP conection to the 750-362. On the 750-362 i have a 4DO, 8DI and a RS485 interface card. the 4DO and 8DI cards a working fine but im strugling with the rs485 card. Does someone have a example for this?
Last updated: 2024-02-08
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 otdeveloper on IEC 61499
CODESYS Forge
talk
(Post)
It is being worked on by many companies and its even-driven function blocks seem like a natural evolution of the object oriented industrial programming I have seen Gary Pratt (author of the Book of CODESYS and much more) so expertly implement and explain. I would expect CODESYS to have this front and center on their sights and, if they do not, I would be very interested in learning why.
Last updated: 2024-02-09
Post by ferrim on IEC 61499
CODESYS Forge
talk
(Post)
IEC 61499 is probably something more complex than what you have correctly said so the prospects are interesting but we cannot ignore that it came out almost 20 years ago and has not won many hearts. I started to explore this world with a PLCnext controller because I love these devices based on RT Linux and Codesys is somehow usable with them but I have made little progress and I feel like inside a nutshell in the middle of the sea ;-) Gary's voluminous and precious book is always on my desk...
Last updated: 2024-02-10
Post by marlutec on [ERROR] The PLCopenXML import is not possible because Device not found. Type: 89, Id: 0000 0005, Version: 3.5.10.0
CODESYS Forge
talk
(Post)
Hello every one. Now i'm instaling a Weintek cMT2108x2(v2) with IR-ETN40R. When I start to import the archive content the code of I/O remote IR-ETN40R, ocurred this error. [ERROR] The PLCopenXML import is not possible because Device not found. Type: 89, Id: 0000 0005, Version: 3.5.10.0 Can someone help me? Marcos Gentil, from Brazil.
Last updated: 2024-02-15
Post by martinla on New Codesys Library Dependencies
CODESYS Forge
talk
(Post)
When creating a new Codesys library, I am getting 2 errors for missing libraries. I can see that I am using newer versions of these in the library manager (3.5.17.0 and 3.5.19.0 opposed to 3.5.8.0 and 3.5.7.0 stated in the errors). IDE Version is V3.5 SP19 Patch 6. The "Download missing libraries..." button in Messages list is not doing anything. Why is it looking for older versions of these libraries? Can this be fixed by using the newer versions? How can I download & install the older version of these libraries?
Last updated: 2024-02-29
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
.