AMS DCB-274 manual Save, Trip Point

Page 55

ADVANCED MICRO SYSTEMS, INC.

 

SMC-27X2 SOFTWARE

 

 

 

 

 

 

 

Command

Function

 

Type

 

NV Bytes

 

S

Save Parameters to NV Memory

Immediate

 

1

 

 

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

 

 

(Name) S

None

 

None

None

 

S (Save)

The following parameters are saved in the NV memory and will be recalled as defaults during power-on reset:

1.NV memory addresses 128 through 191 (shadow RAM)

2.Initial velocity (I)

3.Slew velocity (V)

4.Divide factor (D)

5.Ramp slope (K)

6.Jog speeds (B)

7.Resolution mode (H)

8.Auto power down (E)

9.Limit polarity (l)

10.Name (for party line use)

11.Trip point settings

All of these parameters are saved as a block from the working registers in the SMC-27X2. Frequent use of this command should be avoided, as memory longevity may be affected.

Command

Function

 

Type

 

NV Bytes

T

Set and Enable Trip Point

 

Default, Program

4

 

 

 

 

 

Mnemonic

Data 1

Data 2

Result

 

 

 

 

 

 

(Name) T (n)

Position (±8,388,607)

Address (0-255)

None

T (Trip Point)

During motion operations, the position counter is continuously updated. If the trip point function is enabled, the position is continuously compared to the programmed trip position. When equality is detected, a trip event will be triggered. If a program is running, a call or "Go Sub" will be made to the specified address between 1 and 255.

Programs located at the specified address can perform almost any function, including turning on/off ports and setting new trip points. A trip point cannot be "reentered" i.e., when executing a trip subroutine and a new trip is set as part of the routine, the new trip cannot be triggered until the end of the first trip routine. Routines located between 128 and 192 will execute faster because of the "Shadow RAM" feature. Trip service routines should not contain index, wait or time consuming instructions.

Disable

To turn off the trip function, use 0 (zero) as the address parameter. The trip is not currently usable in the encoder mode. The following is an example (all commands are followed by a <CR>):

1. Write program to location 0 (zero).

P0

 

Enter program mode at address 0.

0

A8

Turn port 4 on.

2

+2000

Rotate motor 2000 steps in the plus direction.

6

P0

Exit program mode.

4 9

Image 55
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 SoftwareExamine 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