Lookup Table in Codesys 2.3

WainDude

Member
Join Date
Aug 2010
Location
Edmonton
Posts
26
Hey everyone, can anyone point me in a direction on setting up a lookup table in Codesys 2.3. I have never done it and it looks like I may have to for a non-linear calculation. I am going to have to enter about 120 data points.

Anyone have any idea on how to do this?

Thanks,
 
do you need change your data points or are them constants all time.

Maybe you can use excel to calculate equation code for data and program equation formula to plc?

http://www.plctalk.net/qanda/showpost.php?p=112953&postcount=26


Or if you want use lookup table, then you only need some 120 different compare rungs or indirect addressing o_O
Basic idea is that you check if your input value is some know point x (or between two x data points) and then you copy known data point y to output.

between two known points you can use formula y=mx+b to better approxmation or then you round y to closest known point
 
Last edited:
yes wain several possibilities

download www.oscat.de (english version library and the pdf belonging to it.
several ways to do your linearization.
1 is make a formula from your database (help can be given, this can be a polynoom, like lare is suggesting)
2 is make a table with x and y and interpolate between the points(this will be linear)
3 do it the fuzzy way
 

Similar Topics

Hello all, I am working on a project with an s7-1200 and I am controlling three stepper motors using this controller. I will be receiving input...
Replies
5
Views
2,398
Hi All, So I am using an Automation Direct BRX PLC (Do-More Designer 2.5), in which I need to calculate the Log Inactivation of Giardia. I am...
Replies
5
Views
3,602
Hello all, I need to do something and I'm not sure if it's possible.. some aspects I know how to do but not quite on the scale of this project. A...
Replies
5
Views
2,537
Hi guys, I want to program map tracking using factorytalk view site edition ver9. I have map which shows vehicle on it, the vehicle location...
Replies
1
Views
2,019
Hi all, I would like to generate a lookup table (Time vs Speed) or (Position vs Speed) in rslogix5000, and looking for some idea on how to...
Replies
20
Views
10,114
Back
Top Bottom