0% found this document useful (0 votes)
12 views24 pages

TwinSAFE en 2022 - 03 TC3 - Training Function Blocks Integer

The document outlines the functionalities of TwinSAFE function blocks for integer operations, including addition, subtraction, multiplication, division, comparison, and monitoring of integer values. It details the error handling mechanisms for each function block, such as overflow and underflow conditions, as well as specific features like scaling, speed calculation, and load sensing. Additionally, it includes training material usage guidelines and contact information for Beckhoff Automation GmbH & Co. KG.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views24 pages

TwinSAFE en 2022 - 03 TC3 - Training Function Blocks Integer

The document outlines the functionalities of TwinSAFE function blocks for integer operations, including addition, subtraction, multiplication, division, comparison, and monitoring of integer values. It details the error handling mechanisms for each function block, such as overflow and underflow conditions, as well as specific features like scaling, speed calculation, and load sensing. Additionally, it includes training material usage guidelines and contact information for Beckhoff Automation GmbH & Co. KG.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

New Automation Technology

TwinSAFE
TwinSAFE System

Drives with TwinSAFE- Software


TwinSAFE-Option I/O-Terminals
TwinSAFE Function Blocks Integer
TwinSAFE

New FBs for


EL/ EJ 6910
Function Block ADD

Addition of integer values


▪ 2 integer value must be connected
(datatype adjustable INT16, INT32,
UINT16, UINT32)
▪ Internal calculations are done with 32-Bit
integer values
▪ The output AnalogOut contains the result
(datatype adjustable)
▪ If an overflow or underflow occurs during
the calculation.
The AnalogOut output is then set to 0, the
Error output is set to 1 (=ErrorState)
Function Block SUB

Subtraction of integer values


▪ 2 integer value must be connected
(datatype adjustable INT16, INT32,
UINT16, UINT32)
▪ Internal calculations are done with
32-Bit integer values
▪ The output AnalogOut contains the result
(datatype adjustable)
▪ If an overflow or underflow occurs during
the calculation.
The AnalogOut output is then set to 0, the
Error output is set to 1 (=ErrorState)
Function Block MUL

Multiplication of integer values


▪ 2 integer value must be connected
(datatype adjustable INT16, INT32,
UINT16, UINT32)
▪ Internal calculations are done with
32-Bit integer values
▪ The output AnalogOut contains the result
(datatype adjustable)
▪ If an overflow or underflow occurs during
the calculation.
The AnalogOut output is then set to 0, the
Error output is set to 1 (=ErrorState)
Function Block DIV

Division of integer values (1)


▪ 2 integer value must be connected
(datatype adjustable INT16, INT32,
UINT16, UINT32)
▪ Internal calculations are done with
32-Bit integer values
▪ The output AnalogOut contains the result
(datatype adjustable)
Function Block DIV

Division of integer values (2)


▪ If an overflow or underflow occurs during
the calculation.
The AnalogOut output is then set to 0, the
Error output is set to 1 (=ErrorState)!
AnalogIn2 =0 → AnalogOut =0 no Error!
▪ „Division Rounding“ specifies the rounding
method Floor – digits after the decimal
point are truncated Ceil – result is the next
higher integer value Round –
commercially rounded (2,4 -> 2/ 2,5 -> 3)
Function Block Compare

Comparison of integer values (1)


▪ Compare of analog/ integer values
▪ Choosing the architecture
1oo2, 2oo3, 3oo5
▪ Maximum tolerance and tolerance-time
configurable. In case of deviation, the
error reaction is delayed by the tolerance
time.
▪ Output IsValid is set when the
comparison is fulfilled
Function Block Compare

Comparison of integer values (2)


▪ CompOut = first value that meets the
criteria
▪ If an Over- /Underflow is
detectedError=True,IsValid=FALSE,
CompOut=0
1oo2:
The two input values are compared for
equality. 2oo3 / 3oo5:
3-/ 5- values are compared with majoritiy
result (Voting 2 out of 3/ 3 out of 5)
Function Block LIMIT

Monitoring of integer values


▪ AnalogIn is connected to the integer value
which should be monitored
▪ Internal calculations are done with
32-Bit integer values
▪ The output InLimit will be set, when
MinValue ≤ AnalogIn ≤ MaxValue
▪ BelowMin = True if
AnalogIn < MinValue
▪ AboveMax = True if
AnalogIn > MaxValue
▪ MinValue and MaxValue can be either input
signals or parameters of the function block
▪ Error = True (=ErrorState) if
MinValue > MaxValue
Function Block Counter

Counter
▪ Boolean inputs are edge triggered
(positive edge 0 to 1)
▪ ActValue shows the actual counter value
group stopped -> ActValue =0
group starting -> ActValue = PresetValue
▪ CounterOut will be set if the counter limit
is reached
▪ CounterZero will be set on counter value 0
▪ Preset Value will be taken as actual value
on positive edge on the Reset input
Function Block Scale

Scaling of integer value (1)


▪ The AnalogIn input is multiplied with the
scaling factor and then divided before the
scaling offset (pos./ neg.) is added.
Parameter Multiplication first (FB
properties) defines the execution
sequence.
▪ AnalogOut contains the scaled value of
AnalogIn
▪ An error will be set in case of an overflow
or underflow during the scaling operation
Function Block Scale

Scaling of integer value (2)


▪ Watchdog can be configured to detect a
stuck-at error of the analog input no
change within watchdog-> StuckAtError
▪ The StuckAtError is not a FB error and
the TwinSAFE group does not enter an
error state. The application program must
respond to the StuckAtError.
Function Block Speed

Calculation of a speed value


▪ Position contains the input signal as an
integer value
▪ Time Interval is the parameter in which
time interval a speed value will be
calculated
▪ The output Speed contains the calculated
speed value in increments Position
change / Timeinterval
Function Block Load Sensing

Load Sensing
▪ For each x-value (AnalogInX) a y-value-
range (AnalogInY1 / Y2) will be checked
▪ The x-values and corresponding y-value
ranges are configured in a table
▪ A switch off level (y1, y2) and a warning
level (wy1, wy2) can be configured
▪ If Inactive = True the function is switched
off
▪ The Checkbox Outside defines if y-values
inside or outside of Y1 and Y2 are valid
OutsideArea=0: Y1[i] <= WY1[i] < WY2[i] <= Y2[i]
OutsideArea=1: WY1[i] <= Y1[i] < Y2[i] <= WY2[i]
Function Block Cam Monitor

Cam Monitor
electronic cam controller
▪ safe evaluation function block, which can
output the cam data (TDC, BDC,
UpwardsMove) according to the set fixed
values, depending on the current position.
▪ Excentric and pendulum stroke mode
possible
▪ The output UpwardsMove indicates that
the press is in upward motion after
passing through BDC. This signal can be
used for muting of light grids or for
accepting the control command at the
press.
Function Block SLI

Safe limited increment


▪ Positive edge on SLI input will latch the
Position value
▪ As long as SLI is TRUE the position value
will be checked to be between
latch position + Limit pos and
latch position - Limit neg
▪ PositionDiff gives the difference between
latch and current position
▪ SLIactive is TRUE when
SLI = TRUE and
the position is within the limits
▪ Error = TRUE when the position is outside
the specified limits
Function Block Envelope

Envelope
(checking the deceleration of InValue)
▪ function block checks that the InValue will not violate the envelope between
starting and target value (e.g. SS1 or SS2 safety function)
Function Block Envelope

Envelope
▪ With a falling edge at the input
SafeFunction the envelope is calculated
with the current value at InValue.
A linear Function between InValue +
Offset and TargetValue at the point current
time + MaxTime
▪ TargetValue is reached before Maxtime is
exceeded, SafeFunctionOut = FALSE
when Time after in Target is exceeded
▪ Error = TRUE when InValue violates the
envelope
Function Block Violation Counter

ViolationCounter
▪ Is used to realize a weighted error counter
▪ When enabled, each safety plc cycle the
counter value will be incremented or
decremented depending on the signal
state of Input
Input = TRUE -> Decrement
Input = FALSE -> Increment
▪ Increment and decrement steps and
counter limit can be configured
▪ The Actual counter value is shown on
ActViolationCnt
▪ While the counter value is within the
counter limits the output InputOK is set
Training material

This training material is provided to complement the presented training content. Outside the actual training
the material may only be used for internal purposes at the company of the course participant. In addition,
the material or extracts thereof may be used in end customer training for products containing Beckhoff
products, or for presentations, provided the presentation refers to Beckhoff products. Extracts or copies of
the training material must contain the following copyright acknowledgement: “© Beckhoff Automation
GmbH & Co. KG”.
The same applies to extracts from presentation material. The user of the material is solely responsible for
the completeness of extracts and copies. It is explicitly not permitted to offer commercial or free training for
Beckhoff products. This applies to training with and or without the training material. The training material
must not be edited, manipulated or modified.

Passing on of the aforementioned rights to third parties is not permitted.

Beckhoff Automation GmbH & Co. KG


Contact

Beckhoff Automation GmbH & Co. KG


Headquarters Phone: +49 5246 963-0
Huelshorstweg 20 E-Mail: [email protected]
33415 Verl Web: www.beckhoff.com
Germany

© Beckhoff Automation GmbH & Co. KG

All images are protected by copyright. The use and transfer to third parties is not permitted.

Beckhoff®, TwinCAT®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®, Safety over EtherCAT®, TwinSAFE®, XFC®, XTS® and
XPlanar® are registered trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this publication may be
trademarks whose use by third parties for their own purposes could violate the rights of the owners.

The information provided in this presentation contains merely general descriptions or characteristics of performance which in case of actual
application do not always apply as described or which may change as a result of further development of the products. An obligation to provide
the respective characteristics shall only exist if expressively agreed in the terms of contract.

You might also like