Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC On-line Command Specification 
 265 
This command causes the addressed Turbo PMAC on a serial daisy-chain to report its number to the host.  
The number is set by variable I0 on the board, and can range from 0 to 15.  If all cards are addressed, card 
@0 will return an character. 
I1 must be set to 2 or 3 for this command to be accepted.  Otherwise, ERR003 is reported. 
Example: 
@ 
; Ask Turbo PMAC chain which card is addressed 
4 
; Turbo PMAC @4 reports that it is addressed 
See Also: 
Addressing Commands (Talking to Turbo PMAC) 
Multiple-Card Applications (Synchronizing Turbo PMAC to External Events) 
I-variables I0, I1 
On-line commands ##{constant}&&{constant}@{constant} 
@{card}  
Function: 
Address a card on the serial daisychain. 
Scope:   
Global 
Syntax:  
@{card}  
where: 
 
{card} is a hexadecimal digit (0 to 9, A to F), representing the number of the card on the serial 
daisychain to be addressed; or the @ character, denoting that all cards are to be addressed 
simultaneously. 
This command makes the Turbo PMAC board specified by {card} the addressed board on the serial 
daisychain. (the one on which subsequent commands will act).  The number for each board is set by 
variable I0 on the board.  The addressing is modal, so all further commands will affect this board until a 
different board is addressed.  At power-up/reset, Board @0 is addressed. 
I1 must be set to 2 or 3 for this command to be accepted.  Otherwise, ERR003 is reported. 
To address all cards simultaneously, use the @@ command.  Query commands (those requiring a data 
response) will be rejected in this mode. 
It is best to send a <CR> carriage return character immediately after the @{card} command before any 
other command is sent, to give the card that had been addressed time to tri-state its serial port outputs so 
that it will not interfere with the response of the newly addressed card. 
This command should only be used when multiple Turbo PMAC cards are connected on a single serial 
cable.  In this case, I-variable I1 should be set to 2 or 3 on all boards. 
Example: 
I1=2@0 
; This sequence can be used the first time talking to  
 
   multiple cards on a chain to put them in the proper configuration. 
@0#1J+ 
; Jog motor 1 of Card 0. 
@5P20 
; Request the value of P20 on card @5 
@@R 
; All cards, addressed C.S. run active program 
See Also: 
Addressing Commands (Talking to Turbo PMAC) 
Multiple-Card Applications (Synchronizing Turbo PMAC to External Events) 
I-variables I0, I1 
On-line commands #&&{constant}