Run MyRobot EasyConnect 840D SL en
Run MyRobot EasyConnect 840D SL en
/EasyConnect
Siemens
SINUMERIK 840D sl Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109747140 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG ("Siemens"). They are
non-binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2019 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with Industrial Security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Mode of operation ................................................................................ 5
1.2.1 The individual steps of the unload/load cycle....................................... 5
1.2.2 Robot gripper: single or double gripper ................................................ 5
1.3 Components used ................................................................................ 6
2 Engineering - Hardware .................................................................................... 8
2.1 Hardware setup .................................................................................... 8
2.1.1 PN/PN coupler as interface between machine and robot .................... 8
3 Engineering - Software.................................................................................... 12
3.1 Interface description ........................................................................... 12
3.1.1 Calling the FB 1900 ............................................................................ 12
3.1.2 Calling the FC 1900............................................................................ 14
3.2 Project integration .............................................................................. 15
3.2.1 Workpiece clamping/fixture ................................................................ 15
3.2.2 Loading door ...................................................................................... 16
3.2.3 Starting the NC program from EasyConnect 840 .............................. 16
3.2.4 Integrating the HMI screen "Robot interface" ..................................... 17
3.2.5 Setting up the "Job list" function ......................................................... 18
© Siemens AG 2019 All rights reserved
1 Introduction
1.1 Overview
Note This application example complies the requirements of the directive "VDMA
34180 Level 1" and further-reaching functions (e.g. "double gripper sequence").
This description and the associated programs relate to a robot with a double
gripper.
For a single gripper, you can adapt the programs.
Figure 1-1 Machining cell with one robot and several machines
The normal load/unload sequence of a double gripper takes place as follows (The
procedure for a single gripper is similar.):
1. Before the end of the current cycle, the machine sends a signal to the robot to
fetch the next part to be machined
2. The robot with the next part waits outside the machine
3. When the cycle has finished, the machine door is opened
4. The finished part is unloaded
5. The next unfinished part is loaded
6. After the robot has left the loading area, the machine door is closed
7. Via the "Job list", the NC machining program is once again selected for
security reasons
8. The signal "NC Start" is sent automatically
If the robot has a double gripper, the finished and unfinished parts can be
© Siemens AG 2019 All rights reserved
Note The FB 1900 and the described sequence are based on a robot with double
gripper.
For a single gripper, you must modify the FB 1900.
2 Engineering - Hardware
2.1 Hardware setup
2.1.1 PN/PN coupler as interface between machine and robot
The following figure shows the statuses of the LEDs for a correct parameterization
of a PN/PN coupler. Please note that no red LEDs should light. They would
indicate an incomplete parameterization or a missing participant.
Figure 2-1 State of the LEDs for a fully commissioned PN/PN coupler
© Siemens AG 2019 All rights reserved
2.2 Parameterization
Two PLC blocks need to be called from a cyclic PLC program (i.e. from the OB1) to
operate EasyConnect 840. The data block numbers can be modified.
PLC data blocks:
• FB 1900 and its instance data block DB 1900 handle the signal exchange
between the PLC program of the machine and the robot
• FC 1900 is the interface to the HMI diagnostic screen
The following figure shows a sample call for the FB 1900 from the OB1.
Figure 2-3 Calling the FB 1900 for EasyConnect 840 from the OB1
© Siemens AG 2019 All rights reserved
Figure 2-4 Calling the FC 1900 for EasyConnect 840 from the OB1
3 Engineering - Software
3.1 Interface description
3.1.1 Calling the FB 1900
The FB 1900 and its instance data block DB 1900 need to be integrated into the
PLC program. You can number, optimize, and modify the block.
Under Calling the FC 1900, you will find a cross reference of the signal names to
VDMA 34180.
In the following, the parameters of the FB 1900 are described (see also Figure 2-2)
Table 3-1 FB 1900 - Parameter overview
Input or Type Signal Description
output name/parameter of the (m= Start address of the PN/PN
FB 1900 coupler, e.g. in Figure 2-2 m = 44)
I INT ChanNr Number of the robot NC channel
I BOOL Prepare trig Signal to the robot to fetch the next
part to be machined
Implementation via an M function in
the machining program, with enough
time for the robot to fetch the next
part
© Siemens AG 2019 All rights reserved
The FC 1900 provides the data to display the diagnosis screen "Robot interface".
You can number, optimize, and edit the block.
In the following, the parameters of the FC 1900 are described.
Table 3-2 FC 1900 - Parameter overview
Input or Type Signal Description
output name/parameter of the (m = Start address of the PN/PN
FC 1900 coupler, e.g. in Figure 2-2 m = 44)
I INT DiagDB Number of the data block in which
the information for the screen "Robot
© Siemens AG 2019 All rights reserved
interface" is saved
The number must correspond to the
entry in the file "econn840.ini"
I BOOL Req open door Request to open the loading door
I BOOL Req close door Request to close the loading door
I BOOL NC Start to PLC Request to execute "NC Start"
I BOOL Door is opened Status from the PLC program:
"Loading door open"
I BOOL Door is closed Status from the PLC program:
"Loading door closed"
I BOOL Request unload Request to unload
I BOOL Request load Request to load
I BOOL Fixture is unclamped Status: "Part not fixed"
I BOOL Ficture is clamped Status: "Part fixed"
I BOOL Alive signal to robot Keepalive signal is sent from the
machine to the robot
I BOOL Mc ready to run Machine ready to run with robot
I BOOL Enable for robot in mc Enable for robot to enter the machine
I BOOL Prepare acknowledge Message from robot: "Next part is
ready"
I BOOL Unload complete Message from robot: "Unload
complete"
I BOOL Load complete Message from robot: "Load
complete"
I BOOL Request unclamp Request from robot: "Unclamp part"
I BOOL Request clamp Request from robot: "Clamp part"
I BOOL Robot alive to mc Keepalive signal from robot
The robot needs to be able to open and close the part fixture.
Table 3-3 Control signals of the fixture
Signal name Address Name corresponding to
(m = Start address of the VDMA 34180
PN/PN coupler, e.g. in
Figure 2-2 m = 44)
Request unclamp from robot E(m+1,0) AM_REQ_UnClp01
Request clamp from robot E(m+1,1) AM_REQ_Clp01
The status ("part clamped" or "part unclamped") must be signaled to the robot.
Table 3-4 Status signals of the fixture
Signal name Address Name corresponding to
(m = Start address of the VDMA 34180
PN/PN coupler, e.g. in
Figure 2-2 m = 44)
Fixture open A(m+0,4) MA_STA_UnClpd01
Fixture closed A(m+0,5) MA_STA_Clpd01
The FB 1900 needs to be able to open and close the machine door.
Table 3-5 Control signals of the machine door
Signal name/Parameter of Address Name corresponding to
the FB 1900 (m = Start address of the VDMA 34180
PN/PN coupler, e.g. in
Figure 2-2 m = 44)
Request open door Selected by developer Internally generated
Request close door Selected by developer Internally generated
The status of the machine door ("open" or "closed") must be sent to the FB 1900
and to the robot.
Table 3-6 Status signals of the machine door
Signal Address Name corresponding to
name/parameter of the (m = Start address of the VDMA 34180
FB 1900 PN/PN coupler, e.g. in
Figure 2-2 m = 44)
Door is open (used in A(m+0,3) MA_STA_LdgDoorOpnd
FB 1900 and sent to
robot)
Door is closed (used in Selected by developer Only used internally
© Siemens AG 2019 All rights reserved
FB 1900 only)
In the following, the normal sequence for a robot with a double gripper is listed:
1. The robot fetches the next part
2. The machine door is opened
3. The finished part is unloaded
4. The unfinished part is loaded
5. After the robot has left the machining area, the machine door is closed
6. Via the "Job list", the machining program is again selected for security reasons
7. The "NC Start" signal is automatically executed
Therefore, there is an output "NC Start" in the FB 1900. This signal needs to be
added to the logic of the NC start.
Table 3-7 NC start signal of the FB 1900
Signal name/Parameter of the FB 1900 Address
(m = Start address of the PN/PN coupler,
e.g. in Figure 2-2 m = 44)
NC Start Selected by developer
The application contains a diagnosis screen that displays the current signals of the
interface to the robot.
Follow these steps to integrate the diagnosis screen into the HMI system:
1. Open the file "systemconfiguration.ini" under "System CF
card/oem/sinumerik/hmi/cfg/" (If the file does not exist, you can use the file
from the application example.).
2. Add the following lines to the file "systemconfiguration.ini":
[oem_dirs]
OEM_1=ROBLINK_840
3. Copy the directory "ROBLINK_840" from the application example to "System
CF card/oem/sinumerik/hmi/".
4. Enter the number of the data block that is used by FC 1900 into the file
"econn840.ini".
Figure 3-4 Entering the data block number into the file "econn840.ini"
The machining program for the NC channel is selected via the function "Job list".
The "Job list" needs to be set up as follows when used with the FB 1900:
1. Activate the "Job list" by setting the "MD51043
$MNS_ENABLE_PROGLIST_MANUFACT" to "1".
2. Job list" via "Setup" > "Menu forward key".
3. Select the correct machining program via the softkey "Select program" (if
necessary, you must select the correct NC channel).
Figure 3-6 Entering the correct machining program into the "Job list"
© Siemens AG 2019 All rights reserved
The FB 1900 is set up so that the required machining program is at line "201" in the
"Job list". You can adapt the line number in the code of the FB 1900 (NW1).
3.3 Operation
Note The FB 1900 and the described sequence are based on a robot with a double
gripper.
For a single gripper, you must adapt the FB 1900.
1. Machine startup: the machine is powered up and the machining area is empty.
2. The operator selects the "Auto" and "Robot" mode. The latter one with a
key/button that is defined by the manufacturer.
3. Because the machine does not contain an unfinished part, the FB 1900 sends
the command "Prepare" to the robot to fetch the first part.
4. The FB 1900 sends the request "Open door" to the PLC program of the
machine.
5. The PLC of the machine opens the loading door and the FB 1900 sends the
request "Load" to the robot.
6. The robot checks if the loading door is open and positions the part in the
fixture. Then the robot sends the request "Clamp part". When the acknowledge
"Part clamped" reaches the robot, the gripper of the robot releases the part and
the robot leaves the machine.
7. The PLC of the machine closes the loading door.
8. The FB 1900 selects the machining program via the "Job list" and sends the
request "NC Start" to the PLC of the machine.
9. Before the end of the machining program a "Prepare" command is sent to the
robot. Then the robot fetches the next part. When the robot with the part is
outside the machine, it acknowledges the "Prepare" command with the signal
"Prepare acknowledge".
10. When the machining program has been finished, the FB 1900 sends the
request "Open loading door" to the PLC of the machine and then the "Unload"
request to the robot.
© Siemens AG 2019 All rights reserved
11. The robot checks if the loading door is open and unloads the finished part in
interaction with the fixture control of the machine. When finished, the robot
issues the successful unload ("Unload complete").
12. The FB 1900 issues a "Load" request and the process reverts to step (6)
above.
13. When "Finish production" has been selected, no "Prepare" command will be
sent to the robot. At the end of the cycle, the finished part will be unloaded, but
no new part will be loaded. Depending on when in the cycle "Finish production"
is selected, the application will finish a load/unload cycle before starting the
"Finish production" cycle.
4 Additional information
4.1 Interface to the robot
The interface between the machine and the robot is contained in two bytes.
"NC_Programs_for_robot_side":
– Prepare: Fetch the next part to be machined
– Unload: Unload the finished part
– Load: Load the next part
• You will find the corresponding PLC program in the directory "PLC Program".
Please note that in the PLC program …
– the PN/PN coupler has the start address "EB /AB 96" (robot).
– the robot is in the second NC channel (DB22).
– the NC programs are selected via the "Job list" (MD 51043 = 1 and DB19).
5 Appendix
5.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
www.siemens.com/industry/supportrequest
© Siemens AG 2019 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc