compute box for siemens step 7?

Zombo

Member
Join Date
Nov 2003
Location
PA
Posts
50
In Allen-Bradley PLC software a compute
box exists where you can write mathematical
formulas even with floating point numbers.
Example=(((3.1415927* 15)|17.25)+125.345)
In Siemens step 7 does an instruction
such as this exist anywhere or must
you use a single box for each mathematical
equation?
 
Sorry, no :(

compute is indeed a very handy instruction in the AB PLC. There is no such thing in S7.
I can only recommend to master S7 math using STL.
If you are familliar with the good old HP calculators that sported "reverse polish notation", then you wont find the use of "accumulators" in S7 to be too difficult.
 
Another way is if you are familiar with high level programming is to code your blocks in scl. This is a high level programming language much like pascal.
 
SCL is the answer. The quickest is STL. I am assuming the "pipe" command is division.

L 3.141593e+000
L 1.500000e+001
*R
L 1.725000e+001
/R
L 1.253450e+002
T "Example"
 

Similar Topics

I am trying to add 9 DINT values with the CPT instruction in ControlLogix and I keep getting errors. I am just choosing each tag with an add...
Replies
13
Views
2,322
I am using a legacy Allen Bradley PLC5/40E Series F CPU Having issue with compute instruction syntax with the expression Doing a divide by...
Replies
7
Views
1,769
I've got a print-out of old code (PLC-5/250) that I am trying to decipher. I am hung up on an expression in one of the compute blocks. The block...
Replies
7
Views
3,276
I have written control logic for several situations recently where I have used a compute statement instead of a PID loop. My statement looks...
Replies
11
Views
3,568
PLC: Compact Logic 1100 series b RS Logix 500: version 8.40 Issue: No compute Instruction, it is greyed out and I can't use it. Why? Thanks
Replies
6
Views
2,167
Back
Top Bottom