AMS DCB-274 manual Special case Go

Page 45

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

If “t” is a one, the TRACE mode is turned on. A display of the current step being executed is produced while the program is running. The list format is the same as that of the “Q” command The TRACE mode will be in effect until the program execution terminates or until an embedded ‘Go’ without the trace attribute is encountered.

The address range is 2047, depending on NV memory capacity. Address locations between 225 and 255 are reserved for parameter storage and may not be used in programs. The SMC-27X2 also features a special case for the “Go” instruction.

The controller is 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.

Special case “Go”

If the address is specified as 2048 (above the last NV memory address), the SMC-27X2 will read the input ports, then, branch to an address based on the state of input ports 1 through 4. In such case, each state of the input ports acts as a “go switch.” To prevent any confusion to the controller, each address should have a program associated with it even if it is simply “G 2048 0” to go back into the “branch to mode.” The target address starts at the second page of program memory, starting at address 256 with 16 character (byte) intervals. This instruction is analogous to “on PORT go to.”

 

 

 

 

 

Address of

Input Port State:

 

“Go -to”:

P1

P2

P3

 

P4

HEX

 

 

 

 

 

 

 

 

1

1

1

 

1

0

256

0

1

1

 

1

1

272

1

0

1

 

1

2

288

0

0

1

 

1

3

304

1

1

0

 

1

4

320

0

1

0

 

1

5

336

1

0

0

 

1

6

352

0

0

0

 

1

7

368

1

1

1

 

0

8

384

0

1

1

 

0

9

400

1

0

1

 

0

A

416

0

0

1

 

0

B

432

1

1

0

 

0

C

448

0

1

0

 

0

D

464

1

0

0

 

0

E

480

0

0

0

 

0

F

496

The physical input ports are internally inverted as part of the address computation. When the PLC jumper is in the STD mode (pins 1 and 2) a low is defined as a voltage above ½ VIO (no connect). A high is less than ½ VIO (GND).

When the PLC jumper is in the PLC mode (pins 2 and 3) the inputs are inverted. A low is defined as zero volts (no connect), a high is a voltage above ½ VIO mode jumper.

Commands located in address space between 129-191 will execute much faster.

3 9

Image 45
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