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

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

Mar 12, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Jeffrey Habets & Roger Custerswww.vi-tech.nl

Page 2: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 3: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Introduction – Hydraulic pumps usage

Page 4: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Introduction – Physical setup

Page 5: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Introduction - Pump test chamber

Page 6: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Introduction – what is tested

Page 7: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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 !

Page 8: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 9: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 10: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 11: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 12: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 13: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 14: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 15: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Windows app - User interface

Page 16: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 17: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Rexroth Proefstand

Page 18: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 19: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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)

Page 20: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Vending machine state machine

Page 21: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Vending machine statechart

Page 22: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the 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

Page 23: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 24: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 25: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 26: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 27: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 28: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Rexroth Proefstand

Page 29: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Rexroth Proefstand

Page 30: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Proefstand Start EM1 transition

Page 31: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Hierarchy Subdiagram

Page 32: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Subdiagram Automatisch vullen

Page 33: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Entry Action Stopping vullen

Page 34: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Exit Action Stopping vullen

Page 35: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Statechart Static Reaction Stopping vullen

Page 36: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 37: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 38: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 39: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Page 40: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Shared Variable Engine

Page 41: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Example synchronous statechart

Page 42: Testing high-power hydraulic pumps with NI LabVIEW (RT) and … · 2013-09-30 · 27sept BE / 29 sept NL Testing high-power hydraulic pumps with NI LabVIEW (RT) and the StateChart

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

Example asynchronous statechart