S7-300 Analog Value Processing

mindshaper

Member
Join Date
Apr 2007
Location
istanbul
Posts
19
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 can i read input values and scale, also write output values?

Thks.....

PS: I really need help...
 
mindshaper said:
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 can i read input values and scale, also write output values?

Thks.....

PS: I really need help...
hi mindsheper

Remember,Analogue input 4-20mA = 0-27648,
You can use Siemens readymade locked blocks FC105 for SCALE AI.(and FC106 for UNSCALE).This fuction work very well.or also u can write your code for equation Y=M*X+C, this is required above two value for input and output min & Max value

calculate Y=mx+C:

1. first derive m=(y2-y1)/(x2-x1)
suppose you are measuring pressure -6 bar to 10 bar by using 4-20 mA AI
then y2=10 , y1=-6,x2=27648,x1=0

2.then calculate temp=m*(Analaog Integer Value, like PIW256)

3.then calculate C=constant=y2-m*X2 or by c=y1=m*x1

4.finally you will get the scaled Pressure in unit BAR at y=temp+c

It will work very as I generally use this equation in every leanear scaling.

good luck
 

Similar Topics

Hello, I'd like to obtain average of my analog input value which will be displayed on SCADA. For examplle, analog value should be sampled avery...
Replies
2
Views
2,114
Hello, I am trying to get into the basics of that magic no. 27648 & some how not able to decode it:huh: Here's the problem - I have S7-300 with...
Replies
7
Views
5,684
I have a client who has asked for a pop-up for each of their analogs, which will display the alarm values. The values displayed in the pop-up...
Replies
5
Views
2,527
hi i am using s7-300(CPU 313c). when i try to use FC106 unscale function, i can change IN manually but there is no effect on OUT. i wrote PQW752...
Replies
4
Views
1,583
Hi guys, I have CPU S7-300-313C ( Cat No - 6ES7-313-5BE00-0AB0) DI24/DO16 and AI5/AO2. when I am trying to configure and use the AO channel PQW...
Replies
4
Views
2,546
Back
Top Bottom