Anaheim Automation MBC10P31 User Manual


Add to my manuals
22 Pages

advertisement

Anaheim Automation MBC10P31 User Manual | Manualzz

MBC10P31

Programmable Pulse Generator

User’s Guide

#L010184

A N A H E I M A U T O M A T I O N

April 2007

Features

• Output Current of 10.0A Peak

• 2000 Steps/Revolution

• On-Board Programmable Pulse Generator with 2 motion profiles

• Pulses From 1Hz to 50kHz

• Directional Soft and Hard Limit Switch Inputs

• Pulse Generator Clock Output

• Busy Output

• Motor On/Off Input and Automatic Current Reduction

• Short Circuit Protection

Introduction

The MBC10P31 is an low cost single axis step motor driver integrated with a programmable pulse generator.

The MBC10P31 microstep driver/pulse generator has an output current capability of 1.5A minimum to

10.0A maximum (peak rating). The MBC10P31 driver operates with a DC voltage of 20VDC to 80VDC. The

MBC10P31’s internal controller can store two different programmable motion profiles. The MBC10P31 also has directional soft and hard limit switch inputs, a busy output and a clock output that can be used for daisy chaining drivers together. The MBC10P31 driver features direction control and motor current On/Off capabilities. The “Reduce Current Enabled” feature automatically reduces motor current to 50% of the set value. The driver has built in features to indicate power on (green LED), running (yellow LED) and error conditions (red LED). The MBC10P31 has a fixed step resolution of 2000 steps/revolution for a 1.8° stepper motor. The bipolar drive configuration handles 4, 6, and 8 lead step motors and is also equipped with over current protection. The MBC10P31 communicates via USB communication. The easy to use Windows software, SMPG-SMSI Software, is used to directly set up the two different motion profiles.

Motion Profiles and Running the Pulse Generator

The programmable pulse generator has the ability to store two different motion profiles. The profiles include a base speed (starting speed), a maximum speeds (running speed) and a acceleration/deceleration. The base speed has a range of 1-5000 Hz, the maximum speed has a range of 1 Hz-50 kHz and the acceleration/ deceleration has a range of 100 to 9,999,999 steps/sec 2 .

There are “two ways” to get the unit to index: Examples are shown on the next page.

1) The first way is to directly control it from the computer with the software provided. Once the motion profiles have been set, the unit is ready to run. From the software, the user can select which profile to run and then click the begin motion button. If a soft limit command is sent or a soft limit input is activated, then the unit will immediately ramp down to base speed and stop. To stop motion immediately a hard limit command needs to be sent or a hard limit input must be activated.

2) The second way to make the unit run is to activate the run input. When the run input is activated, it looks at the max1\max2 input and selects from memory the speed profile that was selected. To stop motion, release the run input. When this input is released, the deceleration option will then either ramp down to base speed and stop or just hard stop. If a soft+ or soft limit switch is activated when the Run input is active, the pulse generator will ramp down to base speed and keep running. If a hard+ or hard- limit switch is activated when the run input is active, the motor will stop immediately.

#L010184 April 2007

Operation with Ramp Down Option

A) Run is activated; Starts at base speed and immediately ramps up to max speed.

B) Run is still active; Max speed is reached (keeps running at max speed).

C) Run is inactivated; Motor ramps down.

D) Pulses automatically stop when base speed is reached.

Max Speed

Base Speed

Off

A B C D

Time

Operation without Ramp Down Option

A) Run is activated; Starts at base speed and immediately ramps up to max speed.

B) Run is still active; Max speed is reached (keeps running at max speed).

C) Run is inactivated; Motor stops immediately.

Max Speed

Base Speed

Off

A B C

Time

Operation with Soft and Hard Limits

A) Run is activated; Starts at base speed and immediately ramps up to max speed.

B) Run is still active; Max speed is reached (keeps running at max speed).

C) Run is still active; Soft limit is hit; Motor ramps down to base speed and keeps running.

D) Run is still active; Base speed is reached (keeps running at base speed).

E) Run is inactivated or Hard limit is hit; Motor stops mediately.

Max Speed

A B C D E

Base Speed

Off

Time

#L010184 April 2007

LEDs

When powered and operated properly, the status LED will be green. When an error occurs, the LED will change to RED and an error code will be generated in the error code register. To read and clear the error with the software, click on the “Verify Parameters” button. To read and clear the error while in “Direct

Mode” use the “!” command. Once the error has been read and cleared, the LED will return to green and the error code register will be cleared. Refer to the table page 20 for a list of the error codes. When the pulse generator is running the yellow LED will be on. Refer to the dimension drawing for location of the

LEDs. For more detail on “Direct Mode” refer to the Direct Talk Mode section of user’s guide.

Baud Rates

A term used frequently in serial data communications. A “baud” is defined as the reciprocal of the shortest pulse duration in a data word signal, including start, stop, and parity bits. This is often taken to mean the same as “bits per second”, a term that expresses only the number of “data” bits per second. Very often, the parity bit is included as an information or data bit. The MBC10P31 only accepts a baud rate of 115.2k.

Inputs and Outputs

Inputs: All inputs are pulled up to 5VDC. A logic "0" activates inputs that are pulled up. An unconnected input will always remain inactive.

Direction: When this input is not active, the motor will be moving in the clockwise or “+” direction. When this input is active, the motor will move in the counterclockwise or “-“ direction. This input is not read when a software index command is given. To change direction while using the software, change the direction option there. When two motors are used, the second motor will move in the opposite direction by default.

On/Off: When this input is not active, the motor will be enabled or energized. When this input is active, the motor will be disabled or de-energized.

Run: When this input is not active, the pulse generator is stopped and will not output any pulses. When this input is active the pulse generator will output pulses starting at the base speed rate and will ramp up and output pulses at the max speed rate. When this input is released, the pulse generator will ramp down to base speed and stop or hard stop depending on the deceleration option.

Max1/Max2: This input is used to select which profile runs when the run input is activated. To use profile 1, then this input needs to be inactive (open). To use profile 2, then this input needs to be active.

Soft Limits: These two inputs are controlled by the direction of the pulse generator. When the pulse generator is running in the positive direction only soft+ will work. When the pulse generator is running in the negative direction then only soft- will work. When pulled low the motor will ramp down to base speed and continue running until the run input is released or a hard limit is reached.

Hard Limits: These two inputs are controlled by the direction of the pulse generator. When the pulse generator is running in the positive direction only hard+ will work. When the pulse generator is running in the negative direction then only hard- will work. When pulled low the pulse generator will stop all pulses to the motor. To reverse off of a Hard Limit, change directions, and activate the run input again to move in the opposite direction.

Busy Output: This is an open drain output that is capable of sinking 75mA. It is current sinking when the indexer is running and open when the indexer is not running.

Clock Output: This is an open drain output that is capable of sinking 75mA. This output will pulse at the same frequency as the internal clock to the motor driver. It is pulled low during the active pulse of the pulse generator. When the pulse generator is not running this output is open.

#L010184 April 2007

Connector Descriptions

C o n n e c t o r P 2 :

8

9

1 0

5

6

7

1 1

1 2

1 3

1 4

1 5

1 6

P i n #

1

2

3

4

D e s c ir p it o n

P o w e r S u p p l y G r o u n d ( 0 V D C )

P o w e r S u p p l y I n p u t ( 2 0 V D C 8 0 V D C )

M o t o r P h a s e 1 ( A )

M o t o r P h a s e 3 /( A )

M o t o r P h a s e 2 ( B )

M o t o r P h a s e 4 /( B )

R u n

M a x 1 / M a x 2

M o t o r O n / O ff

D ri e c it o n I n

B u s y O u t p u t

C l o c k O u t p u t

S o tf L i m ti +

S o tf L i m ti -

H a r d L i m ti +

H a r d L i m ti -

#L010184 April 2007

Ordering Information

P a r t N u m b e r

M B C 1 0 P 3 1

P S A 8 0 V 4 A 1

A A U S B 6

D e s c ir p it o n

1 0 .

0 A M i c r o s t e p D ir v e r w ti h i n t e g r a t e d P r o g r a m m a b l e P u l e G e n e r a t o r

P o w e r s u p p l y f o r M B C 1 0 P 3 1 ( 8 0 V @ 4 .

0 A )

6 f o o t U S B c o m m u n i c a it o n c a b l e , A M a l e t o B M a l e

Specifications

V

D o ri tl a

R u n e c g e it o

I n p n

R e u t q u

I n p

( P i u t ri e m e n

( P

6 i n

) n t s

1 0 )

O n / O ff I n p u t ( P i n 9 )

B u s y O u t p u t ( P i n 1 1 )

C l o c k O u t p u t ( P i n 1 2 )

C l o c k O u t F r e q u e n c y ( P i n 1 2 )

D

O u ir v t p e r

O

C u p e o t r

C a m it u

P

L rr

C h o p p n g o e n

E i n g tr

D

:t s

T

S e t

A

T e m p

=

F r e

2 5 o C q u e n c y a t u r e it n g s

2 0 8 0 V D C

S t a tr L o w ( 0 V D C )

C W

C W W

O n

H

L

H i i o g w g h h

(

(

( O

0 V

O p p e

D e n

C ) n )

)

O ff L o w ( 0 V D C )

O p e n D r a i n t y p e O u t p u ,t 7 5 m A S i n k , 4 0 V D C S t a n d O ff

O p e n D r a i n t y p e O u t p u ,t 7 5 m A S i n k , 4 0 V D C S t a n d O ff

M i n

M a x

1

5

H z

0 k H z

M i n

M a x

1 .

1 0

5 A

.

3 A p

2 5 k H z 3 0 k H z e a k p e a k

0 7 0 o C

G r e e n P o w e r O n

R e d

Y e ll o w

P

P r u l o g s e

1 1 5 2 0 0 , N , 8 , 1 r a m m i n g E rr o r

G e n e r a t o r i s b u s y

#L010184 April 2007

Dimensions

Wiring Diagrams

#L010184 April 2007

Setting the Output Current

The output current on the MBC10P31 is set by the on-board potentiometer. This current adjust potentiometer determines the per phase peak output current of the driver. This relationship between the output current and the potentiometer setting is as follows:

Potentiometer Settings

P e a k C u rr e n t

1 .

5 A

2 .

4 A

3 .

0 A

4 .

0 A

5 .

2 A

6 .

4 A

7 .

7 A

8 .

7 A

9 .

8 A

1 0 .

0 A

1 0 .

3 A

P o t e n it o m e t e r S e t it n g

0 %

1 0 %

2 0 %

3 0 %

4 0 %

5 0 %

6 0 %

7 0 %

8 0 %

9 0 %

1 0 0 %

Reducing Output Current

Reducing the output current is accomplished automatically depending on the current reduction setting in the SMPG-SMSI software. The amount of current per phase in the reduction mode is approximately 50% of the set current. When the current reduction circuit is activated, the current reduction resistor is paralleled with the current adjustment potentiometer. This lowers the total resistance value, and thus lowers the per phase output current. This is done when the pulse generator is not running.

#L010184 April 2007

Determining Output Current

The output current used for the motor when microstepping is determined differently from that of a full/half step unipolar driver. In the MBC10P31, a sine/cosine output function is used in rotating the motor. The output current for a given motor is determined by the motors current rating and the wiring configuration of the motor. There is a current adjustment potentiometer used to set the output current of the MBC10P31

This sets the peak output current of the sine/cosine waves. The specified motor current (which is the unipolar value) is multiplied by a factor of 1.0, 1.4, or 2.0 depending on the motor configuration (series, halfcoil, or parallel).

Step Motor Configurations

Step motors can be configured as 4, 6, or 8 leads. Each configuration requires different currents. Refer to the lead configurations and the procedures to determine their output current.

WARNING!

Step motors will run hot even when configured correctly. Damage may occur to the motor if a higher than specified current is used. Most specified motor currents are maximum values. Care should be taken to not exceed these ratings.

6 Lead Motors

When configuring a 6 lead motor in a half-coil configuration (connected from one end of the coil to the center tap), multiply the specified per phase (or unipolar) current rating by 1.4 to determine the current setting potentiometer value. This configuration will provide more torque at higher speeds when compared to the series configuration.

When configuring the motor in a series configuration (connected from end to end with the center tap floating) use the specified per phase (or unipolar) current rating to determine the current setting potentiometer value.

4 Lead Motors

Multiply the specified series motor current by 1.4 to determine the current adjustment potentiometer value. 4 lead motors are usually rated with their appropriate series current, as opposed to the Phase

Current , which is the rating for 6 and 8 lead motors.

#L010184 April 2007

8 Lead Motors

Series Connection: When configuring the motor windings in series, use the per phase (or unipolar) current rating to determine the current setting potentiometer value.

Parallel Connection: When configuring the motor windings in parallel, multiply the per phase (or unipolar) current rating by 2.0 to determine the current setting potentiometer value.

Note: After the current has been determined, according to the motor connections above, use the potentiometer setting table to choose the proper setting for the current setting potentiometer.

Connecting the Step Motor

The MB10P31 is designed to accept one motor. For wiring of the motor refer to the pages containing the connector descriptions and hookup diagrams. The motor is wired into pins 3, 4, 5 and 6 of the terminal block.

Note : The physical direction of the motor with respect to the direction input will depend on the connection of the motor windings. To reverse the direction of the motor with respect to the direction input, switch the wires on phase 1 and phase 3. With the operation of 2 motors, they will run in the opposite direction when wired the same.

WARNING: Do not connect or disconnect motor wires while power is applied!

Circuit Protection

This driver is equipped with over current protection.

Note: When drive experiences a fault condition, it will seize to function. Power down, inspect wiring, motors, etc. and allow for a 30 second pause to resume functioning. If driver is too hot, additional ventilation and airflow should be added to prevent temperature to exceed recommended temperature limit.

#L010184 April 2007

Functions

Hard Limit Switches: When a hard limit switch is encountered, the pulses will stop. Hard limits are intended as an emergency stop for your system.

Soft Limit Switches: These switches cause the pulse generator to ramp down to the base speed and continue to run as the run input is still activated, unless encountering a hard limit switch.

Run Input: This input is used to begin the specified motion profile.

Max1/Max2: This input is used to select which profile runs when the run input is activated. To use profile 1, then this input needs to be inactive (open). To use profile 2, then this input needs to be active.

Motion Profiles: The indexer will accept two different speed or motion profiles. Each profile has it own programmable Accel/Decel, Base speed and Max speed. Theses values are stored in EEProm for standalone use and must be programmed before the pulse generator is ran.

Acceleration/Deceleration: The acceleration and deceleration are by default the same value. This function controls the time that the motor will take to move from base speed to max speed. The higher the value, the faster the motor will accelerate. The same principal applies for the deceleration which is controlling the time it takes to go from maximum speed to base speed. The higher the value, the faster the pulses will decelerate. The different accel/decel profiles are stored in EEprom for standalone use. (Range: 100 to

9,999,999)

Base Speed: The base speed is the speed at which motion starts and stops. It is entered directly as the number of steps per second. This speed must always be less than the max speed. The different base profiles are stored in EEprom for standalone use. (Range: 1 to 5000)

Max Speed: The max speed is the top speed the user wants the pulses to run at. This speed must always be equal or greater than the base speed. It is entered directly as the number of steps/second. The different max profiles are stored in EEprom for standalone use. (Range: 1 to 50,000)

Direction Input: If this input is open then the unit will be running in the clockwise direction. If this input is active then the unit will be running in the counterclockwise direction. This pin can be overridden by the programmable software direction. It will activate the direction output when the pin is changed. This means, that if you start the profile from the software, the unit will look at the software direction. If you start the indexer from the inputs, then the unit will look at the direction input.

Busy Output: This output will be pulled low when the pulse generator is operating. It is an open drain output so when the pulse generator is not running the pin is open.

Clock Output: This output will pulse at the same frequency as the internal clock to the motor driver. It is an open drain output and pulled low during the active pulse of the pulse generator. When the pulse generator is not running this output is open.

#L010184 April 2007

SMPG-SMSI Software

The SMPG-SMSI software is a handy utility that supports Anaheim Automation’s programmable pulse generators and simple indexers. Connecting your PC to the MBC10P31, via a USB cable, the software can easily perform the following tasks:

• Exercise and monitor the MBC10P31

• Directly communicate with the MBC10P31

• Program the profile values for the MBC10P31

Installation

Software

• The SMPG-SMSI software is supplied on a CD, containing the setup program and the

SMPG-SMSI software

• SMPG-SMSI software is compatible with all versions of Windows including Windows

2000 and Windows XP

Windows 95/98/NT/ME/2000/XP Installation

Option 1

1) Insert the CD into the drive

2) On the Windows Taskbar select Start | Run

3) Enter D:\setup and click OK - use the appropriate drive letter (i.e. D or E )

Option 2

1) Open Windows Explorer

2) Open CD Drive Folder (D: or E:)

3) Double click the Setup Icon

Getting Started

1) Double click on the SMPG-SMSI icon to run the software.

2) Apply power to the MBC10P31 unit.

3) Set the appropriate communication setting by selecting Setup | Communication Setting

from the menu bar.

4) Establish communications with the MBC10P31 by clicking on the Connect Icon, or select

Setup | Connect. If the unit is connected properly, the program will notify you when communication

has been established and the correct programming tab will be enabled to let you work with

the unit.

After the 1st initial setup of the comport and axis settings, the MBC10P31 should connect to the software when the software is launched.

Changing the COM Port Number of the USB port

1) From DeviceManage r, select “View devices by typ e”, then “Ports (COM & LPT )”. Select

the USB serial port and click Propertie s. Select the “Port Setting s” tab, then click Ad-

vance d.

2) Choose the required COM port number from the list and click O K.

#L010184 April 2007

“The Unit is Connected” / “The Unit is NOT Connected”

On the right of the Toolbar, the user will find the communication status of the pulse generator. If communications is not established, please refer to the troubleshooting section.

File Menu

Setup Menu

Toolbar

Ex ti

C o n n e c t

D i s c o n n e c t

C o m m u n i c a it o n S e t it n g s .

..

E x ti t h e S M P G S M S I s o tf w a r e

E s t a b il s h c o m m u n i c a it o n s w ti h t h e c o n rt o ll e .r

D i s c o n it n u e c o m m u n i c a it o n s a n d r e l e a s e t h e c o m p o tr f o r u s e b y o t h e r d e v i c e s .

C O M p o tr S e l e c it o n ( P o tr s 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 o r 9 )

#L010184

E x ti

C o n n e c t

E x ti t h e S M P G S M S I s o tf w a r e .

E s t a b il s h c o m m u n i c a it o n w ti h t h e c o n rt o ll e .r

April 2007

Program Window

M o it o n P r o f li e

S e n d A c c e /l D e c e l

S e n d B a s e S p e e d

S e n d M a x S p e e d

B

R e d

V e r

R fi e

S g

H a r

D a y o i m ri

P n tf d

M

L i e c u c e d p a

L

D r a it o m i m

C it o n o u ti w o m e ti n rr e n t e n t r s

S e l e c t m o it o n p r o f li e s 1 o r 2 .

S e n d t h e a c c e l e r a it o n & d e c e l e r a it o n p a r a m e t e r t o t h e i n d e x e .r

( s t e p s / s e c 2 )

S e n d t h e b a s e s p e e d p a r a m e t e r t o t h e i n d e x e .r

( s t e p / s s e c )

S e n d t h e m a x i m u m s p e e d p a r a m e t e r t o t h e i n d e x e .r

( s t e p s / s e c )

M t h o e t o r s o w i tf o ll r r a h m a r p d u p il m t o ti b m u tt a x i m o n s u m a r e s p p e r e d e s s e a d n

.

d k e e p m o v i n g u n t li a il m ti s w ti c h i s t ir g g e r e d o r

M o t o r w i ll r a m p d o w n t o b a s e s p e e d s t o p .

S t o p a n y m o t o r m o it o n .

S e t d ri e c it o n t o c l o c k w i s e o r c o u n t e -r c l o c k w i s e .

S e t r e d u c e d c u rr e n t o n o r o f .f

S e t r a m p d o w n o p it o n t o y e s o r n o .

U p d a t e s a n d d i s p l a y s c o n rt o ll e r s p a r a m e t e r s a n d r e s e t s t h e e rr o r c o d e s .

#L010184 April 2007

Direct Talk Mode

Direct mode is used to directly control the motion for real time movements through serial communication.

The pulse generator has 13 commands which are easy to remember for direct movement of a step motor.

COM Port Settings

Baud Rate: 115200

Parity: None

Data Bits: 8

Stop Bits: 1

Flow Control: Xon/Xoff

Unit Selection

In order to select a unit the @ command followed by 0 (address of the unit) must be sent.

NOTE: There should be no spaces between the @ and the 0.

How to select the unit:

@0 (Unit is selected)

How to get a response from the unit:

@0$ (Carriage Return)

After the $ command, the pulse generator will return a SMPG30 + the current version number.

Note: In direct talk mode each command is followed by a carriage return.

The unit communicates in half duplex mode, therefore proper setup of hyper terminal is necessary to view characters, if characters are to be echoed back to the screen.

Instructions

All instructions require that no spaces be sent between the command and the parameter followed by a carriage return. The commands are also case sensitive and are all sent as capitals.

Command Summary:

A - Acceleration/Deceleration

B - Base Speed

C - Current Reduction

D - Ramp Down

G - Go (Run)

H - Hard Limit

M - Max Speed

S - Soft Limit

V - Verify

+ - Clockwise Direction

- - Counterclockwise Direction

$ - Version Number Register

! - Error Codes Register

#L010184 April 2007

$ - Version Number Register

Format: $

Description: This command requests the pulse generator to return the version number.

! - Error Codes Register

Format: !

Description: This command requests the pulse generator to get the current error code and print it to the screen.

+/- - Direction

Format: + or -

Description: This command sets the direction output. A “+” sets the output to clockwise, and a

“-” set the output to counterclockwise. This must be done when the indexer is not busy. This value is saved in the EEProm for standalone use.

A - Acceleration/Deceleration

Format: A#_[value] - where # is the motion profile number 1 or 2

Sample:

Range:

B - Base Speed

A1_10000 Accel of profile 1 equals 10000

Description: This command sets the acceleration profile which can be an integer value between 100 and 9,999,999. These values are saved in the EEProm for standalone use.

100 - 9,999,999

Format: B#_[value] - where # is the motion profile number 1 or 2

Sample: B2_500 Base Speed of profile 2 equals 500

Description: This command sets the base (start) speed for motion. This value must be set before motion begins and be less then the maximum speed. The pulses will ramp down to this speed after a soft limit is triggered and run at this speed until a hard limit is triggered or the index has finished. These values are saved in the EEProm for standalone use.

Range: 1 - 5000

#L010184 April 2007

C - Current Reduce Option

Format: C# - where # is 0 or 1

Description: This command enables the driver to reduce current after pulses are done being sent. A 1 will enable current reduction, and a 0 will disable current reduction. This value is saved in the EEProm for standalone use.

D - Ramp Down

Format: D# - where # is 0 or 1

Description: This command enables the driver to ramp down or stop hard once the run input is released. A 1 will cause the motor to ramp down, and a 0 will cause the motor to stop hard. This value is saved in the EEProm for standalone use.

G - Go Slew (Run)

Format: G# - where # is the speed profile number 1 or 2

Description: This command will send clocks out to the pulse generator. There are only 2 commands that can stop the clocks. One is the H (stop motion). The other is the

S(soft limit) command which will make the pulses go from max speed to base speed and then stop the motor. Motion can also be stopped by using the limit switch inputs. The ramp profile is specified by the B (base speed), M (max speed), and A (acceleration/deceleration) commands.

H - Hard Limit or Stop Motion

Format: H

Description: This command will stop all motion. It can only be used when pulses are running.

M - Max Speed

Format: M#_[value] - where # is the motion profile number 1 or 2

Sample: M2_10000 Max Speed of profile 2 equals 10000

Description: This command sets the maximum (running) speed for motion. This value must be set before motion begins and be equal or greater than the base speed. The motor will run at this speed until a soft limit or a hard limit is triggered. These values are saved in the EEProm for standalone use.

Range: 1 - 50,000

#L010184 April 2007

S - Stop Soft

Format: S

Description: This command will cause the pulse generator to ramp down to base speed and stop. It can only be used when pulses are running.

V - Verify

Description: This command can be used with most commands to verify the register contents.

This is a read only command. Valid Commands are: A, B, C, D, M, R, and +.

Format:

C -

D -

+ -

V[command]

This format is good for C, D, R, and +.

If a 1 is sent back then the driver is in reduced current mode. If a 0 is sent back then the driver is not in reduced current mode.

If a 1 is sent back then the pulse generator will ramp down to stop when the Run/

Stop input is released. If a 0 is sent back then the pulse generator will stop hard when the Run/Stop input is released.

If a 1 is sent back then the direction is clockwise. If a 0 is sent back then the direction is counterclockwise.

Sample: V+ Verification of Direction is prompted.

Format: V[command]# - where # is the speed profile number 1 thru 4

This format is good for A, B, and M.

A# Verify Acceleration/Decceleration for given speed profile.

B# Verify Base speed for given speed profile.

M# Verify Max speed for given speed profile.

Sample: VB2 Verification of Base Speed in Profile 2 is prompted.

#L010184 April 2007

Visual Basic Direct Mode Programming Examples

Example 1: This Example is for Axis=0, and Profile=1

DimConst DefaultTimeout As Single = 0.5

frmMain.MSComm1.Output = "@0A1_100000” & Chr$(13) ‘Set Acceleration

Pause DefaultTimeout frmMain.MSComm1.Output = "@0B1_1000” & Chr$(13) ‘Set Base Speed

Pause DefaultTimeout frmMain.MSComm1.Output = "@0M1_4000” & Chr$(13) ‘Set Maximum Speed

Pause DefaultTimeout frmMain.MSComm1.Output = "@0+” & Chr$(13)

Pause DefaultTimeout frmMain.MSComm1.Output = "@0D1” & Chr$(13)

Pause DefaultTimeout frmMain.MSComm1.Output = "@0G1” & Chr$(13)

Pause DefaultTimeout

‘Set Direction CW

‘Set Ramp Down On

‘Start the Index

Example 2: This Example recieves the error code and Version Number from Axis3

Dim Const DefaultTimeout As Single = 0.5

frmMain.MSComm1.Output = "@3!" & Chr$(13)

Pause ShortTimeOut

MsgBox ReceiveAscii() frmMain.MSComm1.Output = "@3$" & Chr$(13)

Pause ShortTimeOut

MsgBox ReceiveAscii()

Function ReceiveAscii() As String

'wait for the incoming data to get to the buffer

Dim BeginTime As Single

Dim A As Integer

Dim B As Integer

BeginTime = Timer

While Main.MSComm1.InBufferCount = 0

DoEvents

If Timer - BeginTime > 0.1 Then GoTo ExitRoutine1

Wend

A = 0: B = Main.MSComm1.InBufferCount

While A <> B

A = Main.MSComm1.InBufferCount

Pause 0.02

B = Main.MSComm1.InBufferCount

Wend

ReceiveAscii = Main.MSComm1.Input

Exit Function

' Fixed time value

#L010184 April 2007

Troubleshooting

Problem:

Can not establish communications with the unit.

Possible Solutions:

1) Make sure the indexer has power. Is the Green LED on.

2) Check USB connections.

3) Check for loose cable connection either on the pulse generator or USB Port.

4) Was the software installed successfully?

5) Go to Setup | Communication Settings and verify COM port settings.

6) Click on Connect icon to communicate with the unit.

9) If problems still exist, contact Anaheim Automation Tech Support.

Problem:

There is no power to the indexer.

Possible Solutions:

1) Is the unit connected to the appropriate power supply?

2) Check for any blown fuses in line with the unit.

3) If problems still exist, contact Anaheim Automation at 714-992-6990.

Problem:

The indexer has a fault condition.

Possible Solutions:

1) To clear an error use either the SMPG-SMSI software or the direct mode command.

2) The SMPG-SMSI software can clear an error in the motion tab section by clicking on the

Verify Parameters button.

3) The direct mode command “!” can clear an error by prompting indexer to serially send the

error code back to the user.

Example: @0! (carriage return)

Description: Address the unit by typing @ followed by a 0 (address number) an ! (Error

Codes Register) and a carriage return.

Note: The error code is returned in binary coded decimal format. If two errors were received their binary values would be added together.

#L010184 April 2007

Error Codes

E rr o r C o d e

1

1

3

2

4

8

6

2

T y p e

R e c i e v e

E rr

O o r v e r lf o w

C

Z

T e

R o m r a r

M o a n m a n s o

P t g e m i o

E a r rr r n d

E a o tt

E r

E rr rr

E o m e o rr r r rr o t e o r r r s

D e s c ir p it o n

T c a h e u s s e e d ir a b l y c t o h e m c m u n i o c a m p u t e it o

.r

n s h a d a r e c i e v i n g e rr o .r

T h i s i s a n i n t e r n a l e rr o r t

T o h e s r e e e w fi a s t h e a n p a i r n v a a m il e d t e n u r s m b a r e r e i n o f v a c h il d a r f a c o r t e t h r s e s e n t c o m m t o a n t d h e t h p a u t l s e w g e a s s n e e n r a

.t

t o .r

C h e c k t

A h e b a d c o m c o m m a m a n d n d b e w i n g a s s s e e n t n t i s t o v a t h e il d , p o r u l s e t h a t g e t h n e e r a t o p u l s

.r

e

P g l e a e n s e e r a t c o r h e c k i s n t o o t r s u e e n n t h a t i n g .

t

T o h e m a e e n y p r o p a m r

.

a m e t e r s s e n t b a c k t o t h e P C .

T h i s i s a n i n t e r n a l e rr o r c a u s e d b y r

M s p a o e t n g o r e d e s .

i s s p e e d l e s s p r t o h a f n li e s t h e a r e m a s x e t s i n c o p e e d rr e c a n d lt y .

t h

P l a t e a t h s e e m a k e s p e e d s s u a r r e e t h w ti a t h i t n h e t h e b a ri s e v a il d t

T o h e t h r e e w e p r e u l s e n o g e p n e a r r a a t m o r e t e t h r a t s e s e n t x p e c t o t e t d h e t o p s u l s e e e p g e a r n e a m r a t o e t e r

.r

s

A a c tf e r o m t m a h e n d c w o m m a s a n s e d .

n t

ASCII Table for Direct Mode

A S C II S y m b o l

C a r ir a g e R e t u r n

0

7

8

5

6

3

4

1

2

9

A

B

H e x V a l u e

0 D

3 0

3 5

3 6

3 7

3 8

3 1

3 2

3 3

3 4

3 9

4 1

4 2

A S C II S y m b o l

C

D

$

+

V

!

-

_

M

S

G

H

H e x V a l u e

4 3

4 4

5 6

2 1

2 4

2 B

4 7

4 8

4 D

5 3

2 D

5 F

#L010184 April 2007

Copyright

Copyright 2005 by Anaheim Automation. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise, without the prior written permission of Anaheim Automation, 910 East Orangefair Lane, CA, 92801. The only exception to this would be use of the program examples in this manual.

Disclaimer

Though every effort has been made to supply complete and accurate information in this manual, the contents are subject to change without notice or obligation to inform the buyer. In no event will Anaheim

Automation be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation.

Limited Warranty

All Anaheim Automation products are warranted against defects in workmanship, materials and construction, when used under Normal Operating Conditions and when used in accordance with specifications.

This warranty shall be in effect for a period of twelve months from the date of purchase or eighteen months from the date of manufacture, whichever comes first. Warranty provisions may be voided if the products are subjected to physical damage or abuse.

Anaheim Automation will repair or replace at its option, any of its products which have been found to be defective and are within the warranty period, provided that the item is shipped freight prepaid, with RMA

(return material authorization), to Anaheim Automation’s plant in Anaheim, California.

Trademarks

Control Link and Driver Pack are registered trademarks of Anaheim Automation.

IBM PC is a registered trademark of International Business Machines, Inc.

A N A H E I M A U T O M A T I O N

#L010184 April 2007

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement