Post by atone on Set DeviceID of an IO-Link Sensor at Runtime
CODESYS Forge
talk
(Post)
I need to be able to change (set) the DeviceID of an IO-Link sensor (see DeviceID.png) at runtime. I tried with both ProfinetCommon.PN_PortConfiguration and ProfinetCommon.IOL_PortConfiguration, but I get an error for both when I try to read the port configuration (see PN_PortConfiguration.png). Does one of those FBs is the right one for my purpose? Do I possibly make a mistake when assigning the parameter IOLD_ID/IOLM_ID?
Last updated: 2025-03-19
Post by adam on Get/Set I/O Address Mapping of DeviceObjects in python Script
CODESYS Forge
talk
(Post)
I want to cancel the automatic address allocation for all IO mappings. If I directly set the automatic_iec_address in class ScriptIoMapping to False, the address becomes None. So I reset manual_iec_address with itselfs value. It only work with the Input IOMapping . For output, it reports an error: "Invalid address: The channel type 'Output' requires address type '%Q'." I checked the description file ,both accessRight are total same. Does anyone know what causes this?
Last updated: 2025-11-14
Post by romrot on MS SQL Compact cutting off Database name?
CODESYS Forge
talk
(Post)
I'm trying to use an fbMsSQL_compact function to read data from an SQL database. It works with some databases, but there is one database that I can't seem to get it to work on. It's set up the same as the other databases that I've tested with the only difference I see is that the name of the database is cut off in the status message. I'll get a message like "User: User logged out succesfully from database: 12345" But the whole name of the database is something like 1234567.
Last updated: 2025-08-21
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 bossjosh21 on RevPi Connect RS485
CODESYS Forge
talk
(Post)
Hi Sir Kevin. May I know how you came up with this solution. Im a bit confused but I tried to put this. [SysCom] Linux.Devicefile=/dev/ttyRS48 (remember, no 5 at the end!) then set com port in codesys to 6. It also works for me but want to know where did you get this. Thank you.
Last updated: 2023-12-06
Post by garmusd on Raspberry Pi 5 GPIO not working.
CODESYS Forge
talk
(Post)
Hi, Codesyscontrol 4.13.0.0 Raspberry Pi5 64bit with latest updates. Cant get working GPIO - no output and no input. SPI/I2C not tested. GPIOs B+/Pi2, Input/Output is set in the parameters, assigned variables int the Mapping. Absolutely no reaction. Do I need to configure anything else to make it work? Thanks!
Last updated: 2024-09-26
Post by pistola on Visualization Size - Set Layout
CODESYS Forge
talk
(Post)
I feel like this is a setting issue and I can't seem to find the right setting. I have a new project that I'm looking to add visualizations to however when I select my template size (1280 x 800) I make sure in my properties under the visualization tab, I have "Use specified visualization size" selected and my width set at 1280 and height set at 800. Now within my visualization editor I can't see to get the size outside of my template to grey out. I've attached a PDF showing what I'd like the visualization editor to look like and what mine currently looks like. Any help would be greatly appreciated.
Last updated: 2024-11-12
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
Post by levih on FbHTTPs_Get how to get data from a website and use it in codesys
CODESYS Forge
talk
(Post)
You get an array of DWORD into your receive buffer. You need to process this into usable data, before you can fit it into your DUT. I've made it work using FbWrite_ToIEC_ByRule in stead of Fb_JSON_ParseAndModify. I've attached images of the code. You receive the data into ARRAY[0..1023] OF DWORD. Then you use that array as the input for fbWrite_ToIEC_ByRule. To get the output from this you define a rule to fit the expected data structure including nesting levels. The you feed the rule into FbWrite_ToIEC_ByRule and then you can set the output to be of your DUT type.
Last updated: 2025-06-16
How to call the same program from library and get the vars updated.
CODESYS Forge
talk
(Thread)
How to call the same program from library and get the vars updated.
Last updated: 2023-08-23
Post by faceplant on Get the .git folder path via scripting
CODESYS Forge
talk
(Post)
Using the git scripting API, is there any way to get the file path of the project's .git/ folder?
Last updated: 2024-08-08
Modbus: Is there a way to get the channel index from the channel name?
CODESYS Forge
talk
(Thread)
Modbus: Is there a way to get the channel index from the channel name?
Last updated: 2024-10-21
Temu Coupon Code β€ [[acp856709 "OR" act200019]] Get $100 off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β€ [[acp856709 "OR" act200019]] Get $100 off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β€ [[acp856709]] Get $100 off '+ 30% Discount New Users
CODESYS Forge
talk
(Thread)
Temu Coupon Code β€ [[acp856709]] Get $100 off '+ 30% Discount New Users
Last updated: 2024-10-25
Temu Coupon Code β°ββ€ [[acu983853 "OR" frd164342]] Get $120% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β°ββ€ [[acu983853 "OR" frd164342]] Get $120% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β₯ [[act741464 "OR" frd192729]] Get $200 off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β₯ [[act741464 "OR" frd192729]] Get $200 off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code ββ β [[acu735479 "OR" frt093019]] Get 70% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code ββ β [[acu735479 "OR" frt093019]] Get 70% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code ββ β [[acq964570 "OR" frm371833]] Get 90% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code ββ β [[acq964570 "OR" frm371833]] Get 90% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β₯ [[acq866328 "OR" frp414131]] Get 50% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β₯ [[acq866328 "OR" frp414131]] Get 50% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code ββ β [[act942883 "OR" frf491031]] Get 40% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code ββ β [[act942883 "OR" frf491031]] Get 40% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β€ [[acr796104 "OR" frl266077]] Get 50% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β€ [[acr796104 "OR" frl266077]] Get 50% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β₯ [[acr502121 "OR" frq371833]] Get 90% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β₯ [[acr502121 "OR" frq371833]] Get 90% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β°ββ€ [[acu870322 "OR" frw371833]] Get $120% off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β°ββ€ [[acu870322 "OR" frw371833]] Get $120% off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β€ [[acu563085 "OR" frp003470]] Get $300 off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β€ [[acu563085 "OR" frp003470]] Get $300 off '+ 30% Discount
Last updated: 2024-10-25
Temu Coupon Code β°ββ€ [[act804194 "OR" frr266077]] Get $50 off '+ 30% Discount
CODESYS Forge
talk
(Thread)
Temu Coupon Code β°ββ€ [[act804194 "OR" frr266077]] Get $50 off '+ 30% Discount
Last updated: 2024-10-25
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.