Reference Manual

16-Axis MACRO CPU Software Reference Manual
68 Turbo PMAC Type 1 16-Axis MACRO Station Commands
MS Variable Read
Syntax: MACROSLAVE{node #},{slave MI, MM or MP variable}
MS{node #},{slave MI-variable}
where:
{node #} is a constant (0-14) representing the number of the node whose
variable is to be read (if the variable is not node-specific,
the number of any active node on the station may be used)
{slave MI, MM or MP -variable} is the name of the MI, MM or
MP-variable on the slave station whose value is to be reported
This command causes PMAC to query the MACRO slave station at the specified node # and report back
the value of the specified slave station MI-variable to the host computer.
Examples:
MS0,MI910 ; Causes 16-Axis MACRO Station to report value of Node 0
; variable MI910
7 ; PMAC reports this value back to host
MS1,MI997 ; Causes 16-Axis MACRO Station to report value global variable MI997
6258 ; PMAC reports this value back to host
MS1,MM1 ; Causes 16-Axis MACRO Station to report value global variable MM1
8 ; PMAC reports this value back to host
MS Variable Write
Syntax: MACROSLAVE{node #},{slave variable}={constant}
MS{node #},{slave variable}={constant}
where:
{node #} is a constant (0-14) representing the number of the node whose
variable is to be written to (if the variable is not node-specific, the
number of any active node on the station may be use)
{slave MI, MM or MP -variable} is the name of the MI, MM,
MP or C -variable on the slave station whose value is to be reported
{constant} is a number representing the value to be written to the
specified MI, MM or MP -variable
This command causes PMAC to write the specified constant value to the MACRO slave station MI, MM,
MP -variable, or if a C-command is specified, it causes the station to execute the specified command
number (in which case the constant value does not matter).
The valid C-commands are:
C1 Clear station faults
C2 Reset station, loading saved station MI-variables
C3 Re-initialize station, loading default station MI-variables
C4 Save station MI-variables to non-volatile memory
Examples:
MS0,MI910=7 ;sets Node 0 variable MI910 to 7
MS8,C4=0 ;Clears faults on 16-Axis MACRO Station with active node 8
MS0,MM1=7 ;sets global variable MM1 to 7