Siemens Problemes

jacokapp

Member
Join Date
Apr 2008
Location
Port Elizabeth
Posts
35
For some unknow reason my siemens 315f-2 does not want to subtract or devide REAL values always return 0 as an answer???any idea why?

Is it posible to call OB36??its not posible to select it in CPU properties.Only OB35 can be selected.
 
Sounds like the result of the 'div' is considered as integer:

2/4 = 0,5 > integer => 0

One thing what you can do is to first multiply (if this is possible).

Example: the result needs to be in procentage (0-100%)
(axb) / c = (2x100) / 4 = 50

There is still a small rounding-error with this method. But even this rounding error can be avoided: e.g. 50,3% (real). But to correct this we need a closer look at your code.
 
Sounds a bit strange! Can you post the code concerned, it'll make it a bit easier to spot possible type errors, etc.

I don't have a manual available at the moment, but I believe OB35 is the only one available in a 315 CPU.
 

Similar Topics

Hi! What is the way to convert the code from the Codesys code to the Tia Portal? Regards, WK
Replies
4
Views
69
Good Afternoon , It has been decades since I have done anything with Siemens . What is the Siemens name of their Servo Product Line and what...
Replies
10
Views
208
I'm using the Siemens PRONETA software to do some IO testing currently. I love the simplicity and fast testing capability. Does anyone know about...
Replies
0
Views
86
Hi, First time user of S5 Siemens. Is there any solution on how to solve this kind of error. HMI OP7 $613 DB-error No. 11 (0: 15) Siemens PLC...
Replies
9
Views
173
Hello, I have an issue where I want to simulate an Siemens HMI panel, through NAT connection to a PLC. I have the possibility through extended...
Replies
8
Views
259
Back
Top Bottom