Using Siemens TIA CPU to switch In/Outputs and communicate with the UR10e

Hello,

currently im working on the communication between an TIA CPU (1516-3 PN/DP) and some DI and DO and the UR10e via Profinet.

I already established the Profinet connection and i configured the PLC Variables like on this Picture:

I can run the CPU and the Profinet LED on the UR is green. Good for now.

In the next step i would like to use the Digital In- and Outputs from my TIA CPU to work together with my UR10e.

Like this case: A Input on my SPS is high so UR10 will start doing something. Or i can say that my UR10e should switch on a Output on the TIA CPU.

I googled but i couldnt find quite good informations about it. I think i need to write in the different in- and output registers but i dont know excatly how to do it. Maybe some of you have a example to do it.

Thanks for now!

Greetings from Germany!

Hello,

If I were you, I would consider using the general purpose bits, and then connect that bit to a digital output in the PLC or in the UR program. Instead of writing directly to an output in the UR from the PLC.

Go to Installation - IO Setup and scroll down on the Input list until you find GPbi[0] (General Purpose bit in 0). Rename this signal to something of your own choice.
Now, if you have imported the UR Data Type as described in the PROFINET instructions, you should be able to locate bit[0] as Register[0] located on Q24.0 in your case.
image

If you set register bit Q24.0 to True in the PLC, your GPb[0] will become True/1 in the UR. :slight_smile:
Then you can use it for whatever you want. The GP input will become visible in the Input dropdown menu, when you rename it:

Then you can use the input for controlling a DO in the UR in a thread:
image

You can also write directly to the digital output in the UR, but you need to use the Mask bit, as well. And the UR will not have control of the output anymore.

2 Likes