OMRON#Let’s connect with Euchner door locks and CIP Safety!

In this article, we will use OMRON’s NX1+SL5500 and connect it to Euchner’s MGB-L2B-EIA-R-136508 and CIP Safety. We will also use OMRON’s standard Safety FB for the safety program.

Come on, let’s enjoy FA.

Foreword

Thank you from the bottom of my heart for visiting my technical blog and YouTube channel.

We are currently running the “Takahashi Chris” radio show with Full-san (full@桜 八重 (@fulhause) / X) which I deliver every Wednesday night.

Sharing, not hoarding, technical knowledge

We publish technical information related to factory production technology and control systems for free, through blogs and videos.

With the belief that “knowledge should be accessible to everyone,” we share practical know-how and real-world troubleshooting cases from our own field experience.

The reason we keep it all free is simple: to help reduce the number of people who struggle because they simply didn’t know.

If you’ve ever thought:

  • “Will this PLC and device combination actually work?”
  • “I’m having trouble with EtherCAT communication—can someone test it?”
  • “I want to try this remote I/O, but we don’t have the testing environment in-house…”

Feel free to reach out!If lending equipment or sharing your configuration is possible, we’re happy to verify it and share the results through articles and videos.

(We can keep company/product names anonymous if requested.)

How can you support us?

Currently, our activities are nearly all unpaid, but creating articles and videos takes time and a proper testing environment.If you’d like to support us in continuing and expanding this content, your kind help would mean a lot.

Membership (Support our radio show)

This support plan is designed to enhance radio with Mr Full.

https://note.com/fulhause/membership/join

Amazon Gift List (equipment & books for content production)

Lists equipment and books required for content creation.

https://www.amazon.co.jp/hz/wishlist/ls/H7W3RRD7C5QG?ref_=wl_share

Patreon (Support articles & video creation)

Your small monthly support will help to improve the environment for writing and verifying articles.

https://www.patreon.com/user?u=84249391

Paypal

A little help goes a long way.

https://paypal.me/soup01threes?country.x=JP&locale.x=ja_JP

Just trying to share things that could’ve helped someone—if only they’d known.

Your support helps make knowledge sharing more open and sustainable.

Thank you for being with us.

soup01threes*gmail.com

https://x.com/3threes2

Technical knowledge shouldn’t be kept to ourselves.

Reference Link

Mitsubishi#Let’s Configure a Class1 Instance Communication with RJ71SEIP91-T4 and TwinCAT3 TF6280!
Mitsubishi#Let’s communicate with RJ71SEIP91-T4 and OMRON NX1 in Instance!
Omron#Let’s Configure a CIP Safety Originator
OMRON#Let’s connect Turck TBIP-L5-4FDI-4FDX via CIP Safety

Reference Video

Implementation

We will now build the CIP Safety connection and safety program.

Euchner Side

First, configure the MGB-L2B-EIA-R-136508 side of the Euchner.

Download EDS File

Download the EDS File for Euchner’s door locks at this link.

https://marketplace.odva.org/products/1872-mgb-with-ethernet-ip

Factory Reset

Open the right side Cover of MGB-L2B-EIA-R-136508.

There are DIP switches inside, turn off all DIP switches and reboot the device.

DHCP Server Setting

Only DIP switch 2 must be ON to set the DHCP Server in the door lock.

OMRON Side

The next step is to set up the OMRON side.

New Project

Start Sysmac Studio and create a new project.

Configure IP Address

Open Configuration and Setup>Controller Setup>build in EtherNet/IP Port and set the IP address according to your application.

Configure Safety

We will build the CIP Safety connection and safety program on the Sysmac Studio side.

Insert SL5500

To insert the SL5500 used in this article into Hardware Configuration, click CPU/Expansion Racks>CPU Rack.

Add SL5500 to the project from the Toolbox.

Done!

The next step is to set up SL5500 (safety part) from the Drop-List.

Sysmac Studio is now on the SL5500 configuration screen.

Configure CIP Safety Connection

Open Connection Settings to add a CIP Safety (Originator) connection on the SL5500.

This is the CIP Safety connection screen.

Safety Network Number

Sets the Safety Network number for Network1.

This time set to Manaul 0004 1.

Done!

Open EDS File via EZ

We want to know the Safety Class0 communication Instance number of Euchner’s MGB-L2B-EIA-R-136508, so we open the EDS File for MGB-L2B-EIA-R-136508 in the EZ-EDS tool.

Install EDS File

Click on EDS Library for CIP Safety to create an EDS File for Euchner’s MGB-L2B-EIA-R-136508.

Click New EDS File.

This is the EDS File creation screen in Sysmac Studio.

Vendor ID

The Vendor ID should match the Vendor ID value of Euchner’s MGB-L2B-EIA-R-136508 as indicated in EZ-EDS.

Vendor Name

The Vendor Name should match the Euchner MGB-L2B-EIA-R-136508 Vendor Name value displayed in EZ-EDS.

Product Type

Product Type should match the Euchner MGB-L2B-EIA-R-136508 Product Type value displayed in EZ-EDS.

Product Type String

The Product Type String should match the Euchner MGB-L2B-EIA-R-136508 Product Type String value displayed in EZ-EDS.

Product Code

The Product Code should match the Euchner MGB-L2B-EIA-R-136508 Product Code value displayed in EZ-EDS.

Product Name

The Product Name should match the Euchner MGB-L2B-EIA-R-136508 Product Name value displayed in EZ-EDS.

Major Revision

Major Revision should match the Euchner MGB-L2B-EIA-R-136508 Major Revision value displayed in EZ-EDS.

Minor Revision

Minor Revision should be set to 2. The door lock used in this article is Firmware 1.2.

Safety Input‐ Input Assembly Instance

To find the instance number of the Safety Input, open Connection Manager>Connection1 and click “Create Decode Path” under Path.

The connection Path of Connection1 is displayed here.

Change the display of the Instance number to a decimal number.

Match Safety input>input Assembly Instance to the Production IO Path value of 1025.

Safety Input‐ Output Assembly Instance

Set Safety Input>Output Assembly Instance to match the Producing I/O Path of 1279.

Safety Input‐ Size

To check Safety Input>Data Size, set it according to Assembly>Assem1025>Size.

Safety Output‐ Input Assembly Instance

To find the instance number of the Safety Output, open Connection Manager>Connection2 and click on “Create Decode Path” under Path.

The Path of Connection2 is displayed and changes to decimal display.

Set the Input Assembly Instance of Safety Output to match the value 1279 of the Producting IO Path.

Safety Output‐ Output Assembly Instance

Match Safety Output>Output Assembly Instance to the value 1057 of the Consuming IO Path.

Safety Output‐ Data Size

To check Safety Input>Data Size, set it according to Assembly>Assem1057>Size.

Configuration Assembly

Configuration Assembly will be 1088.

Result

This is the result of the configuration of MGB-L2B-EIA-R-136508 this time and proceeds with OK.

OK to proceed.

Done!

Insert MGB-L2B-EIA-R-136508

Next, to add MGB-L2B-EIA-R-136508 to the CIP Safety network, select the EDS File you just created > right click > Insert.

Done!

IP Address

Set the IP address of the MGB-L2B-EIA-R-136508 to match the application.

EPI

EPI is set according to network load and application.

I/O Mapping

Next, we want to use the data exchanged by MGB-L2B-EIA-R-136508 and CIP Safety in the safety program, so we open the I/O Map.

You can add them one by one manually, but Sysmac Studio can automatically declare safety variables.

Select all the groups of variables you wish to automatically generate>right click>Click Create Device Variable with Profix.

Sets the Prefix of the variable auto-define.

Done!

Safety Program

To create a safety program this time, open Program0 in Programming>POUs>Programs>Default.

Internal

These are the internal variables used in this article, and there are also safe and non-safe variables.

Program

Here is the safety program we have created.

Network1,2

Network1,2 creates a timer that turns on and off repeatedly for 1 second.

Network3,4,5

Network3, 4, and 5 retrieve the status of Euchner’s MGB-L2B-EIA-R-136508 main unit.

Network6,7,8,9

Network6,7,8,9 get button status for Euchner’s MGB-L2B-EIA-R-136508.

Network 10,11,12,13,14

Network10-14 gets Euchner’s MGB-L2B-EIA-R-136508 door lock status.

Network 15

Network15 uses SF_SR FB to issue an unlock command to the door lock.

Network 16

Network16 uses OMRON’s Safety FB SF_EmergencyStop to control the emergency stop on the door lock.

Network 17,18

Network17,18 uses OMRON’s Safety FB SF_GuardLocking to control door locking. The unlock command is then forwarded to Euchner’s MGB-L2B-EIA-R-136508 via CIP Safety.

Network 19,20

Network19.20 is output according to the state of Safety FB of the emergency stop.

  • sESTOPStatus1=Emergency stop is waiting for reset
  • sESTOPStatus2=Emergency stop safety output is ON
Network 21,22

Network21,22 outputs according to the state of door lock FB.

  • sDoorLockStatus1=Door lock is waiting for reset
  • sDoorStatus2=Door lock is locked
Network 23,24

Network23,24 is a program that outputs the blue lamp of Euchner’s MGB-L2B-EIA-R-136508.

  • Flashing: Emergency stop or door lock is waiting for reset
  • Lit: Both the emergency stop and door locks are in a safe state.
Network 25,26

Network25,26 will be a program to output red lamps for Euchner’s MGB-L2B-EIA-R-136508.

  • Flashing: Door lock is in Lockable position
  • Lit: Door lock is in lockable position
Network 27,28

Network27,28 will be a program to output red lamps for Euchner’s MGB-L2B-EIA-R-136508.

Download Configuration

Finally, Controller>Online to download the safety program to the NX1 CPU.

Transfer>To Controller.

Proceed with Execute.

Proceed with Yes.

Proceed with Yes.

Please wait a moment…

Proceed with Yes.

Done!

Download Ethernet/IP Connection Settings

Next, download the Ethernet/IP connection settings to the Controller by going to Tools>Ethernet/IP Connection Setting.

Right-click Port1>Edit.

Click Transfer to Controller to transfer the Ethernet/IP settings to the NX1 Controller.

Proceed with Yes.

Choose to stop the CPU to transfer Ethernet/IP settings.

Please wait a moment…

Proceed with Yes.

Download Safety 

The last step is to download the safety program.

Controller>Online.

Switch the SL5500 to PROGRAM Mode.

Proceed with Yes.

OK to proceed.

OK to proceed.

Done!

Next, enter Debug Mode.

Proceed with Yes.

Proceed with Yes.

Done!

OK to proceed.

Proceed with Yes.

If a Password is set, enter the Password and press OK to proceed.

Compile a safety project with Verify Validation.

Proceed with Yes.

Done!

OK to proceed.

Go RUN MODE

Switches the CPU to RUN MODE.

Proceed with Yes.

Proceed with Yes.

Done!

Proceed with Ok.

Proceed with Ok.

Please Login.

Result

Done!CIP Safety communication has been established.

Each Safety FB is also operating normally.

You can check the operation in this video.

OMRON.SL5500 With Euchner Door Lock via CIP Safety

Download

Please use this link to download the project created in this article.

https://github.com/soup01Threes/OMRON/blob/main/TestingWithEuchnerCIPSafetySW.smc2

シェアする

  • このエントリーをはてなブックマークに追加

フォローする