Safety PLC Manual V1.2 en
Safety PLC Manual V1.2 en
For your safety and effective operation, please read the safety instructions
thoroughly before using the product.
► Instructions are separated into “Warning” and “Caution”, and the meaning of
the terms is as follows;
► The marks displayed on the product and in the user’s manual have the
following meanings.
► The user’s manual even after read shall be kept available and accessible to
any user of the product.
1
Safety Instruction
Warning
Never connect the overload than rated to the output module nor
allow the output circuit to have a short circuit, which may cause a
fire.
2
Safety Instruction
Caution
I/O signal or communication line shall be wired at least 100mm
away from a high-voltage cable or power line. If not, it may cause
abnormal output or operation.
Caution
Use PLC only in the environment specified in PLC manual or
general standard of data sheet. If not, electric shock, fire, abnormal
operation of the product or flames may be caused.
Don’t let any metallic foreign materials inside the product, which
may cause electric shock, fire or abnormal operation.
3
Safety Instruction
Warning
Prior to wiring, be sure that power of PLC and external power is
turned off. If not, electric shock or damage on the product may be
caused.
Before PLC system is powered on, be sure that all the covers of
the terminal are securely closed. If not, electric shock may be caused
Caution
Let the wiring installed correctly after checking the voltage rated
of each product and the arrangement of terminals. If not, fire,
electric shock or abnormal operation may be caused.
Don’t let any foreign materials such as wiring waste inside the
module while wiring, which may cause fire, damage on the product
or abnormal operation.
4
Safety Instruction
Warning
Don’t touch the terminal when powered. Electric shock or abnormal
operation may occur.
Caution
Don’t remove PCB from the module case nor remodel the module.
Fire, electric shock or abnormal operation may occur.
Caution
Product or battery waste shall be processed as industrial waste.
The waste may discharge toxic materials or explode itself.
5
Safety Instruction
6
Revision History
Revision History
Version Date Remark Chapter
1
Revision History
2
About User's Manual
The User’s Manual describes the product. If necessary, you may refer to the following description and order accordingly.
In addition, you may connect our website (http://www.ls-electric.com/) and download the information as a PDF file.
XG5000 User’s Manual XG5000 software user manual describing online function such as programming,
(for XGI, XGR) print, monitoring, debugging by using XGI, XGR CPU.
1
About User's Manual
2
Table of Contents
◎ TABLE OF CONTENTS ◎
8
Table of Contents
9
Table of Contents
10
Table of Contents
11
Chapter 1. Introduction
Chapter 1 Introduction
Program Structure and Describes function, specification and operation of XGS CPU
Chapter 5
Operation Module.
Functions of CPU
Chapter 6
Module
Chapter 13 Safety Function Block Describes the method of using the safety function block.
1-1
Chapter 1. Introduction
1.2 Features
The XGS Safety Controller has following features.
• SIL3 (IEC61508)
• SILCL3 (IEC62061)
• Category 4 (ISO 13849-1)
2) Compact size
3) System configuration
4) Communication system
Simplified programming reduces programming time and enhanced online function enables completion of
control systems without stopping the objective system.
6) User convenience
• Self-diagnosis function
• Various operation histories provided.
1-2
Chapter 1. Introduction
1.3 Terminology
For the purpose of this document, the following terms shall have the following definitions:
PFD
(Probability of Indicated mean failure rate of a system of device. Used to calculate SIL
-
Failure on (Safety Integrity Level) of a safety system.
Demand)
PFH
Indicates per hour failure rate of a system or device. Used to calculate
(Probability of -
SIL (Safety Integrity Level) of a safety system.
Failure per Hour)
1-3
Chapter 1. Introduction
The variables used after declaration of name and type by the user. For
example, declaring: ‘INPUT_0’ =%IX0.0.2, ‘RESULT’=%MD1234, the
Symbolic variables -
programming can be created by the names of ‘INPUT_0’ and ‘RESULT’
instead of %IX0.0.2 and %MD1234.
1-4
Chapter 2. System Configuration
Programing Tool USB Cable Safety CPU Module Safety Input Safety In/Output
XG5000 Ethernet Cable XGS-CPU01A Module Module
XGS-DI08A XGS-DIO84A
2-1
Chapter 2. System Configuration
NOTE
1) System can start operation only when the types of the modules set up with I/O parameters agree with the actual
module types.
2) Module or system change is not allowed during system operation. For the change, system power supply
must be cut off.
3) During system configuration, you must configure the safety system and the general system separately.
4) All sensors, field control devices and the wiring / equipment connected to the system are recommended
to install security features that required in accordance with the IEC62061, EN ISO13849-1.
2-2
Chapter 2. System Configuration
The XGS Safety Controller provides built-in Ethernet communication by the safety CPU module for monitoring with common
PLC and HMI.
2-3
Chapter 2. System Configuration
Select [Setting (S)…], and in the dialog, input the IP address set up at the Safety Controller and press [Confirm] button.
In the access setting dialog, press [Access] button to access via Ethernet.
Note that the access is allowable after Ethernet setting has been written in the safety CPU module via the first USB
connection.
2-4
Chapter 2. System Configuration
Pressing the Modbus setting button will show the setting dialog shown below. Input the starting addresses in
the bit read domain, bit write domain, word read domain and word write domain, and write in the PLC to
execute Modbus TCP/IP server function.
NOTE
1) Ethernet communication is connected via a switching hub.
2) Up to 4 exclusive access points are supported.
3) The client can read I, Q, IS, QS, TS, and M domains of the Safety Controller.
Write command is applicable in the M domain only.
4) For reading IS, QS, and TS domains, set up by referring to the table below:
2-5
Chapter 2. System Configuration
2-6
Chapter 3. General Specifications
Note
1) IEC (International Electrotechnical Commission):
An international nongovernmental organization which promotes internationally cooperated standardization in
electric/electronic field, publishes international standards and manages applicable estimation system related with.
2) Pollution degree:
An index indicating pollution degree of the operating environment which decides insulation performance of the devices. For instance, Pollution
degree 2 indicates the state generally that only non-conductive pollution occurs. However, this state contains temporary conduction due to dew
produced.
3-1
Chapter 3. General Specifications
3-2
Chapter 4. Safety CPU Module
4-1
Chapter 4. Safety CPU Module
①-a ③
①-a
①-b ①-b
①-c ①-c
④
②
4-2
Chapter 5. Program Structure and Operation
START
Program Operation Perform operation from the beginning to the end of the
Start program program sequentially.
End program
For the CPU module to return to the first step after finishing
END a scan process, following actions are performed:
Refresh present user timer value
Perform self diagnosis
Perform communication service
(Dedicated communication server, Modbus TCP/IP
server, XG5000 service)
Process mode change request
5-1
Chapter 5. Program Structure and Operation
In the event that the voltage input to the safety CPU module is lower than the specification, following actions are carried
out: Normal function is continued for a power failure shorter than 10ms.
If the power fails for longer than 10ms, operation is stopped and output is turned off. Operation is resumed automatically
at power recovery.
NOTE
1) What is instantaneous power failure?
The system input voltage is lower than the allowable limit specified for the PLC for a very short time
(several ms ~ tens of ms).
5-2
Chapter 5. Program Structure and Operation
Scan time is the time elapsed from 0 step of program to the next 0 step, that is the time elapsed for completing
one control operation.
⑤XG5000 service
(1) Scan time = ① Processing scan program + ② System check + ③ I/O data Refresh
+ ④ Network Service + ⑤ XG5000 Service
① Processing scan program = the time expected to elapse for program inspection by XG5000
② System check = Time for self diagnosis + Time for MUC synchronization
[May increase according to the use of automatic allocation variables.]
= 900 ㎲ + 800 ㎲
③ I/O data refresh = 400 ㎲ per safety I/O module
④ Network Service (built-in Ethernet communication)
⑤ XG5000 Service processing time = 500 ㎲ for max. data monitoring
(2) Example
The scan time for [Estimated time for ladder program running (5.16 ms) + System comprising 2 I/O
modules] is
as follows:
Scan time (㎲) = Time for executing ladder + System processing time + I/O module processing time
+ Communication processing time + XG5000 Service processing time
= (5,160) + (1,700) + (400 X 2) + ( 0 ) + (500)
= 8.16 ㎳
(3) Scan time can be monitored by; [Online] – [Diagnosis] – [PLC Information] of XG5000.
5-3
Chapter 5. Program Structure and Operation
When it detects a failure by the diagnosis of the safety controller, the system will switch to safe mode. The system
will block all output. The time it takes to detect the failure and to shut off its output is called safe response time.
(1) Maximum safe response time = (2 X ①Scan time) + ②Diagnosis Processing Time
①Scan time: See Chapter 5.1.3
②Diagnosis Processing Time: fault diagnosis processing time of I/O module (0.1ms)
(2) Example
Maximum safety response time of 8ms scan time is shown below.
Maximum safe response time = (2 X ①Scan time) + ②Diagnosis Processing Time
= (2 X 8ms) + (0.1ms)
= 16.1ms
NOTE
In order to calculate the response time until the output block of the actual response time of the
system, response time of Input(sensor / switch) and Output(actuator) connected to the safety
controller must be combined with a separate calculation.
5-4
Chapter 5. Program Structure and Operation
The operation modes of safety CPU module includes RUN/STOP mode, Configuration Lock/Unlock mode, and Normal/Safe.
These modes are described in detail below.
2) Description of operation
Conducts I/O refresh and program operation.
(1) Conducts I/O refresh.
(2) Conducts program operation.
(3) Check normal operation, separation of the installed modules.
(4) Conducts communication service and other internal processes.
5-5
Chapter 5. Program Structure and Operation
2) Description of operation
This mode locks the configuration finished with safety sign to prevent change. In the safety lock mode, program cannot be
written in the safety CPU module.
NOTE
1) What is Configuration?
Configuration is the set of all the data related to XGS Safety Controller, including basic parameters, I/O
parameters, and scan program.
When a problem inside or outside of the system is detected during normal operation (normal mode), the XGS Series Safety
Controller switches to safe mode automatically. After entering safety mode, the error and countermeasures can be viewed by
selecting the error history tap in the [Online] – [PLC History] window of the XG5000.
NOTE
The XGS Series Safety Controller defines safe status as the status where all outputs have been cut off. As
such, safety system shall be so designed as to enter safe condition when outputs are cut off.
5-6
Chapter 5. Program Structure and Operation
Change the modes by connecting the programming tool (XG5000) to the communication port of the safety
CPU module.
5-7
Chapter 5. Program Structure and Operation
5-8
Chapter 6. Functions of Safety CPU Module
(1) Safety CPU module can diagnosis itself for any abnormality with this function.
(2) Any abnormality at system power ON or during operation is detected to conduct preventive measures
against system malfunction and preventive maintenance.
Safety CPU module performs following self-diagnosis functions to detect problem of the safety CPU module
itself.
If any abnormality is detected in the self testing, the Run/State LED flashes on the front of the safety CPU
module and the module enters safety mode.
After switching to safety mode, the system cuts off all the outputs.
Safety CPU module performs following self-diagnosis functions to detect problem of the I/O module.
If any abnormality is detected in the self testing, the Run/State LED flashes on the front of the safety CPU
module and the module enters safety mode.
After switching to safety mode, the system cuts off all the outputs.
The safety CPU module and safety I/O module have two processor inside. The two processor perform operation
independently and compare the results. If the results mismatch, the system switches to safe mode. After
switching to safety mode, the system cuts off all the outputs.
6-1
Chapter 6. Functions of Safety CPU Module
The safety CPU module records error history to support easy inspection and correction of the causes.
(See 12.5 Error Code List)
NOTE
1) All the results of self test are recorded in the flag area.
2) For further information on the self testing and error correction, see 12.5 Error Code List, Chapter 12,
Troubleshooting.
6.1.5 Troubleshooting
1) Classification of failures
Failures may occur in the PLC, inappropriate configuration of the system, incorrect operation result, etc.
Failures are classified into Heavy failures to which the system operation must be terminated for safety, and
Light failures to which the operator is notified of the failure and the system continues operation.
6-2
Chapter 6. Functions of Safety CPU Module
6.2.2 Password
6-3
Chapter 6. Functions of Safety CPU Module
The safety CPU module is has a clock function to provide reference time to system operation history, failure
history, and other temporal control.
Present time is continuously scanned and updated in the clock related F domain.
NOTE
1) The clock function operates only while the PLC is supplied with power. At power off, the clock stops and holds the point of
time at power off.
As such, the clock must be reset to present time at power recovery.
2) Factory setting is 2000 (YYYY) 1 (MM) 1 (DD) 0 (HH) 0 (MM) 0 (SS) UTC and 2000 (YYYY) 1 (MM) 1 (DD) 9 (HH)
0 (MM) 0 (SS) in Korean time.
Date and time of the PLC will display. To correct time display of the PLC, correct time can be transmitted to the PLC, or
using 'Synchronization with PLC clock (S)' tap which transmits time from a PC connected to the PLC for
synchronization.
When the PLC clock is set, the dialog displays 'PLC clock is set up' as shown in the picture. If the PLC time
is not valid due to power OFF/ON, or being not set up, the dialog displays 'PLC clock is not set up or
incorrect' as shown in the picture to the right.
6-4
Chapter 6. Functions of Safety CPU Module
The forced input/output function turns I/O area On/Off regardless of the function of the program. This function is for design
and testing of the safety system, and does not function in safety lock condition.
Specify the time for setting in [Online] – [Forced I/O Setting] window. At the set up time, the PLC will reset I/O and enter
stop mode.
Click [Monitor] – [Start Monitor] and double click the contact point to which forced I/O is to be set up. A
window appears in which present value can be changed.
Click [Forced I/O ▼] to enter forced I/O setting window. Select: Allow Forced Input (Output) and Forced Value taps, and
click Confirm to effect forced I/O function
NOTE
6-5
Chapter 6. Functions of Safety CPU Module
Select Basic Operation setting tap in the [Parameter] – [Basic Parameter] window. From the Auto Run at Start-up menu,
select Auto Run and then Write to finish the setting.
The table below presents the operation mode at power Off and On, according to the operation mode and Auto
Run function setting at the time of power Off.
Operation mode at Off
STOP Mode RUN Mode Safety Mode
Auto Run Setting
STOP mode when
Stop STOP mode STOP mode
normal
RUN mode when
Auto Run STOP mode RUN mode
normal
6-6
Chapter 6. Functions of Safety CPU Module
The PLC history (log) of the safety CPU module can be classified into 3 types: system log, error log, and user
log.
The point of time, , etc. are saved in the memory for convenient monitoring at the XG5000.
Select [Basic Operation Setting] tap in the [Parameter] – [Basic Parameter] window. Max. log mode can be set up to system
log, error log and user log, respectively.
6-7
Chapter 6. Functions of Safety CPU Module
Saves the content and time of system error occurred during operation.
• Save date, time and error code
• Up to 3,000 logs are saved
Select [Log Setting] tap in the [Parameter] – [Basic Parameter] window. Check the Use check box and input the message to
be recorded at an event.
At an IN input rise event, the message corresponding to the message No. of MSG input value is recorded
in the user log.
Refer to the command manual for further details of the MESSAGE or MESSAGE_S function block.
NOTE
1) Saved information is maintained until deleted with pertinent menu of the XG5000.
2) If the history count exceeds 100, only a portion of the histories are displayed. To read all the histories, conduct View All.
6-8
Chapter 7. Safety I/O Module
This is to provide information on the cautions for using the safety input/output module of the XGS Series
Safety Controller.
1) For driving an inductive (L) load at the output point, set up the maximum opening and closing
frequencies at ON for 1 s and OFF for 1 s.
2) If the output point is set up with average current, inrush current at output point ON or during operation
may cause troubles. In order to protect the system from inrush current, install resistance or inductor in
series to the load or select the load taking margin for maximum allowable current into consideration.
3) The size of the wire connected to the terminal block shall be stranded 0.3~0.75 ㎟ or a single line 2.8 ㎜
or less thickness. Check the allowable current of the wire which may differ by insulation thickness, etc.
4) Power supply to the output contact must be isolated from the power supply to the safety CPU module.
7-1
Chapter 7. Safety I/O Module
SFF 99.1174 % -
Weight 210g
7-2
Chapter 7. Safety I/O Module
Specification
Item Remark
XGS-DIO84A
Input points 8 -
Single channel input mode 8 input points used individually (I0 ~ I7) -
Input
4 input points used by dual
mode Dual channel input mode -
(I0/I1, I2/I3, I4/I5, I6/I7)
Rated input DC +24V, 4.0mA -
Safety On assured voltage /On current DC +11V or more, 12mA or more -
Digital
Input Off assured voltage /Off current DC +5V or less, 0.8mA or less -
Off On input filter 0 ms ~ 200 ms
Set up by 1 ms unit
On Off input filter 0 ms ~ 200 ms
Mismatch time 0 ms ~ 65535 ms
Dual
input Error latch time 0 ms ~ 65535 ms -
mode
Input mode Equivalent, Complementary
Test pulse output contact 2 Use or No can be set up
Test pulse output mode PNP output -
Test Test pulse output voltage DC +24V (+19.2V ~ +28.8V) -
Pulse
Output Test pulse output current Max. 120 mA/contact -
Test pulse cycle 40ms ~ 1000ms Set up by 4 ms unit
Test pulse width 1ms ~ 100ms Set up by 1 ms unit
Output points 4 -
Output mode PNP output -
Single channel output mode 4 input points used individually (Q0 ~ Q1) -
Output
2 output points used by dual
mode Dual channel output mode -
Safety (Q0/Q1, Q2/Q3)
Digital Output voltage DC +24V (+19.2V ~ +28.8V) -
Output
Output current Max. 0.5 A/contact -
Error latch time 0 ~ 65535 ms -
DC +24V (+19.2V ~ +28.8V)
Power supply for output extra-low voltages with safe separation Via external connector
Power supply (SELV, PELV)
SIL 3 (IEC 61508 : 2009)
Applicable specification SILCL 3 (IEC 62061 : 2005) -
PLe, Category 4 (EN ISO 13849-1 : 2008)
Power supply Via extension connect to CPU module -
PFH 6.67541 x 10-09 -
PFD 3.623 x 10-05 -
SFF 99.1174 % -
H/W Fault Tolerance 1
Internal consumption current 0.51A -
Weight 220g -
7-3
Chapter 7. Safety I/O Module
①-a
② ②
①-b
③ ③
XGS-DI08A XGS-DIO84A
④ Contact connector Connectors for I/O contacts, test pulse, output contact power supply
7-4
Chapter 8. Functions of Safety I/O Module
1
N (I0, I2, I4, I6)
0
1
Input
0
8-1
Chapter 8. Functions of Safety I/O Module
In Dual Channel input mode, input image area (Area I), input diagnosis device (Area IS), and safety I/O module
contact LED functions according to the status of input contact, as follows.
Input
Low High 0 0 0 0 Red Red
Equivalent mismatch
Mode Input
High Low 0 0 0 0 Red Red
mismatch
Input
Low Low 0 0 0 0 Red Red
mismatch
Input
High High 0 0 0 0 Red Red
mismatch
N represents even number input contact, y represents No. of slot where the module is installed.
IS image areas display “1” at normal and “0” at abnormal.
8-2
Chapter 8. Functions of Safety I/O Module
Set up On/Off filter time and Off/On filter time. Setting can be made within 0 ~ 200 ms range by 1 ms unit. The
initial (default) setting is 4 ms.
8-3
Chapter 8. Functions of Safety I/O Module
8-4
Chapter 8. Functions of Safety I/O Module
The picture below illustrates an exemplary case wherein input 0 and input 1 contacts of the input module
installed at No. 0 slot are set up as dual equivalent input mode, on condition that mismatch time in Equivalent
mode operation 1,000ms and latch time 2,000ms.
I0
1500ms
I1 ②
%ISX0.0.0 2000ms③ ④
%ISX0.0.1 1000ms ①
1) When the I0 and I1 contacts maintain mismatched status for 1,000 ms, a mismatch error is triggered
and the corresponding IS area turns Off.
2) Both I0 and I1 contacts becomes normal high status, the mismatch error is maintained for the error latch
time.
3) Although 2,000 ms has elapsed in normal condition, the error persists because both inputs are high.
In Equivalent mode, both inputs must become Low to reset error.
4) Both inputs became Low and the time of normal condition has exceeded the error latch time 2,000 ms,
thus, the error is reset and the system functions normally.
8-5
Chapter 8. Functions of Safety I/O Module
Each input contacts must use designated test pulse outputs as presented in the table below.
Test pulse output Input contacts Remark
T1 I0, I2, I4, I6 Use-or-not of test pulse for each input can
T2 I1, I3, I5, I7 be set up with the parameters
The cycle and width of test pulse can be set up per I/O module; cycle within 40 ~ 1000 ms by 4 ms steps, and
pulse width within 1~100 ms by 1 ms steps.
8-6
Chapter 8. Functions of Safety I/O Module
Width of the test pulse must be set up less than 1/2 of the test pulse cycle.
The picture below illustrates an exemplary case pf test pulse output under the setting of 40 ms cycle and 10 ms
width.
40ms
T1
10ms 40ms
T2
10ms
8-7
Chapter 8. Functions of Safety I/O Module
24V DC
+
-
The picture below illustrates an exemplary case of wiring wherein test pulse output is used in dual channel input,
Equivalent mode.
8-8
Chapter 8. Functions of Safety I/O Module
+
24V DC
-
8-9
Chapter 8. Functions of Safety I/O Module
In Dual Channel output mode, according to the output image area (Q area), the input diagnosis device (Area QS)
and actual output and safety I/O module contact LED functions as follows.
Safety Output Safety Output Diagnosis
Image Area Image Area LED Status Actual Output
Output
Mode (Output variable Area Q) (Output status Area QS)
matching
Input Input Output Output
%QX0.y.N %QX0.y.N+1 %QSX0.y.N %QSX0.y.N+1
N N+1 N N+1
Output
1 0 0 0 Red Red Off Off
Dual output mismatch
mode Output
0 1 0 0 Red Red Off Off
mismatch
N represents even number output contact, y represents No. of slot where the module is installed.
NOTE
If the output contact is turned ON while the output power supply for the XGS-DIO84A (DC24V) is not applied,
same as the output mismatch condition, the safety output diagnosis area turns off and the corresponding output
contact LED lights up in red.
8-10
Chapter 8. Functions of Safety I/O Module
The picture below illustrates an exemplary case wherein Q0 and Q1 contacts of the input module installed at
No. 0 slot are set up as dual equivalent input mode, on condition that error latch time is set by 2,000ms.
%QX0.0.0
%QX0.0.1 ②
%QSX0.0.0 2000ms③ ④
%QSX0.0.1 ①
At least 1scan Error latch time
Q0
Q1
1) If the Area QX i.e. %QX0.0.0 and %QX0.0.1 set up in dual output mismatch in one scan program,
mismatch error is triggered and the corresponding QS area turns Off.
2) QX areas resumed normal high status, the mismatch error is maintained for the error latch time.
3) Although 2,000 ms has elapsed in normal condition, the two Q areas must become low to reset the error.
4) Both two QX areas became Low and the time of normal condition has exceeded the error latch time
2,000 ms, thus, the error is reset and the system functions normally.
8-11
Chapter 8. Functions of Safety I/O Module
+
24V DC L L
-
L L
-
+
24V DC
8-12
Chapter 9. Installation and Wiring
9.1 Installation
9.1.1 Environment
The product is highly reliability regardless of the environmental conditions. However, to maintain reliability and stability,
please take care of the conditions described in this chapter.
1) Environmental conditions
(1) Install in a waterproof and dust-proof cabinet.
(2) Avoid continuous impact or vibration.
(3) Avoid direct sunlight
(4) Avoid rapid temperature change which may form dew drops
(5) Ambient temperature shall be within 0 ~ 60 °C
(6) Relative humidity shall be within 5 ~ 95 %
(7) Avoid corrosive or flammable gases.
2) Installation Work
(1) Protect the PLC from foreign materials during installation and wiring work.
(2) Select a position suitable for operation.
(3) Do not install in the same panel with a high voltage device.
(4) Keep at least 50 mm of space between the wire duct and adjacent modules.
(5) Ground the PLC to a point where noise environment is favorable.
1) Do not lay AC power line and external signal lines of the module close together. Provide at least 100 mm distance, or
lay the lines in conduits. Sufficient space must be provided to avoid interference from the surge or induction noise from
the AC lines.
2) The wires shall be selected taking the ambient temperature and allowable current into consideration, with
a minimum size of AWG22 (0.3 ㎟).
3) For power source monitoring, the wires should be twisted as densely as possible and arranged in the shortest path.
(Max. wiring distance 15 m or less)
4) Keep the wires away from heat source and oil or other harmful materials. Otherwise, shot-circuit may
occur leading to damage or malfunction of the system.
5) Keep the wires away from high voltage and power lines to avoid induction interference which can cause
malfunction or failure.
9-1
Chapter 9. Installation and Wiring
1) Module installation
Position the module so that the extension connector on the lateral side and projections at the corners come
correct positions.
Check that the coupling hooks are properly joined.
Coupling hooks
Extension Connectors
2) Module detachment
Hold and remove the module by both hands. (Do not apply excessive force.)
3) Module installation
The product is designed to be installed on DIN rails (width 35 mm). Install the module on DIN rails and push the
coupling hooks to fix the module.
Coupling hooks
9-2
Chapter 9. Installation and Wiring
1) The XGS Series Safety Controller turns output off when any problem in the external power source or
product itself is detected. The external circuit shall be so configured as to cut off the power supply to the
load so that connected device(s) is shut down, when the output is turned off. Otherwise, the entire line may
result in a severe problem or accident.
2) When changing data, program, or status of an operating safety controller, provide an interlock circuit with
the sequence program and system outside to secure safe operation of the system. Read the manual
carefully and determine operating sequence before operating the Safety Controller for safety. In addition,
for online control of the Safety Controller at a PC, prepare countermeasures against communication error,
may be due to cable connection failure, for the system.
3) When a safety function is activated and the output has been cut off, prepare an interlock program using
reset button, etc., to prevent unauthorized manual restarting.
4) In case that the temperature inside of the operation panel where the Safety Controller is installed may exceed the
allowable temperature range, it is highly recommended to install a heat exchanger in the operation panel to control the
temperature. Using an ordinary ventilation fan may introduce dust from outside, affecting the function of the Safety
Controller.
9-3
Chapter 9. Installation and Wiring
The procedures from installation to commissioning are described below. After installation, perform following procedures:
Start Setting
Configure the Safety Controller system.
--> Check & install safety I/O module
Turn on power, check state of the LED on the CPU module.
--> Check that RUN/STATE LED of the CPU module is OK.
Check LED status of the safety I/O module
--> Check that the STATE LED of the safety I/O module is normal.
At the XG5000, configure system and I/O parameters
--> Parameters suitable for the system configuration.
Prepare a program at XG5000
--> Prepare and down load a program,
Change operation mode to Run at XG5000
--> Check that the RUN/STATE LED of the safety CPU module is:
Green On.
Check normal operation of the program by monitoring with the
XG5000.
Change operation mode to Configuration Lock mode at the
XG5000.
--> Check that the Config.Lock LED of the CPU module is On.
Start Operation
9-4
Chapter 9. Installation and Wiring
9.2 Wiring
+
24V DC
-
+
-
24V DC
2) Isolate the systems of PLC power source, I/O devices and drive devices, as shown below.
3) It is recommended to twist the power wires densely and make the total length as short as possible.
4) Keep the DC 24V line away from the main circuit (high voltage, large current) lines and I/O signal lines. Provide at least
100 mm or more of space.
5) Install a lightning surge absorber to protect the system from lightning surge.
PLC
I/O Device
E1 E2
9-5
Chapter 9. Installation and Wiring
NOTE
1) The ground connection (E1) of the surge absorber and the ground connection (E2) of the PLC
must be isolated.
2) the surge absorber must be able to absorb surge within the maximum allowable voltage at the
maximum voltage peak of the power supply.
7) Use shortest, twisted wires for I/O power supplies. Do not lay the wires of the insulation transformer or noise
filter in a conduit.
1) The PLC is implemented with sufficient anti-noise measures, thus, ground is not necessary unless the system is subject
to very high noise level. If grounding is necessary, take following information into consideration.
3) If exclusive grounding is unavailable, install common grounding circuit as illustrated in figure b) below.
4) Ground wire shall be at least 2 mm2. Grounding point shall be as close to the PLC as possible to reduce the
wire length.
9-6
Chapter 10. Maintenance
Chapter 10 Maintenance
Daily and regular maintenance must be performed to maintain the PLC always at the best condition.
The lifetime of the controllers is about 20 years. However, the impact on the environment can cause damage to the
devices.
Results for all of the checks and administrative actions must be recorded. Please record information about the serial
number of the product.
Corrective
Items for Inspection Actions Decision Criteria
Action
Mounting of I/O module Check mounting of I/O module Shall be firmly mounted -
Connection at terminal Shall have appropriate
Close crimpled terminals correction
block and extension cables spacing
RUN/STATE Light up See
Check red lighting at Run status
LED (abnormal if out) Chap.12
Check yellow lamp in safety lock
CONFIG. mode See
ON or flash
LOCK LED Check yellow lamp flash in safety Chap.12
Indicator unlock
LED Red when connected to Ethernet See
COMM LED Abnormal if flashes
cable Chap.12
Light ON at input On, See
Input LED Check ON/Off
Out at input Off Chap.12
Light ON at output On, See
Output LED Check ON/Off
Out at output Off Chap.12
10-1
Chapter 10. Maintenance
NOTE
For all devices that are configured for safety applications, please follow the instructions for daily and
regular inspections described in the manual for each device.
10-2
Chapter 11. EMC Compliance
11-1
Chapter 11. EMC Compliance
11.1.2 Panel
The PLC is a kind of open device(installed on another device) and it should be installed in a panel. It is because the installation
may prevent a person from suffering from an accident due to electric shock as the person contacts with the product(XGT PLC)
and the panel can attenuates the noise generating from the PLC.
In case of XGT PLC, to restrict EMI emitted from a product, it should be installed in a metallic panel. The specifications of the
metallic panel are as follows.
1) Panel
Door
Visor
(5) The inside plate of panel should have proper conductivity with a wide surface as possible by eliminating the plating of the bolt
used to be mounted on the main frame in order to secure the electric contact with the frame.
11-2
Chapter 11. EMC Compliance
(1) The panel should be grounded with a thick wire() to secure a lower impedance even in high frequency.
(2) LG(Line Ground) terminal and FG(Frame Ground) terminal functionally let the noise inside the PLC flow into the ground, so
a wire of which impedance is low should be used.
(3) Since the grounding cable itself may generate noise, thick and short wiring may prevent it serving as an antenna.
11.1.3 Cable
1) Fixing a cable in the panel
If the extension cable of XGS series is to be installed on the metallic panel, the cable should be 1cm and more away from the
panel, preventing the direct contact.
The metallic plate of panel may shield noise from electromagnetic wave while it a cable as a noise source is close to the place,
it can serve as an antenna. Every fast signal cable as well as the extension cable needs proper spacing from the panel.
11-3
Chapter 11. EMC Compliance
11-4
Chapter 12. Troubleshooting
Chapter 12 Troubleshooting
This chapter describes the errors which may occur during operation and the causes, measures to detect and correct the errors
NOTE
When replacing the products, try operation after resetting all the information necessary for the operation resumed
and checking safety functions.
12.2 Troubleshooting
Methods for identifying problems, description of errors and error codes are provided below by symptoms.
Problem
Run, Stop LED is OFF Corrective method for Run, Stop LED off
12-1
Chapter 12. Troubleshooting
If all LED turns off at power on or during operation, take following actions in said sequence.
No Supply power.
Is power supply on?
Yes No Yes
Does LED turn on?
Yes No Yes
Does power LED
Turn on?
Yes
Is the fuse
blown? Replace the module
No
No Yes
Does power LED
turn on?
Yes
Does the over current circuit
breaker functioning? 1) Measure current capacity, reduce
over current.
2) Turn off and on input power.
No
No Yes
Does power LED
turn on?
Make//out//the//questionnaire//for
troubleshooting, and contact nearest Finish
A/S center of agency.
12-2
Chapter 12. Troubleshooting
If the Run/State LED blinks in red at power on or at starting or during operation, take following actions in said sequence.
Yes
Is the_CFG_ER flag error Referring to flag of Appendix 1,
recorded?
correct the error cause.
No
Yes
Is the STATE. LED
still flashing?
No
Make//out//the//questionnaire//for
troubleshooting, and contact nearest
Finish A/S center of agency.
NOTE
The PLC will continue operation at a light error, however, check and correct the error cause as soon as possible.
Otherwise, a light problem may become a heavy problem.
12-3
Chapter 12. Troubleshooting
If the Run or Stop LED turns off at power on or during operation, take following actions in said sequence.
No
Is Run/State LED off?
Yes
12-4
Chapter 12. Troubleshooting
This is to provide information on the corrective method for I/O module malfunctioning during operation.
No
Is the output LED of SOL1 on?
Yes
Measure terminal voltage of Check correct wiring Replace//terminal//block Monitor SOL1 with XG5000
SOL1 with a multitester connector
No No
No No
Yes Normal?
Is the measurement value Is output wiring correct? Are the terminal block connectors
normal? OK?
Yes
Yes
Yes
Cont
Disconnect external wiring and
test continuity of module output
part.
Yes No
Normal?
Cont
12-5
Chapter 12. Troubleshooting
No
Do the LEDs of SWITCH 1&2
turn on?
Yes
Yes
Are the measurements normal? Are the measurements normal?
No
Yes No
Yes Yes
Is input wiring correct? Are terminal block connectors
OK?
Disconnect//external No No
connections. Check inputs
with forced input.
No
Yes
Replace the input module Check//input//device Repeat the procedures from Replace the input module
(SWITCH 1&2) the beginning
12-6
Chapter 12. Troubleshooting
In case of a problem in operating the XGI series, please fill up this questionnaire and contact nearest A/S center via telephone of FAX.
For an error related to special or communication module, use the questionnaire form attached to the users' ml of the product.
12-7
Chapter 12. Troubleshooting
This section describes the types of troubles in various circuits and the corrective actions.
Load
Load
E1
E2 E
E
12-8
Chapter 12. Troubleshooting
Off response over current at Off As shown in the diagram below, install a magnetic
of load is too A dynamic load (large tome constant L/R) drawing connector or a similar device having a small time
late. large current (solenoid, etc.) is driven directly with constant to drive the load with the contact.
transistor output
Output Output
Current at Off
Load
E1 Load
Output Inrush current of incandescent lamp To suppress inrush current, apply a leakage
transistor (background) current about 1/3 ~ 1/5 of the rated
destroyed Output current of the lamp.
Output
E1
R E
12-9
Chapter 12. Troubleshooting
152 Program watchdog error If problem persists when power reinput , ask A/S Safe State LED flash Regularly
12-10
Chapter 12. Troubleshooting
11 I/O data error If problem persists when power reinput , ask A/S Safe State LED flash End of scan
I/O module self-test abnormal If problem persists when power reinput , ask A/S
32 Safe State LED flash End of scan
error
33 I/O module hardware error If problem persists when power reinput , ask A/S Safe State LED flash End of scan
I/O module CCM (Core If problem persists when power reinput , ask A/S
34 Safe State LED flash End of scan
Compare Module) error
I/O module internal memory If problem persists when power reinput , ask A/S
35 Safe State LED flash End of scan
data altered error
I/O module firmware altered If problem persists when power reinput , ask A/S
36 Safe State LED flash End of scan
error
Synchronization between I/O If problem persists when power reinput , ask A/S
37 Safe State LED flash End of scan
module cores error
I/O module test pulse output If problem persists when power reinput , ask A/S
38 Safe State LED flash End of scan
0 circuit error
I/O module test pulse output If problem persists when power reinput , ask A/S
39 Safe State LED flash End of scan
1 circuit error
I/O module output power Check output voltage whether voltage level is
40 Safe State LED flash End of scan
error normal range.
12-11
Chapter 12. Troubleshooting
12-12
Chapter 13. Safety Function Blocks
No Function Block
1 SF_ANTIVALENT
2 SF_EDM
3 SF_ENABLESWITCH
4 SF_EQUIVALENT
5 SF_ESPE
6 SF_ESTOP
7 SF_GUARDLOCKING
8 SF_MODESEL
9 SF_MUTINGPAR
10 SF_MUTINGPAR_2SENSOR
11 SF_MUTINGSEQ
12 SF_OUTCONTROL
13 SF_SAFEGUARD
14 SF_SAFETYREQUEST
15 SF_TESTABLESAFETYSENSOR
16 SF_TWOHANDCTRLII
17 SF_TWOHANDCTRLIII
13-1
Chapter 13. Safety Function Blocks
13.2.1 SF_ANTIVALENT
1) Overview
This function block converts two antivalent SAFEBOOL inputs (NO/NC pair) to one SAFEBOOL output with discrepancy time
monitoring. This FB should not be used stand-alone since it has no restart interlock. It is required to connect the output to other
safety related functionalities.
SF_Antivalent
13-2
Chapter 13. Safety Function Blocks
3) Functional Description
This function block converts two equivalent SAFEBOOL inputs to one SAFEBOOL output with discrepancy time monitoring.
Both input Channels A and B are interdependent. The function block output shows the result of the evaluation of both channels.
If one channel signal changes from TRUE to FALSE the output immediately switches off (FALSE) for safety reasons.
Discrepancy time monitoring: The discrepancy time is the maximum period during which both inputs may have different states
without the function block detecting an error. Discrepancy time monitoring starts when the status of an input changes. The
function block detects an error when both inputs do not have the same status once the discrepancy time has elapsed.
The inputs must be switched symmetrically. This means that monitoring is performed for both the switching on process as well
as the switching off process.
13-3
Chapter 13. Safety Function Blocks
5) Error Detection
The function block monitors the discrepancy time between Channel NO and Channel NC.
6) Error Behavior
The output SF_AntivalentOut is set to FALSE. Error is set to TRUE. DiagCode indicates the Error states.
There is no Reset defined as an input coupled with the reset of an error. If an error occurs in the inputs, one new set of inputs
with the correct value must be able to reset the error flag. (Example: if a switch is faulty and replaced, using the switch again
results in a correct output)
7) Error Codes
13-4
Chapter 13. Safety Function Blocks
8) Status codes
13-5
Chapter 13. Safety Function Blocks
13.2.2 SF_EDM
1) Overview
External device monitoring – The FB controls a safety output and monitors controlled actuators, e.g. subsequent contactors
SF_EDM
13-6
Chapter 13. Safety Function Blocks
3) Functional Description
General:
The SF_EDM FB controls a safety output and monitors controlled actuators.
This function block monitors the initial state of the actuators via the feedback signals (S_EDM1 and S_EDM2) before the
actuators are enabled by the FB.
The function block monitors the switching state of the actuators (MonitoringTime) after the actuators have been enabled by the
FB.
Two single feedback signals must be used for an exact diagnosis of the connected actuators. A common feedback signal from
the two connected actuators must be used for a restricted yet simple diagnostic function of the connected actuators. When
doing so, the user must connect this common signal to both parameter S_EDM1 and parameter S_EDM2. S_EDM1 and
S_EDM2 are then controlled by the same signal.
The switching devices used in the safety function should be selected from the category specified in the risk analysis (EN 954-1).
The S_StartReset input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started.
13-7
Chapter 13. Safety Function Blocks
5) Error Detection
The following conditions force a transition to the Error state:
• Invalid static Reset signal in the process.
• Invalid EDM signal in the process.
• S_OutControl and Reset are incorrectly interconnected due to programming error.
6) Error Behavior
In error states, the outputs are as follows:
• In the event of an error, the S_EDM_Out is set to FALSE and remains in this safe state.
• An EDM error message must always be reset by a rising trigger at Reset.
• A Reset error message can be reset by setting Reset to FALSE.
13-8
Chapter 13. Safety Function Blocks
After block activation, the optional startup inhibit can be reset by a rising edge at the Reset input.
7) Error Codes
13-9
Chapter 13. Safety Function Blocks
13-10
Chapter 13. Safety Function Blocks
8) Status codes
13-11
Chapter 13. Safety Function Blocks
13.2.3 SF_ENABLESWITCH
1) Overview
The SF_EnableSwitch FB evaluates the signals of an enable switch with three positions.
SF_EnableSwitch
13-12
Chapter 13. Safety Function Blocks
3) Functional Description
The SF_EnableSwitch FB supports the suspension of safeguarding using enable switches, if the relevant operating mode is
selected and active. The relevant operating mode (limitation of the speed or the power of motion, limitation of the range of
motion) must be selected outside the SF_EnableSwitch FB.
The SF_EnableSwitch FB evaluates the signals of an enable switch with three positions
The S_EnableSwitchCh1 and S_EnableSwitchCh2 input parameters process the following signal levels of contacts E1 to E4:
The signal from E1+E2 must be connected to the S_EnableSwitchCh1 parameter. The signal from E3+E4 must be connected
to the S_EnableSwitchCh2 parameter. The position of the enable switch is detected in the FB using this signal sequence. The
transition from position 2 to 3 can be different from shown here.
The switching direction (position 1 => position 2/position 3 => position 2) can be detected in the FB using the defined signal
sequence of the enable switch contacts. The suspension of safeguarding can only be enabled by the FB after a move from
position 1 to position 2. Other switching directions or positions may not be used to enable the suspension of safeguarding.
In order to meet the requirements of DIN EN 60204 Section 9.2.4, the user shall use a suitable switching device. In addition, the
user must ensure that the relevant operating mode is selected in the application (automatic operation must be disabled in this
operating mode using appropriate measures).
The operating mode is usually specified using an operating mode selection switch in conjunction with the SF_ModeSelector FB
and the SF_SafeRequest or SF_SafelyLimitedSpeed FB.
The SF_EnableSwitch FB processes the confirmation of the "safe mode" state via the "S_SafetyActive" parameter. On
implementation
in an application of the safe mode without confirmation, a static TRUE signal is connected to the "S_SafetyActive" parameter.
13-13
Chapter 13. Safety Function Blocks
The S_AutoReset input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started.
4) Typical Timing Diagrams
13-14
Chapter 13. Safety Function Blocks
5) Error Detection
The following conditions force a transition to the Error state:
• Invalid static Reset signal in the process.
• Invalid switch positions.
6) Error Behavior
In the event of an error, the S_EnableSwitchOut safe output is set to FALSE and remains in this Safe state. Different from other
FBs, a Reset Error state can be left by the condition Reset = FALSE or, additionally, when the signal S_SafetyActive is FALSE.
Once the error has been removed, the enable switch must be in the initial position specified in the process before the
S_EnableSwitchOut output can be set to TRUE using the enable switch. If S_AutoReset = FALSE, a rising trigger is required at
Reset.
7) Error Codes
13-15
Chapter 13. Safety Function Blocks
8) Status codes
13-16
Chapter 13. Safety Function Blocks
13.2.4 SF_EQUIVALENT
1) Overview
This function block converts two equivalent SAFEBOOL inputs (both NO or NC) to one SAFEBOOL output, including
discrepancy time monitoring. This FB should not be used stand-alone since it has no restart interlock. It is required to connect
the output to other safety related functionalities.
SF_Equivalent
13-17
Chapter 13. Safety Function Blocks
3) Functional Description
This function block converts two equivalent SAFEBOOL inputs to one SAFEBOOL output with discrepancy time monitoring.
Both input Channels A and B are interdependent. The function block output shows the result of the evaluation of both channels.
If one channel signal changes from TRUE to FALSE the output immediately switches off for safety reasons. Discrepancy time
monitoring: The discrepancy time is the maximum period during which both inputs may have different states without the function
block detecting an error. Discrepancy time monitoring starts when the status of an input changes. The function block detects an
error when both inputs do not have the same status once the discrepancy time has elapsed.
The inputs must be switched symmetrically. This means that monitoring is performed for both the switching on process as well
as the switching off process.
13-18
Chapter 13. Safety Function Blocks
5) Error Detection
The function block monitors the discrepancy time between Channel A and B, when switching to TRUE and also when switching
to FALSE.
6) Error Behavior
S_EquivalentOut is set to FALSE. Error is set to TRUE. DiagCode indicates the Error states. There is no Reset defined as an
input coupled with the reset of an error. If an error occurs in the inputs, a new set of inputs with correct S_EquivalentOut must be
able to reset the error flag. (Example: if a switch is faulty and replaced, using the switch again results in a correct output)
7) Error Codes
13-19
Chapter 13. Safety Function Blocks
8) Status codes
13-20
Chapter 13. Safety Function Blocks
13.2.5 SF_ESPE
1) Overview
This function block is a safety-related function block for monitoring electro-sensitive protective equipment (ESPE).
SF_ESPE
BOOL Reset
13-21
Chapter 13. Safety Function Blocks
3) Functional Description
This function block is a safety-related function block for monitoring electro-sensitive protective equipment (ESPE). The function
is identical to SF_EmergencyStop. The S_ESPE_Out output signal is set to FALSE as soon as the S_ESPE_In input is set to
FALSE. The S_ESPE_Out output signal is set to TRUE only if the S_ESPE_In input is set to TRUE and a reset occurs. The
enable reset depends on the defined S_StartReset, S_AutoReset, and Reset inputs.
The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured, that no hazardous situation can occur when
the PES is started.
13-22
Chapter 13. Safety Function Blocks
13-23
Chapter 13. Safety Function Blocks
5) Error Detection
The function block detects a static TRUE signal at Reset input.
6) Error Behavior
S_ESPE_Out is set to FALSE. In case of a static TRUE signal at the Reset input, the DiagCode output indicates the relevant
error code and the Error output is set to TRUE.
To leave the error states, the the Reset must be set to FALSE.
7) Error Codes
13-24
Chapter 13. Safety Function Blocks
8) Status codes
13-25
Chapter 13. Safety Function Blocks
13.2.6 SF_ESTOP
1) Overview
This function block is a safety-related function block for monitoring an emergency stop button. This FB can be used for
emergency switch off functionality (stop category 0), or - with additional peripheral support - as emergency stop.
SF_EmergencyStop
13-26
Chapter 13. Safety Function Blocks
3) Functional Description
The S_EStopOut enable signal is reset to FALSE as soon as the S_EStopIn input is set to FALSE. The S_EStopOut enable
signal is reset to TRUE only if the S_EStopIn input is set to TRUE and a reset occurs. The enable reset depends on the defined
S_StartReset, S_AutoReset, and Reset inputs.
If S_AutoReset = TRUE, acknowledgment is automatic.
If S_AutoReset = FALSE, a rising trigger at the Reset input must be used to acknowledge the enable.
If S_StartReset = TRUE, acknowledgment is automatic the fist time the PES is started.
If S_StartReset = FALSE, a rising trigger at the Reset input must be used to acknowledge the enable.
The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured that no hazardous situation can occur when
the PES is started.
SF_EmergencyStop can be used to monitor both single and two-channel emergency stop buttons. For example, for twochannel
applications, the additional function blocks SF_Equivalent can be used to detect whether the contact synchronization has been
exceeded. The category classification in accordance with EN 954-1 will depend on the final elements that are used.
The SF_EmergencyStop automatically detects a static TRUE on Reset. Further error detection, e.g., wire break, short circuit
depends on the dedicated hardware that is used.
13-27
Chapter 13. Safety Function Blocks
13-28
Chapter 13. Safety Function Blocks
5) Error Detection
The function block detects a static TRUE signal at Reset input.
6) Error Behavior
S_EStopOut is set to FALSE. In case of a static TRUE signal at the Reset input, the DiagCode output indicates the relevant
error code and the Error output is set to TRUE.
To leave the error states, the Reset must be set to FALSE.
7) Error Codes
13-29
Chapter 13. Safety Function Blocks
8) Status codes
13-30
Chapter 13. Safety Function Blocks
13.2.7 SF_GUARDLOCKING
1) Overview
This FB controls an entrance to a hazardous area via an interlocking guard with guard locking (“four state interlocking”)
SF_GuardLocking
13-31
Chapter 13. Safety Function Blocks
13-32
Chapter 13. Safety Function Blocks
3) Functional Description
The function controls the guard lock and monitors the position of the guard and the lock. This function block can be used with a
mechanical locked switch.
The operator requests to get access to the hazardous area. The guard can only be unlocked when the hazardous area is in a
safe state.The guard can be locked if the guard is closed. The machine can be started when the guard is closed and the guard
is locked. An open guard or unlocked guard will be detected in the event of a safety-critical situation.
The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured that no hazardous situation can occur when
the PES is started.
Operation Sequence
NO Position Operation
1 External Request to get the hazardous area to a safe state - not part of this FB
2 In Feedback from applicable hazardous area that it is in a safe state (via S_SafetyActive)
3 In Operator request to unlock the guard (via UnlockRequest)
4 Out Enable guard to be opened (via S_UnlockGuard)
5 Guard unlocked (via S_GuardLock). Guard can be opened now. (S_GuardLocked =
In
FALSE)
- - Operator opens the guard
6 In Monitoring of status guard via S_GuardMonitoring – signals when guard is closed again
7 In Feedback from operator to restart the hazardous area (Reset)
8 Out Lock guard guard (S_UnlockGuard)
9 In Check if guard is locked (S_GuardLock)
10 Out Hazardous area can operate again (S_GuardLocked = TRUE)
11 Extern Restart the operation in the hazardous area
13-33
Chapter 13. Safety Function Blocks
5) Error Detection
Static signals are detected at Reset. Errors are detected at the Guard switches.
6) Error Behavior
In the event of an error the S_GuardLocked and S_UnlockGuard outputs are set to FALSE, the DiagCode output indicates the
relevant error code, and the Error output is set to TRUE.
An error must be acknowledged by a rising trigger at the Reset input.
13-34
Chapter 13. Safety Function Blocks
7) Error Codes
13-35
Chapter 13. Safety Function Blocks
8) Status codes
13-36
Chapter 13. Safety Function Blocks
13.2.8 SF_MODESEL
1) Overview
This function block selects the system operation mode, such as manual, automatic, semi-automatic, etc.
SF_ModeSelector
13-37
Chapter 13. Safety Function Blocks
3) Functional Description
This function block selects the system operation mode, such as manual, automatic, semi-automatic, etc. On controller startup, it
should be assumed that the machine is in safe mode. On machine startup, the transition to the mode set by the mode selector
switch must be initiated by a function block input (e.g., machine START button).
The default state following activation of the FB is the ModeChanged state. This is also the safe state of the FB, where all
S_ModeXSel and S_AnyModeSel are FALSE.
If the FB is in the ModeChanged state:
• The new S_ModeX input must be acknowledged by a rising S_SetMode trigger (if AutoSetMode = FALSE), which leads to a
new S_ModeXSel output.
• The new S_ModeX input automatically leads to a new S_ModeXSel output (if AutoSetMode = TRUE).
• Such a transition from state 8005 to 8000 is only valid, if one S_ModeX input is TRUE. As long as all S_ModeX are FALSE,
the FB remains in state 8005, even if the S_SetMode triggers.
The transition from the ModeChanged to ModeSelected state, i.e., S_SetMode set by the operator, is not monitored by a timer.
If the FB is in the ModeSelected state, the simultaneous occurrence of a new S_ModeX input (higher priority) and the NOT
S_Unlock signal (lower priority) leads to the ModeChanged state.
The S_ModeX input parameters, which are not used for mode selection, should be called with the default value FALSE to
simplify program verification.
The AutoSetMode input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started.
13-38
Chapter 13. Safety Function Blocks
< Timing diagram for SF_ModeSelector, valid change in Mode input with acknowledgment>
< Timing diagram for SF_ModeSelector, error condition 2 at Mode inputs >
13-39
Chapter 13. Safety Function Blocks
5) Error Detection
The FB detects whether none of the mode inputs is selected. This invalid condition is detected after ModeMonitorTime has
elapsed:
• Which restarts with each falling trigger of an S_ModeX switched mode input
• Which is then in the ModeChanged state following activation of the FB
In contrast, the FB directly detects whether more than one S_ModeX mode input is selected at the same time.
A static reset condition is detected when the FB is either in Error state C001 or C002.
6) Error Behavior
In the event of an error, the S_ModeXSel and S_AnyModeSel outputs are set to safe state = FALSE. The DiagCode output
indicates the relevant error code and the Error output is set to TRUE.
An error must be acknowledged with the rising trigger of the Reset BOOL input. The FB changes from an error state to the
ModeChanged state.
13-40
Chapter 13. Safety Function Blocks
7) Error Codes
DiagCode State Name State Description and Output Setting
The FB detected that two or more S_ModeX are TRUE, e.g., short-
circuit of cables.
Error Ready = TRUE
C001
Short-circuit Error = TRUE
S_AnyModeSel = FALSE
All S_ModeXSel = FALSE
The FB detected that all S_ModeX are FALSE: The period
following a falling S_ModeX trigger exceeds ModeMonitorTime,
e.g., open-circuit of cables.
Error
C002 Ready = TRUE
Open-circuit
Error = TRUE
S_AnyModeSel = FALSE
All S_ModeXSel = FALSE
Static Reset signal detected in state C001.
Ready = TRUE
C003 Reset Error 1 Error = TRUE
S_AnyModeSel = FALSE
All S_ModeXSel = FALSE
Static Reset signal detected in state C002.
Ready = TRUE
C004 Reset Error 2 Error = TRUE
S_AnyModeSel = FALSE
All S_ModeXSel = FALSE
8) Status codes
13-41
Chapter 13. Safety Function Blocks
13.2.9 SF_MUTINGPAR
1) Overview
Muting is the intended suppression of the safety function. In this FB, parallel muting with four muting sensors is specified.
SF_MutingPar
13-42
Chapter 13. Safety Function Blocks
13-43
Chapter 13. Safety Function Blocks
3) Functional Description
Muting is the intended suppression of the safety function. This is required, e.g., when transporting the material into the danger
zone without causing the machine to stop. Muting is triggered by muting sensors. The use of two or four muting sensors and
correct integration into the production sequence must ensure that no persons enter the danger zone while the light curtain is
muted. Muting sensors can be proximity switches, photoelectric barriers, limit switches, etc. which do not have to be failsafe.
Active muting mode must be indicated by indicator lights.
There are sequential and parallel muting procedures. In this FB, parallel muting with four muting sensors was used; an
explanation is provided below. The FB can be used in both directions, forward and backward. The muting should be enabled
with the MutingEnable signal by the process control to avoid manipulation.
The FB input parameters include the signals of the four muting sensors (MutingSwitch11 ... MutingSwitch22), the OSSD signal
from the "active opto-electronic protective device", S_AOPD_In, as well as three parameterizable times (DiscTime11_12,
DiscTime21_22, and MaxMutingTime).
The S_StartReset input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started.
Step 1: If the muting sensors MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are activated by the product within the
time DiscTime11_12, muting mode is activated (S_MutingActive = TRUE).
Step 2: Muting mode remains active as long as MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are activated by the
product. The product may pass through the light curtain without causing a machine stop.
Step 3: Before muting sensors MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are disabled, muting sensors
MutingSwitch21 (MS_21) and MutingSwitch22 (MS_22) must be activated. This ensures that muting mode remains active. The
time discrepancy between switching of MutingSwitch21 and MutingSwitch22 is monitored by the time DiscTime21_22.
Step 4: Muting mode is terminated if either muting sensor MutingSwitch21 (MS_21) or MutingSwitch22 (MS_22) is disabled by
the product. The maximum time for muting mode to be active is the Max-MutingTime.
13-44
Chapter 13. Safety Function Blocks
No. Figure
13-45
Chapter 13. Safety Function Blocks
5) Error Detection
The FB detects the following error conditions:
• DiscTime11_12 and DiscTime21_22 have been set to values less than T#0s or greater than T#4s.
• MaxMutingTime has been set to a value less than T#0s or greater than T#10min.
• The discrepancy time for the MutingSwitch11/MutingSwitch12 or MutingSwitch21/MutingSwitch22 sensor pairs has been
exceeded.
• The muting function (S_MutingActive = TRUE) exceeds the maximum muting time MaxMutingTime.
• Muting sensors MutingSwitch11, MutingSwitch12, MutingSwitch21, and MutingSwitch22 are activated in the wrong order.
• Muting sequence starts without being enabled by MutingEnable
• A faulty muting lamp is indicated by S_MutingLamp = FALSE.
• A static Reset condition is detected in state 8001 and 8003.
6) Error Behavior
In the event of an error, the S_AOPD_Out and S_MutingActive outputs are set to FALSE. The DiagCode output indicates the
relevant error code and the Error output is set to TRUE.
A restart is inhibited until the error conditions are cleared and the Safe state is acknowledged with Reset by the operator.
7) Error Codes
13-46
Chapter 13. Safety Function Blocks
13-47
Chapter 13. Safety Function Blocks
13-48
Chapter 13. Safety Function Blocks
8) Status codes
13-49
Chapter 13. Safety Function Blocks
13-50
Chapter 13. Safety Function Blocks
13-51
Chapter 13. Safety Function Blocks
13.2.10 SF_MUTINGPAR_2SENSOR
1) Overview
Muting is the intended suppression of the safety function. In this FB, parallel muting with two muting sensors is specified..
SF_MutingPar_2Sensor
13-52
Chapter 13. Safety Function Blocks
13-53
Chapter 13. Safety Function Blocks
3) Functional Description
Muting is the intended suppression of the safety function. This is required, e.g., when transporting the material into the danger
zone without causing the machine to stop. Muting is triggered by muting sensors. The use of two muting sensors and correct
integration into the production sequence must ensure that no persons enter the danger zone while the light curtain is muted.
Muting sensors can be push buttons, proximity switches, photoelectric barriers, limit switches, etc. which do not have to be
failsafe. Active muting mode must be indicated by indicator lights.
There are sequential and parallel muting procedures. In this FB, parallel muting with two muting sensors was used; an
explanation is provided below. The positioning of the sensors should be as described in Annex F.7 of IEC 62046, CD 2005, as
shown in Figure 48. The FB can be used in both directions, forward and backward. However, the actual direction cannot be
identified. The muting should be enabled with the MutingEnable signal by the process control to avoid manipulation.
The FB input parameters include the signals of the two muting sensors (S_MutingSwitch11 and S_MutingSwitch12), the OSSD
signal from the "active opto-electronic protective device", S_AOPD_In, as well as two parameterizable times (Disc-TimeEntry
and MaxMutingTime).
The S_StartReset input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started
Step 1: If reflection light barriers are used as muting sensors, they are generally arranged diagonally. In general, this
arrangement of reflection light barriers as muting sensors requires only two light barriers, and only S_MutingSwitch11 (MS_11)
and S_MutingSwitch12 (MS_12) are allocated.
NO. Figure
13-54
Chapter 13. Safety Function Blocks
5) Error Detection
The FB detects the following error conditions:
• DiscTimeEntry has been set to value less than T#0s or greater than T#4s.
• MaxMutingTime has been set to a value less than T#0s or greater than T#10min.
• The discrepancy time for the S_MutingSwitch11/S_MutingSwitch12 sensor pair has been exceeded.
• The muting function (S_MutingActive = TRUE) exceeds the maximum muting time MaxMutingTime.
• Muting sensors S_MutingSwitch11,S_MutingSwitch12 are activated in the wrong order.
• Muting sequence starts without being enabled by MutingEnable
• Static muting sensor signals.
• A faulty muting lamp is indicated by S_MutingLamp = FALSE.
• A static Reset condition is detected in state 8001 and 8003.
6) Error Behavior
In the event of an error, the S_AOPD_Out and S_MutingActive outputs are set to FALSE. The DiagCode output indicates the
relevant error code and the Error output is set to TRUE.
A restart is inhibited until the error conditions are cleared and the Safe state is acknowledged with Reset by the operator.
13-55
Chapter 13. Safety Function Blocks
7) Error Codes
13-56
Chapter 13. Safety Function Blocks
8) Status codes
13-57
Chapter 13. Safety Function Blocks
13-58
Chapter 13. Safety Function Blocks
13.2.11 SF_MUTINGSEQ
1) Overview
Muting is the intended suppression of the safety function (e.g., light barriers). In this FB, sequential muting with four muting
sensors is specified.
SF_MutingSeq
13-59
Chapter 13. Safety Function Blocks
13-60
Chapter 13. Safety Function Blocks
3) Functional Description
Muting is the intended suppression of the safety function. This is required, e.g., when transporting the material into the danger
zone without causing the machine to stop. Muting is triggered by muting sensors. The use of two or four muting sensors and
correct integration into the production sequence must ensure that no persons enter the danger zone while the light curtain is
muted. Muting sensors can be proximity switches, photoelectric barriers, limit switches, etc. which do not have to be failsafe.
Active muting mode must be indicated by indicator lights.
There are sequential and parallel muting procedures. In this FB, sequential muting with four muting sensors was used; an
explanation for the forward direction of transportation is provided below. The FB can be used in both directions, forward and
backward. The muting should be enabled with the MutingEnable signal by the process control to avoid manipulation. When the
MutingEnable signal is not available, this input must be set to TRUE.
The FB input parameters include the signals of the four muting sensors (MutingSwitch11 ... MutingSwitch22) as well as the
OSSD signal from the "active opto-electronic protective device", S_AOPD_In.
The S_StartReset input shall only be activated if it is ensured that no hazardous situation can occur when the PES is started.
Step 1 : If muting sensor MutingSwitch12 (MS_12) is activated by the product after MutingSwitch11 (MS_11), the muting mode
is activated.
Step 2 : Muting mode remains active as long as MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are activated by the
product. The product may pass through the light curtain without causing a machine stop.
Step 3 : Before muting sensors MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are disabled, muting sensors
MutingSwitch21 (MS_21) and MutingSwitch22 (MS_22) must be activated. This ensures that muting mode remains active.
Step 4 : Muting mode is terminated if only muting sensor MutingSwitch22 (MS_22) is activated by the product.
13-61
Chapter 13. Safety Function Blocks
NO. Figure
13-62
Chapter 13. Safety Function Blocks
5) Error Detection
The FB detects the following error conditions:
• Muting sensors MutingSwitch11, MutingSwitch12, MutingSwitch21, and MutingSwitch22 are activated in the wrong order.
• Muting sequence starts without being enabled by MutingEnable
• A faulty muting lamp is indicated by S_MutingLamp = FALSE.
• A static Reset condition.
• MaxMutingTime has been set to a value less than T#0s or greater than T#10min.
• The muting function (S_MutingActive = TRUE) exceeds the maximum muting time MaxMutingTime.
13-63
Chapter 13. Safety Function Blocks
6) Error Behavior
In the event of an error, the S_AOPD_Out and S_MutingActive outputs are set to FALSE. The DiagCode output indicates the
relevant error code and the Error output is set to TRUE.
A restart is inhibited until the error conditions are cleared and the Safe state is acknowledged with Reset by the operator.
7) Error Codes
DiagCode State Name State Description and Output Setting
Static Reset condition detected after FB activation.
Ready = TRUE
C001 Reset Error 1 S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
Static Reset condition detected in state 8003.
Ready = TRUE
C002 Reset Error 2 S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
Error detected in muting lamp.
Ready = TRUE
C003 Error Muting lamp S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
Error detected in muting sequence in states 8000, 8011, 8012,
8112 or 8122.
Ready = TRUE
S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
Y = Status in the sequence (2 states for forward and 2 states for
backward direction).
CYx4 Error Muting sequence
C0x4 = Error occurred in state 8000
C1x4 = Error occurred in state Forward 8011
C2x4 = Error occurred in state Forward 8012
C3x4 = Error occurred in state Backward 8122
C4x4 = Error occurred in state Backward 8112
CFx4 = Muting Enable missing
x = Status of the sensors when error occurred (4 bits: LSB =
MS_11; MS_12; MS_21; MSB = MS_22).
MaxMutingTime value out of range.
Ready = TRUE
C005 Parameter Error S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
Timing error: Active muting time (when S_MutingActive = TRUE)
exceeds MaxMutingTime.
Ready = TRUE
C006 Error Timer MaxMuting
S_AOPD_Out = FALSE
S_MutingActive = FALSE
Error = TRUE
13-64
Chapter 13. Safety Function Blocks
8) Status codes
13-65
Chapter 13. Safety Function Blocks
13-66
Chapter 13. Safety Function Blocks
13.2.12 SF_OUTCONTROL
1) Overview
Control of a safety output with a signal from the functional application and a safety signal with optional startup inhibits.
SF_OutControl
13-67
Chapter 13. Safety Function Blocks
3) Functional Description
General:
The SF_OutControl FB is an output driver for a safety output.
The safety output is controlled via S_OutControl using a signal from the functional application (ProcessControl/BOOL to control
the process) and a signal from the safety application (S_SafeControl/SAFEBOOL to control the safety function).
13-68
Chapter 13. Safety Function Blocks
met.
The StaticControl, S_StartReset and S_AutoReset inputs shall only be activated if it is ensured that no hazardous situation can
occur when the PES is started.
13-69
Chapter 13. Safety Function Blocks
5) Error Detection
The following conditions force a transition to the Error state:
• Invalid static Reset signal in the process.
• Invalid static ProcessControl signal.
• ProcessControl and Reset are incorrectly interconnected due to programming error.
6) Error Behavior
In the event of an error, the S_OutControl output is set to FALSE and remains in this safe state.
To leave the Reset, Init or Lock error states, the Reset input must be set to FALSE. To leave the Control error state, the
ProcessControl input must be set to FALSE.
After transition of S_SafeControl to TRUE, the optional startup inhibit can be reset by a rising edge at the Reset input.
After block activation, the optional startup inhibit can be reset by a rising edge at the Reset input.
7) Error Codes
13-70
Chapter 13. Safety Function Blocks
8) Status codes
13-71
Chapter 13. Safety Function Blocks
13.2.13 SF_SAFEGUARD
1) Overview
This function block monitors the relevant safety guard. There are two independent input parameters for two switches at the
safety guard coupled with a time difference (MonitoringTime) for closing the guard.
SF_GuardMonitoring
13-72
Chapter 13. Safety Function Blocks
3) Functional Description
The function block requires two inputs indicating the guard position for safety guards with two switches, a DiscrepancyTime input
and Reset input. If the safety guard only has one switch, the S_GuardSwitch1 and S_GuardSwitch2 inputs can be bridged. The
monitoring time is the maximum time required for both switches to respond when closing the safety guard. The Reset,
S_StartReset, and S_AutoReset inputs determine how the function block is reset after the safety guard has been opened.
When opening the safety guard, both S_GuardSwitch1 and S_GuardSwitch2 inputs should switch to FALSE. The
S_GuardMonitoring output switches to FALSE as soon as one of the switches is set to FALSE. When closing the safety guard,
both S_GuardSwitch1 and S_GuardSwitch2 inputs should switch to TRUE.
This FB monitors the symmetry of the switching behavior of both switches. The S_GuardMonitoring output remains FALSE if
only one of the contacts has completed an open/close process.
The behavior of the S_GuardMonitoring output depends on the time difference between the switching inputs. The discrepancy
time is monitored as soon as the value of both S_GuardSwitch1/S_GuardSwitch2 inputs differs. If the DiscrepancyTime has
elapsed, but the inputs still differ, the S_GuardMonitoring output remains FALSE. If the second corresponding
S_GuardSwitch1/S_GuardSwitch2 input switches to TRUE within the value specified for the DiscrepancyTime input, the
S_GuardMonitoring output is set to TRUE following acknowledgment.
The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured that no hazardous situation can occur when
the PES is started.
13-73
Chapter 13. Safety Function Blocks
13-74
Chapter 13. Safety Function Blocks
5) Error Detection
External signals: SAFEBOOL inputs provide inherent error detection. Mechanical setup combines that of an opening and
closing switch according to EN 954 (safety guard with two switches). Discrepancy time monitoring for time lag between both
mechanical switches reaction, according to EN 954 (to be considered as "application error" detection, i.e., generated by the
application).
An error is detected if the time lag between the first S_GuardSwitch1/S_GuardSwitch2 input and the second is greater than the
value for the DiscrepancyTime input. The Error output is set to TRUE.
The function block detects a static TRUE signal at the RESET input.
6) Error Behavior
The S_GuardMonitoring output is set to FALSE. If the two S_GuardSwitch1 and S_Guardswitch2 inputs are bridged, no error is
detected. To leave the Reset error state, the Reset input must be set to FALSE. To leave the discrepancy time errors, the inputs
S_GuardSwitch1 and 2 must both be set to FALSE.
7) Error Codes
13-75
Chapter 13. Safety Function Blocks
8) Status codes
13-76
Chapter 13. Safety Function Blocks
13.2.14 SF_SAFETYREQUEST
1) Overview
This function block provides the interface to a generic actuator, e.g. a safety drive or safety valve, to place the actuator in a safe
state.
SF_SafetyRequest
13-77
Chapter 13. Safety Function Blocks
3) Functional Description
This FB provides the interface between the safety-related system and a generic actuator. This means that the safety-related
functions of the actuator are available within the application program. However, there are only two binary signals to control the
Safe state of the generic actuator, i.e., one for requesting and one for receiving the confirmation.
The safety function will be provided by the actuator itself. Therefore the FB only initiates the request, monitors it, and sets the
output when the actuator acknowledges the Safe state. This will be indicated with the "S_SafetyActive" output.
This FB does not define any generic actuator-specific parameters. They should have been specified in the generic actuator
itself. It switches the generic actuator from the operation mode to a safe state.
13-78
Chapter 13. Safety Function Blocks
5) Error Detection
The FB detects whether the actuator does not enter the Safe state within the monitoring time.
The FB detects whether the acknowledge signal is lost while the request is still active.
The FB detects a static Reset signal.
External FB errors:
There are no external errors, since there is no error bits/information provided by the generic actuator.
6) Error Behavior
In the event of an error, the S_SafetyActive output is set to FALSE.
An error must be acknowledged by a rising trigger at the Reset input. To continue the function block after this reset, the
S_OpMode request must be set to TRUE.
7) Error Codes
13-79
Chapter 13. Safety Function Blocks
8) Status codes
DiagCode State Name State Description and Output Setting
The function block is not active (initial state).
Ready = FALSE
0000 Idle S_SafetyActive = FALSE
S_SafetyRequest = FALSE
Error = FALSE
Actuator is in a safe mode.
Ready = TRUE
8000 Safe Mode S_SafetyActive = TRUE
S_SafetyRequest = FALSE
Error = FALSE
State after Activate is set to TRUE or after a rising trigger at
Reset.
Ready = TRUE
8001 Init
S_SafetyActive = FALSE
S_SafetyRequest = FALSE
Error = FALSE
Operation mode without Acknowledge of safe mode
Ready = TRUE
8002 Operation Mode S_SafetyActive = FALSE
S_SafetyRequest = TRUE
Error = FALSE
Operation mode with Acknowledge of safe mode
Ready = TRUE
Wait for Confirmation
8012 S_SafetyActive = FALSE
OpMode
S_SafetyRequest = TRUE
Error = FALSE
Waiting for confirmation from the drive (system interface).
Ready = TRUE
8003 Wait for Confirmation S_SafetyActive = FALSE
S_SafetyRequest = FALSE
Error = FALSE
Error was cleared. However S_OpMode must be set to TRUE
before the FB can be initialized.
Ready = TRUE
8005 Wait for OpMode
S_SafetyActive = FALSE
S_SafetyRequest = FALSE
Error = FALSE
13-80
Chapter 13. Safety Function Blocks
13.2.15 SF_TESTABLESAFETYSENSOR
1) Overview
This function block detects, for example, the loss of the sensing unit detection capability, the response time exceeding that
specified, and static ON signal in single-channel sensor systems. It can be used for external testable safety sensors (ESPE:
Electro-sensitive protective equipment, such as a light beam).
SF_TestableSafetySensor
13-81
Chapter 13. Safety Function Blocks
13-82
Chapter 13. Safety Function Blocks
3) Functional Description
Type 2 ESPE shall have a means of periodic testing to detect a hazardous fault (e.g., loss of sensing unit detection capability,
response time exceeding that specified). The test signal shall simulate the actuation of the sensing device and the duration of
the periodic test shall not exceed 150 ms. The test shall verify that each light beam operates in the manner specified by the
supplier. If the periodic test is intended to be initiated by an external safety-related control system (e.g., a machine), the ESPE
shall be provided with suitable input facilities (e.g., terminals).The ESPE must be selected in respect of the product standards
EN IEC 61496-1, -2 and -3 and the required categories according EN 954-1. It must be monitored by separate functionality, that
the test is initiated within appropriate intervals. The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured
that no hazardous situation can occur when the PES is started.
Test mode:
1. StartTest = TRUE: S_TestOut = FALSE. Start monitoring time
2. S_TestOut signal stops transmitter (Monitoring of TestTime started first time)
3. S_OSSD_In changes from TRUE to FALSE (Monitoring of TestTime started second time)
4. S_TestOut changes from FALSE to TRUE
5. Start transmitter
6. Sensor S_OSSD_In changes from FALSE to TRUE
7. Stop monitoring time
8. S_OSSD_Out is set to TRUE during testing
13-83
Chapter 13. Safety Function Blocks
5) Error Detection
The following conditions force a transition to the Error state:
• Test time overrun without delayed sensor feedback.
• Test without sensor signal feedback.
• Invalid static reset signal in the process.
• Plausibility check of the monitoring time setting.
6) Error Behavior
In the event of an error, the S_OSSD_Out output is set to FALSE and remains in this safe state.
Once the error has been removed and the sensor is on (S_OSSD_In = TRUE) – a reset removes the error state and sets the
S_OSSD_Out output to TRUE.
If S_AutoReset = FALSE, a rising trigger is required at Reset.
After transition of S_OSSD_In to TRUE, the optional startup inhibit can be reset by a rising edge at the Reset input.
After block activation, the optional startup inhibit can be reset by a rising edge at the Reset input.
13-84
Chapter 13. Safety Function Blocks
7) Error Codes
13-85
Chapter 13. Safety Function Blocks
13-86
Chapter 13. Safety Function Blocks
8) Status codes
13-87
Chapter 13. Safety Function Blocks
13-88
Chapter 13. Safety Function Blocks
13-89
Chapter 13. Safety Function Blocks
13.2.16 SF_TWOHANDCTRLII
1) Overview
This function block provides the two-hand control functionality.
SF_TwoHandControlTypeII
13-90
Chapter 13. Safety Function Blocks
3) Functional Description
This function block provides the two-hand control functionality according to EN 574, Section 4 Type II. If S_Button1 and
S_Button2 are set to TRUE in correct sequence, then the S_TwoHandOut output will also be set to TRUE. The FB also controls
the release of both buttons before setting the output S_TwoHandOut again to TRUE.
5) Error Detection
After activation of the FB, any button set to TRUE is detected as an invalid input setting leading to an error.
6) Error Behavior
In the event of an error, the S_TwoHandOut output is set to FALSE and remains in this safe state.
The Error state is exited when both buttons are released (set to FALSE).
7) Error Codes
13-91
Chapter 13. Safety Function Blocks
8) Status codes
13-92
Chapter 13. Safety Function Blocks
13-93
Chapter 13. Safety Function Blocks
13.2.17 SF_TWOHANDCTRLIII
1) Overview
This function block provides the two-hand control functionality.
SF_TwoHandControlTypeIII
13-94
Chapter 13. Safety Function Blocks
3) Functional Description
This function block provides the two-hand control functionality according to EN 574, Section 4 Type III. If S_Button1 and
S_Button2 are set to TRUE within 500 ms and in correct sequence, then the S_TwoHandOut output is also set to TRUE. The
FB also controls the release of both buttons before setting the output S_TwoHandOut again to TRUE.
5) Error Detection
After activation of the FB, any button set to TRUE is detected as an invalid input setting leading to an error. The FB detects when
the divergence of the input signals exceeds 500 ms.
6) Error Behavior
In the event of an error, the S_TwoHandOut output is set to FALSE and remains in this safe state.
The Error state is exited when both buttons are released (set to FALSE).
13-95
Chapter 13. Safety Function Blocks
7) Error Codes
13-96
Chapter 13. Safety Function Blocks
8) Status codes
13-97
Chapter 13. Safety Function Blocks
13-98
Appendix 1. Flag List
_FORCE_IO_EN BOOL Forced I/O active Shows that forced I/O are active
_FORCE_IO_TIME INT Forced I/O time Shows remaining time of forced I/O.
2) System error
A1-1
Appendix 1. Flag List
3) User flag
_OFF BOOL Normal Off Normal OFF flag available for user programming
The flag turned ON only for the first scan after
_1ON BOOL First scan On
starting operation.
The flag turned OFF only for the first scan after
_1OFF BOOL First scan Off
starting operation.
The flag toggled ON/OFF at every scan in program
_STOG BOOL Scan toggle
running (ON at the first scan)
A1-2
Appendix 1. Flag List
_POWERON_HOUR BYTE Power On time (hour) Shows point of time when the CPU module is
_POWERON_MINUTE BYTE Power On time (min) powered.
A1-3
Appendix 1. Flag List
The following words are reserved for exclusive use by the system. Therefore, it is not allowed to make use of
these words as an identifier.
Reserved Words
ACTION ... END_ACTION
ARRAY ... OF
AT
CASE ... OF ... ELSE ... END_CASE
CONFIGURATION ... END_CONFIGURATION
Data type name
DATE#, D#
DATE_AND_TIME#, DT#
EXIT
FOR ... TO ... BY ... DO ... END_FOR
FUNCTION ... END_FUNCTION
FUNCTION_BLOCK ... END_FUNCTION_BLOCK
Function Block name
IF ... THEN ... ELSIF ... ELSE ... END_IF
OK
Operator (IL language)
Operator (ST language)
PROGRAM
PROGRAM ... END_PROGRAM
REPEAT ... UNTIL ... END_REPEAT
RESOURCE ... END_RESOURCE
RETAIN
RETURN
STEP ... END_STEP
STRUCTURE ... END_STRUCTURE
T#
TASK ... WITH
TIME_OF_DAY#, TOD#
TRANSITION ... FROM... TO ... END_TRANSITION
TYPE ... END_TYPE
VAR ... END_VAR
VAR_INPUT ... END_VAR
VAR_OUTPUT ... END_VAR
VAR_IN_OUT ... END_VAR
VAR_EXTERNAL ... END_VAR
VAR_ACCESS ... END_VAR
VAR_GLOBAL ... END_VAR
WHILE ... DO ... END_WHILE
WITH
A1-4
Appendix 2. PFD/PFH Value
Emergency Stop
Button
Safety Relay
Light Curtain
Laser Scanner
A2-1
Appendix 2. PFD/PFH Value
A2-2
Appendix 3. Dimensions
A3-1
Appendix 3. Dimensions
A3-2
Appendix 4. Example of Safety Application
It is an example of safety application to control the safety relay by the input of the emergency stop button.
1) Wiring example
Emergency
Stop Button
+
24V DC -
Reset Button
Safety Relay
+
-
24V DC
A4-1
Appendix 4. Example of Safety Application
3) Program example
A4-2
Appendix 4. Example of Safety Application
4) Timing chart
A4-3
Appendix 4. Example of Safety Application
A4-4
Warranty and Environmental Policy
Warranty
1. Warranty Period
The product you purchased will be guaranteed for 18 months from the date of manufacturing.
2. Scope of Warranty
Any trouble or defect occurring for the above-mentioned period will be partially replaced or repaired. However, please note the
following cases will be excluded from the scope of warranty.
(1) Any trouble attributable to unreasonable condition, environment or handling otherwise specified in the manual,
(2) Any trouble attributable to others’ products,
(3) If the product is modified or repaired in any other place not designated by the company,
(4) Due to unintended purposes
(5) Owing to the reasons unexpected at the level of the contemporary science and technology when delivered.
(6) Not attributable to the company; for instance, natural disasters or fire
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for system configuration
or applications.
Environmental Policy
LS ELECTRIC Co., Ltd supports and observes the environmental policy as below.
1
Warranty and Environment Policy
2
www.ls-electric.com
Disclaimer of Liability
LS ELECTRIC has reviewed the information in this publication to ensure consistency with the hardware and software described.
However, LS ELECTRIC cannot guarantee full consistency, nor be responsible for any damages or compensation, since variance
cannot be precluded entirely. Please check again the version of this publication before you use the product.
ⓒ LS ELECTRIC Co., Ltd 2015 All Right Reserved. 2021.06