step 5 analog values

Join Date
Jul 2006
Location
Alexandria
Posts
3
how to read analog input values in siemens step 5?
In other words if i want to know the analog input value from the program i always find analog values in DW but i don't know what to do to know this value.
 
Mohamed Metwally said:
how to read analog input values in siemens step 5?
In other words if i want to know the analog input value from the program i always find analog values in DW but i don't know what to do to know this value.
Please can u send me private messages for the answer
 
Hi Mohamed Metwally.

As far as I remember, there are two system function blocks, FB250 and FB251 for reading from and writing to analog i/o.
These blocks would take care of scaling as well.
 
Depends on plc 115 or 155 etc.

115 have in-built blocks the others don't.

however the peripheral word is set up as lowest 3 bits are not data but info bits

bit 0 = overflow, bit 1 = ident bit bit 2 = activity bit

bit 15 = sign bit

all the rest are the analog value

so

l pw 128

t Fw 200 (store sign & other bits)

slw3 (remove sign)

srw4 (then remove lower bits)

t fw202 store analog raw value

you can then use the bits in fw200 for sign & if required diagnostic bits
there are some differences betweeen U block & A/K range of cards
hope this helps
 
Yep Peter is was & even if it wasn't I would have said it was.
I'm getting old now so the grey matter is a bit slow anyway this thread is about as old as S5 lol
 

Similar Topics

Hello guys, I'm learning how to design a PID controller in STEP 7. Now my first question is how to check if PID working OK? I want to test it but...
Replies
4
Views
6,177
Hello, We monitor the temperature of a pipe via a 4-20mA temperature transducer. This goes into DB135(Read Analog Inputs). The issue I have is the...
Replies
0
Views
628
Dear all, I'm trying to figure out the following situation: A PT-100 temperature sensor is measuring water. When I measure the water temperature...
Replies
17
Views
6,216
I am try to do this task: write FC1 that would read from analog input (analog input = tw). The output of the FC1 will be downloaded/read/recorded...
Replies
5
Views
2,859
Hello guys, I have one little problem at work. I'm writting a ladder diagram program that will manipulate with analog values. Since analog values...
Replies
39
Views
11,017
Back
Top Bottom