Hi! There might be similar “Topics” on here but i can’t seem to find exactly what i am looking for.
So the trouble i am having with Codesys and connecting factory i/o over the modbus TCP/IP Client. I have been able to follow the guide on the factory i/o site: (Setting up CODESYS Modbus TCP - Factory I/O - Documentation, up to the point so that i have been able to get a connection between codesys and factoryio, but only by setting the slave ID to 0 and/or 255. The problem i’m having is reading and writing values and therefore not able to run my code.
I am not familiar with setting up the codesys modbus slave and what parameters/addresses i need to configure as i have only used Siemens TIA portal and connecting to factoryio with PLCsim in school before and now i want to continue programming privately.
If needed i can provide pictures and more info
Any help is greatly appreciated!
I am using the Trial version of factory i/o if there is any limitations to this version.
My first project is getting the waring light to light up when pressing a button just as a
“getting it to work project” so nothing advanced.
Hi @thasamm,
Are you using SP16 or higher? If so, CODESYS suffered some changes, so try this:
Check the “Discrete Bit Areas” box under ModbusTCP_Slave_Device > General > Configured Parameters and write the number of Coils and Discrete Inputs you need, as shown in the image below.
I looked into the situation you described, and from what I could gather there doesn’t seem to be any way to delete the device user and create a new one without logging in first. My recommendation is that you try to contact Codesys regarding the issue to see if they can help you.