Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/ao19/rx001_cal_ctrl_cmd.pdf
Дата изменения: Fri Jul 19 21:42:37 2013
Дата индексирования: Fri Feb 28 19:42:36 2014
Кодировка:

Поисковые слова: р р с
AO19 Cal Controller - Commands

Document No. RCV001, Rev. 001

AO19 Cal Controller - Commands Luis Quintero, Arecib o Observatory 1 Intro duction

Example: >> << >> << >> << CAL? calm0000000 CALS01 calok CAL? calm1000000

All the commands must start with the same initials (CAL - case sensitive) and followed by the command letter, and options, if required. The examples below show commands from the computer to the device >>, and the device response <<. All commands and responses terminate You can use the M command if you want to configure multiple outputs at the same time: with Carriage Return (CR - \r - 0x0d). 2 Commands Command: CALMABCDEFG, (similar to ?)

The status request ? command returns the state of the Response: calok seven digital outputs . If the device is power cycled, these values correspond to the default values stored in Example: the EEPROM memory. Command syntax: >> CAL? << calm0000000 Command: CAL? >> CALM0101010 << calok Response: calmABCDEFG, where >> CAL? m: multiple attenuators response << calm0101010 A: digital output 0 status, 0/Low or 1/High The W command is used if you want to store your actual B: digital output 1 status configuration as default (EEPROM): ... G: digital output 6 status Command: CALW Example: >> << CAL? calm0000000 Response: calok Example: >> << >> << >> << >> << CALR calr1010101 CALM0000000 calok CALW calok CALR calr0000000

You can use the R command to print out default configuration (EEPROM) of the device: Command: CALR Response: calrABCDEFG (similar to ?) Example: >> << CALR calr1010101

Use the D command to configure the default (EEPROM). The default option is also configured when you power up the system. Command: CALD

The S command is used to configure outputs separately: Command: CALSXY, where X: Digital output pin / ID, 0 X 6 Y: Digital output status, 0 or 1. Response: calok


Response: calok Example: >> << >> << >> << >> << CAL? calm0000000 CALR calr1111111 CALD calok CAL? calm1111111
Release: June 26, 2013

0 - brown; 1 - white; 2 - red; 3 - yellow; 4 - blue; 5 - orange; 6 - green this is an standard resp onse for most of the commands if there are not errors



Luis Quintero, Arecibo Observatory

Page 1 of 2


AO19 Cal Controller - Commands

Document No. RCV001, Rev. 001

3

Error co des

The device is expecting digits after the command character (e.g. S command). If there is an error, the device will return an error code 1. For example: >> << CALSaa calERR1

If the device digital output pin is is out of range (between 0 and 6 only), the device will return an error code 2. For example: >> << CALS70 calERR2

If pin status is out of range (0 and 1 only), the device will return an error code 3. For example: >> << CALS02 calERR3

If the command does not exits, the device will return an error code 4: >> << CALX calERR4

You have to provide at least four characters for a command (starting with CAL and command, e.g. ?). If you send only CAL, error code 5 will be returned, >> << CAL calERR5

The S command accepts six characters exactly, if the command is incomplete, the device returns error code 6. >> << CALS0 calERR6

The M command accepts eleven characters exactly, if the command is incomplete, the device returns error code 7. >> << >> << 4 CALM000 calERR7 CALM00000000 calERR7

Examples · All outputs to low: CALM0000000 · All outputs to high: CALM1111111 · Pin 0 to high, and Pin 6 to low: CALS01 followed by CALS60

Luis Quintero, Arecibo Observatory

Page 2 of 2

Release: June 26, 2013