Beckhoff PLC integration

Support forum for the Lambda Shield designed to connect Bosch LSU 4.9 wideband oxygen sensors to Arduino projects.
Post Reply
Stan1979
Posts: 3
Joined: 15 Jan 2021 20:32

Beckhoff PLC integration

Post by Stan1979 » 15 Jan 2021 21:07

Hi,

I do not use Arduino, I'm running an industrial Beckhoff PLC.
Programming isn't a problem, I will only need to buy an analog input for my PLC.

Can you tell what I need to install your system to my PLC?
Does it have an analog output or similar?

User avatar
Christian_Bylund
Posts: 270
Joined: 07 Mar 2015 18:09

Re: Beckhoff PLC integration

Post by Christian_Bylund » 15 Jan 2021 21:33

Hello Stan,

There is a couple of different ways to connect an Arduino to a PLC. I am a bit rusty on my ladder programming but I can definitely help with the Arduino side of things.

I think we can have two ways of interfacing to the PLC depending on its capabilities.
  • An analogue input interface, the Arduino can output 0-5V with an RC-Filter. (See this video)
  • If you have any way of receiving a value from RS232 this would be the easiest.
I was just looking for a DIN rail mount for Arduino and there seems to be plenty of suitable options.

Image
Best Regards,
Christian Bylund
Bylund Automotive AB

Stan1979
Posts: 3
Joined: 15 Jan 2021 20:32

Re: Beckhoff PLC integration

Post by Stan1979 » 15 Jan 2021 21:56

Isn't it possible to run the lambda sensor without the Arduino?

RS232 could be an option, there is a card and it isn't to expensive :)
Any analog signal is ok.

User avatar
Christian_Bylund
Posts: 270
Joined: 07 Mar 2015 18:09

Re: Beckhoff PLC integration

Post by Christian_Bylund » 15 Jan 2021 22:20

Stan1979 wrote:
15 Jan 2021 21:56
Isn't it possible to run the lambda sensor without the Arduino?
Unfortunately not since it is a Wideband sensor it requires some control circuitry to function. We offer the complete kit for 150 EUR. There are other dedicated options like the Innovate LC-2 for 180 USD, but in my opinion you loose the level of customisability offered by the Lambda Shield and Arduino solution. Basically you can program it to behave and work the way you need it to.
Stan1979 wrote:
15 Jan 2021 21:56
RS232 could be an option, there is a card and it isn't to expensive :)
Any analog signal is ok.
Analog output as you have seen is no problem, all you need is a capacitor and a resistor that you can easily fit directly on the wiring. Perhaps it would be best option. Not sure if the UART output matches Industrial RS232 standards after reading up on it.

What model of PLC do you use?
Do you have the possibility to use a 12V power supply? - Then you can power both the Arduino and Lambda Shield from the same source and get a stable 0-5V output.
Best Regards,
Christian Bylund
Bylund Automotive AB

Stan1979
Posts: 3
Joined: 15 Jan 2021 20:32

Re: Beckhoff PLC integration

Post by Stan1979 » 17 Jan 2021 21:12

I'm running a Beckhoff cx1020.

12Vdc isn't a problem, 5v 12v 24v, whatever you want.

But I'm not a fan to use another control system next to my PLC.
The Beckhoff is stable as hell and this is the system I choose therefor.

Isn't there another solution?

User avatar
Christian_Bylund
Posts: 270
Joined: 07 Mar 2015 18:09

Re: Beckhoff PLC integration

Post by Christian_Bylund » 18 Jan 2021 11:43

Stan1979 wrote:
17 Jan 2021 21:12
I'm running a Beckhoff cx1020.

12Vdc isn't a problem, 5v 12v 24v, whatever you want.

But I'm not a fan to use another control system next to my PLC.
The Beckhoff is stable as hell and this is the system I choose therefor.

Isn't there another solution?
If you can interface with 5V directly to the Lambda Shield it is probably possible, the minimum is heater control 1 x 5V PWM output as well as 2 x 5V analog inputs for heater regulation and lambda output. Preferably you would also want SPI communication to read the status registers from the lambda controller.
Best Regards,
Christian Bylund
Bylund Automotive AB

Post Reply