Math Help - creating a variable scaled analog input

Jeff164

Member
Join Date
Mar 2017
Location
NJ
Posts
5
Hello - you folks were kind in helping me the other day so I'm back for more...

My program is finished however the end customer hasn't provided a positive confirmation of the range of the pressure transmitter they are using as yet.

PLC: AD DL-06 HMI: C-More EA9

I'm wanting to provide a numeric entry box behind a password protected setup menu where their installation project engineer can input / adjust if need be the full range value for the transmitter. The ANSCL iBox tool will only allow constants (Knnnn) for inputs here (I thought this would be easy if I could have just entered a V-memory address for the High Engineering value).

Anyway - I'm trying to develop a formula that will allow me to bring in the assigned value and write to V-memory, run the math and then output to the PLC code for set points and display.

I got the code functional for moving the data into the program and setting up the structure, but the equation is giving me challenges. Its been too many years since I sat in algebra & trig classes with this sort of thing and I haven't been using those skills of late.

Here's a screenshot of what I've done. Its functional but the math is broken. o_O

thanks again !

analog snip 1.JPG
 
drbitboy is spot on one of those threads is quite recent so should give you some ideas on how to roll your own.
 

Similar Topics

This application has a motor with encoder feedback that drives a linear actuator that moves in/out, and is at roughly 45 degs from horiz. As the...
Replies
19
Views
1,362
Hey guys, I have MLX LOGIX1400 running fine except that it faults sometimes on math over flow. I examined the program and spotted a...
Replies
8
Views
2,323
Hey guys, I'm programming this stepper motor to go back and forth at two set angles. After programming, I realized that my program only works when...
Replies
8
Views
2,281
Hello all, I am trying to synchronize the speed of two motors so that once an operator sets them both where they want they can push a button that...
Replies
4
Views
2,711
I am taking a Simple SP which is in BCD and adding to that, When doing so I have noticed if the value is < 8 it works out fine, but if > 8 it...
Replies
4
Views
2,490
Back
Top Bottom