User Manual Chapter 10
GFK-1742F Jan 2020
Introduction to Local Logic Programming 267
The Local Logic program causes CTL01 to transition from logic 0 to logic 1 every second. For
this simple Motion program example, the motor shaft rotates 1/60 of a revolution for each
CTL01 transition. The motion program will therefore make the motor shaft act like the
second hand on a quartz clock.
Before writing the Motion Program, you will need to determine axis scaling. The first variable
you need to determine is the user units to counts ratio. The User Units to Counts ratio sets
the number of programming units for each position feedback count. This allows the user to
program the DSM314 in application-specific units. The User Units and Counts values must
be within the range of 1 to 65,535. The User Units to Counts ratio must be within the range
of 8:1 to 1:32. For example, if there is 1.000 inch of travel for 8192 feedback counts, a
1000:8192 User Units: Counts ratio sets 1 User Unit equal to 0.001 inch.
To set the User Units to Counts ratio the first piece of information required is the number of
counts per revolution of the feedback device. This example uses a Beta 0.5 motor. The Beta
0.5 has a feedback resolution of 8192 counts per revolution. Now perform the calculation
to determine the ratio. The basic equation is:
For this example:
This ratio is a problem since it violates the rule that the minimum User Units to Counts Ratio
is . The problem is easy to fix: change the programming units from 60
th
of a revolution
to a 600
th
of a revolution. This will make 1 programming unit equal to revolution .
Repeat the above calculation:
Thus, to have the motor travel of a revolution, you must enter 10 units in the motion
program. Additional information on setting the User Units to Counts ratio is provided in
Chapter 4.