PMX-4EX-SA Manual
page 87
Rev 3.11
DO[1-8]
R/W
Set/get individual bit status of digital
outputs. Range for the bit assigned digital
outputs is [0,1].
DO2=1 ;Turn on DO2
ECLEAR[axis]
W
Clear any motor status errors.
ECLEARX
EO
R/W
Set/get the enable output status. Refer to
Table 6.1
EO=3 ;Enable the X and Y motor
EO[1-4]
R/W
Set/get individual bit status of the enable
outputs.
EO3=1 ;Enable the Z motor
E[axis]
R/W
Set/get the current encoder position.
EX=1000 ;Set to X enc to 1000
V1=EU ;Read current U encoder
GOSUB [0-31]
-
Call a subroutine that has been previously
stored to flash memory.
GOSUB 0
END
HLHOME[axis][+/-]
W
Home the motor using the home input at
low and high speeds in the specified
direction. See section 6.13.5 for details.
;positive X home
WAITX ;wait for X home move
HOME[axis][+/-]
W
Home the motor using the home input at
high speed in specified direction. See
section 6.13.1 for details.
HOMEX- ;negative X home
WAITX ;wait for X home move
HSPD
R/W
Set/get the global high speed setting. Unit
is in pulses/second.
HSPD=1000
HSPD=V1
HSPD[axis]
R/W
Set/get the individual high speed setting.
Unit is in pulses/second.
HSPDY=1000
HSPDZ=V1
IF
ELSEIF
ELSE
ENDIF
-
Perform a standard IF/ELSEIF/ELSE
conditional. Any command with read
ability can be used in a conditional.
ENDIF should be used to close off an IF
statement.
Conditions [=, >, <, >=, <=, !=] are
available
IF DI1=0
DO=1 ;Turn on DO1
ELSEIF DI2=0
DO=2; Turn on DO2
ELSE
DO=0; Turn off DO
ENDIF
INC
W
Set the move mode to incremental mode.
INC
X1000 ;increment by 1000
JOG[axis][+/-]
W
Move the motor indefinitely in the
specified direction.
JOGX+
JOYENA
W
Set the joystick enable setting. See
section 6.20 for details.
JOYENA=3 ;enable joystick X,Y
JOYHS[axis]
W
Set the high speed setting for joystick
control. See section 6.20 for details.
JOYHSX=2000
JOYHSZ=5000
JOYDEL[axis]
W
Set the speed change delta for joystick
control. See section 6.20 for details.
JOYDELZ=100
JOYDELU=200
LHOME[axis][+/-]
W
Home the motor using the limit inputs in
the specified directions. See section
6.13.2 for details.
;positive home
WAITX
LSPD
R/W
Set/get the global low speed setting. Unit
is in pulses/second.
LSPD=100
LSPD=V3
LSPD[axis]
R/W
Set/get the individual low speed setting.
Unit is in pulses/second.
LSPDX=100
LSPDY=V1
MST[axis]
R
Get the current motor status of the motor
of an axis. See Table 6.2 for motor status
assignment.
PRG [0-3]
END
-
Used to define the beginning and end of a
main program. Four standalone programs
are available
PRG 0
;main program
END
Summary of Contents for PMX-4EX-SA
Page 1: ...PMX 4EX SA Manual page 1 Rev 3 11 PMX 4EX SA Advanced 4 Axis Stepper Motion Controller ...
Page 9: ...PMX 4EX SA Manual page 9 Rev 3 11 3 Dimensions 3 1 PMX 4EX SA TBS Dimensions Figure 3 0 ...
Page 10: ...PMX 4EX SA Manual page 10 Rev 3 11 3 2 PMX 4EX SA TB9 Dimensions Figure 3 1 ...
Page 19: ...PMX 4EX SA Manual page 19 Rev 3 11 4 11 PMX 4EX SA Interface Circuit Figure 4 10 ...