PLCopen 2-Axes Template - FFLD
This template project contains a two-axis template for getting started with a KAS application.
- It contains key project elements that save development time.
- The templates are designed to add code to the programs and Control Panels in the template or to new templates.
- This template program can be run on the KAS Simulator or with an AKD PDMM or PCMM and AKD drives.
- A project can contain many programs, and each program can be written in FBD "Function Block Diagram" A function block diagram describes a function between input variables and output variables. A function is described as a set of elementary blocks, FFLD "Free Form Ladder Diagram", IL "Instruction List" This is a low-level language and resembles assembly, SFC "Sequential Function Chart" It can be used to program processes that can be split into steps. The main components of SFC are: - Steps with associated actions - Transitions with associated logic conditions - Directed links between steps and transitions or ST "Structured text" A high-level language that is block structured and syntactically resembles Pascal programming languages.
- Additional axes can be added to the template applications that have three, four, five, or more axes.
This project contains two axes where Axis 2 is slaved to Axis 1 at a 2:1 ratio.
Control Panel
The template contains a Control Panel which works inside of the IDE "Integrated development environment" An integrated development environment is a type of computer software that assists computer programmers in developing software. IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debugger when running a project.
It is a useful tool to run and debug programs.
Control Panel Screens
The Control Panel has these screens:
- Control Panel
- Fault Report Panel
Control Panel Sections
The Control Panel has these sections:
- Multi-Axis Commands: Controls motion and shows gearing.
- Single Axis Motion Commands: Shows motion at the single axis level and resetting the axis position.
- Axis Status: Shows basic axis information.
See Design the HMI with the Internal Editor for more information.
Figure 6-61: PLCopen Template - Control Panel
Call out# | Description |
---|---|
Allows for enabling or disabling the axes. After an emergency stop, select the Reset and Enable commands before running the axes. |
|
Displays the actual position for each axis. |
|
Used to set the speed. |
|
Start or stop the motion on the condition that the axes are enable. The green light must be switched on. |
|
Control the axis motion. |
Fault Report Panel provides more detailed information about when a drive fault occurs.
Figure 6-62: PLCopen Template - Fault Report Panel
HMI
Included in the project template are HMI screens for the AKI terminals created in the KVB (Kollmorgen Visualization Builder) environment.
- The KVB software is a separate installation from the KAS-IDE.
- In KAS-IDE, double-click the KVB Project item in the project tree to open KVB.
The project can be run in the KVB programming environment after the KAS-IDE program has started running.
Click on the Run button in the Project ribbon to start the program.
These screens, localized in English and German, are included that duplicate the controls on the IDE Internal Control panel screens.
Motion
The template contains two PLCopen A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML Servo axes where User Units, Update Rate, Rollover Position, and Axis Limits are defined as:
Figure 6-63: PLCopen Template - Motion
See Axis Data Parameters for more information about PLCopen axis parameters.
PLC Programs
The 2-axes PLCopen template has an FFLD program (called Main) that initializes and starts the motion.
- The motion includes:
- Single axis jogging, incremental and absolute moves, and gearing motion between axes.
- Controls to enable/disable the drives, clear faults, and display fault and axis position information in the Control Panel.
Figure 6-64: PLCopen Template with FFLD - Main