Manual

Programming 5-19
Exercise 5-4: Creating a Procedure
1. Click the
New Procedure button on the toolbar.
! A new blank procedure will be created. See Figure 5-14.
2. Click on the Name Property Field and name the procedure “Abort Program.”
See Figure 5-15.
Figure 5-15 Naming a Procedure
3. Insert an Abort Program instruction.
a. Make sure the Abort Program procedure on the left panel of the screen is highlighted. If
not click on it.
b. Click on the General Tab.
c. Click on the
Abort Program instruction.
! An Abort Program instruction will be entered into your procedure.
d. Enter “Program Aborted” for the Log Message value in the Properties section.
See Figure 5-16.
Figure 5-16 Abort Program Procedure
4. Test the procedure by selecting it and clicking on Run > Run Pattern/Procedure or pressing
the
[F6] key.
" NOTE To include the procedure in your program, you must insert a Call Procedure instruction in
the Main Pattern. See 5.9.7 Calling Procedures.