35
PLC Support Software at Jefferson Lab Presented by P. Chevtsov ( [email protected] ) Controls Software Group

PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLC Support Software at Jefferson Lab

Presented by P. Chevtsov ( [email protected] )

Controls SoftwareGroup

Page 2: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

- PLC introduction

- PLCs at Jefferson Lab

- New PLC support software

- Conclusions

Controls SoftwareGroup

Page 3: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Electromagnetic Relay

Encyclopedia Britannica:

Relays (in electricity) are electromagneticdevices for remote or automatic control ofelectric current in one (relay) circuit, using the variation in current in another (energizing) circuit.

Controls SoftwareGroup

Page 4: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Relay based control panels (sequential relay circuits) were typical industrial process controllers in 1960’s .

Controls SoftwareGroup

Page 5: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

First computer based industrial process controller was createdin 1968 for General Motors Company. It was called the Programmable Logic Controller or PLC.

Controls SoftwareGroup

Page 6: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

C P U Memory Input channels

P L C

External Interface

Controls SoftwareGroup

Output channels

Page 7: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Basic P L C control operations

Controls SoftwareGroup

INPUTS OUTPUTS

PLC works by looking at its inputs and, depending upon theirstate, turning its outputs on or off.

Page 8: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

MEMORY

Host

Computer

Control

Programs

External

Interface

P

L

C

Control

Data

Controls SoftwareGroup

Page 9: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

- very reliable

- very cheap

- can easily be programmed by instrumentation engineers

PLCs

Controls SoftwareGroup

Page 10: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLCs at Jefferson Lab

Controls SoftwareGroup

Page 11: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Recent evolution towards fast processors and a wide

variety of compatible I/O modules have made PLCs very

attractive for new control applications at Jefferson Lab.

Controls SoftwareGroup

Page 12: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLC basic line at Jefferson Lab

cost performance data networksolution

availability ofI/O modules

Direct Logic Products from Automation Direct

Controls SoftwareGroup

Page 13: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Direct Logic family of products:

- supports the serial DirectNet data networkpoint-to-point (RS-232) or multi-drop (RS-422)

- uses the DirectNet communication protocol andoperates asynchronously at speeds up to 38.4 K baud.

The data network is controlled by a master station that issues network commands to individual slave stations.

Controls SoftwareGroup

Page 14: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

DirectNetprotocol

Controls Software

Group

Page 15: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Accelerator ControlSystem

PLC

Controls SoftwareGroup

Serialinterface ?

Page 16: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLCAccelerator Control

System

PLCSupport Software

Controls SoftwareGroup

Page 17: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Andrew Johnson, ANL, January 2002

“Serial (RS-232) directNet PLC

support via MPF”

www.aps.anl.gov/asd/people/anj/

directNet/dnMpf.html

Controls SoftwareGroup

Page 18: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

New PLC support software

Controls SoftwareGroup

Page 19: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLC Device Support

Serial Driver

PLC driver

Controls SoftwareGroup

Page 20: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Data Cache

PLC Data Client

PLC Data Client

PLC Data Client

DataCacheManager

INP: @PLC_NAME CMD

OUT: @PLC_NAME CMD

EPICS Database PLC Device Support

Controls SoftwareGroup

Page 21: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Serial Driver

Serial Port 2

Serial Port 1

initSerialHardware(carrier_board_type)

serialPortConfig(carrier, slot, port, baud, parity, stop, bits, flow, int_numb)

Data ParsingProcedure

Serial Port N

Controls SoftwareGroup

Page 22: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLC Driver

PLC Data Server

PLC Data Server

PLC Data Server

initSerialPLC( “PLC_NAME”, carrier, slot, port )

EPICS Database Control Serial Port Control

PLC State Machine Control

Communication Diagnostic Block

Controls SoftwareGroup

Page 23: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Serial Driver

EPICS DatabasePLC Device Support

PLC Driver

Data Cache

PLC Data Client

PLC Data Client

PLC Data Client

PLC Data Server

PLC Data Server

PLC Data Server

Serial Port 2

Serial Port 1

Serial Port N

DataCacheManager

PLC State Machine Control

Data ParsingProcedure

Communication Diagnostic Block

Page 24: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Beam Dump

Systems

Controls SoftwareGroup

Page 25: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Controls SoftwareGroup

Page 26: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Controls SoftwareGroup

Page 27: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Has successfully been working for the beam dump systems at Jefferson Lab since April, 2002.

New PLC support software

Controls SoftwareGroup

Page 28: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Does not require any extra coding for connecting a new PLC to the control system.

New PLC support software

Controls SoftwareGroup

All that you have to do to add a new PLC to your system is to create the corresponding EPICS database with the use of a number of examples provided and run it together with the PLC support software.

Page 29: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

As it was mentioned above, for each PLC, the PLC support software is activated with the use of only a limited number of basic library calls.

New PLC support software

initSerialPLC( “PLC_NAME”, carrier, slot, port)

initSerialHardware(carrier_board_type)

serialPortConfig(carrier, slot, port, baud, parity, stop, bits, flow, int_numb)

Controls SoftwareGroup

Page 30: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

New PLC support software

The software activation calls for each control computer can be put into one configuration file residing in a standard directory and can be downloaded into this computer during the startup time.

This makes it much easier to keep the track of all PLCs involved into the accelerator control.

Controls SoftwareGroup

Page 31: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Recommendations on the use of PLCs

Controls SoftwareGroup

Page 32: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Use PLCs where

>> High availability of interlock control is required

>> Maintenance of control capability is required even duringthe control computer reboot

>> Complex control algorithms are not required

Controls SoftwareGroup

Page 33: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

Do not use PLCs

>> For high level sequences

>>>>> For some I/O modules VME can be less expensive

Controls SoftwareGroup

Page 34: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

PLC support software development team:

P. Chevtsov, A. Johnson, S. Higgins, S. Schaffner, D. Seidman

Controls SoftwareGroup

Page 35: PLC Support Software at Jefferson Lab · 2002. 10. 17. · PLC basic line at Jefferson Lab cost performance data network solution availability of I/O modules Direct Logic Products

E N D