RMA
Member
Can somebody have a look at the appended code. I think I've got to the point where I'm seeing what I expect to see instead of what's really there!
I've got a floating point number in the IDB for a Cognex camera in the form of a seven character STRING. I need to convert this to a Step7 REAL, so that I can send it to the management information PC.
I've used FC39 before (it's in the IEC Blocks in the Standard Library), but for some reason, it's not working this time. The Return Value is sitting at (something like) 9.404e-38, which I assume is the smallest value which a REAL can take.
I'm pretty sure it'll be a trivial fault, probably in the shuffling around of the individual characters, but as I said, I think I'm seeing what I expect to see now!
Thanks in advance
Roy
I've got a floating point number in the IDB for a Cognex camera in the form of a seven character STRING. I need to convert this to a Step7 REAL, so that I can send it to the management information PC.
I've used FC39 before (it's in the IEC Blocks in the Standard Library), but for some reason, it's not working this time. The Return Value is sitting at (something like) 9.404e-38, which I assume is the smallest value which a REAL can take.
I'm pretty sure it'll be a trivial fault, probably in the shuffling around of the individual characters, but as I said, I think I'm seeing what I expect to see now!
Thanks in advance
Roy