S7 / Step 7 converts data formats ?

theDave2

Member
Join Date
Aug 2004
Location
Rochester, NY
Posts
467
Move does not convert the data type, it simply takes the binary bit pattern stored in one variable and moves it to another.

Highlight the move box and hit F1 to get the Siemens help
 
Last edited:
As i see it and it just moves a value into somewhere when you start a plc(0B100) but doesn't convert it
If i remember well OB100 is some ob that you use to set values/bits correct when you start a plc so everything would be correct to start a program it is more like initializing
But no converting is been done
 
The links are no good, so we can't (I can't) see what it is that you mean, but to use MOVE of a REAL to a T# is possible - no conversion is done - as has already been mentioned.
But thinking about it, it is indeed not logical to do so, because the bit pattern that corresponds to a certain REAL value, is gibberish when interpreted as a T# value.
So, it is the symbolic assignment of the addresses that is wrong: The addresses are not really REALs or T#'s.
That, or it is a programming error: Somebody forgot the line RND in
L realvalue
RND
T doublevalue.

A long shot: maybe the MOVE is part of some kind of random value generator.
 
theDave2 said:
I came across this:

http://automationsoft.blogspot.com/2008/05/tip2-pid-function-documentation.html#

which shows this code (Network #2 & 3) :

http://lh4.ggpht.com/nawaphun/SC-2NrtiMfI/AAAAAAAAARU/MpjaWZJf5AM/clip_image0193.jpg

which implies to me that I can use a MOVE box, put in a Real and get out a T# ?



Have I been wasting code / time in explicitly using ROUND and other functions to convert types when all I needed to do is MOVE them ? Was the person that taught me S7 wrong ?

The first link is good, the second gives me 404 error.

Looking at the first link I found a piccie that shows network 1, 2 and 3 and they show MOVE instructions. Going to assume thats what you are referring to.

Look closer at the declaration table just below that one. pidDB.gain, pidDB.rate and pidDB.reset are all REALs. So they are moving reals to reals.

Nowhere in that article did I find any such thing that refers to moving Reals to T#......
 
I think the OP is pointing out that, if he wanted to, he could move a real variable into a time variable.

realtime001.JPG
 

Similar Topics

I am having a step7 v5.4 program where the blocks are encrypted and locked. And the manufacturer is stopped the support. Is there any ways to...
Replies
2
Views
175
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
246
HI! HOW COULD I OBTAIN THE NAMES OF THE STEPS OF A ROUTINE IN SFC LANGUAGE IN STUDIO5000? Or is there a system variable that gives me those...
Replies
0
Views
339
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
546
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
668
Back
Top Bottom