Siemens S7-1200 profinet communication with codesys plc

Hi. I am no sure I understand your question. There is no need to "convert the inputs from byte to bool".
What you need to do is use the correct syntax. Please see the screenshot. Hope this helps.2024-03-08_Siemens_iDevice&CodesysController.png
 
Hi Guys, after the successful communication established in the last weeks now suddenly the codesys throws the error as shows in the attached the picture. Do you guys have any idea about these errors?
 

Attachments

  • codeys_Error.png
    codeys_Error.png
    315.3 KB · Views: 14
Are you using a USB-LAN adapter? The program does not recognise the Ethernet hardware.
You have to put the tool online, scan the PLC application and reselect the Ethernet hardware, build the program and download it, then put the PLC in run mode.
 
Hey guys, I have to combine 4 bytes of data and convert them to get a real value. Is there any way to do it in codesys to convert bytes to real value?
 
Hi everyone,

I would like to connect to this thread because my problem seems to be similar.

I have a PN/PN coupler in the project that will be connected to an unknown network with DCS.
To test, I connected a second PLC and communication worked in both directions. Then I removed the second PLC from the project and set X2 as Outside of project. Now, after loading the project into the PLC, I have the error:
Net configuration error - Difference between nets at slot 1
PNPN Coupler / PNPN Coupler.X1.
 
Hi everyone,

I would like to connect to this thread because my problem seems to be similar.

I have a PN/PN coupler in the project that will be connected to an unknown network with DCS.
To test, I connected a second PLC and communication worked in both directions. Then I removed the second PLC from the project and set X2 as Outside of project. Now, after loading the project into the PLC, I have the error:
Net configuration error - Difference between nets at slot 1
PNPN Coupler / PNPN Coupler.X1.
Hello Kristof74 and welcome to the forum.

I strongly advice you start a new thread and provide more information, like for example, which brand of PLC and model you are using.
This thread is basically a CoDeSys related PLC. So, if you are using Siemens, there is a risk that Siemens experts will not read your post. Also, this post is not about PN/PN coupler.
Also, could you provide a screenshot of the engineering tool showing the normal communication and the problem you describe? I do not understand very well the explanation.
 
Hello Guys,

How can we set Siemens plc as IO controller and codesys as IO device? Earlier, we did it in the opposite way.
 
Then you do it the opposite way.

I dont know how it is done in Codesys, but it must be configured as an I-Device with the needed transfer areas, and the GSDML file must be generated in Codesys.

In TIA, under Options, use the Manage general description file (GSD) to import the GSDML file from Codesys into TIA.
You can then find the Codesys PLC in the hardware catalog under Other field devices .. PROFINET IO ..
 
You will need to buy the Profinet device license which is not included in the regular license. This will set you back EUR 100.
You configure the PROFINET device application and the CODESYS engineering tool lets you generate the GSDML file for the IO size of your device application.
It is all very well explained in the product datasheet, link below.
CODESYS PROFINET Device SL
 

Similar Topics

Hi all.. I'm working on something that is bugging the heck out of me. I have a S7-1200 setup as an i-device with 128 bytes in, 128 bytes out...
Replies
14
Views
7,183
Hi I'm wanting to basically get data from a Siemens S7-1200 PLC and write it in to my D registers on my Q series PLC. If I went for profinet...
Replies
6
Views
2,274
Hi all, Quoting a system which calls for a Siemens S7-1200 and a Danfoss FC280. Cost-wise, it's much the same whether I use a higher-spec PLC...
Replies
8
Views
4,244
Afternoon all, I'm using TIA Portal V12 SP1 to program a Siemens S7-1200 (Part No. 212 1AE31-0XB0) to control a Siemens Sinamics G120 (Part No...
Replies
4
Views
8,729
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
255
Back
Top Bottom