sysmac studio ethernet/ip best...

17
Sysmac Studio EtherNet/IP Best Practices Johnston Hall June 23, 2016 Sysmac Studio EtherNet/IP Best Practices V1.1

Upload: others

Post on 02-Mar-2021

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

Sysmac Studio EtherNet/IP Best Practices

Johnston Hall June 23, 2016

Sysmac Studio EtherNet/IP Best Practices V1.1

Page 2: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

2

Contents Disclaimer...................................................................................................................................................... 3

Summary ....................................................................................................................................................... 3

The purpose of this paper ......................................................................................................................... 3

The Basics ...................................................................................................................................................... 3

EDS Files ........................................................................................................................................................ 3

How do I add more EDS files to Sysmac Studio ............................................................................................ 3

Configuring NX-EIC202 (Ethernet/IP) ............................................................................................................ 3

General notes (Rockwell) .......................................................................................................................... 3

Setting IP Address with DIP switches ........................................................................................................ 3

Configuring a Custom IP address .............................................................................................................. 3

Configuring Tag Connection to NJ from NX-EIC202 .................................................................................. 4

First Method: Works better if inputs repeat at a IO node level. i.e. input card 1 input 0 is ‘Start PB’. ............................................................................................................................................................ 10

Second Method: Better if the IO repeats at an IO card level. i.e. input 0 is always ‘Start PB’. ......... 11

Then you create an in and out Tag in the NJ. ..................................................................................... 11

Now we need to use the “EtherNet/IP Connection Settings” to connect the NX-ECC202 to the NJ. .... 11

Configuring V680S: ...................................................................................................................................... 12

Setting IP Address ................................................................................................................................... 12

Glossary ....................................................................................................................................................... 16

Revision History .......................................................................................................................................... 16

Page 3: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

3

Disclaimer This startup guide does not replace the Omron manuals concerning the safe startup of equipment.

Summary The purpose of this paper Use this as a guideline when configuring and EtherNet/IP Network using Sysmac Studio.

The Basics The NJ is an EtherNet/IP master device. It can act like a polling master or slave. With EtherNet/IP the polling speed to each device can be individually set in implicit mode. But this requires the person configuring the network understand the limits that each of the components on the network can handle. This document will try to make that clear.

EDS Files EDS files are needed by the configurator to configure the connection between devices in implicit mode.

How do I add more EDS files to Sysmac Studio Put the *.eds and *edh file and put it in the C:\Program Files(x86)\OMRON\Sysmac Studio\IODeviceProfiles\EipConnection\Eds folder.

Configuring NX-EIC202 (EtherNet/IP) General notes (Rockwell) This method of configuring the NX-EIC202 is exactly the same as you would use to connect to a Rockwell controller. Setting IP Address with DIP switches If you use the two rotary switches the address will be 192.168.250.x. x is the DIP switch setting. If you turn on inline switch number 4 the address will be 192.168.1.x. Configuring a Custom IP address You need to use Network Configurator software to set a custom address. You must set your computer to be on the original NX-EIP21 address – because this tool sends the new address over the Ethernet connection. If the rotary switches are in 00 then the above default addresses will be used – unless someone has previously set a custom address. In that case you may want to set the rotary switches to non-zero-zero so that you know the address will be 192.168.250.x. For the custom address to start working the two rotary switches must be 0 0.

Page 4: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

4

Configuring Tag Connection to NJ from NX-EIC202 First Insert the NX-EIC202 into your project

Page 5: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

5

Then connect a USB cable between the computer and the NX-EIC202. Right Click on NX-EIC202 and go online.

By putting the cursor over the NX-EIC202 coupler and right clicking – you can call up a compare and merge screen. This will get the coupler to tell us what is connected to it. You could also build it manually.

Page 6: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

6

Page 7: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

7

We now get Sysmac Studio to show us the I/O allocation so we can build a user defined data type to match it.

Page 8: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

8

Page 9: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

9

Notice that this view gives you the total connection sizes for in and out.

Page 10: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

10

First Method: Works better if inputs repeat at an IO node level. i.e. input card 1 input 0 is ‘Start PB’. The types are created in the Data – Data Types section.

In this case this is the out mapping.

Page 11: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

11

Second Method: Better if the IO repeats at an IO card level. i.e. input 0 is always ‘Start PB’.

Then you create an in and out Tag in the NJ.

Now we need to map the two together

Now we need to use the “EtherNet/IP Connection Settings” to connect the NX-ECC202 to the NJ.

The plus sign lets you assign an IP address to a type of IO. If you need to add a type of IO that Sysmac Studio does not know of – right click inside the box and it will give you an option to add an EDS file.

Page 12: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

12

Now we need to add some input and output tag sets. I map the entire block as a single input and single output variable. You could map each card as a tag.

Then by hitting the “+” we can add the node we configured. In this case NX-EIC202. Originator variables refer to the variables in the NJ that we just created 3 steps above. The Target Variables you need to know. In this case they are Input = 100 and Output = 110. There sizes depend on how many cards you added to the NX-EIC202 coupler.

Configuring V680S: Setting IP Address Use a web browser to set the V680S IP address. The default IP address is 192.168.1.200. You may have to activate Java and accept this security warning. Note: Network configurator cannot set the V680S IP address.

Page 13: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

13

You will eventually get to this screen – select “Network Settings”

Page 14: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

14

And give the V680S a new address Z353 manual section 5 is good at explaining the memory map of the V680S.

See section 5 in Z353 manual for an explanation of the assemblies (target variable) their sizes and layout which you need to create the originator variables (global tags in the NJ).

Page 15: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

15

Page 16: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

16

Glossary EtherNet/IP An Ethernet based communication system using the CIP protocol. The NJ

uses EtherNet/IP for NJ to computer, NJ to HMI, NJ to NJ, NJ to some IO and drives, communications.

Global Variable This is a variable that should be accessible from many programs or devices. Local I/O I/O connected physically to the NJ CPU. Local Variable A variable that is only accessible from the program it was declared in. NA The Omron NA series of touch screens for use with NJ and CJ controllers. NJ The Omron NJ series CPU’s NJ SQL The Omron NJ series of CPU’s that also have SQL client software in them. Remote I/O I/O connected to the CPU by a communication cable (example: EtherCAT) SQL Usually refers to any SQL server but actually means Structured Query

Language. Microsoft SQL, Oracle, MySQL, and IBM DB2 are all sequel servers.

Tags Instead of using fixed numbering system for I/O the NJ uses a free allocation of memory and you give each I/O or variable a name.

Task The NJ series controller runs several tasks (Program and IO refresh) in a time slice manner. Each task gets so many microseconds (μs) of time to execute then the processor moves on to the next task (comes back to the current task later).

Revision History Rev 1.0 First Release June 23rd, 2016

Page 17: Sysmac Studio EtherNet/IP Best Practicesproducts.omron.us/Asset/SysStudio_EIP_Best_Practices_v1...2016/06/23  · to activate Java and accept this security warning. Note: Network configurator

OMRON CANADA, INC. • HEAD OFFICEToronto, ON, Canada • 416.286.6465 • 866.986.6766 • www.omron247.com

OMRON ELECTRONICS DE MEXICO • HEAD OFFICEMéxico DF • 52.55.59.01.43.00 • 01-800-226-6766 • [email protected]

OMRON ELECTRONICS DE MEXICO • SALES OFFICEApodaca, N.L. • 52.81.11.56.99.20 • 01-800-226-6766 • [email protected]

OMRON ELETRÔNICA DO BRASIL LTDA • HEAD OFFICESão Paulo, SP, Brasil • 55.11.2101.6300 • www.omron.com.br

OMRON ARGENTINA • SALES OFFICECono Sur • 54.11.4783.5300

OMRON CHILE • SALES OFFICESantiago • 56.9.9917.3920

OTHER OMRON LATIN AMERICA SALES54.11.4783.5300

Authorized Distributor:

P225I-E-01 06/16 Note: Specifications are subject to change. © 2016 Omron. All Rights Reserved. Printed in U.S.A.

Printed on recycled paper.

OMRON AUTOMATION AMERICAS HEADQUARTERS • Chicago, IL USA • 847.843.7900 • 800.556.6766 • www.omron247.com

OMRON EUROPE B.V. • Wegalaan 67-69, NL-2132 JD, Hoofddorp, The Netherlands. • +31 (0) 23 568 13 00 • www.industrial.omron.eu

Controllers & I/O • Machine Automation Controllers (MAC) • Motion Controllers • Programmable Logic Controllers (PLC) • Temperature Controllers • Remote I/O

Robotics • Industrial Robots • Mobile Robots

Operator Interfaces• Human Machine Interface (HMI)

Motion & Drives• Machine Automation Controllers (MAC) • Motion Controllers • Servo Systems • Frequency Inverters

Vision, Measurement & Identification• Vision Sensors & Systems • Measurement Sensors • Auto Identification Systems

Sensing• Photoelectric Sensors • Fiber-Optic Sensors • Proximity Sensors • Rotary Encoders • Ultrasonic Sensors

Safety • Safety Light Curtains • Safety Laser Scanners • Programmable Safety Systems • Safety Mats and Edges • Safety Door Switches • Emergency Stop Devices • Safety Switches & Operator Controls • Safety Monitoring/Force-guided Relays

Control Components • Power Supplies • Timers • Counters • Programmable Relays • Digital Panel Meters • Monitoring Products

Switches & Relays • Limit Switches • Pushbutton Switches • Electromechanical Relays • Solid State Relays

Software • Programming & Configuration • Runtime