User`s manual
Introduction to Local Logic Programming
GFK-1742A Chapter 10 Introduction to Local Logic Programming 10-47
10
2
sec
10000
sec01.0
sec
1000
sec
1000
8192
600
8192
sec
6667.1
sec
6667.1
sec01.0sec01.0
rev
60
1
2
rev
60
1
sec01.0
sec 0.01
:Given
uu
a
uu
a
t
V
a
uu
V
cnts
uu
rev
cntsrev
V
rev
V
V
x
t
t
a
pk
pk
pk
pk
pk
d
a
⋅=
⋅
⋅
=
=
⋅=
⋅⋅⋅⋅⋅=
⋅=
⋅+⋅
⋅⋅
=
⋅=
⋅=
⋅=
We are now ready to write our motion program. The code is as follows.
(**************************************************************)
(* Program Name: MPExample *)
(* Description: The following Motion program causes *)
(* the motor to rotate 10 Units (Distance based *)
(* upon scaling) every time CTL01 transitions from *)
(* 0 to 1. *)
(**************************************************************)
(* Variables *)
(* CTL01 = Program execution trigger *)
(**************************************************************)
PROGRAM 1 AXIS1 (* Program Number 1 for Axis 1 *)
ACCEL 10000 (* 10000 uu/sec^2 *)
VELOC 1000 (* 100 uu/sec *)
1:
WAIT CTL01 (* Wait for CTL01 Signal *)
PMOVE 10, INCR, LINEAR (* Position Move 10 Incr Linear *)
JUMP UNCOND, 1 (* Jump back to start *)
ENDPROG (* End Program *)
The user needs to type the above program into the text editor. Once that is complete, the editor will
look similar to Figure 10-49.