Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 364
{node #} is a constant in the range 0 to 63 representing the number of the node on the Turbo
PMAC matching the slave node to be accessed, where the node number specification is:
o {node #} = 0 15 specifies MACRO IC 0 nodes 0 15, which correspond to slave
nodes 0 15 of the same master number as MACRO IC 0;
o {node #} = 16 31 specifies MACRO IC 1 nodes 0 15, which correspond to slave
nodes 0 15 of the same master number as MACRO IC 1;
o {node #} = 32 47 specifies MACRO IC 2 nodes 0 15, which correspond to slave
nodes 0 15 of the same master number as MACRO IC 2;
o {node #} = 48 63 specifies MACRO IC 3 nodes 0 15, which correspond to slave
nodes 0 15 of the same master number as MACRO IC 3;
{slave var} is the name of the variable of the Turbo PMAC acting as a MACRO slave to this
Turbo PMAC. It can be an I, P, Q, or M-variable with a number from 0 to 8191.
{variable} is the name of the variable on this Turbo PMAC. . It can be an I, P, Q, or M-
variable with a number from 0 to 4095.
This command causes Turbo PMAC to copy the value of the specified variable on this Turbo PMAC to
the specified variable of the Turbo PMAC acting as a MACRO slave station matching the specified node
number.
If the slave node returns an error message or the slave node does not respond within the number of servo
cycles set by I78, Turbo PMAC will report ERR008. Bit 5 of global status register X:$000006 is set to
report such a MACRO auxiliary communications error. Register X:$00320E 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.
If this command is issued to a Turbo PMAC when no buffer is open, it will be executed as an on-line
command.
Examples:
MXW0,MP8191,P10 ; Copy P10 value here into slave P8191
MXW1,MM162,P4095 ; Copy P4095 value here into slave MM162
MACROMST{master#},{master variable}
Function: Report Type 1 MACRO master variable value
Scope: Global
Syntax: MACROMST{master #},{master variable}
MM{node #},{master variable}
where:
{master #} is a constant (1-15) representing the number of the remote master whose variable is to
be read;
{master variable} is the name of the variable on the remote master station whose value is to
be reported
This command causes the Turbo PMAC to query another master station on the ring for a variable value
using the MACRO Type 1 master-to-master auxiliary communications protocol, and report back the value
of the specified variable to the host computer.
In order for the Turbo PMAC to be able to execute this command, the following conditions must be true:
MACRO IC 0 on this Turbo PMAC must be set up as the synchronizing ring master (I6840 = $xx30);
MACRO IC 0 on this Turbo PMAC must be set up as Master 0 on the ring (I6841 = $0xxxxx);
MACRO IC 0 node 14 must be in broadcast mode (I6840 bit 14 = 1);
MACRO IC 0 node 14 auxiliary register copy function must be disabled (I70 bit 14 = 0);