AMS DCB-274 manual Daisy Chain Start-Up, Axis Name Assignment, Simple Command Examples

Page 29

ADVANCED MICRO SYSTEMS, INC.

SERIAL INTERFACE

Axis Name Assignment

Whenever the application is controlled via a “host” computer the proper protocol (handshake) MUST be used. Either the programmer must write the necessary serial, echoed character-by-character software (driver), or implement a SIN-10 for the proper handshake.

In any case a unique name must be assigned and stored in the NV memory. EVEN A SINGLE, ONE AXIS

SYSTEM REQUIRES PARTY LINE OR DAISY CHAIN PROTOCOL.

AMS software searches for axis names starting with A, B, C, etc. While X, Y, or Z might be more descriptive, it can take a longer time to scan. Recommended names are as follows:

Recommended Names:

 

 

(Upper case A through Z)

 

 

(Lower case a through z)

Non-valid Names:

ASCII

HEX

ASCII

HEX

 

 

 

 

[

5B

^C

03

\

5C

CR

0D

]

5D

LF

0A

^

5E

@

40

-

5F

 

 

60

 

 

Assign the axis name:

1.Reset the controller to cycle power (5 volts) or enter control C (^C).

2.Type the single (case sensitive) name character (once only).

3.Follow the name with a SPACE BAR. The sign-on message will appear.

4.Enter the X<CR> command. The name will show at the end of the echoed line.

5.Issue the S<CR> store command (saves name in NV memory).

6.Reset as in step one.

7.Sign on with the space character.

8.Use the X<CR> command to verify the proper name.

The name is now stored in the NV memory.

Note: The controller will accept any character as a name, including control characters. Two common error characters show up as either a space ‘ ‘ or ^C (heart symbol). In either case, reset and do it over.

The unit is ready to operate in the current single axis mode or be switched over to party line mode. It is suggested that the operator use single mode first to become familiar with command input. The single axis mode can be used with any “dumb” terminal device and is not dependant on using the AMS software.

Simple Command Examples

The single axis mode can be used to familiarize the designer with some commands.

1.Issue the command: “R -1000”<CR>. The motor should move.

2.Issue the “Z”<CR> command. The position (-1000) should be displayed.

Daisy Chain Start-Up

Multiple axes (controllers) may be interconnected directly (daisy chained) using the controller logic levels or buffered with line driver-receivers. All baud rate settings MUST be the same. Characters are received by the first controller input (RXD), and then echoed to the next controller (RXD->TXD) in the serial link. The host terminal/computer receives characters from the last axis (TXD) in the link. The closed loop communications assures the integrity of data.

2 3

Image 29
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 Dual Ammeter Circuit After Sign-onConnect the Motor 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 CircuitTypical Output Circuit Encoder Input Option J1Port Encoder Inputs J1 Power Supply and Motor Connection J5Step and Direction 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 LineSIN-8, RS-232 to RS-422 converter SIN-8 Serial AdapterRS-422/485 BUS-drop SIN-10, intelligent serial line converter Other Party Line SignalsSIN-10 Intelligent Serial Adapter Daisy Chain Mode not recommended for more than 1 axis Party Line Mode Serial Communications Overview Serial Communications SoftwareBaud Rate Serial Interface Using EasiEasi Software Sign-OnExamine Command Axis Name Assignment Simple Command ExamplesDaisy Chain Start-Up Execute the Program NV Memory ProgrammingVerify the Program Some Rules Party Line and Daisy Chain Line CommandsEdit Program 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 Table@ Soft Stop Command Format DescriptionESC Global Abort Port Read/Write ResetInputs OutputsProgramming Example Lower case B Fast and Slow Decay Set Jog SpeedsDivide Speeds Clear and Restore NV MemoryFind Home Normally Open Home SwitchNormally Closed Home Switch Special case Go Initial Velocity Step ResolutionRamp Slope Lower case I Restart Special TripJump to Address a, n+1 times Lower case K Trip Output Value Advanced Micro SYSTEMS, INC SMC-27X2 Software Flags and Numbers Loop on PortLower case L Option Flags Limit Polarity Flag PLC Mode FlagMake Step and Direction Outputs Flag Moving Output FlagGentle Limit Flag Move at a Constant VelocityPort 4 Input 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