Data types

netronio

Member
Join Date
Nov 2006
Location
Thesaloniki
Posts
5
i have a question about data types af PLC S7-300
i want to calculate some values and export them to WinCC (to plot a curve).
it has to be floating point numbers.
my variable in PLC is QD 10,so it is a double word.
but double words are not floating point numbers!!!

in general,
how can i manipulate floating point numbers in STL since i can't assign them to variables?

can i convert REAL data types to DOUBLE WORD?
 
I'm not familiar with WinCC but I guess you can set it up to read data from a data block. If you detail the one of the calculations you want to perform then an implementation will probably be forthcoming and you can then implement further calcs yourself.
 
Why not convert the double word inside the PLC to a read and store it to a data block or memory location that is defined as type real? Then you can graph the value in your data block.

L QD 10
DTR
T "Graph".RealData

If you need to manipulate the data, there are floating point math instructions available in STL.
 
It will be interesting to see why netronio is using Q10.0 through to Q13.7 (i.e. QD10) as the source of the data and what this represents.
 

Similar Topics

I have an expression in a structured text routine of a Logix controller that looks more or less like the following: ResultInteger := Integer1 *...
Replies
13
Views
379
I am using a Beckhoff PLC and trying to convert a REAL to 2 WORDS to send over Modbus. Does anyone know how to do this? Also how would I convert...
Replies
5
Views
789
Looking for information regarding what data types are supported in Crimson 3.1 programs. Cstring is self explanatory. Professor Google hasn't been...
Replies
1
Views
1,151
I'm currently working on a messaging system and Ive been having issues with trying to message over a REAL Data Type from one PLC to another. Has...
Replies
2
Views
1,279
I work at a cheese factory and we recently ran into a problem where in an older controller they where able to use a REAL Data type in OTU and XIC...
Replies
13
Views
2,582
Back
Top Bottom