Analog value processing

It may help if you tell the forum what PLC you are using, analog modules and define "processing".
 
Siemens S7 300
AI4/AO2x8/8Bit
I want to monitor the fill level of a tank
Tank capacity is 1000litres

I dont want to use the standard library blocks
 
Scaling

Hi,

Try this:

L PIW256 // (check adress in your hardware config
ITD
DTR
L 27648.0
/R
L 1000.0
*R
T DB10.DBD0 // Wherever your Fill Level has to be stored.


For the Output, Speed of a Pump for example ?

L DB20.DBD0 // Setpoint in REAL datatype 0-100%
L 100.0
/R
L 27648.0
*R
RND
T PQW256 // (check adress in your hardware config



27648 stands for the range of an analogue input or output in Siemens.

Kind regards,
G



Siemens S7 300
AI4/AO2x8/8Bit
I want to monitor the fill level of a tank
Tank capacity is 1000litres

I dont want to use the standard library blocks
 
How do you know?

I did not, but with the lack of info, it was not a wrong answer :).

Back on topic.
Your analog input is likely to be 0..27648, but can be different depending on your hardware. An resistance input for example (RTD, PT100, T-couple) might be read as resistance with a scale of 10 or 100. Negative values are also possible.

How are you going to control your output?
Is there a reason you do not want to use standard blocks?
 

Similar Topics

Hello, I'm new to siemens and i have problem about analog signals... I'm using a 8x13 Bit AI, a 4x12 bit Ao and a combo 8 bit 4ai/2ao card. How...
Replies
5
Views
6,141
I am newbie in S7 and PLC and i am trying to learn analog processing in S7. I have got an example, which raise some questions. In the following...
Replies
5
Views
6,843
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
258
I'm pretty new to PLC's, so forgive me if I use the wrong terminology and whatnot. We have an issue at work where we have a flow meter that is...
Replies
10
Views
291
Apologies if this is a basic thing to ask here. I am controlling an Analog control valve. I need to open it for 100%. At this Juncture PID is not...
Replies
6
Views
769
Back
Top Bottom