HMI variable

kreacher

Member
Join Date
Jun 2015
Location
Iasi
Posts
21
How can you use a LREAL variable in an S7-300? I need to represent a really big number but i cannot find the option to create the LREAL.
I have converted 2 DINT variables into REAL ones and i want to represent them into a LREAL number. The final number will look like this
XXXXXXXXX.XXXXXXXXX where the first 9 X will be the first REAL and the last 9X the other REAL. I though of converting the DINT to real and then multiplying the first number with 10^10 then adding to the other number but it does not work.
 
Last edited:
Or how can i combine two real numbers each with 9 decimals to create 1 real number and keep the order because as you see above the the first real number counts until it reaches a certain value and then it resets and increments again from scratch.

L.E. i've done some research and seeing as a REAL number can hold up to 3.402823e+38 i think my max number will fit in quite nicely but the real problem is how do i make 1 REAL number out of two?
The first number counts a signal up to a certain point where it resets and increments the second number every time it resets.
Real = RealHigh *10^10 + RealLow. But how do i make this? The max of the total Real must be at least a number with 19 letter in total (9* 10^18)
 
Last edited:
Just curious, whats the need for such a large number?

If it's just for display and not much in the logic then possibly convert the 2 DINTS to strings and concatenate?? Obviously presents issues if you're doing a bunch of math functions, but if it's just something like an identifier number maybe it could work.
 

Similar Topics

Hello, I have a question, is it possible to display an editable table on an HMI interface? Basically I have a variable: "Dist_Control" with an...
Replies
3
Views
856
I have no experience with Eaton HMIs. I downloaded the Galileo software and I am trying to get the file on a HMI (XV-102-H3-70twrl-10) to modify a...
Replies
4
Views
73
Sorry for my lack of knowledge, beginner here. Yesterday, we had a Pro-Face SP5000 HMI fail on us. The technician said that the HMI had the blue...
Replies
1
Views
53
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
61
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
8
Views
173
Back
Top Bottom