Hello Guest it is April 19, 2024, 02:12:37 PM

Author Topic: PLC With Analog Input  (Read 16970 times)

0 Members and 1 Guest are viewing this topic.

Online kf2qd

*
  •  148 148
    • View Profile
Re: PLC With Analog Input
« Reply #20 on: November 30, 2010, 03:27:41 PM »
Looks like the 05 is not capable of floating point math.  I think I'll need that.  Looks like the 06 is it.

Foating point is not necesary for a THC. All you need really need is some way to get a scaled value in for the set point and compare it to the A2D and then make greaterthan/Less then descisions.
Re: PLC With Analog Input
« Reply #21 on: November 30, 2010, 03:41:30 PM »
I wouldn't need floating point math to compare two voltages?  The voltage readings should be doubles.  Not sue how many decimal places there would be but it won't be an integer.  When I compare, am I actually comparing the numbers or an I comparing the hex equivalent of the number or the 16 bit word sitting in the analog input register?