AMS DCB-274 manual Non-Volatile Memory Details, Memory Map

Page 37

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

Non-Volatile Memory Details

The SMC-27X2 uses the X24C16, a 2048 byte EEPROM. A worst case of 4 bytes per instruction yields a capacity of 500 commands. These devices are rated to retain data for 100 years. As with all EEPROMS, the number of times it may be re-programmed is limited. Each time a cell is written a small number of electrons are trapped in the dielectric. After many write cycles the dielectric becomes less effective and the cell cannot retain its charge. The write life cycle endurance rating is constantly being improved. At this time a life in excess of 1 million cycles is available.

To extend the life of the EEPROM in your device it is necessary to be aware of which commands of the SMC-27X2 perform writes to the EEPROM, and eliminate those which are not needed. For example, the RESTORE command (“C 0”) will retrieve the parameters from the EEPROM without doing a write. If the INITIALIZE command (“C 1”) was chosen, the first 256 BYTES of EEPROM are written. If you require a sequence of motions to be done without host attention, break-up the motions into sub-groups rather than repeatedly programming the EEPROM. Then use the GO from address command to execute the sub-groups in the required sequence.

Note: Use the SAVE command sparingly. The SMC-27X2 parameters are set so quickly, even in SERIAL mode, that you should let the host download them..

Changing parameters should NOT be done by writing directly to EEPROM. The SMC-27X2 won’t recognize that it was changed and may over-write them. Use the commands available to set parameters. Reading on the other hand is non-taxing on the EEPROM. The DIVIDE factor is readable at 229 (0E5 hex). Trying to read and write Initial and Slew velocities from the EEPROM will be confusing as they are stored as timer reload values. Use the EXAMINE command (“X”) in SERIAL mode.

Memory Map

The following locations are accessible through the NV memory read/write commands:

Decimal

Description

 

 

0-127

User program or data storage

128-191

Shadow program area

1601

Trip routine

192-226

Unused

227

Configuration byte

228

Internal initial status byte (Do NOT modify)

229

Divide factor (D)

230-1

Initial velocity low and high bytes (I)

232-3

Pointer value (I)

234-5

Slew speed (V) low and high bytes

236-7

Pointer value (V)

238

Low speed jog value (B)

239

High-speed jog value (B)

240

Acceleration ramp factor (K)

241

Deceleration ramp factor (K)

242-244

Trip Point low, mid and high bytes

245

Port value for trip (“k” data)

246

Resolution

247

Name

248

 

256-2047

User program or data storage

256-5111

Branch area power up commands

1600-20472

User program power up commands

1Committed only when specific command is being used, otherwise used as general-purpose storage. Locations 247 thru 255 are protected from the “Clear” command. Most of the data contained in these locations is in binary and should not be tinkered with.

2If a valid command exists at location 1600 through 2047 it will be executed on power up.

3 1

Image 37
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 HardwareInput Ports Pin 7 VIO Reference InputStandard Mode- Sinking Inputs PLC Mode- Sourcing 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 MotorsElectrical SpecificationsEnvironmental PhysicalPhysical Dimensions RS-232 Hardware OverviewRS-232 RS-422RS-232 Daisy Chain connection Single axis, RS-232 connection using AMS SIN-7 adapterRS-422 Party Line Hardware Cable SpecificationsParty Line Connect RS-422 Party LineRS-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 Daisy Chain Mode not recommended for more than 1 axis Party Line ModeSerial Communications Overview Serial Communications SoftwareBaud Rate Serial Interface Using EasiEasi Software Sign-OnExamine 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 Port Read/Write ResetInputs OutputsProgramming 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 Limit Polarity Flag PLC Mode FlagMake Step and Direction Outputs Flag Moving Output 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