SCL calculation doesn't work

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
This simple calculation doesn't work ???



sclprobl.JPG
 
DINT_TO_REAL treats the contents as a number, converting the contents of the DINT to IEEE fp format for the REAL.
DWORD_TO_REAL just moves the binary contents of the DWORD to the REAL, no format conversion takes place, hence the silly result where 14416 in Data_In[8] ends up as 2.020112e-041 in Reeel1.
 

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
75
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
558
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
316
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
512
Back
Top Bottom