background image

 
 
 
 
 
 
 
 
 
 
 
 
 
 

8SMC1-USBhF 

1.5A Microstep Driver with USB Interface

 

 
 
 
 
 

User Manual 

 
 
 
 
 
 
 

 

 
 

 

 

 

 

 

 

 
 

 

Note: Information in this manual is believed to be accurate and reliable. However no responsibility is assumed 

for the consequences of its use or for any infringement of patents or other right of third parties which may 

result from it use. Specifications are subject to change without notice. 

 
Note: Windows are registered trademark of Microsoft Corporation, LabVieW and NI VISA is registered 

trademark of National Instruments Inc. All other products and corporate names appearing in this manual may 

or may not be registered or copyrights of their respective companies, and are used only for identification or 

explanation and to the owner’s benefit, without intent to infringe.   

 

1/14/2008 

www.standa.lt

 

Page 1 of 83 

Summary of Contents for 8SMC1-USBhF

Page 1: ...result from it use Specifications are subject to change without notice Note Windows are registered trademark of Microsoft Corporation LabVieW and NI VISA is registered trademark of National Instruments Inc All other products and corporate names appearing in this manual may or may not be registered or copyrights of their respective companies and are used only for identification or explanation and t...

Page 2: ...2 2 9 Synchronization In 18 2 2 10 Manual control knobs 19 2 2 11 Local indication LEDs 19 2 2 12 USB In Out 20 3 Specifications 21 3 1 Electrical 21 3 2 Motion 21 3 3 Remote control 21 3 4 Mechanical 22 3 5 Wiring diagram 23 3 5 1 Wiring diagram for multi purpose 40 pin connector 23 3 5 2 Wiring diagram for Stepper motor connector 24 3 6 EMC 24 4 Installation 25 4 1 Software installation 25 4 1 1...

Page 3: ...on Curve 54 5 4 9 Reset and Standoff 54 5 4 10 Limit switches 55 5 4 11 Revolution sensor 55 5 4 12 Encoder 56 5 4 13 Synchronization 57 5 4 14 Calibration 58 5 4 15 Backlash compensation 59 5 4 16 Acceleration 60 5 4 17 Safety 60 6 VI s library 62 6 1 General information 62 6 1 1 Find Devices uSMC 63 6 1 2 Initialize All Structures 63 6 1 3 Set Current Position uSMC 63 6 1 4 Set Mode uSMC 63 6 1 ...

Page 4: ... 10 USMC_GetStartParameters 75 7 5 11 USMC_Start 76 7 5 12 USMC_Stop 76 7 5 13 USMC_SetCurrentPosition 77 7 5 14 USMC_GetEncoderState 78 7 5 15 USMC_GetLastErr 78 7 5 16 USMC_Close 79 7 6 Structures 79 7 6 1 USMC_Devices 79 7 6 2 USMC_Parameters 79 7 6 3 USMC_StartParameters 80 7 6 4 USMC_Mode 80 7 6 5 USMC_State 81 7 6 6 USMC_EncoderState 81 7 7 Examples 81 7 7 1 C example 81 8 Dynamic link libra...

Page 5: ...switches and emergency stop switch Figure 1 8SMC1 USBhF Quadrature encoder or revolution sensor support Remote control via USB 1 1 interface up to 12 Mbps Embedded 3 port USB Hub two USB ports are free for other USB device connections Graphical user interface for Windows 2000 XP Vista Drivers and dynamic link library for Windows 2000 XP Vista Mobile host programming Set of virtual instruments for ...

Page 6: ... tree like structure without any additional USB hubs The built in powerful MCU on the 8SMC1 USBhF allows the user via USB interface to control parameters such as position acceleration deceleration ramps velocity direction resolution drive current etc to form simple or complex motions Most of all commands are executed on the fly All parameters can be saved on PC or in MCU flash memory The 8SMC1 USB...

Page 7: ...W depending on input voltage and rated current of stepper motor Appropriate heatsink must be used to maintain temperature range Heating the Power driver over 85 o C is forbidden USB hub This chip provides one upstream port and three downstream ports in compliance with the USB version 1 1 specification Ports support both full speed and low speed devices by automatically setting the flow rate accord...

Page 8: ... connector dimensions and pinout Current sense resistors Pair of current sense resistors is necessary to keep correct rated current on windings of stepper motor Resistors are screw mounted and easy to change Sufficient set of resistors is supplied with 8SMC1 USBhF Warning Current sense resistors must be chosen for every stepper motor according to its rated current and connection diagram For more d...

Page 9: ...gged because it can entail some mistakes in USB root hub operation Connector P1 Multi purpose 40 pin connector All other connectors USB In USB Out Stepper motor connector and Power In are duplicated here This connector is designed for embedded applications Only one standard ribbon cable required for all connections by P1 Connector P1 Pin assignment is shown on Figure 9 Dimensions are shown on Figu...

Page 10: ... Powered by 7 12V DC 2 2 1 3 2 2 1 4 Table 1 8SMC1 USBhF power supply modes Warning 8SMC1 USBhF power supply must never exceed 40V Power driver can be damaged if such exceeding happened Note Exact current consumption from external 7 40V DC power supply for stepper motor supplying purposes depends on stepper motor rated current and voltage It is recommended that rated current and voltage loading of...

Page 11: ...1 is shown on Figure 14 Figure 14 Power supply connection to P2 connector in 5V DC powered logic mode Note In this mode 8SMC1 USBhF requires 80 mA from external stabilized 5V DC power supply Make sure that external stabilized 5V DC power supply can provide this current 2 2 1 3 Single 7 12V DC power supply mode In this case logic of 8SMC1 USBhF board and stepper motor is powered by single 7 12V DC ...

Page 12: ...board is powered by external 7 12V DC power supply stepper motor is powered by external 7 40V stabilized DC power supply Correct position of board logic power supply jumper JP2 is shown on Figure 8 Connection diagram for multi purpose 40 pin connector P1 is shown on Figure 17 Figure 17 Power supply connection to P2 connector in double power supply mode 2 2 2 Stepper motor connection There are two ...

Page 13: ...s have an internal weak pull up to 3 3V Open circuit correspond to high level on input closed to ground circuit correspond to low level on input Controller inputs are marked on Figure 20 Figure 21 Figure 22 Figure 23 and Figure 24 as XX Note Be careful with optocouples Makes sure that voltage drop on phototransistor exceed 2 5V in off state and do not exceed 0 5V in on state It is important for co...

Page 14: ...per motor connector 2 2 4 Limit switches Two limit switches can be used Limit switch 1 and Limit switch 2 These contacts are used for determination of limits in translational stages for determination a null position in rotational stages etc It can be programmed as normally opened or closed contact It can be enabled or disabled by software see 5 4 10 Also it is possible to swap limit switches by th...

Page 15: ...40 pin connector P1 Figure 26 Connection Emergency Stop switch to Stepper motor connector 2 2 6 Revolution sensor Revolution sensor is intended for stepper motor stall detection 8SMC1 USBhF can receive data about the real position of stepper motor shaft from Revolution sensor Latter is an external sensor see 2 2 3 that joins directly to stepper motor shaft and change electrical state several times...

Page 16: ... encoder is intended for direct measurement of stepper motor shaft position It translates shaft angle into two shifted electrical signal on CH A and CH B outputs see Figure 27 Mechanical action of optical quadrature encoder is illustrated on Figure 28 Two optocouples are used Emitter and detector are set near the disk by different sides When slit is positioned on emitter and detector then optocoup...

Page 17: ...e quadrature encoder Note Usually encoder module outputs are open collector with internal pull up resistors When driving a cable they will provide good high to low transition times But low to high times will stretch out in proportion to the cable length and capacitance If a cable driver is not used you can add a pull up resistor R 1 5K Ohm see Figure 29 Figure 30 to 5 Volts on each output to impro...

Page 18: ...pulse triggering mode In this case controller waits synchronization pulse then executes predefined movement 8SMC1 USBhF can shift stepper motor by predefined number of steps only after first synchronization pulse or on every synchronization pulse It is usually used for starting predefined movement after each measurement by synchronization pulse from measuring instrument Wide range of devices may u...

Page 19: ...nobs are pushed and held during Reset timeout see 5 4 8 then 8SMC1 USBhF resets and shifts to null position in ticks All speeds and timeouts are programmable Knobs are connected to 8SMC1 USBhF according to 2 2 3 Controller inputs for each knob are shown on Table 4 Pin number on External sensor Stepper motor connector Multi purpose 40 pin connector P1 Knob Up 15 Knob Down 16 Table 4 Connection of k...

Page 20: ... hub allows cascading of the 8SMC1 USBhF boards USB Out two USB type A connectors allow the connection of other USB devices or lower USB hubs to this 8SMC1 USBhF board Caution Use only operable USB cables Defective USB cable may be a cause of 8SMC1 USBhF malfunction USB pins on multi purpose 40 pin connector may be useful for embedded multi axis applications No bulky USB connectors are necessary O...

Page 21: ...ply protection Yes Temperature protection Yes adjustable Programmable inputs Limit switches 2 Emergency limit switch 1 nonprogrammable Revolution sensor 1 Local control knobs 2 Synchronization 1 Programmable outputs Local indication LEDs 3 Synchronization 1 3 2 Motion Resolution full step half step 1 4 1 8 Speed programmable 2 5000 step s Position counter 2 147 483 647 2 147 483 647 Accel and dece...

Page 22: ...BhF are shown below Operating temperature range 0 70 C Heatsink see Figure 37 may be required to maintain temperature range Figure 36 Dimensions of 8SMC1 USBhF board Figure 37 Heatsink for 8SMC1 USBhF 1 14 2008 www standa lt Page 22 of 83 ...

Page 23: ...for multi purpose 40 pin connector P1 On Figure 38 three different power supplies are shown Only two or one power supply is needed of course Choose a convenient way of power supply connection according to 2 2 1 For more details see Functional description Chapter 2 1 14 2008 www standa lt Page 23 of 83 ...

Page 24: ... Chapter 2 Figure 39 Wiring diagram for Stepper motor connector 3 6 EMC 8SMC1 USBhF 1 5A Microstep Driver with USB Interface conforms to electromagnetic immunity requirements listed in LST EN 61000 6 2 2002 for industrial environments in accordance with standards LST EN 61000 4 2 A1 A2 2002 LST EN 61000 4 4 2002 LST EN 61000 4 4 A1 2002 LST EN 61000 4 4 A2 2002 1 14 2008 www standa lt Page 24 of 8...

Page 25: ...M driver see paragraph 4 1 3 4 1 Software installation Next installation process will be shown for Windows Vista operating system Software installation processes under Windows XP 2000 is just the same Make sure that all 8SMC USBh devices are unplugged and switched off Turn on computer Insert the CD ROM labeled 8SMC USBh in your CD ROM drive or unzip 8SMC1 USB h Soft zip software package and open m...

Page 26: ...lease wait while the installer initializes see Figure 41 Figure 42 SMCVieW 3rd installation screen o Select destination folders and press the Next button see Figure 42 Figure 43 SMCVieW 4th installation screen 1 14 2008 www standa lt Page 26 of 83 ...

Page 27: ... MicroSMC driver if suppose to program 8SMC1 USBhF controller in C C Basic Delphi MatLab or other languages excluding LabVieW For LabVieW based applications for example SMCVieW only NI VISA driver is necessary Note Next installation process will be shown for Windows XP operating system Software installation processes under Windows Vista 2000 is just the same The only difference on Windows Vista is...

Page 28: ...ton o On the next screen see Figure 47 choose installation folder and press Next button o Installer is ready to install MicroSMC on your computer see Figure 48 Press Next button Figure 46 MicroSMC 1st installation screen Figure 47 MicroSMC 2nd installation screen Figure 48 MicroSMC 3rd installation screen 1 14 2008 www standa lt Page 28 of 83 ...

Page 29: ...ctions on using the MicroSMC driver and dll see Figure 50 Figure 49 MicroSMC 4th installation screen Figure 50 MicroSMC 5th installation screen Figure 51 MicroSMC last installation screen o Press Close to complete the installation see Figure 51 1 14 2008 www standa lt Page 29 of 83 ...

Page 30: ... Microsoft ActiveSync from www mocrosoft com Then plug your pocket PC to host computer and wait when connection will be established MicroSMC for WM host PC installation Note Next installation process will be shown for Windows XP operating system Software installation processes under Windows Vista 2000 is just the same The only difference on Windows Vista is presence screen like Figure 40 at the be...

Page 31: ...d screen o Read carefully this screen see Figure 53 and press the Next button Figure 54 MicroSMC for WM host PC installation 3rd screen o Select destination folder and press the Next button see Figure 54 Figure 55 MicroSMC for WM host PC installation 4th screen 1 14 2008 www standa lt Page 31 of 83 ...

Page 32: ... be done see Figure 56 MicroSMC for WM Mobile Device installation Note Make sure that ActiveSync is running and connection with mobile device is established o After the previous step see Figure 56 ActiveSync Application Manager window will appear see Figure 57 If nothing happens navigate on host PC to MicroSMC for WM installation folder usually C Program Files MicroSMC for WM and run CEAppMgrSetup...

Page 33: ...bile device screen There should appear notification that installation was completed Click OK to finish process Note For removing MicroSMC for WM from host PC navigate Start Settings Control Panel Add or Remove Programs find MicroSMC for WM and click Remove For removing MicroSMC for WM from mobile device navigate on mobile device Start Settings System Remove programs pick MicroSMC for WM and click ...

Page 34: ...r motor windings If winding is under voltage power driver keep the current that lead to voltage drop of 0 8V on current sense resistor Therefore rated resistance and power dissipation are calculated by the following way I R 8 0 R I P 2 where I rated current of stepper motor A R calculated resistance of current sense resistors Ohm P calculated power dissipation of current sense resistors W In follo...

Page 35: ...the power of stepping motor controller on o Check that the Status LED is blinking see 2 2 11 for more information It means that controller is powered self tested and ready to work but USB cable is not plugged or USB driver is not installed correctly Figure 60 Hardware wizard 1st screen o Push and hold Up or Down knob and make sure that stepping motor moves Omit this step if you do not intend to us...

Page 36: ...gure 62 Hardware wizard 3rd screen o Wait until installation will be done see Figure 62 and press Finish button see Figure 64 Figure 63 Hardware wizard 4th screen o If other 8SMC1 USBhF controllers were installed on computer earlier screen Figure 63 may appear Choose 8SMC1 USB inf and press Next button 1 14 2008 www standa lt Page 36 of 83 ...

Page 37: ...re automatically Note If after some actions connection with 8SMC1 USBhF is lost disconnect the USB cable of 8SMC1 USBhF and connect it again to the same USB port 4 4 First start on Windows Vista o Turn the power of stepping motor controller on 2 2 11 o Check that the Status LED is blinking see for more information It means that controller is powered self tested and ready to work but USB cable is n...

Page 38: ... properly and ready to use o Make sure that the emergency stop jumper is set in OFF position see 2 1 and 2 2 5 Note If you disconnect the USB cable of 8SMC1 USBhF and connect it again to another USB port then installation of 8SMC1 USBh driver may be required once more In this case choose Locate and install driver software Note If after some actions connection with 8SMC1 USBhF is lost disconnect th...

Page 39: ... 8SMC1 USBh device it should be connected and switched on and remove it press Delete button see Figure 68 8SMC1 USBh device will be disappeared from Device Manager list Figure 68 Uninstallation of NI VISA driver o Then disconnect USB cable of your 8SMC1 USBhF controller and connect it again When Hardware Wizard found new hardware and will offer you to install a new driver choose Install the softwa...

Page 40: ...driver It is possible to install on PC several drivers for one class of USB devices NI VISA driver and MicroSMC driver for example but every particular 8SMC1 USBhF board can work only with one USB driver at a time Therefore if 8SMC1 USBhF board is connected to PC using for example MicroSMC driver then it will not be accessible for applications that use NI VISA driver and vice versa For switching f...

Page 41: ... this message again for this device option see Figure 72 Figure 72 Skip automatic driver installation choosing Don t show this message again for this device option o Open Device Manager window choose yellow marked 8SMC1 USB device in Other devices group or yellow marked Unknown device it depends on Windows Vista settings make a right click and choose Update Driver Software see Figure 73 1 14 2008 ...

Page 42: ...choose Browse my computer for driver software see Figure 74 Figure 74 Browse my computer for driver software o Choose the folder with MicroSMC driver C Program Files MicroSMC Driver usually and press Next see Figure 75 1 14 2008 www standa lt Page 42 of 83 ...

Page 43: ...plications can work only with NI VISA driver For switching from MicroSMC to NI VISA driver please does exactly the same as it is shown above Moreover mark Delete the driver software for this device checkbox when you delete MicroSMC driver see Figure 71 Choose the folder with VISA driver C Program Files SMCVieW Drivers usually on Figure 75 Note that in Device Manager list MicroSMC driver is placed ...

Page 44: ...re automatically Recommended mode see Figure 61 may works improper if more than 6 8SMC1 USBhF devices are connected In case of that improper work Hardware wizard has been looking for USB driver several minutes and find nothing USB driver will not be installed and 8SMC1 USBhF controller will mark with in Device Manager device list If it is happened make a right click on this 8SMC1 USBh controller a...

Page 45: ...see Figure 79 Then choose appropriate driver from list see Figure 69 Figure 79 Manual USB driver installation Use this way always when you are installing a lot of 8SMC1 USBh devices choose at screen like Figure 61 Install from a list or specific location Advanced and Don t search I will choose the driver to install then 1 14 2008 www standa lt Page 45 of 83 ...

Page 46: ...ral view When we start SMCVieW screen like Figure 80 will appear Figure 80 SMCVieW main screen No 8SMC1 USBhF drives found Press REFRESH button All available 8SMC1 USBhF devices will be found Screen with one device is shown on Figure 81 Screen with four devices is shown on Figure 82 Interface can represent up to three devices simultaneously If more than three 8SMC1 USBhF devices are used at the sa...

Page 47: ...on of axis to PC It is orange if controller is attached and gray otherwise Figure 83 5 2 3 Current and Destination positions Indicator Steps represents current units of measurement see 84 It can be changed by Setup Control Destination is used to set desired stop position in mentioned units Indicator Current shows the current position of positioner in mentioned units Button Start starts motion Butt...

Page 48: ...l power Power toggle switch is used for switching stepping motor power On Off Note that it may be turned off internally by controller in over temperature or emergency stop cases Indicator error is lighting up when Revolution sensor or Quadrature encoder detects error see 2 2 6 Error will be reset when Start button is pushed see 5 2 3 or by Reset error status button see 5 4 11 Indicator Ext off is ...

Page 49: ...imit switch The direction of rotation and hence limit switch is chosen at Setup Standoff Reset Reset towards see 5 4 9 memorize the difference between reference point and Limit switch return to the reference point position The value memorized can be altered at Setup Standoff Reset Standoff Last thing you should do before performing reset operation is setting of your working range You can do this a...

Page 50: ...n 8SMC1 USBhF flash memory Default restore default installation specific settings Undo restore previous installation specific settings Apply apply current changes OK apply current changes and exit from Setup Exit exit from Setup without applying current changes Figure 90 Buttons 5 4 2 Positioner This window is used for load a set of installation specific settings for the selected positioner Choose...

Page 51: ...r Picture This window shows the view of selected positioner 5 4 4 Positioner Wiring This window shows the selected wiring diagram Use this field for information purposes only Make sure that real wiring diagram is equal to this see 3 5 for more information 1 14 2008 www standa lt Page 51 of 83 ...

Page 52: ...irmware Update Device Program Updating the firmware of 8SMC USBh controller Note Download the latest version of SMCVieW application before firmware updating because the latest revision of firmware can contain some new features that is not supported by older version of SMCVieW application 5 4 6 Power management Current reduction in hold mode Check box that allow to use 40 current reduction and 60 h...

Page 53: ... power off It makes possible not to miss the information about precise position that is important for microstep modes Just power off power off in current position without any displacement Figure 95 Power management setup screen 5 4 7 Manual control Figure 96 Manual control setup screen Buttons disabled This check box disables or enables buttons for local control Reset timeout ms Pressing of two bu...

Page 54: ...oming mode 2 625 full steps s Tbto1 Delay from pressure of button to start of continuous motion in manual control mode 1 9961 ms Tbto2 Delay from start of continuous motion to first speed up in manual control mode 1 9961 ms Tbto3 Delay from first to second speed up in manual control mode 1 9961 ms Tbto4 Delay from second to third speed up in manual control mode 1 9961 ms 5 4 9 Reset and Standoff T...

Page 55: ...s Position slider see 5 2 6 after Reset procedure Maximal Value Maximal value that shows Position slider see 5 2 6 after Reset procedure 5 4 10 Limit switches See Figure 99 It is possible to disable limit switches and choose pushed position Also it is possible to swap limit switches Figure 99 Limit switches setup screen 5 4 11 Revolution sensor Revolution sensor is intended for sense stepper motor...

Page 56: ...ons independently 5 4 12 Encoder SMCVieW uses quadrature encoder for more details see 2 2 7 for two reasons representation of the real position of stepper motor shaft see paragraph 5 3 and slippage detection Encoder setup screen is shown on Figure 101 For slippage detection controller compare positions calculated by encoder and by the number of pulses sent from controller to stepper motor shown on...

Page 57: ...ect work of slippage detection Set to Encoder Position button changes Current position calculated by the number of pulses sent from controller to stepper motor to the nearest value to the position calculated by encoder This button is usually used for elimination of Error flag reason before Reset Encoder Error button Reset to 0 button changes Current positions calculated by the number of pulses sen...

Page 58: ...vated to start waiting input synchronization pulse Mode synchronization input mode One time When synchronization pulse is received stepping motor shifts to destination position that is indicated in the main window of the interface Every pulse With every synchronization pulse received stepping motor shifts by difference between given current and destination positions 5 4 14 Calibration Units name s...

Page 59: ...on from the Limit switch 2 side To Limit switch 2 reach the destination position from the Limit switch 1 side Number of tics for backlash compensation number of tics for backlash compensation possible value 64 65472 tics Note this value must be divisible by 64 One full step is equal to 64 tics Loft last stage speed speed of backlash compensation possible value 1 625 full steps s Carry out backlash...

Page 60: ...s Ta acceleration time 98 1470 ms Td deceleration time 98 1470 ms Enable soft Start Stop enable soft Start Stop mode Note that soft Start Stop is possible only in full step mode in microstep modes this flag will be ignored Maximum speed units sec high speed limit in units s Please check this value after recalibration 5 4 17 Safety On this tab you can set the Thermal power off threshold Upon reachi...

Page 61: ...Figure 106 Thermal power off setup screen 1 14 2008 www standa lt Page 61 of 83 ...

Page 62: ... uSMC vi on CD to see all of them Figure 107 Figure 107 All VIs supplied with controller Note All LabVIEW based software require NI VISA driver see paragraph Error Reference source not found Make sure that you use NI VISA driver for 8SMC1 USBh Change driver if it necessary see paragraph 4 5 Note Makes sure that you use 8SMC1 USBh controllers with firmware usmc2503 usm or higher In other case updat...

Page 63: ... format 6 1 3 Set Current Position uSMC Sets position stored in the Set Cur Pos Units of the specified Position structure see section 6 2 2 as the current position Index Number of the controller 6 1 4 Set Mode uSMC Sets the mode of the specified controller Mode is taken from the global variables 6 1 5 Set Parameters uSMC Sets parameters for the specified controller Parameters are taken from the gl...

Page 64: ...the Speed control as well as to limit current speed according to current selection of step Step reference to the Step control 0 1 8 step 1 Step Mode 2 Step Mode 3 Full Step Speed reference to the Speed control Note Type of this controller should be Slider 6 2 Structures 6 2 1 Mode Title Default Description Turn Buttons Off FALSE If TRUE buttons are disabled Reduce Current TRUE If TRUE current will...

Page 65: ...E Reset output synchronization counter Sync In operation FALSE If TRUE step motor will move one time after receiving of the synchronization signal to the destination position specified by Start command see 5 2 9 if FALSE step motor will move multiple times by difference between current position and the destination position Sync count 50 u32 Number of steps after which synchronization output signal...

Page 66: ...set Speed 64 u16 Speed Full Steps sec while performing reset operation This parameter is used when controlling step motor with buttons Buttons Speed 1 3 u16 Speed Full Steps sec after Buttons Timeout 1 time has passed This parameter is used when controlling step motor with buttons Buttons Speed 2 13 u16 Speed Full Steps sec after Buttons Timeout 2 time has passed This parameter is used when contro...

Page 67: ...us RT Error Indicates rotary transducer error flag true error false no error RT State Indicates rotary transducer current logical state Sync In Indicates the state of the input synchronization pin on the board Sync Out Indicates the state of the output synchronization pin on the board Ext Disconnect Indicates emergency disable button logical state true external power off USB powered Reserved Volta...

Page 68: ...units of the real world Point 2 Units 64 dbl 1st gauge point in units of the real world Limit switch 1 Standoff 0 dbl position from the limit switch to the zero position used at the SMCVieW Reset operation see section 5 2 7 on page 49 Zero Value 0 dbl Position of the controller after the completion of the SMCVieW Reset operation see section 5 2 7 on page 49 Destination position 0 dbl Destination p...

Page 69: ...rld Lo Limit Units 33554428 dbl Lowest possible position of the controller in the units of the real world Hi Limit Units 33554427 dbl Highest possible position of the controller in the units of the real world Cur Pos Ticks 0 i32 Current position of the controller in tics Set Cur Pos Ticks 0 i32 Position that will be used by Set Current Position uSMC vi in tics Lo Limit Ticks 2147483648 i32 Lowest ...

Page 70: ...l is placed in windows system32 directory so you can now run you program which uses it from any location First program performing Init function will initiate launch of MicroSMC exe process that will become that will become available for any other programs Last information sent to each controller is saved in the corresponding shared file describing parameters of each device Any GetXXX function will...

Page 71: ...ss using USMC_Close function 7 5 Functions 7 5 1 General information All functions except USMC_GetLastErr return error code which is equal to zero value if no error occurred and is nonzero value otherwise USMC_GetLastErr function is used to retrieve string describing last error Most functions receive some of their arguments in form of reference type variables These functions can perform correction...

Page 72: ... numbers The value between zero and NOD member of USMC_Devices structure minus 1 is a handle to the particular device When the function is executed firs time from particular process it initializes dll data Only if the MicroSMC exe process is not running or no devices were connected earlier it performs the refresh of connected devices Any consequent launch of USMC_Init will perform the refresh This...

Page 73: ... and nonzero value otherwise Remarks The USMC_SaveParametersToFlash function saves all elements of USMC_Parameters structure and some elements of USMC_Mode structure previously sent to controller using corresponding functions If no values were sent nothing happens 7 5 6 USMC_GetMode The USMC_GetMode function returns USMC_Mode structure that was sent to device or default structure DWORD USMC_GetMod...

Page 74: ...rs describe electro mechanical construction and are changed rarely but some of them describe current controller operation In order to maintain changes made by this function after controller restart you should call the USMC_SaveParametersToFlash function after parameters are sent Example If you want to turn power of the device off you can check ResetD bit of USMC_Mode structure and call USMC_SetMod...

Page 75: ...e IN Device number USMC_Parameters Str IN OUT Structure containing some of parameters see 7 6 2 on page 79 that can be sent to controller Return value The USMC_SetParameters function returns error code Zero value for normal execution and nonzero value otherwise Remarks The USMC_SetParameters function is used to set rarely changed parameters see 7 6 2 on page 79 into controller Values sent to contr...

Page 76: ...otation in units steps steps steps 1 8 steps per second USMC_StartParameters Str OUT Structure containing start parameters Return value The USMC_Start function returns error code Zero value for normal execution and nonzero value otherwise Remarks The USMC_StartParameters structure describes parameters of step motor rotation If WSyncIN bit of USMC_StartParameters structure is TRUE then rotation is ...

Page 77: ...t significant bits are ignored Return value The USMC_SetCurrentPosition function returns error code Zero value for normal execution and nonzero value otherwise Remarks The USMC_SetCurrentPosition function is used to maintain current position value of step motor after controller reset logical power supply off don t confuse with powering off the step motor by command from interface or by the USMC_Se...

Page 78: ...f any The values are presented as integers in a half of encoder step precision To make them comparable with USMC_State CurPos value one should divide them by USMC_Parameters EncMult parameter RotTrErr parameter of USMC_State structure is set when encoder is enabled if the difference between USMC_GetEncoderState parameters exceeds the USMC_Parameters RTMinError parameter In such cases SM will behav...

Page 79: ...ms after which current will be reduced to 60 of normal Time in ms after which speed of step motor rotation will be equal to the one specified at BTO1P field in this structure float BTimeout1 Time in ms after which speed of step motor rotation will be equal to the one specified at BTO2P field in this structure float BTimeout2 Time in ms after which speed of step motor rotation will be equal to the ...

Page 80: ...nization counter will be reset If TRUE and destination position is equal to the current position backlash operation will be performed BOOL ForceLoft 7 6 4 USMC_Mode Saved to flash Type Name Masked Description BOOL PMode YES Turn off buttons TRUE buttons disabled BOOL PReg YES Current reduction regime TRUE regime is on BOOL ResetD YES Turn power off and make a whole step TRUE apply BOOL EMReset Qui...

Page 81: ...vice reset FALSE after Set Position BOOL AReset TRUE if step motor is rotating BOOL RUN Logical state directly from input synchronization PIN pulses treated as positive BOOL SyncIN Logical state directly from output synchronization PIN pulses are positive BOOL SyncOUT Indicates current rotary transducer logical press state BOOL RotTr Indicates rotary transducer error flag reset by USMC_SetMode fun...

Page 82: ...le describing DLL functions which can be used as input to linker o MicroSMC for WM USMCDLL h C C header file with functions and structures declarations o MicroSMC for WM CEAppMgrSetup exe executable file needed for invoke Microsoft ActiveSync application manager Application manager installs driver files from Mobile subdirectory onto your mobile device o MicroSMC for WM ReadMe rtf rich text file co...

Page 83: ...ion for cycle motion of motorized translation stage with two limit switches Note that applications may not work as expected if they re launched both at one time 8 5 Examples 8 5 1 C example The example source code placed in MicroSMC for WM Test folder on host PC executable files in Program Files MicroSMC on mobile device This sample program is written on C language as dialog based application It d...

Reviews: