![Performance Motion Devices Juno MC71112 User Manual Download Page 44](http://html.mh-extra.com/html/performance-motion-devices/juno-mc71112/juno-mc71112_user-manual_1529620044.webp)
Operational Overview
44
Juno Step Motor Control IC User Guide
7
For a complete description of each command supported by Juno refer to the
Juno Velocity & Torque Control IC
Programming Reference
. For general information on Juno host commands and usage, refer to the
Juno Velocity & Torque
Control IC User Guide
.
7.5.1
Host Command Script Files
Figure 7-7:
Sample Pro-
Motion Script
File
Juno ICs store NVRAM host commands in their native ‘machine’ packet format consisting of a series of hexadecimal
numbers. Pro-Motion however can use a special text file format to store parameter settings. This file is known as a
script file and an example is shown in
. Script files are convenient because they are human readable and
editable.
Pro-Motion script files contain ASCII characters and terminate each line with a <CR><LF> sequence (carriage
return and line feed). Each line of the script file contains a single complete command mnemonic. The apostrophe ' is
used to indicate that the characters from the apostrophe to the end of the line are a comment.
Pro-Motion always inserts as the first entry “#ScriptVersion” indicating the script file version format that the file was
stored in. This entry is not stored into the Juno IC but allows past and future versions of Pro-Motion to interpret the
script file correctly. Numbers default to decimal interpretation but can be forced for hexadecimal interpretation by
preceding with "0x".
Drive current
SetCurrent
Specified value has a range of 0 to 32,767 and determines
the drive current, with 0 specifying a command of 0, and
32,767 specifying the highest available voltage or current
command
Encoder to microstep
ratio
SetEncoderToStepRatio
Two specified values, each have a range 1 to 32,767. The
first parameter sets the number of encoder counts per
motor rotation, the second specifies the number of
microsteps per motor rotation
Parameter
Host Command
Mnemonic
Range & Description
#ScriptVersion 1
:DESC "Motor 2 settings"
:CVER 1.3
SetDrivePWM 1 561
SetDrivePWM 2 0x80ff
SetDrivePWM 4 8
SetDrivePWM 5 2013
SetDrivePWM 6 2013
SetOutputMode 7
SetMotorCommand 0
SetSignalSense0x0001
SetPhaseParameter 0 0
SetCurrentControlMode 1
SetFOC 512 680
ETC..
.