Reference Manual

16-Axis MACRO CPU Software Reference Manual
Turbo PMAC Type 1 16-Axis MACRO Station Commands 69
MS Variable Read Copy
Syntax: MACROSLVREAD{node #},{slave MI-variable},{PMAC variable}
MSR{node #},{slave MI, MM or MP -variable},{PMAC 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
{PMAC variable} is the name of the variable on the PMAC into which the
value of the slave station variable is to be copied
This command copies the value of the specified MI, MM or MP -variable on the MACRO slave station into
the specified variable on PMAC.
The variable on the PMAC or PMAC2 can be any of the I, P, Q, or M-variable on the card.
If this command is issued to a PMAC while a PLC buffer is open, it will be stored in the buffer as a PLC
command, not executed as an on-line command.
Examples:
MS0,MI910,P1 ; Copies value of 16-Axis MACRO Station Node 0 variable MI910 into
; PMAC variable P1
MS1,MM9,M10 ; Copies value of 16-Axis MACRO Station global variable MM9 into
; PMAC variable M10
MS Variable Write Copy
Syntax: MACROSLVWRITE{node #},{slave variable},{PMAC variable}
MSW{node #},{slave MI, MM or MP -variable},{PMAC 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 variable} is the name of the MI, MM, MP -variable or C-
command on the slave station whose value is to be reported
{PMAC variable} is the name of the variable on the PMAC into which
the value of the slave station variable is to be copied
This command copies the value of the specified variable on PMAC into the specified MI, MM or MP -
variable on the MACRO slave station, or if a slave station C-command number is specified, it executes
that command (in which case the PMAC variable value is not really used).
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
The MI-variable on the MACRO slave station can be global to the station, or node-specific.
The variable on the PMAC or PMAC2 can be any of the I, P, Q, or M-variable on the card.
If this command is issued to a PMAC while a PLC buffer is open, it will be stored in the buffer as a PLC
command, not executed as an on-line command.