S7-300 Math Question

agarb

Member
Join Date
May 2006
Location
USA
Posts
309
As you will soon be able to tell from my question, I am not a Simens expert!

I want to take PIW300 (from a connected RTD) and divide it by 100 and put the result in a real.

I'm trying to figure out what conversion instructions I need to use. Step 7 keeps complaining of a type conflict.

Thanks!
 
I can follow your statement list with info from the help file... :)

But, if I may indulge you, how would you do it in ladder? A contractor used FC105 scale block and now all the RTDs read wrong. So I am just trying to replace a single network within the ladder.
 
Wait, maybe I figured it out. Didn't realize I had to divide then convert to double then to real. I'll try it...
 
You can both use ladder, stl, and fbd in a single block. But only 1 type per network.

its probably easier to do in STl as you wont need temps for the in-between values.
 
Last edited:
All the RTD's are reading wrong you said, are the min/max values set correct on the scaling blocks?

RTD's are showed with one or two decimals on integer variable. FC105 scaling block don't work, because it assumes that raw data is between 0-27648 (or -27648 and 27648)
 
RTD's are showed with one or two decimals on integer variable. FC105 scaling block don't work, because it assumes that raw data is between 0-27648 (or -27648 and 27648)

My bad, i'm used to our software generator so we hardly have to do anything with analogue inputs. I was asuming that thermocouples also where. -27648<>27648
 
My bad, i'm used to our software generator so we hardly have to do anything with analogue inputs. I was asuming that thermocouples also where. -27648<>27648

Quick fix is FC105 block (bipolar setting) and scaling to -276.48 to 276.48, if temp range is enought for application (I think that 1 or 2 decimals for input is selectable from RTD card's configuration so range -2764.8 to 2764.8 is also possible?)

But converting int -> dint -> real -> divide with 100 gives same result and full temp range ;)
 
Last edited:
Quick fix is FC105 block (bipolar setting) and scaling to -276.48 to 276.48, if temp range is enought for application (I think that 1 or 2 decimals for input is selectable from RTD card's configuration so range -2764.8 to 2764.8 is also possible?)

But converting int -> dint -> real -> divide with 100 gives same result and full temp range ;)

Just now saw your response. I actually did both of those in my playing around today. I find all the type conversions a bit clunky as I'm used to A/B handling that automatically. But, I'm getting better with the Siemens stuff... just need more practice. :)

Though I still can't figure out why one of my RTD inputs is always at 32767 counts with no RTD connected. All the other (5) channels downscale except this one. It does read correctly when I hook up the RTD, though. After double-checking wiring, I've concluded it is in the card. I have another identical system that I'll try tomorrow and see if it behaves the same way.
 
Last edited:
check manual for the card, at least some Siemens RTD cards have wire break setting for channels.

"Wire break" diagnostics enabled, 32767 / 7fff = "Open circuit" diagnostics message
Wire break" diagnostics disabled, -32767/ 8000 (hex) ="Lower limit value undershot" diagnostics message
 
Last edited:

Similar Topics

in allen bradley kinetix 300 drive first E31 error shows after resting drive E11 error occurs need solution to reset E11 fault code
Replies
3
Views
82
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
10
Views
119
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
15
Views
277
Hi i using Kinetik 300 2097 driver control by EIP with using move absolute and incremental for motion , but i want to add same driver and motor as...
Replies
0
Views
65
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
74
Back
Top Bottom