Mapping Codesys with Sensor through Ethernet I/P

Hi umairyamin,

If the sensor OUT3 and OUT6 signals are Digital Inputs these should correlate to Input Bit2 and Bit5.

Below are the steps to map these values:

I prefer to create Global Variables for easy access across different programs/applications within Codesys.

Step 1: Define Global Variables: BOOL for Digital I/O

Step 2: Map the Global Variable

Step 3: Access Global Variable Ethernet/IP Input within a Program

Hope this helps!

Attached is the demo project.
umairyamin_demo.project (356.2 KB)

Cheers,
Jacob Ball

1 Like