Page 1
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor LabVIEW Drivers Manual V2.0.x ™ ™ For Motion, Think Newport For Motion, Think Newport...
Page 2
Customer shall protect the Newport Programs and Related Materials as trade secrets of Newport, and shall devote its best efforts to ensure that all its personnel protect the Newport Programs as trade secrets of Newport Corporation. Customer shall not at any...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor Table of Contents Preface ..........................ii 1.0 SMC100 Drivers ................... 1 2.0 VIs Description ..................... 4 Serial Communication ......................4 2.1.1 Port Init.vi ......................4 2.1.2 Read Write.vi.......................4 2.1.3 Close.vi ........................5 2.1.4 Get driver version.vi....................5...
Page 4
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.28 Get jerk time.vi ....................18 2.2.29 Set jerk time.vi....................18 2.2.30 Get KD.vi......................18 2.2.31 Set KD.vi ......................19 2.2.32 Get KI.vi ......................19 2.2.33 Set KI.vi......................19 2.2.34 Get KP.vi ......................20 2.2.35 Set KP.vi ......................20 2.2.36...
Page 5
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.12 Get KD.vi......................37 2.3.13 Set KD.vi ......................38 2.3.14 Get KI.vi ......................38 2.3.15 Set KI.vi......................38 2.3.16 Get KP.vi ......................39 2.3.17 Set KP.vi ......................39 2.3.18 Get negative position limit.vi................39 2.3.19 Set negative position limit.vi ................40 2.3.20...
Page 6
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor Service Form ......................55 EDH0209En2020 – 04/13...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor SMC100 LabVIEW Drivers SMC100 Drivers The driver SMC100 Controller has been developed under LabVIEW 2010. NOTE You must use at least the version 2010 of LabVIEW. Copy the directory SMC100 Controller_Drivers under the directory user.lib of LabVIEW 2010.
Page 8
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor This directory contains documentation, menu to access the different VIs and controls defined to use the SMC100, and the different libraries where the VIs are stored: Serial Communication: VIs to open and close the communication and to write and read on the serial port.
Page 9
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor status The status Boolean is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error dis- played.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor VIs Description Serial Communication 2.1.1 Port Init.vi This VI initializes RS-232 communication. Serial Port # COM1 = 1, COM2 = 2, etc. The following parameters are fixed: Baud Rate = 57600; Data Bits = 8; Parity = None; Stop Bits = 1;...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.1.3 Close.vi This VI closes the opened serial port of communication. Connector Panel 2.1.4 Get driver version.vi This VI returns the SMC100 LabVIEW driver version. Connector Panel Controls and Indicators...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.1 Enter/Leave Configuration state.vi This Configuration VI has two states that it can be in: NOT REFERENCE state and CONFIGURATION state. When the switch on the VI is in the ON position (True state), the controller changes from NOT REFERENCE to CONFIGURATION state.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.3 Set acceleration.vi When the controller is in Configuration state, this VI sets the maximum acceleration value for the positioner. This is the maximum acceleration that will be applied to the mechanical system.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.5 Set backlash compensation.vi To disable this feature, set the backlash value to 0. This VI sets the distance the controller will have to compensate each time the positioner is asked to change direction of motion.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.7 Set base velocity.vi This VI sets the profiler generator base velocity. 0 ≤ base velocity ≤ value fixed by VA command, see "set velocity" VI (SMC command = VB).
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.9 Set controller's axis number.vi This VI sets the controller's axis number. The controller will use this axis number only when it will be configured in RS485 mode. In RS232C mode, the controller will only respond to command related to axis 1.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.11 Set control loop state.vi 1 makes the controller to change the control loop from OPEN to CLOSED state. 0 makes the controller to change the control loop from CLOSED to OPEN state.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.13 Set cut off frequency.vi When the controller is in CONFIGURATION state, this VI sets the low pass filter cut off frequency value. That is the value that will be used as the setup value for the low pass filter cut off frequency.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.16 Get encoder increment.vi This VI returns the programmed encoder increment value. Connector Panel Controls and Indicators Axis in Axis out Encoder increment value (units) 2.2.17 Set encoder increment.vi This VI sets the value in units for one encoder count.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.19 Set following error limit.vi When controller is in CONFIGURATION state, this VI sets the maximum fol- lowing error value for the positioner. That is the value that will be used as the setup value for the following error.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.21 Set friction compensation.vi When controller is in CONFIGURATION state, this command sets the fric- tion compensation value. That is the value that will be used as the setup value for the friction compensation.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.23 Set HOME high velocity.vi This VI sets the high velocity that will be used by the motion profiler to move the positioner during the HOME search sequence. Connector Panel...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.26 Get HOME type.vi This VI returns the programmed home type: 0: use MZ (Home) switch and encoder Index. 1: use current position as home. 2: use MZ (Home) switch only.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.28 Get je rk time.vi This VI returns the programmed jerk time value. Connector Panel Controls and Indicators Axis in Axis out Jerk time value (seconds) 2.2.29 Set je rk time.vi...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.31 Set KD.vi When controller is in CONFIGURATION state, this VI sets the derivative gain of the PID control loop. This is the value that will be used as the setup value for the derivative gain.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.34 Get KP.vi This VI returns the programmed proportional gain value. Connector Panel Controls and Indicators Axis in Axis out Proportional gain value (volts/unit) 2.2.35 Set KP.vi When controller is in CONFIGURATION state, this VI sets the proportional gain of the PID control loop.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.37 Set motor's peak current limit.vi This VI sets the maximum current allowed into the motor. If the controller detects a higher current in the motor, it will generate a hardware error and a fault will be reported.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.40 Get motor's rms current average time.vi This VI returns the programmed average period value for the calculation of the rms current. Connector Panel Controls and Indicators Axis in...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.43 Set negative position limit.vi When controller is in CONFIGURATION state, this VI sets the negative soft- ware limit value for the positioner. This is the negative software position limit that will be used to check that the move commands do not exceed the mechanical system travel range.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.45 Set positive position limit.vi When controller is in CONFIGURATION state, this VI sets the positive soft- ware limit value for the positioner. This is the positive software position limit that will be used to check that the move commands do not exceed the mechanical system travel range.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.47 Set parameters from SmartStage.vi When the parameter is 3, the controller enables the SmartStage safety fea- ture, at each power-up the controller will check if the connected smart stage is the same as the one recorded in its flash memory.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.49 Set stepper motor configuration (full step).vi Set stepper motor configuration. This VI allows set the motion distance per motor's full step: 1E < full step < 1E (SMC command = FRS).
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.51 Set stepper motor configuration (micro-step factor).vi Set stepper motor configuration. This VI allows set the micro-step per full step factor: 0 < micro-step factor ≤ 2000 (SMC command = FRM).
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.53 Set velocity.vi When controller is in CONFIGURATION state, this VI sets the maximum velocity value for the positioner. This is the maximum velocity that will be applied to the mechanical system.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.55 Set velocity feed forward.vi When controller is in CONFIGURATION state, this VI sets the velocity feed forward of the PID control loop. This is the value that will be used as the setup value for the velocity feed forward.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor home sequence high velocity home sequence time out motor's peak current limit motor's rms current limit averaging period for the calculation of rms current controller's axis number control loop state...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.2.59 Enable/disable keypad.vi 1 makes the controller to enable the keypad. 0 makes the controller to disable the keypad. Connector Panel Controls and Indicators Axis in Set keypad mode:...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.1 Enter/Leave disable state.vi When the VI switch is in the ON position (True state), the controller changes from READY to DISABLE state. The controller will open the control loop and de-energize the motor.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.3 Set acceleration.vi When the controller is in Configuration state, this VI sets the maximum acceleration value for the positioner. This is the maximum acceleration that will be applied to the mechanical system.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.5 Set cut off frequency.vi When the controller is in CONFIGURATION state, this VI sets the low pass filter cut off frequency value. That is the value that will be used as the setup value for the low pass filter cut off frequency.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.7 Set following error limit.vi When controller is in CONFIGURATION state, this VI sets the maximum fol- lowing error value for the positioner. That is the value that will be used as the setup value for the following error.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.9 Set friction compensation.vi When controller is in CONFIGURATION state, this command sets the fric- tion compensation value. That is the value that will be used as the setup value for the friction compensation.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.11 Set jerk time.vi When controller is in CONFIGURATION state, this VI sets the maximum jerk time value for the positioner. This is the maximum time allowed to reach maximum acceleration that will be applied to the mechanical system.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.13 Set KD.vi When controller is in CONFIGURATION state, this VI sets the derivative gain of the PID control loop. This is the value that will be used as the setup value for the derivative gain.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.16 Get KP.vi This VI returns the programmed proportional gain value. Connector Panel Controls and Indicators Axis in Axis out Proportional gain value (volts/unit) 2.3.17 Set KP.vi When controller is in CONFIGURATION state, this VI sets the proportional gain of the PID control loop.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.19 Set negative position limit.vi When controller is in CONFIGURATION state, this VI sets the negative soft- ware limit value for the positioner. This is the negative software position limit that will be used to check that the move commands do not exceed the mechanical system travel range.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.21 Set positive position limit.vi When controller is in CONFIGURATION state, this VI sets the positive soft- ware limit value for the positioner. This is the positive software position limit that will be used to check that the move commands do not exceed the mechanical system travel range.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.23 Set velocity.vi When controller is in CONFIGURATION state, this VI sets the maximum velocity value for the positioner. This is the maximum velocity that will be applied to the mechanical system.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.3.25 Set velocity feed forward.vi When controller is in CONFIGURATION state, this VI sets the velocity feed forward of the PID control loop. This is the value that will be used as the setup value for the velocity feed forward.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.4.2 Get absolute position.vi This VI returns the target position value. Connector Panel Controls and Indicators Axis in Axis out Target position (units) 2.4.3 Move absolute.vi This VI allows selecting a target position. This command is only accepted in READY state.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.4.5 Move relative.vi The move command is only accepted in READY state. If the distance between the software limits and the set point position is higher than the programmed displacement, the controller will move the positioner for the programmed displacement away from the set point position.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor Axis out Target position value recorded (units) 2.4.8 Execute the move recorded.vi The controller executes the move recorded by the Record a new target position command. Connector Panel 2.4.9 Stop.vi...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor General 2.5.1 Reset.vi This VI issues a hardware reset to the controller equivalent to a power-up. Connector Panel Controls and Indicators Axis in Axis out EDH0209En2020 – 04/13...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.5.2 Tell controller status.vi This VI returns the controller's state and the controller's error. The controller's error is composed of 4 digits (abcd) coded in hexadecimal, each bit of the error byte is described below: ...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.5.3 Tell current position.vi This VI returns the current position. This is the encoder feedback position. This position will always change. Connector Panel Controls and Indicators Axis in Axis out Current position (units) 2.5.4...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.5.5 Tell last error.vi This VI returns the currently memorized error: @: OK. A: Unknown message code or floating point axis number. B: Axis number not correct.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.5.7 Tell target position.vi This VI returns the target position. This is the final position the positioner will reach. Connector Panel Controls and Indicators Axis in Axis out Current position (units) 2.5.8...
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor GPIO 2.6.1 Tell analog input value.vi This VI returns the analog input value in volts. This is the ±10 volts input located on the J1 connector. The converter is a ±7 bits analog to digital converter with ±0.15 volts of maximum offset and 5% full scale linearity.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor 2.6.3 Get TTL outputs value.vi This VI returns the TTL outputs value. Connector Panel Controls and Indicators Axis in Axis out TTL outputs value (decimal) 2.6.4 Set TTL outputs value.vi This command sets the TTL output value.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor Examples 2.7.1 Wait for stop 1 axis.vi This VI allows to wait while a controller is in moving state and then to check if the controller is in ready state.
SMC100CC & SMC100PP Single-Axis Motion Controller/Driver for DC or Stepper Motor Service Form Your Local Representative Tel.: ___________________ Fax: ___________________ Name: __________________________________________________ Return authorization #: _____________________________________ (Please obtain prior to return of item) Company: _______________________________________________ Address:_________________________________________________ Date: ___________________________________________________ Country:_________________________________________________ Phone Number: ___________________________________________ P.O.
Page 62
Visit Newport Online at: www.newport.com North America & Asia Europe Newport Corporation MICRO-CONTROLE Spectra-Physics S.A.S 1791 Deere Ave. 9, rue du Bois Sauvage Irvine, CA 92606, USA 91055 Évry CEDEX France Sales Tel.: (800) 222-6440 Sales e-mail: sales@newport.com Tel.: +33 (0)1.60.91.68.68 Technical Support e-mail: france@newport.com...