S7 to SIMOTION data conversion problem

Jerry Holzer

Member
Join Date
Mar 2006
Location
WI
Posts
8
I am trying to devise a way to get floating point data from a S7 processor to a SIMOTION processor over a fieldbus link. When I send a float over to the SIMOTION, it stores the data in IEEE 754 format over four consecutive bytes. I can't figure out how to get that data into a native floating point variable within Simotion. Any ideas?
 
Jerry Holzer said:
I can't figure out how to get that data into a native floating point variable within Simotion. Any ideas?

It would help if we knew the native floating point format with the Simmotion. Doesn't the Simotion also use IEEE floating point?

If Siemens were smart they would use the same floating point format in their motion controllers as the PLC uses. They must. It would be brain dead not to. The TI DSP we use on our Profibus DP enabled motion controller uses its own floating point format and isn't compatible with anything. However, we anticipated problems such as yours so we always convert to and from IEEE format when communicating with external devices. The user isn't aware of the conversion. It is the only thing that makes sense. The cost of doing the conversion yourself should be added to the cost of the motion controller when making a buying decision.
 
Peter Nachtwey said:
If Siemens were smart they would use the same floating point format in their motion controllers as the PLC uses.

From what I can tell so far, everything Siemens does is baffling. Why I have to build something as basic as this out of rocks and garbage is beyond me! Why Siemens has the market share it has outside the USA is even more baffling. I'll have to back off on my Rockwell bashing from now on ;)

The problem is the data is stuck in a byte-level data array. There is native floating point variable support. What I can't work out is how to get four consecutive bytes containing the 2's compliment variable data into a native variable.
 
No, you just can't get there from here. The data isn't in the right PLACE. It's stuck in an array that came in from a UDP message over ethernet. We basically have to write a routine to convert four consecutive data elements from the binary representation of a floating point number to a native floating point number. I think we found a workable method and will post our solution if it works out.
 
Ouch

Jerry Holzer said:
We basically have to write a routine to convert four consecutive data elements from the binary representation of a floating point number to a native floating point number.

Or you can buy equipment that doesn't reqire the extra work. Either way it is your time or your money. There are motion controllers, PLCs and HMIs that work together very cleanly and simply. This should be simple. These kinds of thing are done all the time.

I can see why your avitar looks frazzled.
 
Peter Nachtwey said:
Or you can buy equipment that doesn't reqire the extra work.

Simotion does not require this extra work. Kernel 2.1 is availible since 2002.
Real Jerry's problem is that he didn't RTMF.
 
I would RTFM if I could understand German. Believe me, Siemens is NOT my idea. If I had my choice, it would be a combination of Rockwell PLC and Bosch/Rexroth (Indramat) motion control. Certain market sectors in some parts of the world require Siemens for some unknown reason. Conservation of European angst perhaps
 
Funny thing. I don't speak German at all. (OK - maybe few nice words but not to be presented in public. ;) ) And Siemens usually doesn't take care of my native language. So how did I manage to RTFM ? Hmm... Let's think... Bingo - it must have been in English then. All you need to do is to put some effort and find it.
 

Similar Topics

Hello, I am new to Siemens' Simotion Scout software. I looked for a thread that might include this but...I have a CU320 and an existing project...
Replies
9
Views
2,639
Dear All. I want tranfer a value tag ( LREAL) from simotion to PLC s7-300. in PLC i have SFC66 to Receive data, in simotion i called block _Xsend...
Replies
0
Views
2,626
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
87
Hello everyone! I'm currently working with SIMOTION D410-2 with a CF Card labeled with SIMOTION D410-2 V5.3 SP1 HF9 + SINAMICS V5.2 HF6 From...
Replies
2
Views
519
Hi, I have a program that is mainly coded with Italian comments. I want to find a way to export all the comments and then run them through google...
Replies
3
Views
1,320
Back
Top Bottom