scl programming

Stavrina Deve

Member
Join Date
Feb 2016
Location
athens
Posts
7
hello there
my aim is to write a bigger program but i noticed that there was a difference if I calculate c1 first and then c2 ,and if i calculate c2 first and then c1.
Can anyone tell me what is going on ? This is not logic ....

Capture.jpg Capture1.jpg
 
I think you're right, that shouldn't happen.

Is anything overwriting c2 elsewhere in the project?

You might want to try a compile rebuild all for your code, and see if that makes a difference. I've seen it fix some wierd issues, especially in older versions of portal.
 
Which CPU are you using? - the floating point results are questionable to say the least.

c1 = 0.0634000 using a calculator
c1 = 0.0638491 from your screen shot
c1 = 0.0633997 using PLCSIM in S7 V5.5


c2 = 0.4354000 using a calculator
c2 = 0.4371863 from your screen shot
c2 = 0.4354000 using PLCSIM in S7 V5.5
 

Similar Topics

Hello all, I was trying to do some online programming on a AB control logix PLC v20. I added a new function block routine and added in an SCL...
Replies
3
Views
1,975
Hello everbody out there. I have 2 topics actually I wanted to share and get your opinions about but since they are related I sum up in one...
Replies
14
Views
9,822
I start to use SCL on MP377 - Siemens Step 7 v5.5 (SCL v 5.3), and I've got some questions: 1) What is "Data Block Referencing UDT" about? What...
Replies
5
Views
4,916
Hi I read somewhere that Siemens are going to lauch SCL onto the 1200... any one know when this is likely? The limitations of Ladder & FBD are...
Replies
11
Views
5,608
dears i need programming example of scl programming i want to work with scl editor please send any easy programming example if you have...
Replies
1
Views
1,895
Back
Top Bottom