Commands for Master-Slave programming
Commands for Master-Slave programming
Available commands and command descriptions for Master-Slave programming
The Master-Slave application requires the Master controller that guides all attached slaves to the Network Slaves that carry out the commands. The Master controller can be a Programmable DPS, open frame model - OP-DPS, PC or other controllers that are capable of sending commands to Slaves. The Slave can be any Magtorx Programmable DPS or Addressable Relays Driver. Every Slave must have a unique assigned address in order to communicate with the Master controller. Magtorx Programmable DPS, used as a master, is capable of storing an application program up to 24kB in multiple steps - see S-Program for a detailed description of step. This section shows the connection diagrams and lists all available commands for Master-Slave programming:

Back to Top Figure 8. Master-Slave connections diagram
#A[CR] Address. Writes unique address, in hexadecimal format, for each DPS that is used in the same Network. The hexadecimal value A that can be assigned to the Slave DPS is between 1 and F. The Master DPS address must always be 0. Each assigned address must be immediately saved by the Save command $[CR]. Example: assigning and saving address 3 => #3[CR]$[CR]
JA[CR] ON-Table Mode. The command turns ON the Table Mode of the DPS with address A also see the Address command. Example: turn ON address 3 => J3[CR]
jA[CR] OFF-Table Mode. The command turns OFF the Table Mode of the DPS with address A. also see the Address command. Example: turn OFF address 3 => J3[CR].
LAXXXX[CR] Control Signal. Writes hexadecimal value XXXX to the control register of the device with address A. The value can be between 0 and 0FFF. The command controls current applied to the load connected to the Load Terminal.
PAXXXX[CR] Soft Start (>> [!] or [?]). Writes the Time Rate in hexadecimal value XXXX to the soft start register. The values ranges from 0 to EA60. The number EA60 used with this command will produce a Time Rate equal to 12 [s/V], or simply, it will require 60 seconds to reach a full Control Signal of 5 Volts from its 0 Volt value. For a detailed explanation see Soft Start - Soft Stop command description.
QAXXXX[CR] Soft Stop (>> [!] or [?]). Writes the Time Rate in hexadecimal value XXXX to the soft stop register. The values ranges from 0 to EA60. The number EA60 used with this command will produce Time Rate equal to 12 [s/V], or simply, it will require 60 seconds to reach the Control Signal value of 0 Volt from the maximum of 5 Volts. For a detailed explanation see Soft Start - Soft Stop command description.
RA[CR] Addressable Relay (>> [!] or [?]). Turns ON or OFF the relay switches of ARE-4 device with address A. Each Addressable Relays Driver has four designated relay drives (RL1, RL2, RL3, & RL4).
The command is specifically created for Magtorx Addressable Relays Driver, model ARE4. The ARE-4 device requires a unique Address and is treated by the Master Controller as a Slave device.
Table III denotes the command structure capable of activating the relay operation:
Table III
RL4 RL3 RL2 RL1BIT #4 3 2 1 | SWITCH # (0=OFF; 1=ON) | Bit#(Hex) | CommandA denotes Address* |
RL4 | RL3 | RL2 | RL1 |
0 0 0 0 | OFF | OFF | OFF | OFF | 0 | RA0[CR] |
0 0 0 1 | OFF | OFF | OFF | ON | 1 | RA1[CR] |
0 0 1 0 | OFF | OFF | ON | OFF | 2 | RA2[CR] |
0 0 1 1 | OFF | OFF | ON | ON | 3 | RA3[CR] |
0 1 0 0 | OFF | ON | OFF | OFF | 4 | RA4[CR] |
0 1 0 1 | OFF | ON | OFF | ON | 5 | RA5[CR] |
0 1 1 0 | OFF | ON | ON | OFF | 6 | RA6[CR] |
0 1 1 1 | OFF | ON | ON | ON | 7 | RA7[CR] |
1 0 0 0 | ON | OFF | OFF | OFF | 8 | RA8[CR] |
1 0 0 1 | ON | OFF | OFF | ON | 9 | RA9[CR] |
1 0 1 0 | ON | OFF | ON | OFF | A | RAA[CR]* |
1 0 1 1 | ON | OFF | ON | ON | B | RAB[CR] |
1 1 0 0 | ON | ON | OFF | OFF | C | RAC[CR] |
1 1 0 1 | ON | ON | OFF | ON | D | RAD[CR] |
1 1 1 0 | ON | ON | ON | OFF | E | RAE[CR] |
1 1 1 1 | ON | ON | ON | ON | F | RAF[CR] |
The following is the structure description of the Addressable Relay command - RAX[CR]:
where:
R denotes the command
X denotes the bit number in hexadecimal form.
* - Don't confuse letters A Address the second character in the command structure, with the hexadecimal bit number A which is the third character in the command structure RAA[CR] see table above.
The following are schematics for a Master-Slave connection with the use of an Addressable Relays Driver.
Example: turn ON all relay switches of ARE-4 with address 1 => R1F[CR]

Figure 9. A programmable DPS in control of an Addressable Relays Driver ARD-4 connected to controllers that direct the operation of loads L1, L2, L3, & L4. Load L0 is controlled directly by the Master DPS.

Figure 10. A programmable DPS in control of an Addressable Relays Driver ARD-4 connected to external (more powerful) relays and non-Magtorx controllers (power drives) in command (ON-OFF) of loads L1, L2, L3, & L4. Load L0 is controlled directly by the Master DPS.
Note: For more application diagrams see Application for Programmable DPS.
XFFFF[CR] ON-Slave Mode. This is a global command used to initiate (turn ON) communication with all DPS Slaves. Executing this command will allow the Master to control all DPS Slaves.
X*0000[CR] OFF-Slave Mode. This is a global command used to terminate (turn OFF) communication with all DPS Slaves.
ZABCD[CR] S-Program. Stores (saves) the program, in hexadecimal format into the DPS memory. For a detailed explanation see the following description.
$[CR] - Save. Saves the #A[CR] command assigned to the DPS into the memory during the programming process.
Back to Top
![[Home]](../images/button88.jpg)
![[Products]](../images/button8B.jpg)
![[Applications]](../images/button8E.jpg)
![[Order Info]](../images/button5E.jpg)
![[ F. A. Q. ]](../images/button70.jpg)
![[Software]](../images/button55.jpg)
![[Feedback]](../images/button91.jpg)
Copyright © 2004 [MAGTORX]. All rights reserved. Rev. 1.1