WAGO CoDeSys analog input

markush99

Member
Join Date
Aug 2016
Location
Norge
Posts
1
I'm using a pressure sensor that outputs 4-20mA related to a range from 0-6 bar.

i want to connect this to my WAGO 750-485 module.

It's the first time I use the LIN_TRAFO function which make the scaling. I`m wondering to use 6552 at min and 32760 at max.

I'm putting the OUT_MIN = 0 and OUT_MAX= 6, is that also correct?

Do you guys have some other tips to get this working?
 
I'm not that familiar with analog and Codesys, but I have started to use Wago IO with a ControlLogix. Some quick google-fu and your instruction for scaling looks correct as well as your scaling parameters.

You do need to pay attention to how the data is getting to you in the first place. The data is sent to the as 2 bytes, a High byte and a Low byte. I know on my ControlLogix I need to combine these into a single 16 bit integer before I can drop them into a scaling function. Which means I take the high byte and shift them into bits 8-15 of the integer and then add the low byte into bits 0-7 of the integer. Once that is complete I can process in my scaling block.

I don't know how a Wago controller directly processing this data, if it combines it automatically or not. If you are having issues I would verify the understanding of the data as it is received.

Welcome to the forum!
 
I'm using a pressure sensor that outputs 4-20mA related to a range from 0-6 bar.

i want to connect this to my WAGO 750-485 module.

It's the first time I use the LIN_TRAFO function which make the scaling. I`m wondering to use 6552 at min and 32760 at max.

I'm putting the OUT_MIN = 0 and OUT_MAX= 6, is that also correct?

Do you guys have some other tips to get this working?
I use a function that can also be a function block if you wanted to (you need to set it up).
I have attached the function as a TXT file.
Change the file extension to EXP once you get them.
Go to your wago software and under your POU import the attached file.
You can then work with the code and such.
Hope this helps.
 
because it is a FB you have to declare it in the vars.
if you run it in simulation you can set the inputs to any value.
please be aware that the error values are also playing , so better is to shift the value or to use a inp1 block from oscat.

and yes your settings look pretty good, it is depending on the input card which values are to be used.

please download from oscat.de a nice library for this type of conversions.
 

Similar Topics

Hi, I have never used modbus communication in Codesys 2.3, any tips and tricks are much appreciated. The system is a Wago 750-881 that controls...
Replies
3
Views
1,821
Hello, These days I am trying to implement a communication via EthernetIP between a PowerFlex 525 drive and a WAGO PFC200 with EthernetIP...
Replies
7
Views
1,915
Dear people, Is there any way to use native 3Codesys functionalities within a Wago e!****pit ironpython script? I want for example to export...
Replies
0
Views
929
Codesys Ethernet IP Scanner - Won't connect to a Wago 750-353. The Ethernet device and the Ethernet IP Scanner are both running. but then I go...
Replies
2
Views
1,656
Hello, Maybe it is just a simple problem, but I cannot solve it. I have a Wago 750-881 connected to a Beier HMI through IP TCP, the connection is...
Replies
0
Views
890
Back
Top Bottom