P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 585 of 909
MS0
Mode Step, Zero External Counter
APPLICATION:
Motion control
DESCRIPTION:
Request step-and-direction counter mode; zero the external
counter
EXECUTION:
Immediate; remains in effect until otherwise commanded
CONDITIONAL TO:
Step-and-direction input available
LIMITATIONS:
N/A
READ/REPORT:
N/A
WRITE:
N/A
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
N/A
TYPICAL VALUES:
N/A
DEFAULT VALUE:
Motor default is MS0; however, it is best practice to issue MS0
before beginning program that uses step and direction
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
MS0:3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The MS0 command zeroes the second encoder register (see CTR(enc) on page 374) without
changing the current motion mode of the SmartMotor™.
Following MS0, the A and B pins will be interpreted as a step-and-direction signal. MF0 is the
opposite input mode.
l
On the D-style motor, these are inputs 0 and 1.
l
On the M-style motor, these encoder inputs are differential and are labeled separately
from general I/O signals.
If the Mode Step with Ratio (MSR) or the Cam mode does not meet your requirements, you
can write your own loop and define a unique relationship between the incoming secondary
encoder signal and the motor’s position.
It is not necessary to use the inputs for motion. Any application that needs to count an input
signal can use this feature.
Step-and-direction inputs are most commonly used to emulate a simple stepper motor drive.
In MSR mode, the MFMUL and MFDIV commands can be used to allow a specific travel
distance with each incoming pulse, just as a stepper drive would do.
Part 2: Commands: MS0
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...