beautypg.com

201 l_tbsub - subtraction, L_tbsub, L_tbsub1 – Lenze E94A User Manual

Page 623: 5function blocks

background image

Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05

623

5

Function blocks

5.201

L_TbSub - subtraction

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

5.201

L_TbSub - subtraction

This FB carries out a subtraction without limitation.

Inputs

Outputs

Function library:

LenzeToolbox

Runtime software licence:

Motion Control HighLevel

Motion Control TopLevel

Identifier/data type

Information/possible settings

dnIn1

DINT

Minuend

dnIn2

DINT

Subtrahend

Identifier/data type

Value/meaning

dnOut

DINT

Differential value (result of the subtraction)

• No internal limitation, thus an overflow is possible:

• If the result > 2

31

-1: dnOut = dnIn1 - dnIn2 - 2

32

• If the result < 2

31

: dnOut = dnIn1 - dnIn2 + 2

32

GQ2XW

GQ,Q

GQ,Q

DE

/B7E6XE