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, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
0
Views
8
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
295
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
163
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
312
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
125
Back
Top Bottom