<< Click to Display Table of Contents > 

SAMLight Manual > Motion Control Settings > Other motion controller > Type 12 - IO Switcher

Type 12 - IO Switcher
Previous pageReturn to chapter overviewNext page

With this controller special drive types can be used that start a movement after they received one single digital signal. That means using this driver it is not possible to stop software-controlled at an exact position. The driver only initiates the movement and the drive itself moves to a (predefined) position or by a (predefined) distance. When the drive has reached that position it gives back a signal to the software. This controller supports up to five motors. To enable this type of controller, please configure the IO switcher type 12 like it was described above.

For configuring the IO switcher motor controller interface itself, a configuration file sc_motion_ioswitcher_settings.txt is required in the same location where the general motion settings file exists. The IO switcher configuration file can be used to specify different parameters like the I/Os for the different output and input signals and others. The file itself is a plain text file that contains different configuration parameters. Additionally there can be comments within the file that start with a # sign directly at the beginning of a line. These comments are ignored completely. Following parameters, that have to start exactly at the beginning of a line, are supported for configuring the interface:

axis=y : Specifies for which axis the following configuration parameters are valid. If this statement is not used somewhere in a configuration file it is assumed that the first axis is used. That statement assigns all following parameter to this axis until another axis parameter is found within the settings file. That means using the axis parameter it is possible to configure more than one axis. Here all parameters have to be repeated for every axis and every section needs to be started by such an axis statement. The axis number itself also specifies the position within the motion control panel of the scanner software the axis input fields will appear.

startOutput=y : This parameter specifies which output number has to be used to send the signal for starting the movement to the drive. The value given for y is a number that specifies the output port of the scanner card and the output pin that is connected with the input of the drive. If a value in the range 0..15 is entered here then a standard digital output of the scanner card is used. When the value is in the range 100..107 the pins 0..7 of the laser port are used for sending the step signal.

note

The last method can be used only if the laser port is NOT used for controlling the laser. Else the results can be undefined and may harm your equipment seriously.

doneInput=y : This parameter specifies which input number has to be used for the movement feedback. At this input a signal is expected that is sent from the drive to the controller to tell that the final position was reached. The value given for y is a zero-based number that specifies the input pin that switch is connected with.

doneInputValue=y : The preceding parameter an this one are related to each other: doneInputValue defines what signal at the input with number doneInput is expected to be interpreted as the information: the movement was completed. Here for y the values 1 and 0 are possible.

dname=c : This parameter specifies a name for the current axis that is used to display the name within the scanner software. That name has to consist of a single character.