Strengths of CoDeSys
CODESYS Forge
talk
(Thread)
Strengths of CoDeSys
Last updated: 2009-05-13
Codesys OPC simulator
CODESYS Forge
talk
(Thread)
Codesys OPC simulator
Last updated: 2017-05-25
CoDeSys And Lego? :-)
CODESYS Forge
talk
(Thread)
CoDeSys And Lego? :-)
Last updated: 2012-05-07
CoDeSys Visualisation Trend!!
CODESYS Forge
talk
(Thread)
CoDeSys Visualisation Trend!!
Last updated: 2011-06-24
CoDeSys v2.3.8.1 STRING
CODESYS Forge
talk
(Thread)
CoDeSys v2.3.8.1 STRING
Last updated: 2007-10-29
CODESYS Modbus Channels
CODESYS Forge
talk
(Thread)
CODESYS Modbus Channels
Last updated: 2021-08-11
CoDeSys Improvements V2.3
CODESYS Forge
talk
(Thread)
CoDeSys Improvements V2.3
Last updated: 2009-05-26
Post by abuckie on Getting raw value as full resolution for ADS1115
CODESYS Forge
talk
(Post)
I just found this and I am getting a value larger than 16 bit, around 81000 something. I am reading a 5 volt value and I am using level shifters for the i2c bus. This is how I have the channel configured: ADS1115.usiAddress := 16#48; ADS1115.ChannelConfigs[0].Active := TRUE; ADS1115.ChannelConfigs[0].PGA := FSR_6144mV; ADS1115.ChannelConfigs[0].InputMux := Single_0; RawAnalogValue := ADS1115.Channels[0].Value; It looks like every value is a multiple of 3. Any idea where to look to fix this? I think i found what I want to change in UpdateChannels Channels[FChannelNo].Value := INT_TO_REAL(WORD_TO_INT(LValue) * GetFullScaleRange(ChannelConfigs[FChannelNo].PGA)) / 2048.0; I try to edit it but I can't, sorry if this is a basic question, I am new to CODESYS.
Last updated: 2025-05-22
Post by timvh on Configuring a 2's compliment
CODESYS Forge
talk
(Post)
You could create a DUT of the Type Union and add an array of 2 bytes + an Int. Then write the byte values in the array of the Union and read the Int. Or VAR iInt : INT; byHigh : BYTE := 2#1111_1111; byLow : BYTE := 2#1111_1111; END_VAR iInt := TO_INT(byHigh*16#100 + byLow);
Last updated: 2024-09-28
Post by csu-chris on No file found
CODESYS Forge
talk
(Post)
I'm having trouble getting started with the SysFile library. I tried copying and running the code found here: https://forge.codesys.com/forge/talk/Engineering/thread/f17c3d0e64/ Every time I try to run the file handle pointer returns: 16#FFFFFFFFFFFFFFFF <dereference of="" invalid="" pointer=""></dereference> I can see the file when I look in the Device -> Files window Any idea what I'm doing wrong?
Last updated: 2024-10-15
Post by timvh on CAN Open Manager - varible of SYNC
CODESYS Forge
talk
(Post)
You can enable "Sync Producing" in the configuration of the CANopen Manager. Then this manager will send a SYNC message every interval you set. Depending on your PDO configuration, the CAN nodes can send a PDO on every Sync (cyclic-synchronous). If this is not possible, then as alternative you can send a low level CAN message with COB-ID 16#80.
Last updated: 2024-11-05
Post by atone on Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
CODESYS Forge
talk
(Post)
OK, I figured out that I can simply define all the sensors as 16 bytes IN/OUT, even if they are not all used. EDIT: The negative effect is that each bit is taken into account as an I/O for the license, even if not used.
Last updated: 2025-04-28
Post by reinier-geers on SM3 motion project
CODESYS Forge
talk
(Post)
Hi, i try to setup a softmotion programm. Controller version 15. Ethercat, When is scan Devices then it install's the drives. 4.11 . Somehowe they have a vesion 16 libary. I tried to install new but stil problems. I tried version 19. Then i get a Visu version problem. What can i do ? Why are ther always problems with a new version ?
Last updated: 2023-12-18
Post by pistola on How to change font and font color rectangle/or related object
CODESYS Forge
talk
(Post)
Here is the help sections for visual elements rectangle. https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_elem_rectangle.html Under "Font Variable" there is "Color" which is a Dword, you can make a variable that changes colour within your code to the color needed. Note the format for the Dword variable is: colorVariable := 16#TTRRGGBB Where: TT = Transparency 00-FF RE = Red 00-FF GG = Green 00-FF BB = Blue 00-FF https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_animate_color.html
Last updated: 2025-03-17
call codesys v2.3 from CoDeSys v3
CODESYS Forge
talk
(Thread)
call codesys v2.3 from CoDeSys v3
Last updated: 2017-06-13
Codesys 2.3 to Codesys 3.5
CODESYS Forge
talk
(Thread)
Codesys 2.3 to Codesys 3.5
Last updated: 2022-06-09
CODESYS HMI CODESYS V2.3 / Windows10
CODESYS Forge
talk
(Thread)
CODESYS HMI CODESYS V2.3 / Windows10
Last updated: 2016-06-12
Post by viksym on How to get the motor scaling value from code
CODESYS Forge
talk
(Post)
If anybody finds this in the future, I managed to do it like this: scalingValue := EncoderPulseCountPerRev / ABS(AxisName.fScaleFactor); No need to use MC_ReadParameter as I am able to read this value directly from the axis object. Using an absolute value of the fScaleFactor is there in case the axis is set as inverted, in which case it would be a negative value. I was not able to figure out how to get EncoderPulseCountPerRev programatically, but since all my servos use an encoder with pulse count per revolution of 16#800000, the final equation looks like this: scalingValue := 16#800000 / ABS(AxisName.fScaleFactor);
Last updated: 2025-08-19
Post by mmoncada on Dinamically loading recipes
CODESYS Forge
talk
(Post)
I'm having trouble with the initial loading of recipes. I can create them and load one or the other, but when the program restarts the recipes are not listed. I'm calling: RecipeManCommands.ReloadRecipes and then RecipeManCommands.GetRecipeCount which returns 0 recipes. None of the methods returns error and if i call them again after RecipeManCommands.CreateRecipe RecipeManCommands.ReadAndSaveRecipe getRecipeCount returns the number of recipes created. When i restart the system, once again they are not listed even though the recipe files are there. Any ideas? Martin Btw, Codesys 3.5 SP 16 Path 9
Last updated: 2023-12-06
Post by ben1 on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
When you say it does not work, does nothing happen or do you get an error? I have not used this function in codesys but from my past experience with Modbus I believe the coils need to be contiguous, which may be why yours is failing? Have you tried using Write Registers (16) to do the job? Or is their data in-between you do not want to edit in the transaction?
Last updated: 2024-11-17
Verbindung zw. Codesys V2.3 und Codesys HMI SL
CODESYS Forge
talk
(Thread)
Verbindung zw. Codesys V2.3 und Codesys HMI SL
Last updated: 2021-10-20
Post by fredruel on ModbusServer became unreachable if reach maximum of 16 byClientConnections
CODESYS Forge
talk
(Post)
Hello Fraziersedge, the solution of Codesys might be to update your codesys to the lastest version but it was not possible for us. In our Codesys V3.5 SP9 patch 8 I was able to fix this bug. I change my ModbusTCP slave component version or one of the sub component version (ex: SysSocket). Look at the picture in attachement that's the receipe that have work for us. When I got the bug my version of ModbusTCP slave was 3.5.5.0 with SysSocket at 3.5.6.0 and I change to ModbusTCP slave 3.5.14.0 with same version 3.5.14.0 of SysSocket event if I still use codesys V3.5 SP9 patch 8.
Last updated: 2024-08-27
Post by sigurdrb on Read codesys version in the codesys application
CODESYS Forge
talk
(Post)
Hi! I want to read the codesys version into the project, so I can highlight it in the SCADA system. VAR dwVersion : DWORD; END_VAR SysTarget.SysTargetGetVersion(pulVersion := ADR(dwVersion)); This gives me the value 100859909. I tried to search ths up and found som older post (https://forge.codesys.com/forge/talk/Runtime/thread/a55981ff4d/) that said each 4 bytes reads a number in the version. Example is 50662666 = 16#03050D0A which reads to V3.5.13.10 When I run this code I get the value 100859909, which I cant translate to anything meaningful. I am running it on Codesys V3.5.19.70. Help appreciated!
Last updated: 2025-01-17
Post by christoph--b on Probleme mit Speicheraufteilung nach Wechsel von Wago 750-841 zu 750-891
CODESYS Forge
talk
(Post)
Hallo, ich habe in meiner Hausautomation eine Wago 750-841 mit einem doch mittlerweile umfangreichen Programm. Diese wollte ich nun gegen eine 750-891 der 4. Generation austauschen. Aufgrund der Programmgröße hatte ich damals die Speichergröße für Retainvariablen von 16#4000 auf 16#7000 vergrößert und so läuft sie nun seit Jahren fehlerfrei. Allerdings mit der 750-891 bekomme ich offensichtlich eine Überschneidung mit dem Modbusregister, denn die Werte über Modbus spielen verrückt. In der Standardgröße mit 16#4000 tritt das Phänomen nicht auf, reicht dann aber nicht für das vorhandene Programm. Dafür gibt es sicher eine Lösung, denn die 891 hat ja deutlich mehr Speicher. Allerdings kenne ich mich mit der Speicheraufteilung nicht aus, wo man da was optimieren kann, damit ich den Speicherbereich entsprechend erweitern kann, aber es zu keiner Überschneidung kommt. Für Hilfe wäre ich sehr dankbar
Last updated: 2025-07-20
Post by wbj0t on mobus tcp slave device. read/write holdings with 2 variables.
CODESYS Forge
talk
(Post)
Hi there. I have an issue to read and set time for the controller. In the issue many registers described as writable by 6/16 functions, and, in this time, also(!) readable! For example: I have time registers: min, hour, day, mon, year. By specifications it is possible check time (so I need always update these varibles in loop) and set time by writing these same registers, BUT how to set, if they will immediatle updated by current time after writing? So, I need to separate one address at two variables. I have seen option mark: Overlay of the process image by the holding and input register. I understand this so: When I READ by function 3, I will get variable that connected with the same INPUT address and when I WRITE by 6/16 this will change second variable that connected with HOLDING address. BUT, this mark doesnt work, when I write 6/16 and try to get by function 3, I will get written value instead INPUT variable. So, what to do?
Last updated: 2024-03-20
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.