AMS DCB-274 manual Party Line and Daisy Chain Line Commands, Edit Program, Some Rules

Page 31

ADVANCED MICRO SYSTEMS, INC.SERIAL INTERFACE

Edit Program

Example: It is desired to change instruction number 21 from 500 steps to 5,000 steps:

Enter

Remark

P21<CR>

Edit instruction 21.

R5000

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

“ESCape”

Terminates Edit mode.

Note: Caution should be exercised when making Program Edits in dumb terminal mode due to variations in command byte length that may effect subsequent command address locations and possible corruption of non-volatile memory storage. It is recommended that application programs be developed using the menu driven program (Party Line selection) in the EASI diskette, which includes a sophisticated Editor and Compiler.

Party Line and Daisy Chain Line Commands

Note: If a SIN-10 is used in the “intelligent” mode, then the following rules will not apply because the SIN-10 will perform the necessary handshake.

The SMC series controllers incorporate a buffered UART input, capable of receiving and holding ONE character at a time. The controller must read this character before another one is received; otherwise the UART will be over-run, resulting in missed character errors.

The handshake method used is a simple “echo” of the received character. The host computer MUST ALWAYS wait for the echo.

Fixes such as insertion of delays between characters may seem to work but will ultimately fail. Beware that many PLC manufacturers do not provide the serial software flexibility required for your application to make the proper communication.

(The SIN-10 adapter provides handshaking functions and other features to make life simpler and reduce software development time).

Some Rules

1.The first character of a command MUST be the “name” character assigned to the axis.

2.The command line terminator MUST be a Line Feed character.

3.The name must be preceded by an LF (presumably the terminator for the previous command), i.e., <LF>“n” xxxxxxx <LF>.

Note: An LF can be generated using a Ctrl–Enter key combination on a PC.

The first Line Feed “resets” the command buffer for all axes. The controller then tests the character immediately following a Line Feed. If this character matches the assigned “name,” the axis will interpret the following characters (up to 12) as an input command. If the axis does NOT detect a proper name and command, then the data is simply echoed back to the terminal. The designated controller re -issues the Line Feed after processing the command.

If the command is of the type that results in a data output (such as “Z”), then the data (result) will be inserted before the Line Feed. The Line Feed does NOT indicate that a move or other time consuming command is finished but only initiated. The terminal can interrogate the motion status using the appropriate command to determine if a function is complete. Editing features are NOT supported in daisy chain or party line operation.

Note: the commands “Control C” and “ESCape” do NOT require the use of, and will NOT be qualified by, a “name” prefix. All devices will respond.

2 5

Image 31
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 Software Examine 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