AMS DCB-274 manual Read Moving Status, Write to NV Memory

Page 62

ADVANCED MICRO SYSTEMS, INC.

 

SMC-27X2 SOFTWARE

 

 

 

 

 

 

Command

Function

 

Type

NV Bytes

^

Read Moving Status

 

Immediate, Program

1

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

(Name) ^

None

 

None

Status

^ (Read Moving Status)

The host may use this command to determine the current moving status that exists within the SMC-27X2. A non-zero value indicates moving.

This command is normally used external from the controller’s non-volatile program. The command would look like:

^The result from this command would be a decimal number. Any number other than 0 indicates the controller is moving.

Command

Function

 

Type

 

NV Bytes

\

Write to NV Memory

 

Immediate

 

N/A

 

 

 

 

 

Mnemonic

Data 1

Data 2

Result

 

 

 

 

 

 

(Name) \ (a, d)

Address (0-2047)

Data (0-255)

None

\ (Write to NV Memory)

This command allows the programmer to modify any location in the memory. The command being changed must be done so in decimal format. Special step sequences may be entered, and all initialization constants may be changed. (Reference “Memory Map” in the beginning of this section for specific locations).

The life expectancy of the NV memory may be affected by this command. This command complements the Read NV Memory ( [ ) command. Addresses 128-191 in the NV memory are always written to (not the RAM).

This is a very powerful command and care must be taken not to overwrite other needed sections of the nonvolatile program. The example of this command is as follows:

AMS controllers are factory set with the following program example:

P 0

Enter program mode.

+1001 Move 1001 steps in the plus direction.

W 100 Wait 100 milliseconds.

- 1000 Move 1000 steps in the minus direction.

W 100 Wait 100 milliseconds.

Z 0

Display step position.

G 0 0

Go to location 0 and run stored program.

P

Exit program mode.

Let’s say you wish to change the G 0 0 section of the program to the soft stop command @. When you query the program it shows the G command at location 16. The decimal value for the @ command is 0. So, to change the G 0 0 command to a soft stop you would enter the following command line:

\ 16 0

5 6

Image 62
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 Current Read 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