Twinsafe Logic FB - en
Twinsafe Logic FB - en
TwinSAFE Logic FB
TwinCAT Function Blocks for TwinSAFE Logic Components
Table of contents
1 Notes on the documentation.................................................................................................................... 9
1.1 Disclaimer.......................................................................................................................................... 9
1.1.1 Trademarks ........................................................................................................................ 9
1.1.2 Patents ............................................................................................................................... 9
1.1.3 Limitation of liability .......................................................................................................... 10
1.1.4 Copyright.......................................................................................................................... 10
1.2 Documentation issue status ............................................................................................................ 11
1.3 References ...................................................................................................................................... 12
1.4 Staff qualification ............................................................................................................................. 13
1.5 Safety and instruction...................................................................................................................... 14
1.6 Beckhoff Support and Service......................................................................................................... 15
1.7 Notes on information security.......................................................................................................... 16
4 Function blocks....................................................................................................................................... 31
4.1 The function block AND .................................................................................................................. 31
4.1.1 Functional description ...................................................................................................... 31
4.1.2 Signal description............................................................................................................. 31
4.1.3 FB AND configuration in the TwinCAT System Manager................................................. 33
4.1.4 Display in TwinCAT 3....................................................................................................... 34
4.2 The function block OR..................................................................................................................... 34
4.2.1 Functional description ...................................................................................................... 34
4.2.2 Signal description............................................................................................................. 35
4.2.3 FB OR configuration in the TwinCAT System Manager................................................... 37
4.2.4 Display in TwinCAT 3....................................................................................................... 37
4.3 The function block OPMODE .......................................................................................................... 38
4.3.1 Functional description ...................................................................................................... 38
4.3.2 Signal description............................................................................................................. 39
4.3.3 Configuration of the FB OPMODE in the TwinCAT System Manager ............................. 42
4.3.4 Restart behavior............................................................................................................... 42
4.3.5 Display in TwinCAT 3....................................................................................................... 44
4.4 The function block ESTOP .............................................................................................................. 45
4.4.1 Functional description ...................................................................................................... 45
1.1 Disclaimer
Beckhoff products are subject to continuous further development. We reserve the right to revise the
operating instructions at any time and without prior announcement. No claims for the modification of products
that have already been supplied may be made on the basis of the data, diagrams and descriptions in these
operating instructions.
In these operating instructions we define all permissible use cases whose properties and operating
conditions we can guarantee. The use cases we define are fully tested and certified. Use cases beyond this,
which are not described in these operating instructions, require the approval of Beckhoff Automation GmbH
& Co KG.
1.1.1 Trademarks
Beckhoff®, TwinCAT®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®, Safety over EtherCAT®,
TwinSAFE®, XFC®, XTS® and XPlanar® are registered and licensed trademarks of Beckhoff Automation
GmbH.
The use of other brand names or designations by third parties may lead to an infringement of the rights of
the owners of the corresponding designations.
1.1.2 Patents
The EtherCAT technology is protected by patent rights through the following registrations and patents with
corresponding applications and registrations in various other countries:
• EP1590927
• EP1789857
• EP1456722
• EP2137893
• DE102015105702
1.1.4 Copyright
© Beckhoff Automation GmbH & Co. KG, Germany.
The distribution and reproduction of this document as well as the use and communication of its contents
without express authorization are prohibited.
Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a
patent, utility model or design.
Currentness
Please check whether you are using the current and valid version of this document. The current version can
be downloaded from the Beckhoff homepage at http://www.beckhoff.de/twinsafe. In case of doubt, please
contact Technical Support (see Beckhoff Support and Service [} 15]).
This original documentation is written in German. All other languages are derived from the German original.
Product features
The valid product properties are always those specified in the current manual. Further information given on
the product pages of the Beckhoff homepage, in emails or in other publications is not authoritative.
1.3 References
In addition to these operating instructions, the following documents form part of the overall documentation,
with the exception of the machinery directive:
The trained specialist personnel must ensure that the applications and use of the described product meet all
safety requirements. This includes all applicable and valid laws, regulations, provisions and standards.
Trained specialists
Trained specialists have extensive technical knowledge from studies, apprenticeships or technical training.
Understanding of control technology and automation is available. Trained specialists can:
• Independently identify, avoid and eliminate sources of hazard.
• Apply relevant standards and directives.
• Implement specifications from accident prevention regulations.
• Evaluate, prepare and set up the workplaces.
• Evaluate, optimize and execute work independently.
Observe the warnings in the chapters so that you can handle and work with the product as intended and
safely.
Explanation of symbols
Signal words
DANGER
Hazard with high risk of death or serious injury.
WARNING
Hazard with medium risk of death or serious injury.
CAUTION
There is a low-risk hazard that could result in medium or minor injury.
NOTICE
Notes
The environment, equipment, or data may be damaged.
Beckhoff Support offers technical advice on the use of individual Beckhoff products and system planning.
The employees support you in the programming and commissioning of sophisticated automation systems.
Hotline: +49 5246/963-157
E-mail: support@beckhoff.com
Web: www.beckhoff.com/support
Training
Training in Germany takes place in our training center at the Beckhoff headquarters in Verl, at subsidiaries
or, by arrangement, at the customer's premises.
Hotline: +49 5246/963-5000
E-mail: training@beckhoff.com
Web: www.beckhoff.com/training
Service
The Beckhoff Service Center supports you with after-sales services such as on-site service, repair service or
spare parts service.
Hotline: +49 5246/963-460
E-mail: service@beckhoff.com
Web: www.beckhoff.com/service
Download area
In the download area you can obtain product information, software updates, the TwinCAT automation
software, documentation and much more.
Web: www.beckhoff.com/download
Headquarters
For the addresses of our worldwide locations, please visit our website at Global Presence.
In addition, the recommendations from Beckhoff regarding appropriate protective measures should be
observed. Further information regarding information security and industrial security can be found in our
https://www.beckhoff.com/secguide.
Beckhoff products and solutions undergo continuous further development. This also applies to security
functions. In light of this continuous further development, Beckhoff expressly recommends that the products
are kept up to date at all times and that updates are installed for the products once they have been made
available. Using outdated or unsupported product versions can increase the risk of cyber threats.
To stay informed about information security for Beckhoff products, subscribe to the RSS feed at https://
www.beckhoff.com/secinfo.
The operator must comply with all the requirements and instructions specified in this documentation in order
to fulfill his duty of care. This includes in particular that you
• comply with the provisions defined in the chapter Limitation of liability [} 10].
• only operate the TwinSAFE component when it is in perfect working order.
• provide the operating instructions in a legible condition and complete at the place of use of the
TwinSAFE component.
• do not remove the safety markings attached to the TwinSAFE component and maintain their legibility.
3 System description
The TwinSAFE system consists of safe inputs, safe outputs and logic modules. The TwinSAFE logic
contains function blocks that are parameterized and linked to each other and that form the safety-related
logic. Free programming is not possible. In addition to the non-safety-related logic configuration a fieldbus
configuration is required for mapping the TwinSAFE data packets. These functions are realized via the
TwinCAT System Manager or TwinCAT 3. The safety-relevant TwinSAFE Verifier or TwinCAT 3 loads the
TwinSAFE project onto the logic module and checks the project.
The TwinSAFE Logic Terminal can communicate, via the fieldbus-independent and certified TwinSAFE
protocol with safe input and output terminals, and also via further logic terminals. The TwinSAFE protocol is
the Safety-over-EtherCAT (FSoE) protocol, as disclosed in the EtherCAT Technology Group. For more
information please visit www.ethercat.org.
The function blocks have parameters that you can define for specific applications.
A TwinSAFE connection is the unique assignment of a TwinSAFE device to a TwinSAFE group. Only the
function blocks belonging to this TwinSAFE group can be linked to the inputs and outputs of an assigned
TwinSAFE connection. If additional groups are to access the inputs and outputs, you can use the function
block DECOUPLE.
Errors of the TwinSAFE communication within the TwinSAFE group and errors within a function block affect
the complete TwinSAFE group. The TwinSAFE group stops all associated function blocks, which then switch
their outputs into a safe state (FALSE). Errors in the TwinSAFE Logic lead to the entire TwinSAFE Logic
being switched off.
The safe state is always the non-energized state at the output, which corresponds to logical 0. The data of a
TwinSAFE connection (and therefore of a TwinSAFE input terminal or TwinSAFE output terminal) are always
assigned to exactly one TwinSAFE group.
A communication error is indicated by the output ComErr of the TwinSAFE group and acknowledged via the
input ErrAck. A function block error is displayed on the output FbErr and acknowledged on the same input
ErrAck as the communication error. An error on the local outputs (only KL6904) is displayed on the third
output OutErr and once again acknowledged by the same input ErrAck. The safe state of the TwinSAFE
group outputs is removed once the error is no longer present and has been acknowledged.
In addition, the TwinSAFE group has an input Run, which can be used to start and stop the processing of the
assigned function blocks. All TwinSAFE group assigned outputs are in a safe state when stopped. For the
EL6910 and newer logics the input Run must always be linked with a standard signal.
NOTICE
Run and ErrAck of the TwinSAFE group
The error acknowledgement is not automatic, i.e. the input ErrAck must always be linked with a standard
signal.
For the EL6910 and newer logics, the input Run must also always be linked with a standard signal.
Standard-Out FALSE:
All assigned function blocks have no errors.
Local-Out
COM ERR TwinSAFE-Out TRUE:
FB-In At least one TwinSAFE connection of TwinSAFE group has an error.
Standard-Out FALSE:
All TwinSAFE connections of the TwinSAFE group have no errors.
Local-Out
OUT ERR TwinSAFE-Out TRUE:
FB-In At least one locally assigned output of the TwinSAFE group has an error.
Standard-Out FALSE:
Local-Out All local outputs assigned to the TwinSAFE group have no error.
This only applies to TwinSAFE components that have local outputs.
The group state and diagnostics (see Group info data [} 29]) can be loaded via the group properties in the
cyclic process image. The following tables show the possible values.
A communication partner is thus always the TwinSAFE master, the other the TwinSAFE slave. The
TwinSAFE Logic is always the TwinSAFE master in a TwinSAFE connection to a TwinSAFE input or
TwinSAFE output. In the TwinSAFE connection to another TwinSAFE Logic it may be a TwinSAFE slave.
This assignment is automatically specified by the TwinCAT System Manager, although it can also be defined
by the user.
Both the TwinSAFE master and the TwinSAFE slave have a FSoE address (Safety-over-EtherCAT) that can
be set on the respective TwinSAFE terminal via a DIP switch in order to ensure that any mix-up of the
TwinSAFE data packets is always detected. These FSoE addresses are checked within the TwinSAFE
communication and must be unambiguous in the control system. The TwinSAFE Verifier for each TwinSAFE
logic terminal checks that.
If there are several TwinSAFE logic terminals in the control system, the user must ensure that FSoE
addresses are not assigned more than once. The TwinSAFE verifier can only check one TwinSAFE logic
terminal.
NOTICE
FSoE addresses not assigned more than once
Ensure that unique FSoE addresses are assigned within a configuration.
For each TwinSAFE connection a watchdog time and the corresponding FSoE address for the
communication devices must be set. TwinCAT 2 offers the option of setting a SIL level, however this setting
is not supported at the moment and has no effects on the safety behavior of the system. In another
configuration option a module error (Hardware error or diagnostic message) in the TwinSAFE communication
partner can be set to trigger a communication error in the TwinSAFE group.
The EL6910/EJ6910 support activation of a ComErrAck at each connection. If this signal is connected, the
respective connection must be reset after a communication error via the signal ComErrAck, in addition to the
ErrAck of the TwinSAFE group.
Fig. 1: Connection
TwinSAFE groups have inputs and outputs that can be assigned offline and viewed online, as illustrated
below.
If the checkboxes or the properties ‘Map State’ and ‘Map Diag’ are set, the state and diagnostic data for the
group are copied into the cyclic process image and can be linked directly with PLC variables.
The EL6910/EJ6910 additionally reports events in a diag history. It contains events with timestamps. The
user can configure which data are to be stored in the history.
NOTICE
KL6904
With the KL6904 copying of the diagnostic information to the cyclic process image is only possible to a
limited extent. The checkboxes ‘Map State’ and ‘Map Diag’ are not available.
If the checkboxes ‘Map State’ and ‘Map Diag’ for the individual TwinSAFE FBs are set, the status and
diagnostic data for the FBs are copied into the cyclic process image and can be linked directly with PLC
variables. The description of the status and diagnostic values can be found under the respective FBs.
NOTICE
KL6904
With the KL6904 copying of the diagnostic information to the cyclic process image is only possible to a
limited extent. The checkboxes ‘Map State’ and ‘Map Diag’ are not available.
If the checkboxes ‘Map State’ and ‘Map Diag’ for the individual TwinSAFE connections are set, the status
and diagnostic data for the connections are copied into the cyclic process image and can be linked directly
with PLC variables. In addition, the safe inputs and outputs can be copied into the cyclic process image and
used for diagnostic purposes.
NOTICE
KL6904
With the KL6904 copying of the diagnostic information to the cyclic process image is only possible to a
limited extent. The checkboxes ‘Map State’, ‘Map Diag’‚ ‘Map Inputs’ and ‘Map Outputs’ are not available.
The button “Com Err Ack” is also not available.
Value Description
During the transition to or in the Session state, a session ID is transferred from the FSoE
master to the FSoE slave, which in turn responds with its own session ID.
102 (0x66) Connection state:
In the Connection state, a connection ID is transferred from the FSoE master to the FSoE
slave.
103 (0x67) Parameter state:
In Parameter state safe communication parameters and device-specific application
parameters are transferred.
104 (0x68) Data state:
In the Data state, FSoE cycles are transmitted until either a communication error occurs or
an FSoE node is stopped locally.
105 (0x69) Shutdown state:
In the Shutdown state the connection was shut down by one of the communication partners.
(EL6910 or newer: connection was shut down because a shutdown command was received)
106 (0x6A) Shutdown-Deactive state:
EL6910 or newer: Connection was shut down because the connection was shut down via
the Deactivate inputs of the function block.
Fig. 7: Diag History of the EL6910 with a Com Error due to a false CRC
The Info Data is shown in the I/O tree structure below the TwinSAFE logic in the process image. From here,
these signals can be linked with PLC variables.
The status information and diagnostic information contained are identical to the previous description of
TwinCAT 2.
The Info Data is shown in the I/O tree structure below the TwinSAFE logic in the process image. From here,
you can link the signals with PLC variables.
Fig. 12: Function block Info Data in the I/O tree structure
Information on status and diagnostics of the FBs can be found in the respective function block descriptions.
The Info Data is shown in the I/O tree structure below the TwinSAFE logic in the process image. From here,
these signals can be linked with PLC variables.
Fig. 14: TwinSAFE group Info Data in the I/O tree structure
4 Function blocks
The function blocks have a fixed functionality. The function blocks can be configured via parameters or
properties. The inputs or outputs of a function block can be inputs or outputs of the local process image, but
outputs of function blocks can also be linked with inputs of other function blocks.
The AndIn1 input differs from the AndIn2-AndIn8 inputs in such a way that it can also be linked with a
standard input. This makes it possible to switch off a safe output using a standard signal. Outputs cannot be
switched on but only released using standard signals, since at least two inputs must always be linked for FB
AND (and the second input is a safe one, which prevents switching on).
FB AND outputs
Offset Name Permitted type Data type Description
1.0 AndOut TwinSAFE-Out BOOL Output channel
FB-In
Standard-Out
Local-Out
Value Description
2.0 STOP
The FB AND module assumes the STOP state if the input FbRun is FALSE.
The outputs assume the following values:
AndOut=0
3.0 SAFE
The SAFE state is assumed if one or more of the active inputs AndIn1-AndIn8 is not 1
(ACTIVE_ANDIN=FALSE).
The outputs assume the following values:
AndOut=0
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The Map State and Map Diag checkboxes do not exist in the case of the KL6904.
Use the Settings buttons to the right of two AndIn inputs to configure their behavior. The inputs are always
single-channel. Discrepancy monitoring cannot be used with the FB AND.
The 'AndIn(x)' buttons can only be selected if the corresponding input has been activated via the Settings
button. In the default setting all inputs are disabled.
The FB AND input variables are linked using the 'AndIn(x)' buttons.
The output variable of the FB AND are linked using the 'AndOut' button.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
The FB AND does not supply any error information and therefore the error button is basically deactivated.
FB OR outputs
Offset Name Permitted type Data type Description
1.0 OrOut TwinSAFE-Out BOOL Output channel
FB-In
Standard-Out
Local-Out
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The Map State and Map Diag checkboxes do not exist in the case of the KL6904.
Their characteristics are configured with the setting buttons on the right near the two OrIn inputs, whereby
the inputs are always single-channel. A discrepancy monitoring cannot be used for the OR.
The 'OrIn(x)' buttons can only be selected if the corresponding input has been activated via the Settings
button. In the default setting all inputs are disabled.
The output variable of the FB OR are linked using the 'OrOut' button.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
The FB OR does not supply any error information and therefore the error button is basically deactivated.
The FB OPMODE sets the corresponding output only if exactly one input is set ("1"). The other outputs
remain in the safe state ("0"). All outputs are in a safe state if there is none or more than one input is set.
If the Restart input is active, the safe state of the outputs is only exited when starting and changing the
operation mode by a rising and falling edge on the Restart input (see also chapter 3.3.4 [} 42] Restart
behavior [} 42]). No time monitoring of the restart signal takes place. The output is switched on when the
restart signal changes from TRUE to FALSE.
A discrepancy time can be specified to monitor the change from one operation mode to the next.
NOTICE
Number of inputs
At least two inputs of FB OPMODE must be connected.
Type Description
Local-Out TwinSAFE output at the KL6904 (not available for EL6900)
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The checkboxes 'Map State' and 'Map Diag' are not available for the KL6904.
The manual restart is activated using the "'Activated' " checkbox on the right near the 'Restart' button.
The inputs are activated via the 'Activated' check boxes to the right of the 'OpIn (x)' button.
The 'Restart' or 'OpIn(x)' buttons can only be selected, once the corresponding check box has been selected.
The FB OPMODE input variables are linked using the 'Restart' and 'OrIn(x)' buttons.
The FB OPMODE output variables are linked using the 'Error' and 'OpOut(x)' buttons.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
Restart input
The function block expects a push button with make contact at the restart input.
CAUTION
Restart
If the risk and hazard analysis indicates that a restart is to be implemented in the safety controller, the
restart signal must be applied to a safe input.
Sample 1
The following diagram shows an error-free behavior with a change of the operation mode and subsequent
acknowledgement of the OPMODE function block via the restart input.
Sample 2
In the following diagram the Restart is set to TRUE before the operation mode change takes place.
Changing the input OpIn1 from TRUE to FALSE results in a switch to state 3. Once operation mode OpIn2 is
TRUE, the system changes to the Start state (FB State 6), since the Restart input is already TRUE. The
output OpOut2 is activated by changing the Restart input from TRUE to FALSE.
The first output (EStopOut) goes immediately, and the second output (EStopDelOut) after a configurable
time delay, into the safe state ("0"), once an input requests the safe state. Each FB output can be linked to
several outputs. Therefore, several outputs that switch off immediately (EStopOut) or with a delay
(EStopDelOut) can be realized with just one FB ESTOP.
In order to exit the safe state of the outputs, a rising and falling edge must be detected at the Restart input
(see also chapter 3.4.4 [} 50] Restart behavior [} 50]). No time monitoring of the restart signal takes place.
A feedback loop can be activated for both outputs. The output EStopOut is returned to the input EDM1 and
the output EStopDelOut to the input EDM2 through external wiring. The EDM inputs are checked as soon as
the FB changes to the START status (6) (see 3.4.4 [} 50] Restart behavior [} 50]). If the EDM inputs then
do not have the signal state "1", the FB ESTOP enters the error state and sets the Error output to 1. The
error state can only be exited again by means of an acknowledgement via the ERR_ACK input of the
associated TwinSAFE group.
Furthermore, the following inputs can be combined to pairs: EStopIn1 / EStopIn2, EStopIn3 / EStopIn4,
EStopIn5 / EStopIn6, EStopIn7 / EStopIn8. The signal states of the two inputs may only deviate from each
other within a configurable discrepancy time. If this discrepancy time is exceeded for an input pair, the FB
ESTOP also enters the error state (FB Error). The error state can only be exited through acknowledgement
via the ERR_ACK input of the associated TwinSAFE group.
In the FB error state, the outputs assume the safe state "0", only the Error output is "1".
The characteristics for acknowledging a discrepancy error can be set via the checkbox Safe Inputs after Disc
Error. If the checkbox is checked, both inputs of the input group that has caused the discrepancy error have
to switch to safe state simultaneously before the error can be reset.
FB ESTOP outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL TRUE:
FB-In The discrepancy time monitoring of an input pair, or
Standard-Out one of the feedback loops, has found an error. The
Local-Out error reset must be carried out via the ERR_ACK input
of the related TwinSAFE group.
FALSE:
No error was found.
1.0 EStopOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Local-Out
2.0 EStopDelOut TwinSAFE-Out BOOL 2nd output channel, the safe state corresponds to a
FB-In logical 0. The safe state is output with a delay, which
Standard-Out corresponds to the parameterized Delay Time.
Local-Out
Type Description
TwinSAFE-Out TwinSAFE output, e.g. on an EL2904/KL2904
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
Local-Out TwinSAFE output at the KL6904 (not available for EL6900)
Value Description
The outputs assume the following values:
Error=1
EStopOut=0
EStopDelOut=0
5.0 RESET
If no more errors are present after an error has occurred and the ErrAck input of the associated
group is set to TRUE, the FB ESTOP module assumes the RESET state.
The outputs assume the following values:
Error=0
EStopOut=0
EStopDelOut=0
6.0 START
The FB ESTOP module assumes the START state if the Restart input is TRUE in order to wait for
a rising and falling edge of the Restart input before assuming the RUN state and the outputs leave
the safe state.
The outputs assume the following values:
Error=0
EStopOut=0
EStopDelOut=0
8.0 DELAYOUT
The FB ESTOP module assumes the DELAYOUT state if at least one of the active EStopIn inputs
has requested the safe state, but the delay time for the EStopDelOut output has not yet expired.
The outputs assume the following values:
Error=0
EStopOut=0
EStopDelOut=1
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The checkboxes 'Map State', 'Map Diag' and 'Safe Inputs after Discrepancy Error' are not available in the
KL6904.
The characteristics of an input pair are configured with the setting buttons on the right near the two EStopIn
inputs of this input pair.
The 'EStopIn(x)' buttons can only be selected if the corresponding input has been activated via the Settings
button. In the default state all inputs are disabled.
The FB ESTOP input variables are linked using the 'Restart', 'EStopIn(x)' and 'EDM(x)' buttons.
The corresponding feedback loop is activated using the 'Activated' checkbox on the right near the 'EDM(x)'
buttons. The 'EDM(x)' button can only be selected, if the associated feedback loop is activated.
The FB ESTOP output variables are linked using the 'Error', 'EStopOut' and 'EStopDelOut' buttons.
The delay time of the 'EStopDelOut' output is configured via the selection box 'Delay-Time'.
The characteristics for acknowledging a discrepancy error can be set via the checkbox ‘Safe Inputs after
Disc Error’. If the checkbox is checked, both inputs of the input group that has caused the discrepancy error
have to switch to safe state simultaneously before the error can be reset.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
Restart input
The function block expects a push button with make contact at the restart input.
CAUTION
Restart
If the risk and hazard analysis indicates that a restart is to be implemented in the safety controller, the
restart signal must be applied to a safe input.
Sample 1
The following diagram shows the behavior when an emergency stop is triggered via Estop-In and
subsequent acknowledgement of the ESTOP function block via the Restart input. At least one of the EDM
inputs of the FB is active.
Sample 2
The following diagram shows the behavior of the ESTOP function block, where the change of the Restart
signal from FALSE to TRUE takes place before the change of the EStop inputs from FALSE to TRUE. The
Start state (FB state 6) is only assumed if both signals are TRUE. The output is enabled when the Restart
input changes from TRUE to FALSE. At least one of the EDM inputs of the FB is active.
Sample 3
In the following diagram the Restart input is set to TRUE before the emergency stop event takes place. Due
to the Restart input signal, the EDM signal is checked immediately when the EStop-In input changes from
TRUE to FALSE. This immediately leads to an EDM error and to the shutdown of the entire TwinSAFE
group.
Sample 4
If the EDM signal of the ESTOP function block is not evaluated, the time when the change from FALSE to
TRUE may occur at the Restart input is not monitored. This may also be the case before the emergency stop
event. In this case the FB output is enabled when the Restart input changes from TRUE to FALSE.
NOTICE
EDM signal
If the EDM input of the ESTOP function block does not prevent the device from being switched on again in
the event of a fault, the user must take further measures to prevent this. (refer also to the TwinSAFE
Application Guide, e.g. chapter 2.3).
The FB ESTOP can also be used to monitor the change of the state of the feedback signal (EDMn) when the
outputs are switched on.
The inputs EDM1 and EDM2 have been assigned a further parameter Reset Time (ms). Open the properties
of the EDMx by right-clicking on the EDMx input of the ESTOP function block. If this value is not equal to 0,
the timer is started when the output EStopOut is activated. If the EDM input does not switch to FALSE within
this time, a function block error is set and the outputs are switched off.
The function Safe Inputs after Disc Error is activated by default for the ESTOP function block in the EL6910
and cannot be disabled. The display of the corresponding parameter and its value only applies if the function
block is used on an EL6900; it can be ignored for the EL6910. A warning is issued if the parameter is set to
TRUE under an EL6910.
When an input requests the safe state, the MonOut output immediately switches to the safe state ("0") and
the MonDelOut output switches after a configurable delay. Each FB output can be linked to several outputs.
Therefore, several outputs that switch off immediately (MonOut) or with a delay (MonDelOut) can be realized
with just one FB MON.
In addition there are two Secure inputs, with which the request of the safe state can be bypassed through the
MonIn inputs. The Secure inputs can also be parameterized as break contacts or as make contacts.
The FB restart input can be activated. In order to exit the safe state of the outputs, a rising and falling edge
must be detected at the Restart input with restart active (see also chapter 3.5.4 [} 60] Restart behavior
[} 60]). No time monitoring of the restart signal takes place. In case of an inactive restart the safe state is
exited once the MonIn or Secure inputs no longer request the safe state.
A feedback loop must be activated for both outputs. The output MonOut is returned to the input EDM1 and
the output MonDelOut to the input EDM2 through external wiring. The EDM inputs are checked as soon as
the FB changes to the START status (6) (see Restart behavior [} 60]).
If Restart is enabled, the FB MON assumes the error state (FB Error) and sets the Error output to 1 if the
EDM inputs do not have the signal state TRUE. The error state can only be exited again by acknowledging
via the ERR_ACK input of the associated TwinSAFE group.
If the restart is deactivated, FB MON remains in the safe state if the EDM inputs do not have the signal state
"1".
An EDM error can therefore only be detected, when the manual restart is active.
NOTICE
EDM monitoring error
FB MON only reports an EDM error if manual restart is active. If manual restart is not active, the FB MON
remains in SAFE state if an EDM error is present.
The following inputs can be combined to pairs: MonIn1 / MonIn2, MonIn3 / MonIn4, Secure1 / Secure2. The
signal states of the two inputs may only deviate from each other within a configurable discrepancy time. If
this discrepancy time is exceeded for an input pair, the FB MON enters the error state (FB Error).
The error state can only be exited through acknowledgement via the ERR_ACK input of the associated
TwinSAFE group
In the FB error state, the outputs assume the safe state "0", only the Error output is "1".
The characteristics for acknowledging a discrepancy error can be set via the checkbox Safe Inputs after Disc
Error. If the checkbox is set, both inputs of the input group that has caused the discrepancy error have to
return logical zero simultaneously before the error can be reset.
The safe state must have been requested at least once on each active MonIn input after starting the FB
MON if the manual function test is active, before an edge of the restart input reacts.
FB MON outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL TRUE:
FB-In The discrepancy time monitoring of an input pair, or
Standard-Out one of the feedback loops, has found an error. The
Local-Out error reset must be carried out via the ERR_ACK input
of the related TwinSAFE group.
FALSE:
No error was found.
1.0 MonOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Local-Out
2.0 MonDelOut TwinSAFE-Out BOOL 2nd output channel, the safe state corresponds to a
FB-In logical 0. The safe state is output with a delay, which
Standard-Out corresponds to the parameterized Delay Time.
Local-Out
Bit Description
2.0 Discrepancy error in Secure input group
4.0 EDM monitoring error EDM1
5.0 EDM monitoring error EDM2
8.0 Discrepancy error input group 1 with activated option "Safe Inputs after Disc Error" (set in addition to
bit 0)
9.0 Discrepancy error input group 2 with activated option "Safe Inputs after Disc Error" (set in addition to
bit 1)
10.0 Discrepancy error input group Secure with activated option "Safe Inputs after Disc Error" (set in
addition to bit 2)
Value Description
Error=0
MonOut=0
MonDelOut=1
9.0 FUNCTEST
The FB MON module assumes the FUNCTEST state if the manual function test is enabled in order to test all active MonIn
inputs once after startup. This state can only be assumed if the manual function test is active in the configuration data.
The outputs assume the following values:
Error=0
MonOut=0
MonDelOut=0
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The checkboxes 'Map State', 'Map Diag' and 'Safe Inputs after Discrepancy Error' are not available in the
KL6904.
The manual restart is activated using the "Manual" checkbox on the right near the 'Restart' button. The
'Restart' button can only be selected, if the manual restart is activated.
The characteristics of the input pair are configured with the setting buttons on the right near the two MonIn or
Secure inputs of an input pair. The 'MonIn(x)' and 'Secure(x)' buttons can only be selected if the
corresponding input has been activated via the Settings button. In the default state all inputs are disabled.
The corresponding feedback loop is activated using the 'Activated' checkbox on the right near the 'EDM(x)'
buttons. The 'EDM(x)' button can only be selected, if the associated feedback loop is activated.
The FB MON input variables are linked using the 'Restart', 'MonIn(x)', 'Secure(x)' and 'EDM(x)' buttons.
The manual function test is activated using the 'Manual Function Test' checkbox.
The FB MON output variables are linked using the 'Error', 'MonOut' and 'MonDelOut' buttons.
The delay time of the 'MonDelOut' output is configured via the selection box 'Delay-Time'.
The characteristics for acknowledging a discrepancy error can be set via the checkbox ‘Safe Inputs after
Disc Error’. If the checkbox is checked, both inputs of the input group that has caused the discrepancy error
have to switch to safe state simultaneously before the error can be reset.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
Restart input
The function block expects a push button with make contact at the restart input.
CAUTION
Restart
If the risk and hazard analysis indicates that a restart is to be implemented in the safety controller, the
restart signal must be applied to a safe input.
Sample 1
The following diagram shows the behavior when an event is triggered via MonIn and subsequent
acknowledgement of the MON function block via the Restart input. At least one of the EDM inputs of the FB
is active.
Sample 2
The following diagram shows the behavior of the MON function block; the rising edge of the Restart occurs
before the rising edge of the MonIn inputs. The Start state (FB state 6) is only assumed if both signals are
TRUE. The output is enabled with the falling edge at the Restart input. At least one of the EDM inputs of the
FB is active.
Sample 3
In the following diagram the Restart is set to TRUE before the MonIn event takes place. With the falling edge
of the MonIn input, the EDM signal is immediately checked due to the Restart input signal. This immediately
leads to an EDM error and to the shutdown of the entire TwinSAFE group. At least one of the EDM inputs of
the FB is active.
The FB MON can also be used to monitor the change of the state of the feedback signal (EDMn) when the
outputs are switched on.
The inputs EDM1 and EDM2 have been assigned a further parameter Reset Time (ms). Open the properties
of the EDMx by right-clicking on the EDMx input of the MON function block. If this value is not equal to 0, the
timer is started when the output MonOut is activated. If the EDM input does not switch to FALSE within this
time, a function block error is set and the outputs are switched off.
The function Safe Inputs after Disc Error is activated by default for the MON function block in the EL6910
and cannot be disabled. The display of the corresponding parameter and its value only applies if the function
block is used on an EL6900; it can be ignored for the EL6910. A warning is issued if the parameter is set to
TRUE under an EL6910.
A TwinSAFE connection to a TwinSAFE I/O terminal is always assigned to a TwinSAFE group. Via the FB
DECOUPLE it is possible to pass on the signals of a TwinSAFE connection to other TwinSAFE groups and
thus decouple them.
The function block within an existing TwinSAFE group can be used to subdivide the signals.
The function block must be used in a separate TwinSAFE group in case the signals should be decoupled,
since all used outputs of the TwinSAFE group can be switched off in case of a connection communication
error.
The input signals of a TwinSAFE connection can now be linked with the FB DECOUPLE inputs, and the
outputs distributed over the different TwinSAFE groups. It operates the same way in the other directions, the
outputs of a TwinSAFE connection are linked with the FB DECOUPLE outputs, the FB DECOUPLE inputs
can once again come from various TwinSAFE groups.
FB DECOUPLE outputs
Offset Name Permitted type Data type Description
8.0 DecOut1 TwinSAFE-Out BOOL 1st output channel
FB-In
Standard-Out
Local-Out
9.0 DecOut2 TwinSAFE-Out BOOL 2nd output channel
FB-In
Standard-Out
Local-Out
10.0 DecOut3 TwinSAFE-Out BOOL 3rd output channel
FB-In
Standard-Out
Local-Out
11.0 DecOut4 TwinSAFE-Out BOOL 4th output channel
FB-In
Standard-Out
Local-Out
12.0 DecOut5 TwinSAFE-Out BOOL 5th output channel
FB-In
Standard-Out
Local-Out
13.0 DecOut6 TwinSAFE-Out BOOL 6th output channel
FB-In
Standard-Out
Local-Out
14.0 DecOut7 TwinSAFE-Out BOOL 7th output channel
FB-In
Standard-Out
Local-Out
15.0 DecOut8 TwinSAFE-Out BOOL 8th output channel
FB-In
Standard-Out
Local-Out
Type Description
TwinSAFE- TwinSAFE output, e.g. on an EL2904/KL2904
Out
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
Local-Out TwinSAFE output at the KL6904 (not available for EL6900)
If the checkboxes 'Map State' and 'Map Diag' are checked, the status and diagnostic data of the FB are
copied to the cyclic process image.
NOTICE
KL6904
The checkboxes 'Map State' and 'Map Diag' are not available for the KL6904.
The FB DECOUPLE input variables are linked using the 'DecIn(x)' buttons.
The FB DECOUPLE output variables are linked using the 'DecOut(x)' buttons.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
The FB DECOUPLE does not supply any error information and therefore the error button is basically
deactivated.
Each input group can be configured as a single-channel input, two-channel input or two-channel input with
discrepancy time monitoring. In addition, time monitoring up to 2500 ms between the two input groups can
be defined.
Each input can be configured as break contact (NC) or make contact (NO).
NOTICE
KL6904
The TWOHAND function block is not available in the KL6904.
FB TWOHAND outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL TRUE:
FB-In The discrepancy time monitoring for a two-channel
Standard-Out input group has detected an error. The error must be
acknowledged via the ERR_ACK input of the
corresponding TwinSAFE group
FALSE:
No error was found
1.0 TwoHandOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Value Description
2.0 STOP
If the input FbRun=FALSE, the FB TWOHAND module assumes the STOP state.
The outputs assume the following values:
Error=0
TwoHandOut=0
3.0 SAFE
The FB TWOHAND module assumes the SAFE state if all active inputs are FALSE. If all active
inputs of an input group are TRUE, the FB TWOHAND module leaves the SAF state.
The outputs assume the following values:
Error=0
TwoHandOut=0
4.0 ERROR
If the FB TWOHAND module detects an error, the FB TWOHAND module switches to the ERROR
state and transfers the corresponding diag message to the GROUP module.
The outputs assume the following values:
Error=1
TwoHandOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the associated
group is set to TRUE, the FB TWOHAND module assumes the RESET state.
The outputs assume the following values:
Error=0
TwoHandOut=0
11.0 1BUTTON
If all active inputs of the first input group are TRUE and at least one active input of the second input
group is FALSE, the FB TWOHAND module assumes the 1BUTTON state. The FB TWOHAND
module only assumes the 1BUTTON state from the SAF state.
The outputs assume the following values:
Error=0
TwoHandOut=0
12.0 2BUTTON
If all active inputs of the second input group are TRUE and at least one active input of the first input
group is FALSE, the FB TWOHAND module assumes the 2BUTTON state. The FB TWOHAND
module only assumes the 2BUTTON state from the SAF state.
The outputs assume the following values:
Error=0
TwoHandOut=0
13.0 RELEASE
If at least one active input is FALSE, the FB TWOHAND module assumes the RELEASE state. If all
active inputs are FALSE, the FB TWOHAND module leaves the RELEASE state.
The outputs assume the following values:
Error=0
TwoHandOut=0
Discrepancy time monitoring between the two input pairs is activated via the 'Discrepancy' checkbox. The
discrepancy time can be set in the selection box next to the checkbox (max. 2500 ms).
The characteristics of the input pair are configured with the setting buttons on the right near the two
TwoHand(x) inputs of an input pair. The 'TwoHand(x)' buttons are only available once the corresponding
input was activated. In delivery state are all inputs are disabled.
The FB TWOHAND input variables are linked using the 'TwoHand(x)' buttons.
The buttons 'Error' and 'TwoHandOut' are used to link the output variables of FB TWOHAND.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
MUTING can be enabled via the Enable input. If the input is logic 0 an interruption of the protective device
results in immediate shutdown of the FB output. If the input is logical 1 the only takes place if the MUTING
sequence is violated.
The 'Sequential Inputs' checkbox can be used to specify whether 2 inputs are checked in parallel or whether
each input is checked sequentially.
A filter time up to 500 ms can be set for the MUTING inputs in order to prevent bouncing of the MUTING
signals and therefore violation of the MUTING sequence.
The maximum duration of the MUTING process can be monitored via the 'Max. MUTINGTime' parameter.
The MUTING process starts with a logic 1 signal of the first MUTING input and ends with the logic 0 signal of
the last MUTING input. The value can be configured to a maximum of 10 minutes. The value 0 disables the
monitoring.
The 'MutingActive' output of the function block is set during the MUTING process.
The protective device (AOPD - Active Opto-electronic Protection Device, for example a light curtain), is
connected at the OSSDIn(x) inputs.
Feedback signals can be connected at the EDM inputs. In the default setting the inputs are disabled.
Direct outputs are connected via the ‘MuteOut’ button, outputs that are delayed by up to 30 seconds via the
‘MuteDelOut’ button.
NOTICE
KL6904
The MUTING function block is not available in the KL6904.
FB MUTING outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL TRUE:
FB-In The discrepancy time monitoring of a 2-channel input
Standard-Out group has detected an error, the muting sequence was
violated or the maximum muting time was exceeded.
The error reset must be carried out via the ERR_ACK
input of the related TwinSAFE group.
FALSE:
No error was found
1.0 MutingActive TwinSAFE-Out BOOL 1st output channel, indicates the active muting process
FB-In through logic 1.
Standard-Out
2.0 MuteOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
3.0 MuteDelOut TwinSAFE-Out BOOL 2nd output channel, the safe state corresponds to a
FB-In logical 0. The safe state is output with a delay, which
Standard-Out corresponds to the parameterized Output Delay Time
Type Description
FB-In TwinSAFE FB input
Value Description
8.0 DELAYOUT
The FB MUTING module assumes the DELAYOUT state if OssdInActive is FALSE and MutingEnable is FALSE and the delay
time for the MuteDelOut output has not yet expired. If a discrepancy error occurs in the DELAYOUT state, the FB MUTING
module only assumes the ERROR state after the output delay time has elapsed.
The outputs assume the following values:
Error=0
MutingActive=0
MuteOut=0
MuteDelOut=1
9.0 MUTING1 (figure 3-35 [} 78] number 2-3)
The outputs assume the following values:
Error=0
MutingActive=1
MuteOut=1
MuteDelOut=1
10.0 MUTING2 (figure 3‑35 [} 78] number 3-4)
Outputs see State 9
11.0 MUTING3 (figure 3-35 [} 78] number 4-5)
Outputs see State 9
12.0 MUTING4 (figure 3-35 [} 78] number 5-6)
Outputs see State 9
13.0 MUTING5 (figure 3-35 [} 78] number 6-7)
Outputs see State 9
14.0 MUTING6 (figure 3-35 [} 78] number 7-8)
Outputs see State 9
15.0 MUTING7 (figure 3-35 [} 78] number 8-9)
Outputs see State 9
16.0 MUTING8 (figure 3-35 [} 78] number 9-10)
Outputs see State 9
17.0 MUTING9 (figure 3-35 [} 78] number 10-11)
Outputs see State 9
An input through which MUTING can be enabled must be connected via the 'Enable' button.
The 'MUTING(x)' buttons are used to connect the MUTING sensors to the function block. Use the Settings
buttons to the right of two MUTING inputs to configure them. The 'MUTING (x)' buttons can only be selected
when the corresponding input has been activated. All inputs are deactivated in the default setting.
Two-channel evaluation with or without discrepancy time monitoring can be set if the checkbox “Sequential
Inputs” is not set. If the "Sequential Inputs" checkbox is set, only single-channel evaluation can be configured
via the Settings button. In addition, each input can be configured as a break contact (NC) or as a make
contact (NO).
The maximum permitted MUTING period can be set via the 'Max. MUTING Time' text box. If this time
exceeded the function block switches to ERROR state. The maximum MUTING period is 10 minutes. It the
value is set to 0 minutes, monitoring is disabled.
A filter time up to 500 ms can be activated for the MUTING(x) inputs via the "Filtertime MUTING Inputs"
checkbox.
The 'OSSDIn(x)' inputs are connected with the signals from the protective device. Use the Settings button to
the right of the OSSDIn inputs to configure them. The setting options include single- or two-channel
evaluation or two-channel evaluation with discrepancy time monitoring.
Direct outputs are connected via the 'MuteOut' button, delayed outputs via the 'MuteDelOut' button. The
delay time of the 'MuteDelOut' output is configured via the selection box 'Delay-Time'.
The corresponding feedback loop is active using the 'Activated' checkbox on the right near the 'EDM(x)'
buttons. The 'EDM(x)' button can only be selected, if the associated feedback loop is activated.
NOTICE
Error state
If the MUTING function was interrupted by an error, the user should ensure via the application that the
material can be removed from the MUTING area. Only then is an error acknowledgement possible.
Via the 'MutingActive' button a signal can be linked that can be used for a MUTING lamp, for example.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
The following screenshot shows the parameterization of FB MUTING for this case. The 'Sequential Inputs'
checkbox is checked. The 4 MUTING inputs are configured and wired as single-channel inputs.
The following screenshot shows the parameterization of FB MUTING for this case. The 'Sequential Inputs'
checkbox is not checked. The 4 MUTING inputs are configured and wired as two-channel inputs with
discrepancy time monitoring.
In addition to existing the options, the following additional functions are now available:
Switch-on monitoring checks whether signal Mon2 is set to 0 within the set time (maximum 10000 ms)
following a switch from 0 to 1 of signal Mon1.
Switch-off monitoring checks whether signal Mon2 is set to 1 within the set time (maximum 10000 ms)
following a switch from 1 to 0 of signal Mon1.
If the set monitoring time is exceeded, the FB EDM enters the error state (FbError) and sets the Error output
to 1. The error state can only be exited again by means of an acknowledgement via the ERR_ACK input of
the associated TwinSAFE group.
NOTICE
KL6904
The EDM function block is not available in the KL6904.
FB EDM outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL TRUE:
FB-In SwitchOn or SwitchOff times were exceeded.
Standard-Out FALSE:
No error occurred.
Value Description
15.0 MONON
If the input MonIn1=TRUE, the FB EDM module assumes the MONON state in order to
carry out switch-on monitoring.
The outputs assume the following values:
Error=0
The FB EDM input variables are linked using the 'Mon1' and 'Mon2' buttons.
Use the Settings button to right or the two Mon inputs to configure them. Only single-channel evaluation is
available. In addition the inputs can be configured as make contact (NO) or break contact (NC). In the default
state all inputs are disabled.
Use the ‘Switch-On Monitoring’ and ‘Switch-Off Monitoring’ selection boxes to set the switch-on and switch-
off delay time. Use the checkboxes to the left of the text fields to activate the corresponding monitoring time.
Both are disabled in the default state.
Use the 'Error' button to transfer a function block error to the connected output variable. In online mode the
state and error IDs are filled with corresponding information.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
The 'Switch-On Monitoring' and 'Switch-Off Monitoring' text boxes can be used to set the switch on- and
switch-off delay time. Monitoring is disabled if the value is set to 0 ms.
NOTICE
KL6904
The RS function block is not available in the KL6904.
FB RS outputs
Offset Name Permitted type Data type Description
1.0 RsOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Use the Settings button to the right of the Reset and Set inputs to activate the input signals and configure
them as make contact (NO) or break contact (NC). Both inputs are deactivated in the default state.
The 'Reset' and 'Set' buttons can be used to link the input variables of the FB RS.
The 'RsOut' button can be used to link the output variable of the FB RS.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
KL6904
The SR function block is not available in the KL6904.
FB SR outputs
Offset Name Permitted type Data type Description
1.0 SrOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Value Description
3.0 SAFE
If the Reset input is 1 and the Set input is 0, the FB SR module assumes the SAF
state.
The outputs assume the following values:
SrOut=0
9.0 SET
If the Set input is 1, the FB SR module assumes the SET state.
The outputs assume the following values:
SrOut=1
Use the Settings button to the right of the Reset and Set inputs to activate the input signals and configure
them as make contact (NO) or break contact (NC). In the default state both inputs are disabled.
The 'Reset' and 'Set' buttons can be used to link the input variables of the FB RS.
The 'SrOut' button can be used to link the output variable of the FB RS.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
KL6904
The TON function block is not available in the KL6904.
FB TON outputs
Offset Name Permitted type Data type Description
1.0 TonOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Type Description
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
Use the Settings button to the right of the 'TonIn' button to configure the input as make (NO) or break contact
(NC). The input is deactivated in the default state.
The 'TonIn' button is used to link the input variable of the FB TON.
The 'TonOut' button is used to link the switch-on-delayed output variable of the FB TON.
Use the text box to set the switch-on delay time. The smallest unit is 0.1 s.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
In the EL6910 the FB TON now also supports times between 1 ms and 600 seconds. The function block has
two timebases: 1 ms and 10 ms.
With a timebase of 1 ms the maximum time is 60,000 ms in 1 ms steps.
With a timebase of 10 ms the maximum time is 600,000 ms in 10 ms steps.
The timebase is automatically selected in TC3.1 Safety Editor according to the set time.
NOTICE
FB TON and FB TON2 extension (software 04 - EL6910)
From software version 04 of the EL6910 and newer TwinSAFE Logic components, the FB TON also
supports the timebases of 100 ms and 1000 ms. Switch-on delays of up to 60,000 s can thus be set.
NOTICE
Support
The function block TON2 is not available in the KL6904, EL6900 and EL6910 (SW ≤ 03).
In the properties of the FB TON2 the parameter Starts with remaining time can be enabled in addition to the
diagnostic data.
In the following timing diagram the TON Delay Time is set to 120 seconds. While TonIn is set, the station is
switched off (EtherCAT state exits OP (8)) and switched on again after a certain time. After switching on, the
logic starts up and starts the active connections. When the TonIn signal is read in again with TRUE within
the logic and the Enable signal is also read in with TRUE (in this example after approx. 35 seconds), the
TON function block is processed with the remaining time. The TonOut output is set after the parameterized
time of 120 seconds has elapsed.
The Enable signal is not shown in the diagram because it is set to TRUE throughout.
FB TON2 outputs
Offset Name Permitted type Data type Description
1.0 TonOut TwinSAFE-Out BOOL 1st output; the safe state corresponds to logic 0.
FB-In
Standard-Out
NOTICE
KL6904
The TOF function block is not available in the KL6904.
FB TOF outputs
Offset Name Permitted type Data type Description
1.0 TofOut TwinSAFE-Out BOOL 1st output channel, the safe state corresponds to a
FB-In logical 0.
Standard-Out
Type Description
TwinSAFE- TwinSAFE output, e.g. on an EL2904/KL2904
Out
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
Use the Settings button to the right of the 'TofIn' button to configure the input as make (NO) or break contact
(NC). The input is deactivated in the default state.
The 'TofIn' button is used to link the input variable of the FB TOF.
The 'TofOut' button is used to link the switch-on-delayed output variable of the FB TOF.
Use the text box to set the switch-on delay time. The smallest unit is 0.1 s.
The error output is inactive since FB TOF reports no error.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
In the EL6910 the FB TOF now also supports times between 1 ms and 600 seconds. The function block has
two timebases: 1 ms and 10 ms.
With a timebase of 1 ms the maximum time is 60,000 ms in 1 ms steps.
With a timebase of 10 ms the maximum time is 600,000 ms in 10 ms steps.
The timebase is automatically selected in TC3.1 Safety Editor according to the set time.
Once the input of the function block is no longer active, the FSoE master tries to re-establish the connection
or the FSoE slave responds to the connection again.
This function block is required for modular safety concepts, in which machine components can be
exchanged without stopping the whole safety circuit, e.g. for a tool change. If a modular machine concept is
used, which includes machine options such as an optional feeder, these options should be realized in
dedicated additional TwinSAFE groups.
CAUTION
Deactive inputs
Please note that the signal used to shut down the connection must have the same safety level as the
signals of the shut-down connection.
NOTICE
KL6904
The Connection Shutdown function block is not available in the KL6904.
On the opposite side the function block is called without connected inputs. The output Deactivated is set
when the connection is terminated due to a shutdown command from the communication partner.
The Settings button to the right of the Deactivate(x) buttons can be used to activate the inputs and
configured them as make (NO) or break (NC) contacts. In the default state the inputs are disabled.
The 'Deactivate1' and 'Deactivate2' buttons are used to link the input variables of the FB Connection
Shutdown.
The 'Deactivated' button is used to link the output variable of the FB Connection Shutdown. The output
signals with a logical 1 that the connection is terminated.
Use the 'Connection ID' selection box to specify the connection ID of the connection to be terminated via the
function block. The function block uses the Connection ID, not the Connection No. of the TwinSAFE
connection.
The 'Error' button can be used to link the error state to an output variable.
The 'MapState' and 'MapDiag' checkboxes are used to specify which FB diagnostic functions are mapped to
the cyclic process image.
NOTICE
Shutdown
Before a connection can be disabled, it must have started up without error and be in DATA state.
For modular machines, where a module is generally not available, for example, this concept should be
realized via additional TwinSAFE groups.
If an overflow or underflow occurs during the addition, the ERROR state is assumed. The AnalogOut output
is then set to 0, the Error output is set to 1.
Once overflow or underflow no longer occurs after an error, the function block can be set to RUN state again
via ErrAck of the TwinSAFE group. The RESET state is assumed when the ErrAck input of the
corresponding group is 1. When the ErrAck input of the corresponding group changes to 0 again, the system
switches from RESET state to RUN state. In RESET state the AnalogOut output and the Error output are 0.
NOTICE
KL6904/EL6900
The function block ADD is not available in the KL6904 and the EL6900.
FB ADD outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
0.0- AnalogOut TwinSAFE-Out n=2: 1st output channel with the addition result
(n-1) FB-In INT16
Standard-Out UINT16
n=4:
INT32
UINT32
Type Description
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
TwinSAFE SC Input of a TwinSAFE connection (TwinSAFE SC technology)
Diagnostic information
Value Description
0.0 The output AnalogOut is correct
1.0 The output AnalogOut has an underflow
(is less than the smallest possible value)
2.0 The output AnalogOut has an overflow
(is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4080 An underflow has occurred FB number AnalogIn1 AnalogIn2
0x4081 An overflow has occurred FB number AnalogIn1 AnalogIn2
Status information
Value Description
1.0 RUN
The FB ADD module cyclically adds the two analog inputs AnalogIn1 and AnalogIn2. If no
overflow and no underflow occur during the addition, the FB ADD module is in the RUN state.
The outputs assume the following values:
Error=0
AnalogOut=Result of the addition
2.0 STOP
If the input FbRun=FALSE, the FB ADD module assumes the STOP state.
The outputs assume the following values:
Error=0
AnalogOut=0
4.0 ERROR
If the FB ADD module detects an error when checking the value range of AnalogOut during
addition, the FB ADD module switches to the ERROR state and transfers the corresponding Diag
message to the GROUP module.
The outputs assume the following values:
Error=1
AnalogOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the associated
group is set to TRUE, the FB ADD module assumes the RESET state.
The outputs assume the following values:
Error=0
AnalogOut=0
A mouse click next to the FB port, here AnalogIn1 and AnalogIn2, can be used to create variables that can
be linked to input signals. Input settings, such as changing the data type or activation of the input, can be
made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
If an overflow or underflow occurs during the subtraction, the ERROR state is assumed. The AnalogOut
output is then set to 0, the Error output is set to 1.
Once overflow or underflow no longer occurs after an error, the function block can be set to RUN state again
via ErrAck of the TwinSAFE group. The RESET state is assumed when the ErrAck input of the
corresponding group is 1. When the ErrAck input of the corresponding group changes to 0 again, the system
switches from RESET state to RUN state. In RESET state the AnalogOut output and the Error output are 0.
NOTICE
KL6904/KL6900
The function block SUB is not available in the KL6904 and the EL6900.
FB SUB outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
0.0- AnalogOut TwinSAFE-Out n=2: 1st output channel with the subtraction result
(n-1) FB-In INT16
Standard-Out UINT16
n=4:
INT32
UINT32
Diagnostic information
Value Description
0.0 The output AnalogOut is correct
1.0 The output AnalogOut has an underflow
(is less than the smallest possible value)
2.0 The output AnalogOut has an overflow
(is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4080 An underflow has occurred FB number AnalogIn1 AnalogIn2
0x4081 An overflow has occurred FB number AnalogIn1 AnalogIn2
Status information
Value Description
1 RUN
The FB SUB module cyclically subtracts the two analog inputs AnalogIn1 and AnalogIn2. If
no overflow or underflow occurs during subtraction, the FB SUB module is in the RUN state.
The outputs assume the following values:
Error=0
AnalogOut=result of the subtraction
Value Description
2 STOP
If the input FbRun=FALSE, the FB SUB module assumes the STOP state.
The outputs assume the following values:
Error=0
AnalogOut=0
4 ERROR
If the FB SUB module detects an error when checking the value range of AnalogOut during
subtraction, the FB SUB module switches to the ERROR state and transfers the
corresponding diag message to the GROUP module.
The outputs assume the following values:
Error=1
AnalogOut=0
5 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB ADD module assumes the RESET state.
The outputs assume the following values:
Error=0
AnalogOut=0
A mouse click next to the FB port, here AnalogIn1 and AnalogIn2, can be used to create variables that can
be linked to input signals. Input settings, such as changing the data type or activation of the input, can be
made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
If an overflow or underflow occurs during the multiplication, the ERROR state is assumed. The AnalogOut
output is then set to 0, the Error output is set to 1.
NOTICE
KL6904/EL6900
The function block MUL is not available in the KL6904 and the EL6900.
FB MUL outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
0.0- AnalogOut TwinSAFE-Out n=2: 1st output channel with the multiplication result
(n-1) FB-In INT16
Standard-Out UINT16
n=4:
INT32
UINT32
Diagnostic information
Value Description
0.0 The output AnalogOut is correct
1.0 The output AnalogOut has an underflow
(is less than the smallest possible value)
2.0 The output AnalogOut has an overflow
(is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4080 An underflow has occurred FB number AnalogIn1 AnalogIn2
0x4081 An overflow has occurred FB number AnalogIn1 AnalogIn2
Status information
Value Description
1.0 RUN
In the RUN state, the FB MUL module enters the result of the multiplication in the AnalogOut
output.
The outputs assume the following values:
Error=0
AnalogOut=multiplication result
2.0 STOP
If the input FbRun=FALSE, the FB MUL module assumes the STOP state.
The outputs assume the following values:
Error=0
AnalogOut=0
4.0 ERROR
If the FB MUL module detects an error when checking the value range of AnalogOut, the FB
MUL module switches to the ERROR state and transmits the corresponding Diag message to
the GROUP module.
The outputs assume the following values:
Error=1
AnalogOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the associated
group is set to TRUE, the FB MUL module assumes the RESET state.
The outputs assume the following values:
Error=0
AnalogOut=0
A mouse click next to the FB port, here AnalogIn1 and AnalogIn2, can be used to create variables that can
be linked to input signals. Input settings, such as changing the data type or activation of the input, can be
made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
If the AnalogIn2 input is 0, the AnalogOut output is set to 0. In this case no error is output.
If an overflow or underflow occurs during the division, the ERROR state is assumed. The AnalogOut output
is then set to 0, the Error output is set to 1.
The Division Rounding parameter can be used to specify the rounding method to be used.
Parameter Rounding method
Floor Decimal places are truncated
Ceil The next higher integer is returned as result
Round Commercial rounding is used (e.g. 2.5 is rounded to 3)
NOTICE
KL6904/EL6900
The function block DIV is not available in the KL6904 and the EL6900.
FB DIV outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
0.0- AnalogOut TwinSAFE-Out n=2: 1st output channel with the division result
(n-1) FB-In INT16
Standard-Out UINT16
n=4:
INT32
UINT32
Type Description
Standard-In Standard PLC variable (output in the PLC %Q*)
FB-Out TwinSAFE FB output
TwinSAFE-Out TwinSAFE output, e.g. an EL2904/KL2904
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
TwinSAFE SC Input of a TwinSAFE connection (TwinSAFE SC technology)
Diagnostic information
Value Description
0.0 The output AnalogOut is correct
1.0 The output AnalogOut has an underflow
(is less than the smallest possible value)
2.0 The output AnalogOut has an overflow
(is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4080 An underflow has occurred FB number AnalogIn1 AnalogIn2
0x4081 An overflow has occurred FB number AnalogIn1 AnalogIn2
Status information
Value Description
1.0 RUN
In the RUN state, the FB DIV module enters the result of the division in the AnalogOut
output.
The outputs assume the following values:
Error=0
AnalogOut=division result
2.0 STOP
If the input FbRun=FALSE, the FB DIV module assumes the STOP state.
The outputs assume the following values:
Error=0
AnalogOut=0
4.0 ERROR
If the FB DIV module detects an error when checking the value range of AnalogOut, the FB
DIV module switches to the ERROR state and transmits the corresponding Diag message to
the GROUP module.
The outputs assume the following values:
Error=1
AnalogOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB DIV module assumes the RESET state.
The outputs assume the following values:
Error=0
AnalogOut=0
A mouse click next to the FB port, here AnalogIn1 and AnalogIn2, can be used to create variables that can
be linked to input signals. Input settings, such as changing the data type or activation of the input, can be
made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
NOTICE
KL6904/EL6900
The function block COMPARE is not available in the KL6904 and the EL6900.
FB COMPARE outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 IsValid TwinSAFE-Out BOOL Output indicating whether the comparison has a
FB-In positive or negative result
Standard-Out (positive=1, negative=0)
0.0- CompOut TwinSAFE-Out n=2: Output channel with the first CompIn input value that
(n-1) FB-In INT16 lies within the comparison result
Standard-Out UINT16
n=4:
INT32
UINT32
Type Description
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
TwinSAFE SC Input of a TwinSAFE connection (TwinSAFE SC technology)
Diagnostic information
Value Description
0.0 The output CompOut is correct
1.0 The output CompOut has an underflow
(is less than the smallest possible value)
2.0 The output CompOut has an overflow
(is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4098 An underflow has occurred FB number CompOut Smallest permitted
value
0x4099 An overflow has occurred FB number CompOut Largest permitted value
Status information
Value Meaning
1.0 RUN
The FB COMPARE module assumes the RUN state if enough analog inputs deviate from
each other by no more than the Allowed Deviation (ValuesEqual=TRUE).
The outputs assume the following values:
Error=0
IsValid=1
CompOut=CompInX (X= smallest input that does not deviate)
2.0 STOP
If the input FbRun=FALSE, the FB COMPARE module assumes the STOP state.
The outputs assume the following values:
Error=0
IsValid=0
CompOut=0
3.0 SAFE
The FB COMPARE module assumes the SAFE state if not enough analog inputs deviate
from each other by at most the Allowed Deviation (ValuesEqual=FALSE) and the
DelayOutTimer has expired (DelayOutExpired=TRUE).
The outputs assume the following values:
Error=0
IsValid=0
CompOut=0
4.0 ERROR
If the FB COMPARE module detects an error when checking the value range of CompOut,
the FB COMPARE module switches to the ERROR state and transfers the corresponding
Diag message to the GROUP module.
The outputs assume the following values:
Value Meaning
Error=1
IsValid=0
CompOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB COMPARE module assumes the RESET state.
The outputs assume the following values:
Error=0
IsValid=0
CompOut=0
8.0 DELAYOUT
If not enough analog inputs deviate from each other by no more than the allowed deviation
(ValuesEqual=FALSE), the DelayOutTimer is started with the ToleranceTime. As long as
the DelayOutTimer has not expired (DelayOutExpired=FALSE), the FB COMPARE module
assumes the DELAYOUT state.
The outputs assume the following values:
Error=0
IsValid=1
CompOut=unchanged
A mouse click next the FB port, here CompIn1 to CompIn5, can be used to create variables that can be
linked to input signals. Input settings, such as changing the data type or activation of the input, can be made
via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
The Architecture option field can be used to choose between 1oo2, 2oo3 or 3oo5 evaluation. The parameter
field Allowed Deviation defines the deviation of the input values from each another. The parameter field
Tolerance time (ms) defines the time within which a valid result must be present at the inputs, in order to
avoid a shutdown.
NOTICE
KL6904/EL6900
The function block LIMIT is not available in the KL6904 and the EL6900.
FB LIMIT outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 MinValue is greater than MaxValue
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4090 MinValue is greater than FB number MinValue MaxValue
MaxValue
Status information
Value Description
1.0 RUN
If AnalogIn is greater than or equal to MinValue and less than or equal to MaxValue, the
FB LIMIT module assumes the RUN state.
The outputs assume the following values:
Error=0
InLimit=1
BelowMin=0
AboveMax=0
2.0 STOP
If the input FbRun=FALSE, the FB LIMIT module assumes the STOP state.
The outputs assume the following values:
Error=0
Value Description
InLimit=0
BelowMin=0
AboveMax=0
3.0 SAFe
If AnalogIn is less than MinValue or greater than MaxValue, the FB LIMIT module assumes
the SAFe state.
The outputs assume the following values:
Error=0
InLimit=0
BelowMin=(AnalogIn<MinValue)
AboveMax=(AnalogIn>MaxValue)
4.0 ERROR
If the FB LIMIT module detects an error, the FB LIMIT module switches to the ERROR
state and transmits the corresponding Diag message to the GROUP module.
The outputs assume the following values:
Error=1
InLimit=0
BelowMin=0
AboveMax=0
5.0 RESET
If no more errors are present after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB LIMIT module assumes the RESET state.
The outputs assume the following values:
Error=0
InLimit=0
BelowMin=0
AboveMax=0
A mouse click next the FB port, here AnalogIn1, MinValue und MaxValue, can be used to create variables
that can be linked to input signals. Input settings, such as changing the data type or activation of the input,
can be made via the properties of the FB port. Either the FB inputs MinValue and MaxValue or the
parameters Minimum Value and Maximum Value can be used. If the FB inputs are active, they are used.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
A logical 1 signal at the input Reset causes the internal counter value to be set to the value that is
parameterized via Preset Value. A rising edge at the input CountUp increments the internal counter value by
1. A rising edge at the input CountDown decrements the internal counter value by 1. Once the counter value
specified under CounterLimit is reached, the output CounterOut is set. Once the counter value 0 is reached,
the output CounterZero is set.
If the TwinSAFE group is started (Run=1) and the Reset input is TRUE, the output ActValue is set to
PresetValue. When the group is stopped, ActValue is set to 0. Further status information can be found in
chapter Signal description [} 133].
NOTICE
KL6904/EL6900
The function block Counter is not available in the KL6904 and the EL6900.
FB Counter outputs
Offset Name Permitted Data type Description
type
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 CounterOut TwinSAFE-Out BOOL Output is set when the counter limit is reached
FB-In
Standard-Out
2.0 CounterZero TwinSAFE-Out BOOL Output is set when the internal counter value is 0
FB-In
Standard-Out
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 The output ActValue has an underflow (is less than the smallest possible value)
2.0 The output ActValue has an overflow (is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40B8 An underflow has occurred FB number ActValue Smallest permitted
value
0x40B9 An overflow has occurred FB number ActValue Largest permitted value
Status information
Value Description
1.0 RUN
In the RUN state, the FB Counter module sets the ActValue output to PresetValue if the
input Reset = TRUE.
If the input Reset = FALSE, the FB Counter module increments the output ActValue if a
rising edge is detected at the input CountUp and decrements it if a rising edge is detected
at the input CountDown (this means that ActValue remains unchanged if both the CountUp
and CountDown inputs detect a rising edge).
The outputs assume the following values:
Error = 0
CounterOut = (ActValue >= CounterLimit)
CounterZero = (ActValue == 0)
Reset=TRUE: ActValue = PresetValue
Reset=FALSE: ActValue = ActValue + n (-1 <= n <= 1)
Value Description
2.0 STOP
If the input FbRun = FALSE, the FB Counter module assumes the STOP state.
The outputs assume the following values:
Error = 0
CounterOut = 0
CounterZero = 0
ActValue = 0
4.0 ERROR
If the FB Counter module detects an error when checking the value range of CounterOut,
the FB Counter module switches to the ERROR state and transmits the corresponding diag
message to the GROUP module.
The outputs assume the following values:
Error = 1
CounterOut = 0
CounterZero = 0
ActValue = 0
5.0 RESET
If no more errors are present after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB Counter module assumes the RESET state.
The outputs assume the following values:
Error = 0
CounterOut = 0
CounterZero = 0
ActValue = 0
A mouse click next to the FB port, here Reset, CountUp, CountDown, Error, CounterOut, CounterZero and
ActValue, can be used to create variables that can be linked to input or output signals. Input settings, such
as changing the data type or activation of the input, can be made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
The Division Rounding parameter can be used to specify the rounding method to be used for the internal
division.
Parameter Rounding method
Floor Decimal places are truncated
Ceil The next higher integer is returned as result
Round Commercial rounding is used (e.g. 2.5 is rounded to 3)
The parameter Multiplication First can be used specify whether the first scaling operation after the optional
negation should be multiplication (TRUE) or division (FALSE).
In addition, the parameter watchdog (ms) can be used to specify that the AnalogIn input must have changed
within the specified time. If the input remains unchanged within the specified time, the StuckAtError output is
set to TRUE. If the parameter is set to 0, the check is turned off. The StuckAtError output is not a FB error,
which means the TwinSAFE group does not enter an error state. The application program must respond to
this.
NOTICE
KL6904/EL6900
The function block SCALE is not available in the KL6904 and the EL6900.
FB Scale outputs
Offset Name Permitted type Data Description
type
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 StuckAtError TwinSAFE-Out BOOL Output that is set if the input AnalogIn remains
FB-In unchanged over the parameterized period
Standard-Out
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 The output AnalogOut has an underflow (is less than the smallest possible value).
2.0 The output AnalogOut has an overflow (is greater than the largest possible value).
3.0 A 32-bit overflow occurred during the multiplication.
4.0 A 32-bit overflow occurred during the division due to rounding.
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40B0 The output AnalogOut has an underflow (is FB number AnalogIn -
less than the smallest possible value).
0x40B1 The output AnalogOut has an overflow (is FB number AnalogIn -
greater than the largest possible value).
0x40B2 A 32-bit overflow occurred during the FB number AnalogIn -
multiplication.
0x40B3 A 32-bit overflow occurred during the FB number AnalogIn -
division due to rounding.
Status information
Value Description
1.0 RUN
In the RUN state, the FB SCALE module enters the result of scaling in the output
AnalogOut.
The outputs assume the following values:
Value Description
Error = 0
AnalogOut = result of scaling
StuckAtError = StuckAtErrorDetected
2.0 STOP
If the input FbRun = FALSE, the FB SCALE module assumes the STOP state.
The outputs assume the following values:
Error = 0
AnalogOut = 0
StuckAtError = 0
4.0 ERROR
If the FB SCALE module detects an error when checking the value range of AnalogOut, the
FB SCALE module switches to the ERROR state and transmits the corresponding Diag
message to the GROUP module.
The outputs assume the following values:
Error = 1
AnalogOut = 0
StuckAtError = 0
5.0 RESET
If no more errors are present after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB SCALE module assumes the RESET state.
The outputs assume the following values:
Error = 0
AnalogOut = 0
StuckAtError = 0
A mouse click next to the FB Port, here AnalogIn, Error, StuckAtError and AnalogOut, can be used to create
variables that can be linked to input or output signals. Settings such as changing the data type or activation
of the input can be made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
NOTICE
KL6904/EL6900
The function block SPEED is not available in the KL6904 and the EL6900.
FB Speed outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
0.0- Speed TwinSAFE-Out n=2: Output with the calculated speed
(n-1) FB-In INT16
Standard-Out UINT16
n=4
INT32
UINT32
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 The output Speed has an underflow (is less than the smallest possible value)
2.0 The output Speed has an overflow (is greater than the largest possible value)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x4088 An underflow has occurred. FB number current position latched position
0x4089 An overflow has occurred. FB number current position latched position
Status information
Value Description
1.0 RUN
In the RUN state, the FB SPEED module enters the result of the speed calculation in the
output Speed.
The outputs assume the following values:
Error = 0
Speed = calculated speed
2.0 STOP
If the input FbRun = FALSE, the FB SPEED module assumes the STOP state.
The outputs assume the following values:
Error = 0
Speed = 0
4.0 ERROR
If the FB SPEED module detects an error when checking the value range of Speed, the FB
SPEED module switches to the ERROR state and transmits the corresponding diag
message to the GROUP module.
The outputs assume the following values:
Error = 1
Speed = 0
5.0 RESET
If there is no longer an error after an error has occurred and the ErrAck input of the
associated group is set to TRUE, the FB SPEED module assumes the RESET state.
The outputs assume the following values:
Error = 0
Speed = 0
A mouse click next to the FB Port, here Position, Error and Speed, can be used to create variables that can
be linked to input or output signals. Settings such as changing the data type or activation of the input can be
made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
The parameter Overflow Check can be used to specify speed calculation method in the event of an input
signal overflow.
If Inactive=FALSE, the largest index is determined whose corresponding X-value is still smaller than the
AnalogInX input. The system then checks whether the AnalogInY input is within the corresponding switch-off
level (Y1, Y2) or within the warning level (WY1, WY2). If the value is within the switch-off level, the Valid
output is set. If the value is between the Y1 and WY1 or Y2 and WY2, the Warning output is set in addition.
There can be up to 25 indices.
The Outside parameter can be used to reverse the test, in which case values outside Y1 and Y2 are valid
and the output Valid is set. In this case the warning level must be greater than the switch-off level.
The data in the value table are checked based on the following formulas:
NOTICE
KL6904/EL6900
The function block LOADSENSING is not available in the KL6904 and the EL6900.
FB LoadSensing outputs
Offset Name Permitted type Data type Description
1.0 Valid TwinSAFE-Out BOOL This output is set if AnalogInY is within the switch-off
FB-In level.
Standard-Out
Diagnostic information
Value Description
- No diagnostic information
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
- - - - -
Status information
Value Description
1.0 RUN
If InActive = FALSE and AreaValid = TRUE, the FB LS module assumes the RUN state.
The outputs assume the following values:
Valid = 1
Warning = 0
2.0 STOP
If the input FbRun = FALSE, the FB LS module assumes the STOP state.
The outputs assume the following values:
Valid = 0
Warning = 0
3.0 SAFE
If InActive = FALSE, AreaValid = FALSE and AreaValidButWarning = FALSE, the FB LS
module assumes the SAF state.
The outputs assume the following values:
Valid = 0
Warning = 0
16.0 INACTIVE
If InActive = TRUE, the FB LS module assumes the INACTIVE state.
The outputs assume the following values:
Valid = 0
Warning = 0
Value Description
17.0 WARNING
If InActive = FALSE and AreaValidButWarning = TRUE, the FB LS module assumes the
WARNING state.
The outputs assume the following values:
Valid = 1
Warning = 1
If values for Y1 and Y2 are specified in the table, values for the warning level WY1 and WY2 must also be
specified.
A mouse click next to the FB port, here Inactive, AnalogInX, AnalogInY, Valid and Warning, can be used to
create variables that can be linked to input or output signals. Settings such as changing the data type or
activation of the input can be made via the properties of the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
CAUTION
FB CAMMONITOR
The FB CAMMONITOR provides a safe evaluation function block, which can output the cam data (TDC,
BDC, UpwardsMove) according to the set fixed values, depending on the current position.
NOTICE
Function block output UpwardsMove
The output UpwardsMove indicates that the press is in upward motion after passing through BDC. This
signal can be used for muting of light curtains or for accepting the control command at the press.
DANGER
Press position detection!
Position detection must be realized corresponding to the required SIL or performance level. The user or
machine manufacturer must verify that this condition is satisfied.
The position value must be verified based on several analog values or made available to the function block
by other safe means. The former can be realized via the Compare function block, for example.
In addition, an expectation can be generated via the Press_Started input, by reporting a movement request
to the function block. The function block then monitors a change in position within the set parameters.
NOTICE
Excentric/pendulum mode
For excentric mode the Excentric Mode checkbox is set. The inputs TDC2_UpperLimit and
TDC2_LowerLimit must be inactive, or the parameters must be 0.
For pendulum mode the Pendulum Mode checkbox will be set. The inputs TDC2_UpperLimit and
TDC2_LowerLimit or the parameters are used.
NOTICE
KL6904/EL6900
The function block CAMMONITOR is not available in the KL6904 and the EL6900.
A mouse click next to the FB Port can be used to create variables that can be linked with input or output
signals. Settings such as changing the data type or activation of the input can be made via the properties of
the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
In the following sample position detection takes place via 2 separate encoder systems. Scaling and
verification takes place within the TwinSAFE Logic. It is important that the encoder systems use a different
procedure for determining the position and are mechanically decoupled. The user should consider shaft
breakage detection in the mechanical configuration. One channel (here: sin/cos encoder) is transferred to
the EL6910 logic via the TwinSAFE SC technology. The second channel is transferred via the standard
EtherCAT communication of the EL6910.
Once standstill is reached, a new cycle is not permitted until a falling edge is detected at the Reset input.
As a further parameter BDC (bottom dead center) is specified with a lower and upper limit (BDC_LowerLimit
and BDC_UpperLimit). The output CamMonOK is immediately set to FALSE if the press comes to a standstill
without having reached or exceeded TDC, or if the direction of rotation is reversed. If BDC is exceeded the
press is in upward movement. This information is output at the UpwardsMove output of the function block.
The BackwardsMove input is used to notify the function block that backward movement of the press is
permitted. This is only permitted if the position is between TDC1_UpperLimit and BDC_LowerLimit. The
backward movement ends when TDC1_UpperLimit is reached.
4.26.3.2 Inputs
Offset Name Data type Description
Digital
0.0 Automatic safeBOOL 0: Normal operation
1: Automatic mode (no parameter verification)
1.0 BackwardsMov safeBOOL The input BackwardsMove can be used to move the press in
e backward direction in excentric mode. This is possible until
TDC1_UpperLimit is reached.
2.0 Reset safeBOOL Reset input. Before each press start a falling edge must be
BOOL detected at the input Reset. Only then may a motion take place or
the TDC exited.
3.0 Press_Started safeBOOL If the input is active, a motion or change of position is expected
BOOL when a logical 1 is encountered at the input. To this end the
parameter PressStartDelayTime, MoveDetectionTime and
MinPositionChange must be set.
4.0 OverrunCam safeBOOL not used
5.0 UpwardCam safeBOOL not used
6.0 SettingMode safeBOOL Parameter transfer in setup mode. Internal parameters can be
changed if the input is set to 1.
Analog
0.0-1.0 Position analog Press position. The position value must checked for plausibility
(UINT16/ based on several analog values or made available to the function
UINT32) block by other safe means.
2.0-3.0 TDC1_LowerLi Fixed value Excentric mode:
mit (UINT16/ The input or parameter TDC1_LowerLimit indicates the lower TDC
UINT32) limit (top dead center). It is to the left of TDC.
4.0-5.0 TDC1UpperLi Fixed value Excentric mode:
mit (UINT16/ The input or parameter TDC1_UpperLimit indicates the upper TDC
UINT32) limit (top dead center). It is to the right of TDC.
6.0-7.0 TDC2_LowerLi Fixed value not used
mit (UINT16/
UINT32)
8.0-9.0 TDC2UpperLi Fixed value not used
mit (UINT16/
UINT32)
10.0-11 BDC_LowerLi Fixed value The input or parameter BDC_LowerLimit must be less than
.0 mit (UINT16/ MaxPosition/2 and greater than OverrunMax.
UINT32)
12.0-13 BDC_UpperLi Fixed value The input or parameter BDC_UpperLimit must be greater than
.0 mit (UINT16/ MaxPosition/2 and less than TDC1_LowerLimit.
UINT32)
14.0-15 OverrunMax Fixed value OverrunMax indicates the position at which the press must have
.0 (UINT16/ stopped at the latest in excentric mode. If this value is exceeded
UINT32) without the press stopping, the output CamMonOK is set to
FALSE.
The input or parameter OverrunMax must be greater than
TDC1_UpperLimit and less than BDC_LowerLimit.
4.26.3.3 Outputs
Offset Name Permitted type Description
Digital
0.0 Error safeBOOL Error output
BOOL
4.26.3.4 Parameter
Parameter Description
AllowedPositionJitter The analog position value may jitter somewhat even at standstill; this jitter is
indicated with AllowedPositionJitter.
StopDetectionTime Since the position is usually received via a TwinSAFE connection, its value will
not change in each cycle. For standstill detection the timeframe
(StopDetectionTime) must therefore by specified, within which the position must
only change around the AllowedPositionJitter.
PressStartDelayTime If the input PressStarted is active, the time must be specified after which a
motion must be detected when PressStarted has a positive edge.
MoveDetectionTime If the input PressStarted is active, the time must be specified after which the
position must change when a motion was detected for the first time.
MinPositionChange If the input PressStarted is active, a value must be specified to indicate the
minimum position change within the MoveDetectionTime
MaxPosition The parameter MaxPosition is used to set the maximum permitted position
value during a 360° movement of the press.
Pendulum Mode Checkbox for activating pendulum mode
Excentric Mode Checkbox for activating excentric mode
FB input CamReset (rising and falling edge before a motion may start)
FB input PressStarted (is set to 1 when the press motion is started and set to 0 when the press is
stopped.)
FB output TDC. Press is in top dead center (here set between 8092 and 100 increments). Press 0°
is 8192 or 0 increments.
FB output Upwards. Press is in upward movement. The signal is set when BDC is exited and reset
after 0° or 0 increments.
Description of the fixed values of the sample configuration. The user must adjust these values according to
the hardware used.
The MaxPosition of 8192 increments is output in the event of a complete stroke by the encoder system used.
All other fixed values are derived from this MaxPosition (see schematic diagram of the ranges).
Since the curve based on which the press is to be moved can or must be adjusted for each product, the
maximum range of the oscillating stroke is set as the limits for the upper reversal points.
The lower reversal point (BDC) is set with an upper and lower limit.
In pendulum mode the system checks that the upper limits (TDC1 and TDC2) are never exceeded. If this
happens, the output CamMonOK is set to FALSE. At the start of the cycle (falling edge at Reset input) the
press may start with any motion (pulsating, reverse, ...) until the lower reversal point (BDC) is reached. After
this only upward movement is permitted. The upward movement is output as a signal (UpwardsMove) at the
function block.
A new start is enabled via the Reset input. If the press is in downward motion without a falling edge having
been detected at the Reset input, the system is stopped immediately by setting CamMonOK to FALSE.
The optional function block inputs for connecting an upward or overrun cam are not supported in this
operation mode. An error is set if they are active erroneously.
4.26.4.2 Inputs
Offset Name Data type Description
Digital
0.0 Automatic safeBOOL 0: Normal operation
1: Automatic mode (no parameter verification)
1.0 BackwardsMove safeBOOL The input must be inactive in pendulum mode.
2.0 Reset safeBOOL Reset input. Before each press start a falling edge must be
BOOL detected at the input Reset. Only then may a motion take
place or the TDC exited.
3.0 Press_Started safeBOOL If the input is active, a motion or change of position is
BOOL expected when a logical 1 is encountered at the input. To
this end the parameter PressStartDelayTime,
MoveDetectionTime and MinPositionChange must be set.
4.0 OverrunCam safeBOOL The input OverrunCam must be inactive.
5.0 UpwardCam safeBOOL The input UpwardsCam must be inactive.
6.0 SettingMode safeBOOL Setup mode. Internal parameters can be changed if the
input is set to 1.
Analog
0.0-1.0 Position analog (UINT16/ Press position. The position value must be checked for
UINT32) plausibility from several analog values or made available to
the function block in another safe way, according to the
required SIL/performance level.
2.0-3.0 TDC1_LowerLim Fixed value The input or parameter TDC1_LowerLimit indicates the
it (UINT16/UINT32) lower limit of the TDC in the “left” half of the press. The
value must be greater than the BDC (Bottom Dead Center)
and less than TDC1_UpperLimit.
4.0-5.0 TDC1UpperLimit Fixed value The input or parameter TDC1_UpperLimit indicates the
(UINT16/UINT32) upper limit of the TDC in the “left” half of the press. The
value must greater than TDC1_LowerLimit and less than
MaxPosition.
4.26.4.3 Outputs
Offset Name Permitted type Description
Digital
0.0 Error safeBOOL Error output (see diagnostic information)
BOOL
1.0 CamMonOK safeBOOL If all internal checks are without error, the output
BOOL CamMonOK is set. When the group in which the function
block is programmed is started, CamMonOK is set for the
first time when a falling edge is detected at the Reset input.
2.0 UpwardsMove safeBOOL Depending in which half the motion is started, the output
BOOL UpwardsMove is set in the other half. The output is set from
BDC_UpperLimit or BDC_LowerLimit until press standstill is
detected.
3.0 TDC safeBOOL Boolean output TDC is set if the current position is between
BOOL TDCx_LowerLimit and TDCx_UpperLimit.
4.0 BDC safeBOOL Boolean output BDC is set if the current position is between
BOOL BDC_LowerLimit and BDC_UpperLimit.
Analog
0.0-1.0 OverrunTDC analog not used
2.0-3.0 OverrunStop analog Difference between position at falling edge at input
Press_Started and current position
4.26.4.4 Parameter
Parameter Description
AllowedPositionJitter The analog position value may jitter somewhat even at standstill; this jitter
is indicated with AllowedPositionJitter.
StopDetectionTime Since the position is usually received via a TwinSAFE connection, its
value will not change in each cycle. For standstill detection the timeframe
(StopDetectionTime) must therefore by specified, within which the
position must only change around the AllowedPositionJitter.
PressStartDelayTime If the input PressStarted is active, the time must be specified after which
a motion must be detected when PressStarted has a positive edge.
MoveDetectionTime If the input PressStarted is active, the time must be specified after which
the position must change when a motion was detected for the first time.
MinPositionChange If the input PressStarted is active, a value must be specified to indicate
the minimum position change within the MoveDetectionTime
Parameter Description
MaxPosition The parameter MaxPosition is used to set the maximum permitted
position value during a 360° movement of the press.
Pendulum Mode Checkbox for activating pendulum mode
Excentric Mode Checkbox for activating excentric mode
FB input PressStarted (is set to 1 when the press motion is started and set to 0 when the press is
stopped.)
FB output TDC. Press is in top dead center (here set between 400 and 3696 increments for the
right side and between 4496 and 7796 increments for the left side)
FB output Upwards. Press is in upward movement. The signal is set when BDC is exited and reset
when press standstill is detected.
Description of the fixed values of the sample configuration. The user must adjust these values according to
the hardware used.
The MaxPosition of 8192 increments is output in the event of a complete stroke by the encoder system used.
All other fixed values are derived from this MaxPosition (see schematic diagram of the ranges).
The BackwardsMove input is used to notify the function block that backward movement of the press is
permitted. This is only permitted if the UpwardCAM and OverrunCAM inputs are not set. The backward
movement ends when OverrunCAM is reached.
4.26.5.1 Inputs
Offset Name Data type Description
Digital
0.0 Automatic safeBOOL 0: Normal operation
1: Automatic mode (no parameter verification)
1.0 BackwardsMove safeBOOL The input BackwardsMove can be used to move the press
in backward direction in excentric mode. This is possible
until TDC1_UpperLimit is reached.
4.26.5.2 Outputs
Offset Name Permitted type Description
Digital
0.0 Error safeBOOL Error output
BOOL
1.0 CamMonOK safeBOOL If all internal checks are without error, the output
BOOL CamMonOK is set. When the group in which the function
block is programmed is started, CamMonOK is set for the
first time when a falling edge is detected at the Reset input.
2.0 UpwardsMove safeBOOL The output UpwardsMove is set to logical 1 between
BOOL BDC_UpperLimit and 0°.
3.0 TDC safeBOOL Boolean output TDC is set if the current position is between
BOOL TDCx_LowerLimit and TDCx_UpperLimit.
4.26.5.3 Parameter
Parameter Description
AllowedPositionJitter
The analog position value may jitter somewhat even at standstill; this jitter is
indicated with AllowedPositionJitter.
StopDetectionTime Since the position is usually received via a TwinSAFE connection, its value will not
change in each cycle. For standstill detection the timeframe (StopDetectionTime)
must therefore by specified, within which the position must only change around the
AllowedPositionJitter.
PressStartDelayTime If the input PressStarted is active, the time must be specified after which a motion
must be detected when PressStarted has a positive edge.
MoveDetectionTime If the input PressStarted is active, the time must be specified after which the position
must change when a motion was detected for the first time.
MinPositionChange If the input PressStarted is active, a value must be specified to indicate the minimum
position change within the MoveDetectionTime
MaxPosition The parameter MaxPosition is used to set the maximum permitted position value
during a 360° movement of the press.
Pendulum Mode Checkbox for activating pendulum mode
Excentric Mode Checkbox for activating excentric mode
Description of the fixed values of the sample configuration. The user must adjust these values according to
the hardware used.
The MaxPosition of 65535 increments is output in the event of a complete stroke by the encoder system
used. All other fixed values are derived from this MaxPosition (see schematic diagram of the ranges
excentric mode).
The FB CAMMONITOR detects a press movement if the change in position at the Position input within the
MoveDetectionTime is greater than the MinPositionChange.
The PressStartDelayTimer is started when the PressStarted input changes from FALSE to TRUE. When the
PressStartDelayTimer has elapsed, PressStarted is TRUE and no press movement was detected, the
function block detects this and sets CamMonOK to FALSE. An error message is issued via the DiagHistory
of the EL6910.
In order for a movement to be detected, the position must change by more than the MaxPositionJitter within
the StopDetectionTime.
4.26.6.4 SettingMode
If the input SettingMode is set, in excentric mode the fixed values TDC1_LowerLimit, TDC1_UpperLimit,
BDC_LowerLimit, BDC_UpperLimit and OverrunMax are changed retrospectively and saved in a non-volatile
manner. In pendulum mode this applies to the set fixed values TDC1_LowerLimit, TDC1_UpperLimit,
TDC2_LowerLimit, TDC2_UpperLimit, BDC_LowerLimit and BDC_UpperLimit.
The parameters Limit pos and Limit neg are UINT32 values and are therefore always specified positive.
NOTICE
KL6904/EL6900
The function block SLI is not available in the KL6904 and the EL6900.
FB SLI outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 SLIActive TwinSAFE-Out BOOL SLIActive is set if SLI is TRUE and PositionDiff is within
FB-In the defined limits.
Standard-Out
0.0- PositionDiff TwinSAFE-Out n=2 Output of the difference position between the saved
(n-1) FB-In INT16 (LatchPosition) and current position. PositionDiff is set
Standard-Out n=4: to 0 if SLIActive is FALSE.
INT32
FB SLI parameters
Parameter Description
Limit pos Permitted deviation of the saved position (LatchPosition) in positive direction
(UINT32)
Limit neg Permitted deviation of the saved position (LatchPosition) in negative direction
(UINT32)
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 Underflow (PositionDiff < -NegLimit)
2.0 Overflow (PositionDiff > PosLimit)
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40C0 An underflow has occurred FB instance Position LatchPosition
0x40C1 An overflow has occurred FB instance Position LatchPosition
Status information
Value Description
1.0 RUN
In the RUN state, the FB SLI module determines the PositionDiff and checks whether
-NegLimit <= PositionDiff <= PosLimit applies.
The outputs assume the following values:
Error = 0
SLIActive = 1
PositionDiff = Position - LatchPosition
2.0 STOP
If the input FbRun=FALSE, the FB SLI module assumes the STOP state.
The outputs assume the following values:
Error = 0
SLIActive = 0
PositionDiff = 0
3.0 SAFE
If the input SLI=FALSE, the FB SLI module assumes the SAFE state.
The outputs assume the following values:
Value Description
Error = 0
SLIActive = 0
PositionDiff = 0
4.0 ERROR
If the FB SLI module detects an error when checking the permitted range for the PositionDiff, the
FB SLI module switches to the ERROR state and transmits the corresponding Diag message to
the GROUP module.
The outputs assume the following values:
Error = 1
SLIActive = 0
PositionDiff = 0
5.0 RESET
If no more errors are present after an error has occurred and the input ErrAck of the associated
group is set to TRUE, the FB SLI module assumes the RESET state. The FB SLI module should
only exit the RESET state if ErrAck=FALSE and SLI=FALSE.
The outputs assume the following values:
Error = 0
SLIActive = 0
PositionDiff = 0
7.0 EXCEEDED
If ExceededSupport = TRUE and PositionDiff < NegLimit (underflow) or PositionDiff > PosLimit
(overflow) is in the RUN state, the FB SLI2 module assumes the EXCEEDED state.
The outputs assume the following values:
Error = 0
SLIActive = 0
PositionDiff = Position - LatchPosition
A mouse click next to the FB Port can be used to create variables that can be linked with input or output
signals. Settings such as changing the data type or activation of the input can be made via the properties of
the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
This chapter therefore only describes the outputs, the parameters and the status information. All further
information can be found in chapter The function block SLI [} 170].
4.28.2.1 Outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 SLIActive TwinSAFE-Out BOOL SLIActive is set if SLI is TRUE and PositionDiff is within
FB-In the defined limits.
Standard-Out
0.0- PositionDiff TwinSAFE-Out n=2 Output of the difference position between the saved
(n-1) FB-In INT16 (LatchPosition) and current position. PositionDiff is set
Standard-Out n=4: to 0 if SLIActive is FALSE.
INT32
2.0 BelowMin BOOL Falling below the latch position
3.0 AboveMax BOOL Exceeding the latch position
4.28.2.2 Parameter
Parameter Description
Limit pos Permitted deviation of the saved position (LatchPosition) in positive direction
(UINT32)
Limit neg Permitted deviation of the saved position (LatchPosition) in negative direction
(UINT32)
OverflowAllowed Overflow allowed or not allowed
ExceededSupport If an underflow or overflow occurs in the RUN state, the FB changes to the
EXCEEDED state instead of ERROR
Status information
Value Description
1.0 RUN
In the RUN state, the FB SLI2 module determines the PositionDiff and checks whether
-NegLimit <= PositionDiff <= PosLimit applies.
The outputs assume the following values:
Error = 0
SLIActive = 1
BelowMin = 0
AboveMax = 0
PositionDiff = Position - LatchPosition
2.0 STOP
If the input FbRun = FALSE, the FB SLI2 module assumes the STOP state.
The outputs assume the following values:
Error = 0
SLIActive = 0
BelowMin = 0
AboveMax = 0
PositionDiff = 0
3.0 SAFE
If the input SLI = FALSE, the FB SLI2 module assumes the SAFE state.
The outputs assume the following values:
Error = 0
SLIActive = 0
BelowMin = 0
AboveMax = 0
PositionDiff = 0
4.0 ERROR
If the FB SLI module detects an error when checking the permitted range for the PositionDiff, the
FB SLI2 module switches to the ERROR state and transmits the corresponding Diag message to
the GROUP module.
The outputs assume the following values:
Error = 1
SLIActive = 0
BelowMin = 0
AboveMax = 0
PositionDiff = 0
5.0 RESET
If no more errors are present after an error has occurred and the input ErrAck of the associated
group is set to TRUE, the FB SLI2 module assumes the RESET state. The FB SLI 2 module
should only exit the RESET state if ErrAck = FALSE and SLI = FALSE.
The outputs assume the following values:
Error = 0
SLIActive = 0
PositionDiff = 0
7.0 EXCEEDED
If ExceededSupport = TRUE and PositionDiff < NegLimit (underflow) or PositionDiff > PosLimit
(overflow) in the RUN state, the FB SLI2 module assumes the EXCEEDED state.
The outputs assume the following values:
Error = 0
SLIActive = 0
BelowMin = Underflow
AboveMax = Overflow
PositionDiff = Position - LatchPosition
In the function block view, you have the option of defining the permissible deviation of the saved position in
the positive and negative direction. By clicking next to the FB port, you can create variables that can be
linked to input or output signals.
Settings such as changing the data type or activation of the port can be made via the properties of the FB
Port.
The entries "Map Diag" and "Map State" in the properties window of the FB define which diagnostic functions
of the FB are mapped in the cyclic process image. In the parameter settings, you can define whether an
overflow is allowed or not and whether the FB in the RUN state should switch to the EXCEEDED state in the
event of an underflow or overflow.
Under "Miscellaneous", you can select the position at which the function block is to be executed in the
execution order.
FB SLP TRUE
PositionInLimit 1
BelowMin 0
AboveMax 0
FB SLP FALSE
PositionInLimit 0
BelowMin 1
AboveMax 0
FB SLP FALSE
PositionInLimit 0
BelowMin 0
AboveMax 1
If InLimit = TRUE
PositionInLimit 1
BelowMin 0
AboveMax 0
If InLimit = FALSE
PositionInLimit 0
BelowMin 0
AboveMax 0
If InLimit = TRUE
PositionInLimit 1
BelowMin 0
AboveMax 0
If InLimit = FALSE
PositionInLimit 1
BelowMin 0
AboveMax 0
Inputs
Outputs
4.29.2.2 Parameter
You can adjust the following parameters both in the function block view and in the "Properties" window:
Parameter Description
MultiTurn Pos UL Upper limit of the multi-turn position
SingleTurn Pos UL Upper limit of the single-turn position
MultiTurn Pos LL Lower limit of the multi-turn position
SingleTurn Pos LL Lower limit of the single-turn position
ScaledView UpperLimit Scaled value from MultiTurn Pos UL and SingleTurn Pos UL
ScaledView LowerLimit Scaled value from MultiTurn Pos LL and SingleTurn Pos LL
Parameter Description
Scaling Factor Numerator Numerator value for the NC scaling factor
This factor is only used for the display in the editor and is not required for the
logic.
Scaling Factor Denominator Denominator value for the NC scaling factor
This factor is only used for the display in the editor and is not required for the
logic.
Encoder Mask Encoder mask from NC configuration
Encoder Sub Mask Encoder sub mask from NC configuration
Scaling Unit Textual specification of the unit of the scaled value for the display in the
function block view
Diagnostic information
Offset Signal
0.0 FB-Type (=78)
1.0 FB State
Offset Signal
2.0 FB Diag
3.0 AnalogMask
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40D0 The multi-turn position lower limit FB instance MultiturnPos_LL MultiturnPos_UL
is greater than the multi-turn
position upper limit.
0x40D1 The multi-turn position lower limit FB instance SingleturnPos_LL SingleturnPos_UL
corresponds to the multi-turn
position upper limit. The single-
turn position lower limit is greater
than the single-turn position upper
limit.
Status information
Value Description
1.0 RUN
If SafePosValid=TRUE, the FB SLP compares with the lower limit SafePositionLowerLimit and
the upper limit SafePositionHigherLimit. If InLimit=TRUE, the FB SLP switches to the RUN state.
The outputs assume the following values:
Error=0
PositionInLimit=1
BelowMin=0
AboveMax=0
2.0 STOP
If the input FbRun=FALSE, the FB SBT module switches to the STOP state.
The outputs assume the following values:
Error=0
PositionInLimit=0
BelowMin=0
AboveMax=0
3.0 SAFE
If the input SafePosValid=TRUE, the FB SLP compares the SafePosition with the lower limit
SafePositionLowerLimit and the upper limit SafePositionHigherLimit. If InLimit=FALSE, the FB
SLP module switches to the SAF state.
The outputs assume the following values:
Error=0
Value Description
PositionInLimit=0
BelowMin=according to the comparison results
AboveMax=according to the comparison results
4.0 ERROR
When in multi-turn mode
• LL_Active=TRUE or UL_Active=TRUE and
• MultiturnPos_LL>MultiturnPos_UL applies (LimitError),
the FB SLP module switches to the ERROR state and transmits the Diag message 0x40D0 to the
Group module.
When in multi-turn mode
• LL_Active=TRUE or UL_Active = TRUE and
• MultiturnPos_LL=MultiturnPos_UL and
• SingleturnPos_LL>SingleturnPos_UL applies (LimitError),
the FB SLP module switches to the ERROR state and transmits the Diag message 0x40D1 to the
Group module.
The outputs assume the following values:
Error=1
PositionInLimit=0
BelowMin=0
AboveMax=0
5.0 RESET
If no more errors are present after an error has occurred and the input ErrAck of the associated
group is set to TRUE, the FB SLP module switches to the RESET state.
The outputs assume the following values:
Error=0
PositionInLimit=0
BelowMin=0
AboveMax=0
6.0 START
If the input SafePosValid=FALSE, the FB SLP module switches to the START state.
The outputs assume the following values:
Error=0
PositionInLimit=0
BelowMin=0
AboveMax=0
In the function block view, you have the option of setting the upper and lower limits of the single-turn and
multi-turn position. By clicking next to the FB port, you can create variables that can be linked to input or
output signals.
Settings such as changing the data type or activation of the port can be made via the properties of the FB
Port.
The entries "Map Diag" and "Map State" in the properties window of the FB define which diagnostic functions
of the FB are mapped in the cyclic process image.
Under "Miscellaneous", you can select the position at which the function block is to be executed in the
execution order.
If you want to check both drive directions, you must use 2 instances of the SBT function block and the
BrakeValid result from both function blocks within the user logic.
The BrakeValid signal is not set during the brake test and may have to be bypassed with the SBT signal for
the duration of the brake test.
The function block SBT sets the output BrakeValid=0 on a rising edge (SBT=1). The output RemainingTime
continues to decrement unchanged and the function block sets the output TestError=0.
As soon as SBT=1 and SBTIn=0, the system checks whether the value of ActCurrentIq is equal to or greater
than the value of MinCurrentIq for the duration of MinDuration. A check is also made to ensure that the
SingleTurn position does not change more than MaxPositionDeviation.
TestError 0
BrakeValid 1
RemainingTime BrakeTestInterval
The timer until the next brake test is reset.
TestError 1
BrakeValid 0
RemainingTime 0
TestError 1
BrakeValid 0
RemainingTime continue decrementing unchanged
TestError 0
BrakeValid unchanged
RemainingTime continue decrementing unchanged
Digital inputs
Analog inputs
Digital outputs
Analog outputs
4.30.2.2 Parameter
Parameter Description
MinCurrentIq Torque-forming current for the minimum required torque of the axis
Parameter Description
BrakeTestInterval Interval between brake tests in seconds.
The preset value is 28800.
MaxPosititionDeviation Maximum deviation of the position during the brake test
MinDuration Minimum required test duration for the brake test in tenths of a second
The preset value is 10.
MaxDuration Maximum total duration of the brake test in tenths of a second
The preset value is 200.
Diagnostic information
Offset Signal
0.0 FB-Type (=79)
1.0 FB State
2.0-3.0 MinDurationTimerLatch
4.0-5.0 MaxDurationTimerLatch
6.0-9.0 LatchedSingleturnPosition
10.0-13.0 RemainingTimeLatch
14.0-17.0 RemainingTime (in s)
18.0 Status:
Bit 0: LastTestResult
19.0 Inputs of the last cycle
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40DA The single-turn position exceeds FB instance SingleturnPosition MaxPositionDeviatio
the maximum position deviation. Diff n
0x40D8 The maximum duration of the FB instance FB-State=0x12 LatchPosition
brake test has expired without the
test being successfully completed.
0x40D9 The time remaining for the next FB instance FB-State=0x14 LatchPosition
brake test has expired and no new
brake test has been started.
Status information
Value Description
1.0 RUN
If
• SBT=FALSE,
• the last brake test was successful and
• RemainingTime ≤ BrakeTestInterval,
the SBT module switches to the RUN state.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = current remaining time
2.0 STOP
If
• FbRun = FALSE
Value Description
the SBT module switches to the STOP state.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = 0
3.0 SAF
If
• SBT = FALSE,
• the last brake test was not successful and
• RemainingTime>BrakeTestInterval
the SBT module switches to the SAF state.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = current remaining time
4.0 TESTING
If
• SBT = TRUE
the SBT module switches to the TESTING state and loads the MaxDurationTimer with the
MaxDurationTime.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = 0 or current remaining time
4.1 TEST-OK
If
• the brake test was successful and
• no falling edge was detected at input SBT
the SBT module switches to the TEST-OK state.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = current remaining time
4.2 TEST-FAILED
If
• SBT = TRUE and
• TestFailed = TRUE, TestExpired = TRUE or TimerExpired = TRUE
the SBT module switches to the TEST-FAILED state.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = 0 or current remaining time
5.0 MONS-ERROR
If
• TimerExpired = TRUE and
• SBT = FALSE
Value Description
the SBT module changes to the state Mons-ERROR and sets LastTestResult = FALSE.
The outputs assume the following values:
• TestError = 0
• BrakeValid = 0
• RemainingTime = 0
In the function block view, you have the option of setting the torque-generating current for the minimum
required torque of the axis. By clicking next to the FB port, you can create variables that can be linked to
input or output signals.
Settings such as changing the data type or activation of the port can be made via the properties of the FB
Port.
The entries "Map Diag" and "Map State" in the properties window of the FB define which diagnostic functions
of the FB are mapped in the cyclic process image.
You can also set the interval between two brake tests and the minimum and maximum duration of a brake
test in the parameter settings. Under "Miscellaneous", you can select the position at which the function block
is to be executed in the execution order.
With an AX8000 with integrated EnDat 3 encoder, a SIL 3 / PL e category 4 can also be achieved with
additional measures. For this purpose, the function block "AdvPosMon" must be used for additional
monitoring of position and speed.
NOTICE
Integration in Safe Motion functions
You must integrate the additional measures into every Safe Motion function that is to be loaded with SIL 3 /
PL e category 4. For more information on integration in Safe Motion functions, see the chapter AdvPosMon
with integrated EnDat 3 encoder in document [5] at References [} 12].
Inputs
Outputs
4.31.2.2 Parameter
You can adjust the following parameters both in the function block view and in the "Properties" window:
Parameter Description
ChA Primary Feedback Primary feedback from channel A
ChA Secondary Feedback Secondary feedback from channel A
ChB Primary Feedback Primary feedback from channel B
ChB Secondary Feedback Secondary feedback from channel B
Diagnostic information
Offset Signal
0.0 FB-Type (=80)
1.0 FB State
2.0 FB ADVPOSMON Diagnosis
3.0 SAFEDRIVEFEEDBACK instance (0-3)
Status information
Value Description
1.0 RUN
Value Description
If
• ENABLED = TRUE and
• the assigned SAFEDRIVEFEEDBACK module is in error mode
the ADVPOSMON module switches to the RUN state.
The outputs assume the following values
• Error = 0
• if POS_REF_OK = TRUE and POS_CHECK_OK = TRUE:
Active = 1
• if POS_REF_OK = FALSE:
Wait = 1
• if POS_REF_OK = TRUE and POS_CHECK_OK = FALSE:
OverRange = 1
2.0 STOP
If
• FbRun = FALSE
the ADVPOSMON module switches to the STOP state.
The outputs assume the following values:
• Error = 0
• Active = 0
• Wait = 0
• OverRange = 0
3.0 SAFE
If
• ENABLED = FALSE and
• the assigned SAFEDRIVEFEEDBACK module is in error mode
the ADVPOSMON module switches to the SAF state.
The outputs assume the following values:
• Error = 0
• Active = 0
• Wait = 0
• OverRange = 0
4.0 ERROR
If
• SDFB_ERROR = TRUE
the ADVPOSMON module changes to the ERROR state and transfers the Diag message 0x38D1
to the Diag history.
The outputs assume the following values:
• Error = 1
• Active = 0
• Wait = 0
• OverRange = 0
5.0 RESET
If in the ERROR state
• ErrAck (of the Group) = TRUE and
• the assigned SAFEDRIVEFEEDBACK module is in error mode
the ADVPOSMON module switches to the RESET state.
Value Description
The outputs assume the following values:
• Error = 0
• Active = 0
• Wait = 0
• OverRange = 0
6.0 START
If in the WAIT-FOR-RESTART state
• Restart = TRUE and
• the assigned SAFEDRIVEFEEDBACK module is in error mode
the ADVPOSMON module switches to the START state.
The outputs assume the following values:
• Error = 0
• Active = 0
• Wait = 0
• OverRange = 1
7.0 WAIT-FOR-RESTART
If in the RUN state
• OverRange = 1 and
• RESTART_ACTIVE = TRUE and
• the assigned SAFEDRIVEFEEDBACK module is in error mode
the ADVPOSMON module switches to the WAIT-FOR-RESTART state.
The outputs assume the following values:
• Error = 0
• Active = 0
• Wait = 0
• OverRange = 1
In the function block view, you have the option of selecting the feedback. By clicking next to the FB port, you
can create variables that can be linked to input or output signals.
Settings such as changing the data type or activation of the port can be made via the properties of the FB
Port.
The entries "Map Diag" and "Map State" in the properties window of the FB define which diagnostic functions
of the FB are mapped in the cyclic process image. You can also choose the feedback in the parameter
settings. Under "Miscellaneous", you can also select where the function block should be executed in the
execution order.
This function block can typically be used for SS1 or SS2 safety function, for example.
NOTICE
KL6904/EL6900
The function block Envelope is not available in the KL6904 and the EL6900.
FB Envelope outputs
Offset Name Permitted type Data type Description
0.0 Error TwinSAFE-Out BOOL Error output (see diagnostic information)
FB-In
Standard-Out
1.0 SafeFunction TwinSAFE-Out BOOL Output with the safety function (delayed and envelope-
Out FB-In monitored)
Standard-Out
Type Description
Standard-Out Standard PLC variable (input in the PLC %I*)
FB-In TwinSAFE FB input
TwinSAFE SC Input of a TwinSAFE connection (TwinSAFE SC technology)
FB Envelope parameters
Parameter Description
Target Value Target window of InValue, symmetrical around 0
Offset Offset values, which is added to the amount of InValue and then forms
the start point of the envelope as positive and negative value.
Time after in Target (ms) Time after which the SafeFunctionOut output is switched off, if it is
within the TargetValue
Max Time (ms) Maximum time, after which the SafeFunctionOut output is switched off.
Diagnostic information
Value Description
0.0 No diagnostic information
1.0 Underflow (InValue below the envelope)
2.0 Overflow (InValue above the envelope)
3.0 InValue Error
4.0 MaxTimeExpired
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
0x40C8 InValueExpired AND InValue < 0 FB instance InValue MinAllowedValue
0x40C9 InValueExpired AND InValue > 0 FB instance InValue MaxAllowedValue
0x40CA InValueError=TRUE FB instance InValue -
0x40CB MaxTimeExpired=TRUE FB instance InValue -
Status information
Value Description
1.0 RUN
If the input SafeFunction=TRUE, the FB ENV module assumes the RUN state.
The outputs assume the following values:
Error=0
SafeFunctionOut=1
2.0 STOP
If the input FbRun=FALSE, the FB ENV module assumes the STOP state.
The outputs assume the following values:
Error=0
SafeFunctionOut=0
3.0 SAFE
If the input SafeFunction=FALSE, MaxTimeExpired=TRUE or TimeAfterInTargetExpired=TRUE,
the FB ENV module assumes the SAFE state.
Value Description
The outputs assume the following values:
Error=0
SafeFunctionOut=0
4.0 ERROR
If the FB ENV module detects an error, the FB ENV module switches to the ERROR state and
transmits the corresponding Diag message to the GROUP module.
The outputs assume the following values:
Error=1
SafeFunctionOut=0
5.0 RESET
If there is no longer an error after an error has occurred and the input ErrAck of the associated
group is set to TRUE, the FB ENV module assumes the RESET state.
The outputs assume the following values:
Error=0
SafeFunctionOut=0
8.0 DELAYOUT
If the input SafeFunction=FALSE, InValueInTarget=TRUE, TimeAfterInTargetExpired=TRUE and
MaxTimeExpired=FALSE, the FB ENV module assumes the DELAYOUT state.
The outputs assume the following values:
Error=0
SafeFunctionOut=1
9.0 MONITOR
If the input SafeFunction=FALSE, InValueInTarget=FALSE and MaxTimeExpired=FALSE, the
FB ENV module assumes the MONITOR state and monitors whether the InValue is still within
the envelope (InValueExpired=FALSE).
To do this, the FB ENV module calculates the maximum permissible difference by first
multiplying the InValueDec with the elapsed time since the transition to the MONITOR state. This
intermediate result is subtracted from InValueLatch (InValue at the time of the state transition to
the MONITOR state); the value must not be smaller than the TargetValue. If this difference is
less than the amount of the current InValue, InValueExpired=TRUE is set.
The outputs assume the following values:
Error=0
SafeFunctionOut=1
A mouse click next to the FB Port can be used to create variables that can be linked with input or output
signals. Settings such as changing the data type or activation of the input can be made via the properties of
the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
NOTICE
KL6904/EL6900
The function block ViolationCnt is not available in the KL6904 and the EL6900.
FB ViolationCnt outputs
Offset Name Permitted type Data Description
type
1.0 InputOK TwinSAFE-Out BOOL This output is set to TRUE if Enable is TRUE and the
FB-In internal error counter is below the counter limit.
Standard-Out
0.0- ActViolation TwinSAFE-Out UINT16 Indicates the current internal counter value if the input
(n-1) Cnt FB-In (n=2) Enable is TRUE, otherwise the output is set to 0.
Standard-Out UINT32
(n=4)
FB ViolationCnt parameters
Parameter Description
Increment Error Number by which the internal counter is incremented
Decrement No Error Number by which the internal counter is decremented
Counter Limit Limit for the internal counter. Above the limit, the output InputOK is set to FALSE.
Diagnostic information
Value Description
0.0 No diagnostic information
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
- - - - -
Status information
Value Description
1.0 RUN
If the input Enable=TRUE and LimitOverrun=FALSE, the FB VIOCNT module
assumes the RUN state and modifies the ActViolationCnt.
The outputs assume the following values:
InputOK=1
ActViolationCnt = current value
2.0 STOP
If the input FbRun=FALSE, the FB VIOCNT module assumes the STOP state.
The outputs assume the following values:
InputOK=0
ActViolationCnt = 0
3.0 SAFE
If the input Enable=TRUE and LimitOverrun=TRUE, the FB VIOCNT module assumes
the SAFE state and modifies the ActViolationCnt.
The outputs assume the following values:
InputOK=0
ActViolationCnt = current value
Value Description
6.0 START
If the input Enable=FALSE, the FB VIOCNT module assumes the START state.
The outputs assume the following values:
InputOK=0
ActViolationCnt = 0
A mouse click next to the FB Port can be used to create variables that can be linked with input or output
signals. Settings such as changing the data type or activation of the input can be made via the properties of
the FB port.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
NOTICE
Support
The function block XOR is not available in the KL6904, EL6900 and EL6910 (SW ≤ 03).
FB XOR outputs
Offset Name Permitted type Data Description
type
8.0 XorOut1 TwinSAFE-Out BOOL Output of XOR1
FB-In
Standard-Out
9.0 XorOut2 TwinSAFE-Out BOOL Output of XOR2
FB-In
Standard-Out
10.0 XorOut3 TwinSAFE-Out BOOL Output of XOR3
FB-In
Standard-Out
11.0 XorOut4 TwinSAFE-Out BOOL Output of XOR4
FB-In
Standard-Out
12.0 XorOut5 TwinSAFE-Out BOOL Output of XOR5
FB-In
Standard-Out
13.0 XorOut6 TwinSAFE-Out BOOL Output of XOR6
FB-In
Standard-Out
14.0 XorOut7 TwinSAFE-Out BOOL Output of XOR7
FB-In
Standard-Out
Diagnostic information
Value Description
0.0 No diagnostic information
Diag Message
Text ID Meaning Parameter 1 Parameter 2 Parameter 3
- - - - -
Status information
Value Description
1.0 RUN
If the input FbRun=TRUE, the FB XOR module assumes the RUN state.
The outputs assume the following values depending on the active input pairs
(configuration: FB Input Active):
XorOutY = (Xor1InY XOR Xor2InY) AND FB Input Active(Y) with Y = {1,2 .. 8}
2.0 STOP
If the input FbRun=FALSE, the FB XOR module assumes the STOP state.
The outputs assume the following values:
XorOutY = 0 with Y = {1,2 ... 8}
A mouse click next to the respective FB Port can be used to create variables that can be linked to input or
output signals. The properties of the FB Port can be used for settings such as port activation.
The MapState and MapDiag entries define which diagnostic functions of the FB are mapped to the cyclic
process image.
5 Appendix
Please contact your Beckhoff branch office or representative for local support and service on Beckhoff
products!
The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet
pages: www.beckhoff.com
You will also find further documentation for Beckhoff components there.
Support
The Beckhoff Support offers you comprehensive technical assistance, helping you not only with the
application of individual Beckhoff products, but also with other, wide-ranging services:
• support
• design, programming and commissioning of complex automation systems
• and extensive training program for Beckhoff system components
Hotline: +49 5246 963 157
e-mail: support@beckhoff.com
web: www.beckhoff.com/support
Service
The Beckhoff Service Center supports you in all matters of after-sales service:
• on-site service
• repair service
• spare parts service
• hotline service
Hotline: +49 5246 963 460
e-mail: service@beckhoff.com
web: www.beckhoff.com/service
Headquarters Germany
Hülshorstweg 20
33415 Verl
Germany
Phone: +49 5246 963 0
e-mail: info@beckhoff.com
web: www.beckhoff.com
List of figures
Fig. 1 Connection ................................................................................................................................... 21
Fig. 2 TwinSAFE group inputs/outputs (online)...................................................................................... 22
Fig. 3 Function block list online values................................................................................................... 23
Fig. 4 Emergency Stop........................................................................................................................... 23
Fig. 5 Connection List ............................................................................................................................ 24
Fig. 6 Variables tab (connection) ........................................................................................................... 25
Fig. 7 Diag History of the EL6910 with a Com Error due to a false CRC............................................... 26
Fig. 8 Safety Project Online View........................................................................................................... 27
Fig. 9 Info data connection..................................................................................................................... 27
Fig. 10 Connection info data in the I/O tree structure .............................................................................. 28
Fig. 11 Function block properties ............................................................................................................. 28
Fig. 12 Function block Info Data in the I/O tree structure......................................................................... 29
Fig. 13 Access to Info Data via Properties ............................................................................................... 29
Fig. 14 TwinSAFE group Info Data in the I/O tree structure..................................................................... 30
Fig. 15 Function block AND ..................................................................................................................... 31
Fig. 16 FB AND configuration .................................................................................................................. 33
Fig. 17 FB AND in TwinCAT 3 ................................................................................................................. 34
Fig. 18 FB AND properties ....................................................................................................................... 34
Fig. 19 Function block OR........................................................................................................................ 35
Fig. 20 FB OR configuration..................................................................................................................... 37
Fig. 21 FB OR in TwinCAT 3.................................................................................................................... 38
Fig. 22 FB OR properties ......................................................................................................................... 38
Fig. 23 Function block OPMODE ............................................................................................................. 39
Fig. 24 FB OPMODE configuration .......................................................................................................... 42
Fig. 25 Restart behavior OPMODE (sample 1)........................................................................................ 43
Fig. 26 Restart behavior OPMODE (sample 2)........................................................................................ 44
Fig. 27 FB OPMODE in TwinCAT 3 ......................................................................................................... 44
Fig. 28 FB OPMODE properties............................................................................................................... 45
Fig. 29 Function block ESTOP................................................................................................................. 46
Fig. 30 FB ESTOP configuration.............................................................................................................. 50
Fig. 31 Restart behavior ESTOP (sample 1)............................................................................................ 51
Fig. 32 Restart behavior ESTOP (sample 2)............................................................................................ 52
Fig. 33 Restart behavior ESTOP (sample 3)............................................................................................ 52
Fig. 34 Restart behavior ESTOP (sample 4)............................................................................................ 53
Fig. 35 EDM Reset Time.......................................................................................................................... 53
Fig. 36 FB ESTOP in TwinCAT 3............................................................................................................. 54
Fig. 37 FB ESTOP properties .................................................................................................................. 54
Fig. 38 Function block MON..................................................................................................................... 55
Fig. 39 FB MON configuration.................................................................................................................. 59
Fig. 40 Restart behavior MON (sample 1) ............................................................................................... 61
Fig. 41 Restart behavior MON (sample 2) ............................................................................................... 61
Fig. 42 Restart behavior MON (sample 3) ............................................................................................... 62
Fig. 43 EDM Reset Time.......................................................................................................................... 62
Fig. 44 FB MON in TwinCAT 3................................................................................................................. 63