33
One Controller - Any Bus Connecting Programmable Automation Controllers ,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

Embed Size (px)

Citation preview

Page 1: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

One Controller - Any Bus Connecting Programmable Automation

Controllers ,Measurements, Sensors, Networks and PLCs

Ian BellNational Instruments

Page 2: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

2

Agenda

• Industrial Communications Overview• Why Connect a PAC to Industrial Networks and

PLCs?• 3 Methods to Connect to Any PLC or Device

Basic Analogue and Digital I/O Industrial Network Communication OPC

Page 3: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

3

Industrial Communications Overview

Industrial communications connect industrial devices such as PLCs, sensors and actuators

Common Industrial Networks

•DeviceNet

•PROFIBUS

•Modbus TCP

•Modbus Serial

•CANopen

•FOUNDATION fieldbus

•Interbus

•CC-Link

•LonWorks

•HART

•PROFINET

•Ethernet/IP

Page 4: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

4

PAC Architecture• Ruggedness and reliability of PLC• Software capabilities of PC• Modular and diverse I/O

Softw

are

Cap

abili

ties

Ruggedness and Reliability

PLCPLCPCPC

PAC

Page 5: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

5

Why Connect PACs to Industrial Networks and PLCs?

High-speed analogue measurements High-resolution analogue measurements Advanced analysis (digital filtering, frequency analysis) Custom hardware performance with FPGA technology

• High-speed closed-loop control• FPGA-based processing and analysis

Custom Sensors/Measurements

Page 6: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

6

PLCsPACs

3 Methods to Connect to Any PLC

Industrial

Communications

Basic I/O

Analogue/Digital

OPC

Page 7: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

7

Basic I/OCheap, Easy, Fast and Effective

• Available on every platform• Analog and digital I/O options• PLC users can easily integrate analogue and

digital I/O into their code• Allows PACs to act as intelligent devices

Page 8: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

8

Basic I/O

• Advantages Fast, deterministic, little or no software overhead

• Considerations Doesn’t scale well Point-to-point wiring (parallel) Can’t communicate lots of data

Page 9: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

9

ExampleAutomated Filling of Aerosol Cans

• Existing PLC system was being used to automate the filling of aerosol cans

• PLC did not have the capability to do high-speed analogue for pressure measurements

• NI CompactRIO PAC was used for high-speed pressure measurements on 8 channels (2 k per channel)

• CompactRIO and PLC were integrated using digital I/O

Page 10: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

10

Page 11: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

11

PLCsPACs

3 Methods to Connect to Any PLC

Industrial

Communications

Basic I/O

Analogue/Digital

OPC

Page 12: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

12

Methods for Industrial Communications

Ethernet/SerialPlug-In Interfaces

Gateways over Ethernet, Serial

Versatility

Performance/Determinism

Page 13: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

13

Plug-In Communication Boards

• CAN and CANopen• DeviceNet• FOUNDATION fieldbus• Serial (RS232, RS422, RS485)• Third-party PROFIBUS (Comsoft)• Support for PXI, PCI, PCMCIA, and

CompactRIO

Plug-In Interfaces

Page 14: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

14

Plug-In Communication Boards

• Advantages Direct, deterministic communication with the processor Timing and synchronisation with other I/O (DAQ) High-level API support for LabVIEW and other programming

languages• Considerations

Many smaller buses and protocols are not supported Many only available on PC and PXI (real-time supported)

Plug-In Interfaces

Page 15: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

15

Example : PROFIBUS

• PROFIBUS master/slave for PXI and PCI

• More than 2 million nodes• Popular in Europe and Asia• Recommended: Comsoft DF PROFI II

interfaces

Page 16: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

16

cRIO-PBMaster/Slave and cRIO-PBSlave

cRIO PB Master/Slave module Supports operation as DP Master or DP

Slave Ships with configuration tool configurator

II for DP Master configuration Ships with GSD file to configure any DP

Master system

cRIO PB Slave module Supports operation as DP Slave Ships with GSD file to configure any DP

Master system

Page 17: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

17

Ethernet-based Industrial Protocols

• Modbus TCP/IP• Ethernet/IP• EtherCAT• Profinet

Page 18: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

18

18

Why Ethernet: ProtocolsModbus TCP/IP

Traditional Industrial Protocols

PROFInetPROFIBUS

DeviceNet EtherNet/IP

Modbus

Ethernet Physical Layer

CanOPEN EtherCAT

Page 19: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

19

Modbus TCP/IP Overview• First industrial protocol on Ethernet (introduced 1999) Based on Modbus developed by Modicon in 1979 Widely adopted and open Ethernet standard • Advantages Uses standard Ethernet (hardware and TCP/IP transport layer) Open and relatively simple • Disadvantages Not a hard real-time protocol Does not deliver determinism

Page 20: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

20

Ethernet-based Industrial Protocols

• Modbus TCP/IP• Ethernet/IP• EtherCAT• Profinet

Page 21: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

21

EtherNet/IP Overview

• Dominant bus for Rockwell Automation Managed by Open Device Vendors Association (ODVA) Extends DeviceNET concepts to Ethernet

• Advantages Uses Ethernet transport layer (TCP and UDP)

• Disadvantages Can overload networks with UDP messages if not correctly

configured, recommend managed switches with IGMP snooping

Page 22: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

22

Ethernet/IP Terminology

Page 23: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

23

Communication from NI PAC to ControlLogix and ComapctLogix PLCs

Ethernet/IP

Uses explicit messagingAvailable for download from NI Labs

Page 24: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

26

Third-Party Gateways

• Wide variety of communication buses and protocols supported

• Ethernet or serial-based• Perfect for non-PXI, PCI, and PCMCIA systems

Ethernet

PROFIBUSDeviceNetEthernetIPControlNet

Gateways over Ethernet, Serial

Page 25: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

27

ExampleAdding Vision for Food Processing Optimisation

• Needed NI Compact Vision System to calculate the mass/volume of the food item coming through on the conveyor belt

• Ethernet/IP connectivity was a requirement

EthernetIPModbus TCP

Page 26: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

28

PLCsNI PACs

3 Methods to Connect LabVIEW to Any PLC

Industrial

Communications

Basic I/O

Analogue/Digital

OPC

Page 27: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

29

What Is OPC?• Universal language for

reading and writing data

• OPC Client: Read and write to OPC

• OPC Server: Translates between OPC and device-specific protocols

English

Windows PC

Page 28: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

30

OPCClient

Allen-BradleyOPC Server

SiemensOPC Server

MitsubishiOPC Server

PLCsDevice-Specific

OPC Server

Windows PC

Ethernet/IP

PROFINET

CCLink

OPC ClientOPC

Driver

OPC Client

Page 29: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

31

NI OPC Servers for Third-Party PLCs

• OPC support for more than 100 PLCs• Connects with LabVIEW DSC OPC client

Evaluation version included with DSC

• Servers included for:•Allen-Bradley•AutomationDirect•Cutler-Hammer•GE•Hilscher

•Modbus•Omron•Philips•Siemens•Toshiba

•WAGO•Yaskawa•Yokogawa•…and more!• ni.com/opc

Page 30: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

32

OPC• Advantages

Most universal Least device-dependent Ideal for HMI and SCADA applications

• Considerations Slower, not deterministic, single-point only Can require PC-based OPC servers Not for safety or critical communications

Page 31: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

33

ABCO Adds LabVIEW to PLC System

• ABS brake testing system• PXI for high-speed encoder

measurements• Added to existing Allen-Bradley PLC

assembly line• OPC used for communication

between PXI and Allen-Bradley PLCs

“The ease by which NI can speak to the Allen-Bradley hardware saved me valuable time on this delivery-critical job.” -Arif Bustani, electrical engineer ABCO

“The ease by which NI can speak to the Allen-Bradley hardware saved me valuable time on this delivery-critical job.” -Arif Bustani, electrical engineer ABCO

Page 32: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

34

Summary• PACs add flexibility to connect to anything• Use PACs to add any measurements to existing

system• 3 Methods to Connect PAC to Any PLC:

Basic Analogue and Digital I/O Native Industrial Communications OPC

Page 33: One Controller - Any Bus Connecting Programmable Automation Controllers,Measurements, Sensors, Networks and PLCs Ian Bell National Instruments

35

Online Resources ni.com/commni.com/pacni.com/labs

www.modbus.org – Modbus TCP/IPwww.odva.org – Ethernet/IPwww.ethercat.org – EtherCATwww.profibus.com/pn - PROFINET