Reference Manual

PMAC 2 Software Reference
PMAC On-Line Command Specification 265
MACROAUXWRITE
Function
Write MACRO auxiliary parameter value
Scope
Global
Syntax
MACROAUXWRITE{NodeNum}{ParamNum}{Variable}
MXW{NodeNum}{ParamNum}{Variable}
where:
{NodeNum} is an integer constant from 0 to 15 specifying the slave number of the node
{ParamNum} is an integer constant from 2 to 253 specifying the auxiliary parameter
number for this node
{Variable} is the name of the PMAC variable (I, P, Q, or M) from which the
parameter value is to be copied
Remarks
This command permits PMAC to write auxiliary register values to slave nodes across the
MACRO ring. The command must specify the node number of the slave node, the auxiliary
parameter number at this node, and the name of the PMAC variable from which the value
comes.
Only one auxiliary access (read or write) of a single node can be done on one command line.
In order to access the auxiliary registers of a MACRO node n, bit n of I1000 must be set to 1.
If the slave node returns an error message or the slave node does not respond within 32 servo
cycles, PMAC will report ERR008. Bit 5 of global status register X:$0003 is set to report
such a MACRO auxiliary communications error. Register X:$0798 holds the error value. It
is set to $010000 for a timeout error, or $xxxxFE if the slave node reports an error, where
xxxx is the 16-bit error code reported by the slave node.
Example
MACROAUXWRITE1,24,P1 ; Write value of P1 to Node 1 Parameter 24
MXW5,128,M100 ; Write value of M100 to Node 5 Parameter 128
See Also
On-line commands MACROAUX, MACROAUXREAD
PLC Program commands MACROAUXREAD, MACROAUXWRITE
MACROSLV{command} {node#}
Function
Send command to Type 1 MACRO slave
Scope
Global
Syntax
MACROSLAVE{command}{node #}
MS{command}{node #}
where:
{command} is one of the following text strings:
$$$ normal station reset
$$$*** station reset and re-initialize
CLRF station fault clear
CONFIG report station configuration value
DATE report station firmware date
SAVE save station setup
VER report station firmware version
{node #} is a constant in the range 0 to 15 representing the number of the node
on the PMAC matching the slave node to be accessed