Owner's manual
5-4 Programming Basics and Setup
5.3.3 FmXP Program Structure
All FmXP programs consist of a:
• Pre-Fiducial Block
• Main Program
• Workpiece Pattern
In addition to the Workpiece Pattern, you may include additional patterns. However, all programs contain
the Main Program and Workpiece Pattern at minimum.
5.3.3.1 Pre-Fiducial Block
The Pre-Fiducial block is executed prior to the Main Program. The Pre-Fiducial Block allows the
dispensing program to execute non-dispense related instructions before the fiducials are found at the
beginning of a dispensing program. For example, input signals could be checked or output signals could
be set prior to fiducial finding. The program could be aborted if a given input signal was not at the
correct state.
5.3.3.2 Main Program
The Main Program is a set of commands usually hidden from the Programming Window. The Main
Program begins and ends the program and contains:
• Comments about program flow
• Mode Setting Instructions (Zfast, height sensing, etc.)
• Process Instructions
• User Added Setup Processes
• Workpiece Pattern Call
• Program End Command
FmXP automatically creates the Main Program for you based on your configuration settings.
See Section 6 - Beginning Programming for information about editing the Main Program.
5.3.3.3 Workpiece Pattern
All FmXP programs include a Workpiece Pattern. You have the option of creating additional patterns.
Generally these patterns are executed from the Workpiece pattern, however you may execute a pattern
from another pattern (nested pattern or subpattern).
The Workpiece Pattern typically contains:
• Pattern Instructions
• Dispensing Instructions/Process Commands
• Procedures
• Subpattern Calls
• Pattern End Command