|
||
|
Hardware reference : Motors : Phytron IXE-a-C | ||||||||||||||
|
|
|||||||||||||||
Phytron IXE-a-CInterface:
config file RS_IXE = device_name baud_rate number_of_motors GP_IXE = gpib_address number_of_motors edconf: DEVICES screen
MOTORS DEVICE ADDR <>MODE NUM <>TYPE
YES /dev/tty00 9600 2 Phytron IXE (Serial)
YES 6 4 Phytron IXE (GPIB)
Finding Reference Positions: The Phytron's axis initialization command "0" , which
searches for the negative limit switch as described in the
Phytron manual, is sent to a specific motor when
the chg_dial() function is invoked with either
the "home+" or "home-" arguments.
The free-axis-displacement commands
"L+" and "L-" are sent with
the "lim+" and "lim-" arguments,
respectively.There is no fixed hardware signal for a home switch on the Phytron controller, but there are twelve digital inputs available on the input connector. There is also a command which will perform a relative move at the base rate until one of the inputs goes high or low or the magnitude of the move is reached. There are four parameters in this command: the direction of the move, the magnitude of the move, the binary input number and the sense of the input switch. All four parameters are set by entering a string as generic parameter 1 on the optional motor parameter screen of the configuration editor. (Get there by typing m twice from the standard motor parameter screen.) The string you enter will be sent to the motor when the "home" argument is used with the
"chg_dial()" function. The string is the actual command
sent to the Phytron, and is of the form
SmagvEnnD
where S is a + or a - for the
sign of the move, mag is the magnitude of the move
(maximum of 65535 steps), nn is the input number
(01 through 12) and D is the sense of the input where
0 means the motor stops if the input goes off and 1 means the motor
stops if the input goes on. For example,
+200vE071
would command the motor to move no more than 200 steps in the plus
direction, or until input 7 goes ON.Use the m command twice from the motor screen of the
configuration editor to reach the screen where you can enter generic
parameter 1. Type an initial single quote ' to enter a string.Special Commands On faster computers, the Phytron apparently cannot keep up with commands sent by the computer at full speed. You can slow down the communication between spec and the Phytron controllers with the following commands: Function Reference:
Command pass through is available using the following functions.
0.FOURC> print motor_par(tth, "read", "P20R")
240000
results in the string "\002XP20R\003\r\n" being sent to
the controller. Command pass through should be used with caution to
avoid interfering with the built-in programming commands spec sends
to the Phytron controllers.The following command is also available to help with debugging:
|
|||||||||||||||
|
|
|||||||||||||||