AMS DCB-274 manual Clear and Restore NV Memory, Divide Speeds

Page 43

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

Multiple variables that interact include:

Operating step speed range

Step resolution

Motor size and characteristics

Load inertia and load damping affects

Supply voltage

Motor current setting

Acceleration and deceleration rates

Once the optimal settings are determined, they will apply to future production, provided all remains constant.

Command

Function

 

Type

NV Bytes

C

Clear and Restore NV Memory

Immediate

N/A

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

 

 

 

(Name) C (n)

0-8

 

None

Version

C (Clear and Restore NV Memory)

Previously stored programs are erased. Using a 1 forces complete NV memory initialization with factory default values with erasure of all previously stored programs. This MUST be done when new NV memory is installed or existing memory is corrupted. Frequent use of this command should be avoided, as memory longevity may be affected. This command should not be used within the non-volatile program memory. The “C 0” command simply reads the last stored values into the working registers.

Command

Function

 

Type

 

NV Bytes

D

Divide Speeds

 

Immediate, Program

2

 

 

 

 

 

Mnemonic

Data 1

Data 2

Result

 

 

 

 

 

 

(Name) D (n)

Resolution (1-255)

None

None

D (Divide Speeds)

All speeds during ramping and slewing are divided by the specified number (n). The pre -scale number may range between 1 and 255. Speeds as low as 4 1/2 steps per minute may be obtained. As “n” is increased, other parameters (internal speeds) must be increased to obtain a given output step speed.

Using a value of 2 is usually necessary to produce smoother acceleration characteristics at Full and Half step modes. The specified SPS must be doubled to recover the motor shaft speed. D should not be changed while moving at speeds that require ramping. The power-up settings are stored in NV memory.

This command is generally implemented during the initial customer default parameter assignment. However,

it may be implemented and changed within a program. Following, is an example:

 

P 0

Enter program mode.

 

 

 

 

D 10

Change the divider to 10.

 

 

 

P

Exit program mode.

 

 

 

 

 

 

 

 

 

 

 

Command

 

Function

 

Type

NV Bytes

E

 

Unused

 

 

 

2

 

 

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

 

 

(Name) E (n)

 

 

None

None

Unused. See “Y” command.

 

 

 

 

3 7

Image 43
Contents Nashua, NH Page Revision Date 07/05/06 Page Advanced Micro SYSTEMS, INC Addenum Limitations or Exceptions for the DCB-274 IntroductionProduct Overview FeaturesSIN-8 Required Hardware for OperationOut of the Box Quick Start Connect the Motor After Sign-onDual Ammeter Circuit Serial Interface J2, J3 Connections J1, J4 Advanced Micro SYSTEMS, INC HardwarePLC Mode- Sourcing Inputs Pin 7 VIO Reference InputInput Ports Standard Mode- Sinking InputsOutput Ports Typical User Input CircuitPort Encoder Input Option J1Typical Output Circuit Step and Direction Inputs J1 Power Supply and Motor Connection J5Encoder Inputs J1 Baud Rate Jumpers B1, B2 Typical Wiring Diagrams for Step MotorsPhysical SpecificationsElectrical EnvironmentalPhysical Dimensions RS-422 OverviewRS-232 Hardware RS-232RS-232 Daisy Chain connection Single axis, RS-232 connection using AMS SIN-7 adapterRS-422 Party Line Cable SpecificationsRS-422 Party Line Hardware Party Line ConnectRS-422/485 BUS-drop SIN-8 Serial AdapterSIN-8, RS-232 to RS-422 converter SIN-10 Intelligent Serial Adapter Other Party Line SignalsSIN-10, intelligent serial line converter Serial Communications Software Party Line ModeDaisy Chain Mode not recommended for more than 1 axis Serial Communications OverviewSign-On Serial Interface Using EasiBaud Rate Easi SoftwareExamine Command Daisy Chain Start-Up Simple Command ExamplesAxis Name Assignment Verify the Program NV Memory ProgrammingExecute the Program Edit Program Party Line and Daisy Chain Line CommandsSome Rules Party Line Startup Command ExampleAnatomy of Instruction Execution Command Cycle Examples Interrupt CommandsAdvanced Micro SYSTEMS, INC Serial Interface Advanced Micro SYSTEMS, INC Serial Interface Memory Map Non-Volatile Memory DetailsTurbo Ram Default TableESC Global Abort Command Format Description@ Soft Stop Outputs ResetPort Read/Write InputsProgramming Example Lower case B Fast and Slow Decay Set Jog SpeedsDivide Speeds Clear and Restore NV MemoryNormally Closed Home Switch Normally Open Home SwitchFind Home Special case Go Initial Velocity Step ResolutionJump to Address a, n+1 times Lower case I Restart Special TripRamp Slope Lower case K Trip Output Value Advanced Micro SYSTEMS, INC SMC-27X2 Software Lower case L Option Flags Loop on PortFlags and Numbers Moving Output Flag PLC Mode FlagLimit Polarity Flag Make Step and Direction Outputs FlagPort 4 Input Flag Move at a Constant VelocityGentle Limit Flag Set Origin Program ModeIndex Relative to Origin Trip Point SaveSet Slew Speed Lower case W Pre-energize WaitHold and Run Current ExamineRead Position Read Limits, Hardware Read NV MemoryIndex in Minus Direction + Index in Plus Direction\ Write to NV Memory Read Moving StatusName Axis Selective TerminationAMS SIN-11 Serial Adapter Party Line ModeAdvanced Micro SYSTEMS, INC Addendum Command SummaryCtrl Char Dec Hex Code Ascii Character CodeAbout Step Motor Current Step Motor CharacteristicsDetermining the Current Value Motor ChoiceBasic 8 Wire Motor Amps and Wire Count and PowerWire Motor Decay Control Application Notes V1.10 Double Speed CharacteristicsSerial Adapter Summary