AMS DCB-274 manual Party Line Startup, Command Example

Page 32

ADVANCED MICRO SYSTEMS, INC.

SERIAL INTERFACE

The party line sequence can be sent using the dumb terminal. Caution must be used because any typo’s cannot be corrected with a backspace, as is possible in the single axis mode. You must cancel with the ESCape and start over. Remember ESC is a global abort character.

Party Line Startup

The programmer can verify the presence of the axis on power up by:

1.Sending a linefeed<lf> character.

2.Sending a good “name” character.

3.Waiting for echo of same name.

4.Sending a <lf>.

5.Repeating 2 thru 5 for each axis in system.

Command Example

The following example assumes two controllers are connected with name assignments of “X” and “Y.” The characters are echoed back to the host as a handshake function. The host awaits each individual character. Timeout routines should be used to prevent processor hang-up.

Index 1000 steps for axis X

Output from Host:X + 1 0 0 0 (LF)

Response from named controller: X + 1 0 0 0 (LF)

Index 500 steps for axis Y

 

Y

-

5

0 0 (LF)

Output from Host:

Response from named controller:

Y - 5

0

0

(LF)

Read Motion Status

The returned decimal value (xx, yy) represents the motion status. When both least significant bits are zero (“and” with 3), the motion is stopped.

Output from Host:

 

 

X ^

(LF)

Response from named controller:

X

^

xx

(LF)

Output from Host:

 

 

Y ^

(LF)

Response from named controller:

Y

^

yy

(LF)

Read Position

Input from Host:X Z (LF)

Response from named controller: X Z 1000 (LF)

Note: Response is the position data requested from axis X. The handshake must be character-by- character confirmation.

Example: the +1000 command

Host sends “X”, host waits for “X” echo.

Host sends “+”, host waits for “+” echo.

Host sends “1”, host waits for “1” echo.

Host sends “0”, host waits for “0” echo.

Host sends “0”, host waits for “0” echo.

Host sends “0”, host waits for “0” echo.

Host sends “LF”; host waits for “L” echo.

Example: Read Position

Host sends “X”, host waits for “X” echo. Host sends “Z”; host waits for “Z” echo. Host sends “LF”; host waits for “LF” echo.

While waiting for the LF the host receives the “1000” data and stores it into the position value.

2 6

Image 32
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, J4Pin 7 VIO Reference Input Input PortsStandard Mode- Sinking Inputs 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, B2Specifications ElectricalEnvironmental PhysicalPhysical Dimensions Overview RS-232 HardwareRS-232 RS-422Single axis, RS-232 connection using AMS SIN-7 adapter RS-232 Daisy Chain connectionCable Specifications RS-422 Party Line HardwareParty 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 Party Line Mode Daisy Chain Mode not recommended for more than 1 axisSerial Communications Overview Serial Communications SoftwareSerial Interface Using Easi Baud RateEasi 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 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 Reset Port Read/WriteInputs 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 PLC Mode Flag Limit Polarity FlagMake Step and Direction Outputs 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