Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Program Command Specification 451
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
{ring-master variable} is the name of the variable on the Turbo PMAC executing the
command into which the value of the remote master variable is to be copied
This command causes Turbo PMAC to copy the value of the specified variable on the remote master
station into the specified variable on the Turbo PMAC executing the command, using the MACRO Type
1 master-to-master auxiliary protocol.
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);
MACRO IC 0 node 14 must not be used for any other function.
In order for another Turbo PMAC to be able to respond to the communications that this command creates
on the MACRO ring (to be the remote master) the following conditions must be true:
MACRO IC 0 on the Turbo PMAC must be set up as a master, but not the synchronizing ring master
(I6480 = $xx90);
MACRO IC 0 on the Turbo PMAC must be set up with a non-zero master number on the ring (I6841
= $nxxxxx, where n > 0);
MACRO IC 0 node 14 normally must be disabled (I6841 bit 14 = 1);
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);
MACRO IC 0 node 14 must not be used for any other function.
If the remote master returns an error message or it does not respond within I79 servo cycles, 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:$0031EE 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.
When Turbo PMAC executes this command in a PLC, it ends the present scan of that PLC. Execution of
the PLC resumes on the next line of the PLC in the next scan.
If this command is issued to a Turbo PMAC when no buffer is open, it will be executed as an on-line
command.
Examples:
MMR4,I10,P10 ; Copies value of remote master 4 variable I10 into
; Turbo PMAC variable P10
MMR1,P1,P1 ; Copies value of remote master 1 variable P1 into
; Turbo PMAC variable P1
MACROMSTWRITE
Function: Write (copy) Type 1 MACRO master auxiliary parameter value
Type: Uncompiled PLC 1 31 only
Syntax: MACROMSTWRITE{master #},{master variable},
{ring-master variable}
MMW{master #},{master variable},{ring-master variable}
where: