Function Chart library: library icon

german banner

Application hints for the programming of motion control systems by means of the Simulink add-on Block Library Function Chart
- all rigths reserved - Dr. Geitner ETI/TU Dresden


Structure of the application hints:
  1. Requirements
  2. Activation
  3. Overall structure
  4. Error handling
  1. Block parameterization
  2. Standard blocks
  3. Comment block
  4. State display
  1. Test
  2. Real-time code generation
  3. Documents


  1. Requirements

    Following preconditions have to be fulfilled for the design, research and description of event-driven motion systems by means of add-on block library Function Chart:

  2. Activation

    For add-on library Function Chart there is no installation necessary in usual literal sense. After activation as given below all FUP library blocks are available and of equal rank in comparison with standard libraries.

    2.1 Rather up to date MATLAB/Simulink versions

    File slblocks.m causes automatic integration of user library FUP into Simulink library collection. Copy content of directory "Fup_V32" to any location on hard disk and add at least directory "~/Fup_V32/BibV32" to MATLAB search path. After this activity add-on library Function Chart will be ready. For rather obsolate FUP versions please replace "V32" with "Vxy". Other useful path extentions may be found in ReadMe.txt.

    2.2 Rather obsolate MATLAB/Simulink versions

  3. Overall structure of a motion system

    The overall structure for the programming of an event-driven motion system is principally composed of the parts function chart, process model and process connection. The function chart is conveniently divided into sub-function charts mostly. In the simplest case the process model consists of individual servo drives(motion cells). Typically the overall structure may also include switches for the control of the motion sequences (selection of variants, simulation of errors etc) as well as blocks for display and data storage.

  4. Error handling for the motion process

    Basically there are two ways to programme and describe error handling sequences for event-driven motion control:

  5. Block parameterization

    In accordance with Simulink each block of the block library Function Chart is indicated by an abbreviation. These abbreviations may be hihidden after a short time of getting familiar with the add-on library. Mark the block and use the command "hide name" inthe format menu. This is possible since the graphical layout is very similar to that of the VDI / VDE guideline 3684 on theone hand and the particular icon design of the additional blocks on the other hand. These facts restrict the information content of the graphic layout to the intrinsic functionality of the motion sequences.

  6. Standard blocks

    The design details of the servo drives (motion cells) in Simulink are completely ignored here. For such details use the standard libraries, e.g. Discrete, Linear or Non-linear plus the Power System Blockset. It is characteristic to use dedicated standard blocks for the application of the add-on library Function Chart. Compare the 11 examples too. These standard blocks and their tasks are:  

  7. Comment block

    The KB comment block is the only one of the block library Function Chart which can appear in different icon forms:

    • exclusively value setting
    • value setting and comment text
    • exclusively comment text
    KB block: exclusively value setting KB block: value setting and comment text KB block: exclusively comment text

  8. State display

    There are two ways to display active states of a function chart:

  9. Test

    After a function chart has been designed and programmed test it statically without any process model and process connection first of all. The process models that will be necessary for the following dynamic test of the function chart should be sufficiently verified at this time, however.

  10. Real-time code generation

    With version 3.0 and later of the block library Function Chart a graphically programmed motion control can be translated into the programming language "C". On condition that conformed "C" compilers are available the real-time code generation for different hardware platforms is possible. The only thing the user has to do is to register all Function Chart library files "*.lib" in his Target Support Software. Existing make-files can be used further.
    MATLAB/Simulink offers a tool for the design of user interfaces if the Target Support Software supports an on-line data transmission between host and target in both directions. As a rule in most cases oscilloscopes become unnecessary then since the Target Support Software provides scope functions that are typically comprehensive. Provided the communication within the designed motion control is based on a fast bus system device-internal data (e.g.data of servo drives or programmable controllers) are quite as well visualizeable together with events and process state signals.
    Assuming that the technology of the motion process tolerates it the real-time use of Simulink standard on-line switches "Manual Switch" for event simulations allowes to employ the stepping mode to a certain or the full extent. The design of hierarchical systems is possible as well depending on the technology and / or the device technique.

  11. Documents

    An introduction with summary of essential features and application notes, as well as description of selected examples and block descriptions in tabular form is available as PDF document for the obsolete version 2.3. Whereby the info in the subsections "Software" and "Installation" of this PDF documentation is accordingly not valid for the current v ersion 3.2 - see info under "2. Activation" above.


Homepage
Dr. G.-H. Geitner
Master page BOD
Digital Magnitude Optimum
BOD Toolbox
Digital Magnitude Optimum
Master page BO
Magnitude Optimum
Toolbox BO
Magnitude Optimum
Master page
Bond Graph
Chair Electric Machines
and Drives - TU Dresden