i am currently trying to read a sensor using ethernet i/p protocol and already uploaded the EDS file inside codesys. In the datasheet, it is stated that the size is 4 bytes (32-bits).
When I upload the EDS file, it shows me data in bits. How do write the code to take all of the 32-bits in order to get the value of the sensor ? Thank you.
Hi Umair,
Don’t declare these variables in PLC_PRG
Only declare them in the EtherNet/IP I/O Mapping table
Do you know why these devices have red triangles?
Mark
I’d say your problem now is whatever is causing the red triangles. The error message you posted can mean many things. For example, I get the same error message ‘Not running | The error has been cleared’ simply by not having power to the device.
Check that you have the correct port selected as your EIP scanner.