Stefan009 Posted January 31, 2022 Report Posted January 31, 2022 Hi, im currently re-doing a previous employees code, and cannot ask him specifically. The flow meter sents 4-20mA depending on 0-120 litres per minute the sensor say. In the omron code he first scales the mA value with 0-8000 (X0 = 0, X1 = 8000). Then he takes this output and scales the 0-20mA to 0-PreviousScaleValue on X0-X1. Any ideas why he used 8000 and not just the 4-20mA / 0-120 lpm?
IO_Rack Posted January 31, 2022 Report Posted January 31, 2022 Most likely this is the resolution of the analog input card. 8000 digital units for full scale. The resolution can be found in the data sheets or Toolbox in Sysmac Studio.
photovoltaic Posted January 31, 2022 Report Posted January 31, 2022 The card resolution is 0-8000, many people like to also scale 4-20ma so that when you're commissioning you can send the PLC 8ma for example and see the actual ma value in your code instead of trying to scale it in your head.
Stefan009 Posted February 1, 2022 Author Report Posted February 1, 2022 Ah ok. The few Analog cards i have worked with previously only outputed the actual mA value, i did check around the settings for this card but didnt see any reference for the 8000 in there that could give a clue. Then the code makes sense now that i know the card outputs 0-8000 from the 4-20mA input.
Crossbow Posted February 1, 2022 Report Posted February 1, 2022 What brands have you used? I have never seen an analog card that put out actual value. Everything I have worked with puts out an integer numeric value indicating the range, like 0-1000, 0-4000, 0-8000, 0-32000, etc.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now