Beckhoff analog input

hapetter

Member
Join Date
Feb 2009
Location
Kristiansand
Posts
58
Hi.

I try to understand how to read an analog input (4-20mA). Using TwinCAT.

I found this example on how to scale the input into engineering units:

Eksempel
0-60 bar fra 4-20 mA resolution 0.1 bar:

FACTOR = 10
Data @ 4 mA = 6240
Data @ 20 mA = 31208
DataOffset = 6240
DataSpan = 31208 - 6240 = 24968
EUOffset = 0 x 10 = 0
EUSpan = (60 - 0) x 10 = 600

DATA = 18975

EU = ((600 x (18975 - 6240)) / 24968) + 0 = 306


Process value = 306 / 10 = 30.6 bar



  1. Is this a good approach?
  2. How to set up VAR types?
  3. All variables of types word?
  4. Should FACTOR allways be 10?
  5. Is DATA buffer (12bit) a value between 0-32000?
Thanks!

Best Regards
Hans Pettersson
 

Similar Topics

How would I connect a 5K potentiometer to a beckhoff analog input card EL 3061 (http://www.beckhoff.ca/english.asp?ethercat/el4031.htm) and 24VDC...
Replies
5
Views
4,882
hi . we are using beckhoff decentralised I/O module on profibus , which has its different analog cards for RTD , current and Voltage input. i need...
Replies
12
Views
5,913
i have a 0....20mA that represent -100.....+100watts what card can i use to measure this signal i have a KL3012. however i noticed that this is...
Replies
1
Views
3,165
Hello, I would like to control the valve through the beckhoff PLC. The valve operating range is from 0-10 volts and i have terminal EK 1100...
Replies
3
Views
6,044
Hi, I am facing a problem. I have configured the analog output terminal EL4004 as (output_1 AT%QW2: INT) but I did not get the output which I...
Replies
6
Views
3,108
Back
Top Bottom