SMAC
LAC-25 Technical Reference Manual
23
Command:
aLNn
-- Limit Switch Input On --
Argument:
0 <= n <= 3
This command is used to enable one or both of the limit switch inputs for servo axis ÔaÕ.
Once enabled, the servo will be stopped or turned off if a limit switch input goes active. At the
same time the Limit Switch Tripped and Error Flags will be set in the status word. These flags will
remain set until the servo is turned back on with the Motor On (MN) command. Once the servo is
turned back on, it can be moved out of the limit switch region with any of the standard motion
commands. The argument to this command determines which of the limit switch inputs will be
enabled. The coding is as follows:
n
Limit Switch Inputs Enabled
0,3 or no argument
Limit+ and Limit-
1
Limit+
2
Limit-
Related Commands: LF, LM
Command:
aOMn -- Output Mode --
Argument:
0 <= n <= 255
Default:
0
This command allows the user to determine what data gets sent to the D/A analog output
for a given axis. The upper four bits of the argument are for redirection of data and
determine from
which axis the D/A channel will get itÕs data
. This allows both D/A channels to output data from
the same axis. If no redirection is specified, the default data used is that of the current axis.
Note:
When outputting the servo output command, if no redirection is specified, then the output
command as phase adjusted by the PH command will be output. If redirection is specified,
then the normalized data as reported by the TQ command will be output.
ÔnÕ
Value Output
0
Servo Output Command
1
Servo Following Error
Ôn+Õ
Redirect Channel
2
Servo Following Error * 64
0
Default
3
Variable USER1
16
1
4
Low Bits of Encoder Position
32
2
5
Reserved
6
Reserved
7
Reserved
Examples:
1OM0
; Send axis 1 servo output command to D/A channel 1.
1OM16
; Send axis 1 servo output command to D/A channel 1.
2OM0
; Send axis 2 servo output command to D/A channel 2.
2OM32
; Send axis 2 servo output command to D/A channel 2.
1OM0
; Send axis 1 servo output command to D/A channel 1.
2OM17
; Send axis 1 following error to D/A channel 2.