Reference Manual

16-Axis MACRO CPU Software Reference Manual
70 Turbo PMAC Type 1 16-Axis MACRO Station Commands
Examples:
MSW0,MI910,P35 ; Copies value of PMAC P35 into 16-Axis MACRO Station
; node 0 variable MI910
MSW0,MP1,P35 ; Copies value of PMAC P35 into 16-Axis MACRO Station
; global variable MP1
MSW4,C4,P0 ; Causes 16-Axis MACRO Station with active node 4 to save its
; MI-variable values to non-volatile memory
; (P0 is a dummy variable here)
Turbo PMAC PLC Commands for Type 1 16-Axis MACRO Stations
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-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-variable on the MACRO slave station into the
specified variable on PMAC.
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 no PLC buffer is open, it will be executed as an on-line
command, not stored in the buffer as a PLC command.
Examples:
MS0,MI910,P1 ; Copies value of 16-Axis MACRO Station Node 0 variable MI910 into
; PMAC variable P1
MS1,MI997,M10 ; Copies value of 16-Axis MACRO Station global variable MI997 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-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).