S7- reading/writing/scaling analog signals

olitheis

Member
Join Date
Jul 2005
Location
Frankfurt
Posts
16
Hi there,

I just started a project with a S7 CPU315-2DP with all kinds of Slaves on the Profibus like WAGO I/O's, Eurotherm VFD's and DC-Drives... The Controller for Temperature, Axis control and HMI is a Moog TMC. Anyways, all is running fine so far, but reading/writing/scaling analog values in Step7 seems a little complex(?!) If someone knows a good way to do this or has some Examples (Function Blocks), that would be great. I read the analog values through a Wago Analog Input Module 750-456 and I would like to use the signal to create some comperators. Thank you
Oli
 
How are you currently reading/writing and scaling the analogue values ? Are you using FC105/106 or something else ? Can you be more specific on what the complexity is ?
 
For scalling you can use FC105 "Scale"
See help F1 for this function.
Call FC 105
IN:=PIW ** //Port
HI_LIM:=1,5000+002 //Max
LO_LIM:=0,00+000 //Min
BIPOLAR:=FALSE
RET_VALUE:="temp_word" // Error
OUT:="GRADUS_REAL" // Result
 
Hi,thank you for your fast answers.
I just tried this example I found:

L PEW 260
ITD
DTR
L 2.764800e+004
/R
L 9.000000e+002
*R
L 1.000000e+002
+R
T MD 10

But like I said, I prefer Function-Block-Diagramms, because that's the standard in Germany. I never worked with analog signals in PLC's/Profibus before, that's why I am a little sluggish with this, sorry.
Currently I am using a Wago Profibus Slave with 12bit Analog In- and Outputs(PEW/PAW 260) +/- 10V.
I looked at the FC105 and this looks like a great idea. I really appreciate your help.
Thank you, Oli
Oli
 

Similar Topics

Summary: How to remotely toggle BOOL values on a vendor-supplied system having a L24ER PLC? (RSLogix Studio 5000 version 33.01.00) I have a...
Replies
5
Views
1,703
Hello Friends My experience with Siemens is limited. From HMI I would like introduce Minutes and Seconds to a timer. Also, in HMI I would like...
Replies
5
Views
3,936
I am reading and writing to I/O tags in Logix5571 using python. While dissecting using Wireshark, I could see that the Symbol Class(0x6b) is being...
Replies
0
Views
1,330
Hi again guys, This forum has been great for all the questions ive asked these last few days. Another one now.. haha I am currently working...
Replies
3
Views
4,196
Hey guys, i'm controlling altivar 71 drive from modicon m340 cpu 2020 plc through modbus communication, when I read and write at the same time...
Replies
5
Views
2,197
Back
Top Bottom