AMS DCB-274 manual NV Memory Programming, Verify the Program, Execute the Program

Page 30

ADVANCED MICRO SYSTEMS, INC.

SERIAL INTERFACE

The initial input sequence MUST be a Line Feed (LF) character followed by a valid “name” character in the standard ASCII collation sequence. Once the recognized sequence is received, the controller will assume the name until a hardware reset is made. The first axis in the string will output the Line Feed character followed by the next higher ASCII character in the character set. This sequence continues until all axes have assigned names. If the first valid usable “name” character is an upper case “A” the controller will be assigned the prefix name “A” then output a “B” to the next axis controller in line. Four Daisy Chained axes would then assume the names of “A”, “B”, “C” and “D.” Sign on messages are NOT generated. The last controller will respond with a Line Feed and character representing the last name plus one (“E” in this example).

Once the names are assigned (after every reset) the communications is same as party line protocol.

NV Memory Programming

The above examples were samples of immediate commands. The following is a sample sequence used to store a sequence in the non-volatile memory. Note that when programming, the sequence is immediately written to non-volatile memory without any additional action required to save it. This example starts at location “0” of NV memory. Other segments can reside at any free location.

 

Enter

Remark

 

P0<CR>

Place in Program mode. Insert instructions at location 00.

Address

 

 

0

O0<CR> Set Origin to zero.

1

R10000<CR>

Move 10,000 steps in the “+” direction, relative to Origin.

6

W 0<CR>

Wait until complete.

9

R -10000<CR>

Move 10,000 steps in the “-” direction, relative to Origin.

14

W00<CR>

Wait until complete.

17

J1 3<CR>

Jump to address 1, 3 times.

21

R500<CR>

Move 500 steps in the “+” direction, relative to Origin.

26

P0<CR>

End Program.

Now list the stored program

 

Q<CR>

Query command.

Verify the Program

The controller will respond with:

0

O

 

 

1

R

10000.00

 

6

W

0

 

9

R

-10000.00

14

W

0

 

17

J

1

3

21

R

500.00

 

26

 

 

 

Execute the Program

 

 

Enter

 

Remark

 

G0 1<CR>

Programs start executing at location zero. If the Trace option is on, it will display

 

 

 

each instruction prior to execution.

Note: This same program can also be triggered by pulsing the “Go” input and the program can be terminated at any time by hitting the ESCape key.

2 4

Image 30
Contents Nashua, NH Page Revision Date 07/05/06 Page Advanced Micro SYSTEMS, INC Addenum Introduction Limitations or Exceptions for the DCB-274Features Product OverviewRequired Hardware for Operation SIN-8Out of the Box Quick Start After Sign-on Connect the MotorDual Ammeter Circuit Serial Interface J2, J3 Advanced Micro SYSTEMS, INC Hardware Connections J1, J4Standard Mode- Sinking Inputs Pin 7 VIO Reference InputInput Ports PLC Mode- Sourcing InputsTypical User Input Circuit Output PortsEncoder Input Option J1 PortTypical Output Circuit Power Supply and Motor Connection J5 Step and Direction Inputs J1Encoder Inputs J1 Typical Wiring Diagrams for Step Motors Baud Rate Jumpers B1, B2Environmental SpecificationsElectrical PhysicalPhysical Dimensions RS-232 OverviewRS-232 Hardware RS-422Single axis, RS-232 connection using AMS SIN-7 adapter RS-232 Daisy Chain connectionParty Line Connect Cable SpecificationsRS-422 Party Line Hardware RS-422 Party LineSIN-8 Serial Adapter RS-422/485 BUS-dropSIN-8, RS-232 to RS-422 converter Other Party Line Signals SIN-10 Intelligent Serial AdapterSIN-10, intelligent serial line converter Serial Communications Overview Party Line ModeDaisy Chain Mode not recommended for more than 1 axis Serial Communications Software Easi Software Serial Interface Using Easi Baud Rate Sign-OnExamine Command Simple Command Examples Daisy Chain Start-UpAxis Name Assignment NV Memory Programming Verify the ProgramExecute the Program Party Line and Daisy Chain Line Commands Edit ProgramSome Rules Command Example Party Line StartupAnatomy of Instruction Execution Interrupt Commands Command Cycle ExamplesAdvanced Micro SYSTEMS, INC Serial Interface Advanced Micro SYSTEMS, INC Serial Interface Non-Volatile Memory Details Memory MapDefault Table Turbo RamCommand Format Description ESC Global Abort@ Soft Stop Inputs ResetPort Read/Write OutputsProgramming Example Set Jog Speeds Lower case B Fast and Slow DecayClear and Restore NV Memory Divide SpeedsNormally Open Home Switch Normally Closed Home SwitchFind Home Special case Go Step Resolution Initial VelocityLower case I Restart Special Trip Jump to Address a, n+1 timesRamp Slope Lower case K Trip Output Value Advanced Micro SYSTEMS, INC SMC-27X2 Software Loop on Port Lower case L Option FlagsFlags and Numbers Make Step and Direction Outputs Flag PLC Mode FlagLimit Polarity Flag Moving Output FlagMove at a Constant Velocity Port 4 Input FlagGentle Limit Flag Program Mode Set OriginIndex Relative to Origin Save Trip PointSet Slew Speed Wait Lower case W Pre-energizeExamine Hold and Run CurrentRead Position Read NV Memory Read Limits, Hardware+ Index in Plus Direction Index in Minus DirectionRead Moving Status \ Write to NV MemorySelective Termination Name AxisParty Line Mode AMS SIN-11 Serial AdapterCommand Summary Advanced Micro SYSTEMS, INC AddendumAscii Character Code Ctrl Char Dec Hex CodeStep Motor Characteristics About Step Motor CurrentMotor Choice Determining the Current ValueAmps and Wire Count and Power Basic 8 Wire MotorWire Motor Application Notes V1.10 Double Speed Characteristics Decay ControlSerial Adapter Summary