testing high-power hydraulic pumps with ni labview … high-power hydraulic... · citadel dsc...

42
Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module Jeffrey Habets & Roger Custers www.vi-tech.nl

Upload: phungthuy

Post on 26-Sep-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module

Jeffrey Habets & Roger Custerswww.vi-tech.nl

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 2

AgendaIntroduction to the teststandThe challengeNew setup – system overviewWindows application – User InterfaceRT applicationStatecharts – steam course!RT application – StatechartConclusions....Resources

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 3

Introduction – Hydraulic pumps usage

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 4

Introduction – Physical setup

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 5

Introduction - Pump test chamber

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 6

Introduction – what is tested

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 7

The challenge● Design, implement, integrate and going live within 8 weeks ...● During implementation and integration: Surprise!

new requirements

● Hydraulic drive motor is replaced by an electric 250kW motor controlled by a Bosch Rexroth Indradrive

● PLC is replaced by a cFP controller with an LV RT application● Several stand-alone data-acquisition units that where used to

record measurement data are replaced by doing DAQ via cFP● System operable by more than just the guy who created it and

knows all ins and outs● The State Chart is your best friend !

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 8

New setup – system overview

Compact Field PointE-HW

Motion control PCsystem

(HMI)

Analog I/O&

Digital I/O

modules

Hydraulics

Ethernet

Profibus

Servo drive

DUT

(Hydraulicpump

orhydraulicmotor)

64 DI24 AI

48 DO16 AO

Servo motor

stimuli &control

DAQ &Status

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 9

PC

cFPRT application

HMI applicationMotion control process(profibus)

shared variable engine

RT FIFO's

writeoutputs

readinputs

network published Shared variables

network published Shared variables

RT FIFO's

Control logicStateChart

network published Shared variables citadel DSC

history

alarm control visualize

report

New setup – Software overview

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 10

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 11

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 12

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 13

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 14

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 15

Windows app - User interface

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 16

PC

cFPRT application

HMI applicationMotion control process(profibus)

shared variable engine

RT FIFO's

writeoutputs

readinputs

network published Shared variables

network published Shared variables

RT FIFO's

Control logicStateChart

network published Shared variables citadel DSC

history

alarm control visualize

report

Software overviewPC

cFPRT application

HMI applicationMotion control process(profibus)

shared variable engine

RT FIFO's

writeoutputs

readinputs

network published Shared variables

network published Shared variables

RT FIFO's

Control logicStateChart

network published Shared variables citadel DSC

history

alarm control visualize

report

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 17

Statechart Rexroth Proefstand

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 18

Statecharts

● Available as LabVIEW Addon module● Adds hierarchy and concurrency to statemachine● Design applications at a higher level● Generates LabVIEW code ● Runs on RT controllers, FPGA and embedded targets

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 19

Vending machine state machine States

1.) INIT – initialize our Coke Machine2.) WAIT FOR EVENT – where the machine waits for coins3.) RETURN CHANGE – where the machine returns change4.) COKE PRODUCT – machine received 50 or more cents → dispense beverage5.) QUARTER – when the customer enters a quarter6.) DIME – when the customer enters a dime7.) NICKLE – when the customer enters a nickel8.) EXIT – after the change is returned and/or beverage dispensed, the machine will power down (application will terminate)

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 20

Vending machine state machine

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 21

Vending machine statechart

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 22

The components of a statechart

Initial pseudostate

Transition

State

Region

Terminal pseudostate

components

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 23

How this looks in the development environment

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 24

How this looks in the development environment

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 25

How this looks in the development environment

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 26

How this looks in the development environment

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 27

How this looks in the development environment

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 28

Statechart Rexroth Proefstand

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 29

Statechart Rexroth Proefstand

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 30

Statechart Proefstand Start EM1 transition

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 31

Statechart Hierarchy Subdiagram

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 32

Statechart Subdiagram Automatisch vullen

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 33

Statechart Entry Action Stopping vullen

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 34

Statechart Exit Action Stopping vullen

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 35

Statechart Static Reaction Stopping vullen

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 36

DEMO: Frontpanel Statechart StandAloneTest.vi

Inputs: 64 DI,24 AI,55 Control

Outputs: 48 DO,16 AO,40 Visualize

Debug diagram

Active States

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 37

Benefits experienced

● Changes in system behavior requirements easier● Offline debugging and simulating of system ● Implementation together with customer / user● Statechart diagram is readable for other engineers ● Quick overview state of system when online debugging● Self documenting

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 38

ResourcesLVUG: LabVIEW State Machines & Statechart Module http://zone.ni.com/wv/app/doc/p/id/wv-417

LVUG: Programming Guidelines and Techniques for the Statechart Modulehttp://zone.ni.com/wv/app/doc/p/id/wv-449

Frequently Asked Questions for the LabVIEW Statechart Modulehttp://digital.ni.com/public.nsf/allkb/06B32542713158ED862573A700830B28

Download the presentation: www.vi-tech.nl

Stay in touch http://nl.linkedin.com/in/vitech JeffreyHabets

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 39

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 40

Shared Variable Engine

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 41

Example synchronous statechart

27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart module 42

Example asynchronous statechart