News:

  • May 02, 2024, 09:22:33 AM

Login with username, password and session length

Author Topic: ad Pressure switch to BRX  (Read 2237 times)

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
ad Pressure switch to BRX
« on: December 19, 2017, 12:22:28 PM »
I bought a QPSH-AN-42. Pressure switch range of -14.5 to 145psi. Running a BRX analog card BX-08DA-2B. With no load on the sensor I see 3000 on WX0. Is this right? If it is, do I need to scale it to the card resolution? Then scale it again for proper readings? In the end I am trying to use it to measure vac lift. 30mg/h20 is same as 14.5 psi so they say. Just trying this out as an experiment. But them main issue is why the 3000 on WX0 with no load. This is the first time using a analog output 4-20ma from AD. I usually use 0-10vdc versions from another vendor.

plcnut

  • Hero Member
  • *****
  • Posts: 803
    • premiersi.com
Re: ad Pressure switch to BRX
« Reply #1 on: December 19, 2017, 12:40:34 PM »
You have 15 bits of resolution, with a rage of -14.5 to 145 psi, so 0 psi will equal approximately 3000 counts. You just need to use a SCALE instruction to convert the raw value to psi measurements. You should be able to enter WXn as the input, In Min 0, In Max 32767, Out Min -14.5, and Out Max 145.0 and the output should contain psi.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 5991
  • Yes Pinky, Do-more will control the world!
Re: ad Pressure switch to BRX
« Reply #2 on: December 19, 2017, 01:32:16 PM »
You have 15 bits of resolution, with a rage of -14.5 to 145 psi, so 0 psi will equal approximately 3000 counts. You just need to use a SCALE instruction to convert the raw value to psi measurements. You should be able to enter WXn as the input, In Min 0, In Max 32767, Out Min -14.5, and Out Max 145.0 and the output should contain psi.

This ^^.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 548
Re: ad Pressure switch to BRX
« Reply #3 on: December 20, 2017, 08:25:13 AM »
Also, you could put the -14.5 and 145 in as parameters to auto scale WXn to RXn in the analog module's setup, and would save yourself a rung of code.

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: ad Pressure switch to BRX
« Reply #4 on: December 20, 2017, 11:37:30 AM »
Thanks. that is what I had in there so I thought. I bet I forgot to put the negative in front of the 14.5 cause I just did it again. lol  What I am going to try next is use this sensor to measure vac lift. -14.5 psi equals 30 water lift so they say. I am going to attempt to scale this and see what happens. Vac Lift sensors cost us 450 bucks. Hey if I can do it with a 69 dollar sensor...

Garyhlucas

  • Hero Member
  • *****
  • Posts: 400
Re: ad Pressure switch to BRX
« Reply #5 on: December 20, 2017, 02:22:34 PM »
We use the -14.5 to 30 psi transmitters on vacuum and they work fine.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3561
  • Darth Ladder
Re: ad Pressure switch to BRX
« Reply #6 on: December 20, 2017, 02:42:03 PM »
Should work fine, but iirc, 1 psi is about 27"wc and change, so full vacuum is something like 408" so you'll need to scale accordingly.  Probably won't give very good service if you're trying to measure a few inches (too small a percentage of full scale).
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: ad Pressure switch to BRX
« Reply #7 on: December 21, 2017, 11:44:25 AM »
Having a hard time scaling. Most our readings are around the 30 to 45 range for our product.