12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Only one copy of the rdelay and wdelay parameters is kept for all the Phytron controllers.The motor mnemonic motor can be associated with any of the Phytron controllers.The values for the parameters are saved in the state file, so should onlyneed to be reset after starting fresh. (See <strong>page</strong> 51 in the Reference Manual.)Command pass through is available using the following functions.motor_par(motor, "send", cmd) — Sends the string cmd to the Phytron channel associatedwith motor .motor_par(motor, "read", cmd) — Sends the string cmd to the Phytron channel associatedwith motor ,asabove, and returns a string containing the response.motor_par(motor, "usend", cmd) — Sends the string cmd to the Phytron controllerassociated with motor .motor_par(motor, "uread", cmd) — Sends the string cmd to the Phytron controllerassociated with motor ,asabove, and returns a string containing the response.For example,31.FOURC> print motor_par(tth, "read", "P20R")24000032.FOURC>results in the string "\002XP20R\003\r\n" being sent to the controller. Commandpass through should be used with caution to avoid interfering with the built-in programmingcommands <strong>spec</strong> sends to the Phytron controllers.The following command is also available to help with debugging:motor_par(motor, "dump") — Displays the values of Phytron parameters P01through P10 and P12 through P17 for the channel associated with motor .PC DAC as Motor Controllerconfig file:PC_DAC_B12 = base_address number_of_motorsPC_DAC_T12 = base_address number_of_motorsPC_DAC_B16 = base_address number_of_motorsPC_DAC_T16 = base_address number_of_motorsedconf devices screen:MOTORS DEVICE ADDR MODE NUM TYPEYES 0x300 1 PC DAC 12-Bit D/A (binary output)YES 0x310 1 PC DAC 12-Bit D/A (two’s complement)YES 0x320 1 PC DAC 16-Bit D/A (binary output)YES 0x330 1 PC DAC 16-Bit D/A (two’s complement)246 HARDWARE REFERENCE INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!