AMS DCB-274 manual Overview, RS-232 Hardware, RS-422, SIN-7 / SIN-9 RS-232 Serial Adapter

Page 21

ADVANCED MICRO SYSTEMS, INC.

SERIAL INTERFACE

Overview

This Application covers the serial communication design for ADVANCED MICRO SYSTEMS, INC. (AMS) intelligent control products. These products include complete packaged systems, OEM boards, sub- assemblies, and I.C.’s. The basic design has remained constant over 20 years. All AMS products are based on the same core micro-controller family, which contain two-way serial communication using the standard ASCII characters used in virtually all computers.

Only two signals are used, TXD (transmitted data) and RXD (received data). The hardware interface for the two signals is one of two industry standards, either RS-232 or RS-422. These standards describe the physical wire layout and signal voltage swings. The brief descriptions here are those relevant to AMS product communications and do not include DTR, DSR, CTS, RTS, etc.

RS-232

Introduced in 1962, RS-232 has been widely used throughout the industry. This single ended transmission is useful only for short distances. The connector is either a 9 or 25 pin “D” connector. RS-232 includes a 3-wire interface using RXD, TXD and ground.

Typical voltage swings are –12 volts to +12 volts. The relatively high impedance and low speed limit both baud rates and wire length. In non-hostile environments and limited distance communications it will operate with 0 to +5 volt swing.

RS-232 can operate with one serial driver and one serial receiver at a maximum of 20k baud. For serious designs (even with one axis) we recommend the RS-422 mode of operation.

Stand-alone Operation

All AMS controllers include “non-volatile memory” to hold program sequences that, once inserted, can be triggered at power up via a switch closure or pulse input. Since the purpose of the serial interface in this application is only to enable insertion of the command sequences, RS-232 is adequate.

RS-422

RS-422 is a newer transmission system that incorporates a 2 wire per signal differential standard that is faster and useful at up to 400 feet at 1M baud or 4,000 feet at 100K baud. This 5-wire signal, full duplex interface includes RX+, RX-, TX+, TX- and Ground. This system is capable of driving up to 32 receivers (motor control axis) on a single “drop” bus. Voltage swings are 0 to +5 volts.

While not recommended, the RS-422 line receivers will withstand RS-232 levels. RS-232 receivers work with the lower 5-volt swing, permitting both single ended and differential operation.

RS-232 Hardware

There are two ways to configure AMS RS-232 products. The basic connection is single axis mode with a straight RS-232 connection using a SIN-7 serial adapter.

SIN-7 / SIN-9 RS-232 Serial Adapter

The SIN-7 is a DB-25 to RJ-45 adapter for single axis, RS-232 communication applications. The SIN-9 is a 9- pin version. These converters facilitate connection between a standard computer “D” connector output and AMS’ RJ-45 connector inputs.

Features include:

Connects computer or terminal to axis

Standard 25 pin or 9 pin connector for COM port

Passive - no power required

1 5

Image 21
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 After Sign-on Connect the MotorDual 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 CircuitEncoder Input Option J1 PortTypical Output Circuit Power Supply and Motor Connection J5 Step and Direction Inputs J1Encoder 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 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 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 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 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 TableCommand Format Description ESC Global Abort@ Soft Stop Port Read/Write ResetInputs OutputsProgramming Example Lower case B Fast and Slow Decay Set Jog SpeedsDivide Speeds Clear and Restore NV MemoryNormally Open Home Switch Normally Closed Home SwitchFind Home Special case Go Initial Velocity Step ResolutionLower 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 Limit Polarity Flag PLC Mode FlagMake Step and Direction Outputs Flag Moving Output FlagMove at a Constant Velocity Port 4 Input FlagGentle 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