5 INSTALLATION GUIDE
5.1 Installation Requirements
5.1.1 Hardware Requirements
In addition to the default LCU hardware (see [6]), the following boards are required for MCM:
or any other board not controlled by MCM, but compatible with the motion controller (in this case, the motion controller is mandatory).
5.1.2 Software Requirements
5.2 Building the Software
The MCM modules are part of the VLT Common Software, thus their generation is part of the standard installation procedure, as described in [6].
5.3 LCU Environment Configuration
The configuration of the already existing LCU environment (directory $VLTDATA/ENVIRONMENTS/$LOCALENV) is performed using the tool vccConfigLcu tool exclusively (see [8]).
In order to get the MCM modules loaded (see vccConfigLcu panel below):
5.3.1 Local Database
Before the LCU shall be rebooted, the appropriate database must be generated. Therefore, the file $VLTDATA/ENVIRONMENTS/$LOCALENV/dbl/DATABASE.db must be edited.
A branch config file (BCF) may be included, the file must have been installed under $XXXROOT/dbl or $XXXROOT/vw/dbl (where XXXROOT is VLTROOT or INTROOT):
The DB branch :Instr1:Motors:Motor1 will be created that contains the default values as for the class DVAMI. Using the Engineering Tool motei, one can modify/customize the configuration of the motor. When the motor has been fully configured and tested, the configuration file M1.dbcfg shall be generated and stored in the ./config path of the application module. This file shall then be installed in the $INS_ROOT/config path and shall be read from motServer at installation time by motInitDb(1) before invoking motInstall(1).
Important Note: When instanciating a motor, one should pay attention to the number of entries for the NamedPositions, NamedSpeeds, InitializationProcedure and UnitConversionMethods. At run-time, it is not possible to add any new entry but solely modify the existing ones. By default, when also no number of entries is specified, the numbers of entries are defaulted to motMAX_NAMED_POSITION=15, motMAX_NAMED_SPEED=15, motMAX_INIT_ACTION=12 and motMIN_CONV_METHOD=4 (see motDefines.h).
The MCM branch(es) may also be fully described as shown below; however, this method is not any more recommended since one would have to regenerate the database each time an attribute is modified.
Create a motor Motor1 as an instance of the class motDVAMI, but circular axis and unit conversions; its absolute path shall be :Instr1:Motors:Motor1 (Do not forget to assign a valid alias, here M1). This description may be put as content of the BCF motor.db as for the previous example.
All the attributes may be overloaded, sub-classes may be created, etc....
The attributes of type TABLE (SERVER:CONF.namedPositions, SERVER:CONF.namedSpeeds, SERVER:INIT.actions and SERVER:UNIT.unitConversion) are defaulted with 1 record.
Examples are available under the module directory mot/lcu/dbl.
The following command, using the db target , generates the LCU database:
When the database has been successfully generated, the last step of the LCU configuration may be performed from the panel vccConfigLcu:
Set the connection time to about 180 seconds, and check that the procedure completes successfully.
5.3.2 Verification
Functions performed during the installation phase always log 2 (for SUCCESS) or 1 (for FAILURE) on the console.
The tools, described in section 3.3, can be used to test that the motor library has been installed correctly. From the VxWorks Shell, issue the following commands, which display the module version on the console:
The version of each module may also be retrieved:
In order to verify the installation of the ACI, invoke the CCS Engineering Interface ccseiMsg, select the correct environment and the process motServer and enter the command VERSION. The reply should contain the two following lines:
The version may also be retrieved directly from the Unix shell (from known RTAP environment):
After installation of motors, one can check the motors which have been installed:
Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |