HI all - am hoping someone could help me a little... I am something of a novice and need to sort out my analogue Outs and Ins for a small project...
I am using S7-224 with 4 Analogue INs, 2 Analogue outs.
I am aware of analoue channels being a single word (AQW0 etc)...
The problem I have here is more to do with the maths !! :-(
Would I be correct to assume that 4mA = 650 and 20mA = 32760 ?
I want to send a 4-20mA signal to a K-tron dosing feeder...
Apparently 4mA equates to 50 RPM on the doser which inturn equates to 0.71 Litres/Hour dosed.
20mA equates to 1950 RPM on the doser which inturn equates to 71.0 litres per hour.
If I setup a box on my TP170 HMI screen for an operator to type in what amount of flow they want (ie 35.5 litres/hour) what would the maths and conversions be ? I am struggling with scaling the output values correctly...?
I have to start with REAL because they type in 34.7 etc, then convert to DINT (use ROUND instruction ?) then convert to single word (HOW ?) to paste value into AQW0.. ?
And how on earth do you work out the scaling from what they type in to the correct value to give correct mA to get correct dosing ??
ANY advice or where to look for samples / examples etc GRATEFULLY APPRECIATED !
THANKS !
Steve
I am using S7-224 with 4 Analogue INs, 2 Analogue outs.
I am aware of analoue channels being a single word (AQW0 etc)...
The problem I have here is more to do with the maths !! :-(
Would I be correct to assume that 4mA = 650 and 20mA = 32760 ?
I want to send a 4-20mA signal to a K-tron dosing feeder...
Apparently 4mA equates to 50 RPM on the doser which inturn equates to 0.71 Litres/Hour dosed.
20mA equates to 1950 RPM on the doser which inturn equates to 71.0 litres per hour.
If I setup a box on my TP170 HMI screen for an operator to type in what amount of flow they want (ie 35.5 litres/hour) what would the maths and conversions be ? I am struggling with scaling the output values correctly...?
I have to start with REAL because they type in 34.7 etc, then convert to DINT (use ROUND instruction ?) then convert to single word (HOW ?) to paste value into AQW0.. ?
And how on earth do you work out the scaling from what they type in to the correct value to give correct mA to get correct dosing ??
ANY advice or where to look for samples / examples etc GRATEFULLY APPRECIATED !
THANKS !
Steve