Floating-Point Math; Move; Convert - Siemens SIMATIC S7-200 Manual

Software conversion tool
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 LAD instruction conversion

4.6 Floating-point math

4.6
Floating-point math
Table 4- 6
Floating-point math conversion
S7-200 instruction
ADD_R Add Real
SUB_R Subtract Real
MUL_R Multiply Real
DIV_R Divide Real
SQRT Square Root
SIN Sine
COS Cosine
TAN Tangent
LN Natural logarithm
EXP Natural Exponential
PID Proportional Integral Derivative loop
4.7

Move

Table 4- 7
Move conversion
S7-200 instruction
MOV_B, MOV_W, MOV_DW
BLKMOV_B, BLKMOV_W, BLKMOV_D
SWAP
MOV_BIR Move Byte with Immediate Read
MOV_BIW Move Byte with Immediate Write
4.8

Convert

Table 4- 8
Convert conversion
S7-200 instruction
B_I Byte to Integer
I_B Integer to Byte
I_DI Integer to Double Integer
DI_I Double Integer to Integer
DI_R Double Integer to Real
BCDI BCD to Integer
I_BCD Integer to BCD
ROUND Round to integer
26
Converted?
S7-1200 instruction
Yes
ADD
Yes
SUB
Yes
MUL
Yes
DIV
Yes
SQRT
Yes
SIN
Yes
COS
Yes
TAN
Yes
LN
Yes
EXP
No
Converted?
S7-1200 instruction
Yes
MOVE Data copy with source unchanged
Yes
BLKMOVE
Yes
SWAP
Yes
MOVE with immediate address
Yes
MOVE with immediate address
Converted?
S7-1200 instruction
Yes
CONVERT
Yes
Yes
Yes
Yes
Yes
Yes
Yes
ROUND
SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool
Manual, 1/2010

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents