AMS DCB-274 manual Serial Communications Overview, Serial Communications Software, Party Line Mode

Page 26

ADVANCED MICRO SYSTEMS, INC.

SERIAL INTERFACE

4.Party Select (pin 8). Each axis tests this input after reset (power up or in response to a ^C command) to determine either single or party line mode. Single mode (ONLY one axis connected) is used for debug, programming for stand-alone use or assignment of party line “name”. The SIN-8 has a switch to manually select party line (P) or Single (S) mode. The SIN-10 is selectable via host commands or a built in mode switch.

Serial Communications Overview

There are three methods (protocols) used to send and receive command and data from an AMS controller (axis):

1. Simple “Dumb” Communications

This is accomplished by connecting one single axis to the computer. Commands can be typed in and the controller will execute them. The designer can also enter program sequences into the NV memory and execute them. Virtually every capability can be explored. It is a “human friendly” interface and NEVER a computer controlled operation.

Serial adapters used: SIN-7 / SIN-9, SIN-8, or SIN-10.

At start -up:

1.If using a SIN-8 or SIN-10 serial adapter, make sure it is in “single-line” mode.

2.Hit the SPACE BAR key to sign on after reset.

2.Party Line Mode

Party line mode is intended for computer-controlled designs. A computer (usually a PC) can address one or more axis using a “mini drop” network implemented with CAT-5 network cable with RS-422/485.

Between 1 and 32 axis are configured as “slaves.” Unlike the “Dumb” mode, a proper character by character echoed protocol is necessary for proper operation. The SIN-10 adapter will simplify this protocol.

Serial adapter used: SIN-8 or SIN-10.

At start -up:

1.Make sure the serial adapter is in “party line” mode.

2.The host computer interrogates and records axis name(s).

3.Daisy Chain Mode (not recommended for more than 1 axis)

This older protocol is similar to the party line mode but RS-232 protocol is used. Because it involves special wiring of RXD to TXD signals, it should only be used with a single axis design. When multiple axis are implemented they are less reliable, communication speeds are slower and troubleshooting is difficult.

The only advantage is that the name can be dynamically assigned by the host computer on power up sequence and the computer protocol can be implemented with the lowest cost RS-232 adapters.

Serial adapters used: SIN-7 or SIN-9. At start-up:

1. The host computer emits axis #1 name, receives ending axis name +1.

Serial Communications Software

Today’s computers are mostly a derivative of the IBM PC. Almost all of these computers include at least one serial RS-232 connection. For those without “COM” ports, low cost serial cards are available.

For many years PC’s have used DOS as the basic operating software. In recent years however, Windows has replaced DOS in many applications. So, the system designer must make choices about the application requirements.

2 0

Image 26
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 Dual Ammeter Circuit After Sign-onConnect the Motor 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 PortsTypical Output Circuit Encoder Input Option J1Port Encoder Inputs J1 Power Supply and Motor Connection J5Step and Direction 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, 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 Serial Communications Overview Party Line ModeDaisy Chain Mode not recommended for more than 1 axis Serial Communications SoftwareEasi Software Serial Interface Using EasiBaud Rate 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 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 Ram@ Soft Stop Command Format DescriptionESC Global Abort Inputs ResetPort Read/Write OutputsProgramming Example Set Jog Speeds Lower case B Fast and Slow DecayClear and Restore NV Memory Divide SpeedsFind Home Normally Open Home SwitchNormally Closed Home Switch Special case Go Step Resolution Initial VelocityRamp 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 Make Step and Direction Outputs Flag PLC Mode FlagLimit Polarity Flag Moving Output FlagGentle Limit Flag Move at a Constant VelocityPort 4 Input 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