Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 10:05:09 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  PLC With Analog Input
Pages: « 1 2 3   Go Down
Print
Author Topic: PLC With Analog Input  (Read 1372 times)
0 Members and 2 Guests are viewing this topic.
kf2qd
Active Member

Offline Offline

Posts: 118


View Profile
« 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.
Logged
rrc1962
Active Member

Offline Offline

Posts: 434


View Profile
« 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? 
Logged
Pages: « 1 2 3   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!