AMS DCB-274 manual Reset, Port Read/Write, Inputs, Outputs

Page 40

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

An example of this command within a program in conjunction with the Loop on Port command as explained later is:

P 0

Enter program mode.

M 2000

Move at a constant step rate of 2000 SPS.

L0 0

Loop to memory address location 0 until port 1 is low.

@Decelerate and stop program execution.

P

Exit program mode.

 

 

 

 

 

 

 

 

 

 

 

Command

Function

 

Type

NV Bytes

^C

Reset Controller

 

None

N/A

 

 

 

 

 

 

Mnemonic

 

Data 1

 

Data 2

Result

 

 

 

 

(Name) ^C

 

None

 

None

None

^C (Reset)

Resets controller to power-up condition, waiting for start sequence. It is analogous to “Ctrl-Alt-Delete” - reboot the computer. All outputs are set high, defaults are reloaded from NV memory, and position is set to zero. This command may not be used within the non-volatile program memory. This does not modify the NV memory values.

Command

Function

 

Type

NV Bytes

A

Read/Write to Ports

 

Immediate, Program

2, 2

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

 

 

 

(Name) A (n)

0-129

 

None

Port Data

A (Port Read/Write)

This command controls the user input/output ports.

Inputs

The A129 command will read a value between 0 and 7 (or 0 and 15 if port 4 is configured as an input). Output ports are not read.

Ports 1, 2, and 3 (flags 1, 2 and 4) are input ports only. The PLC option flag 8 inverts the sense of these inputs. Refer to “l” (lower case L) command for option flag information.

Port 4 is configurable as either an input or output, with jumpers.

Port 4 defined as

JP1

JP2

 

 

 

Input

2-3

1-2

Output

1-2

Open

Port 4 as an input:

1.Install JP1and JP2.

2.Insure that P4 input option flag 32 (“ lcommand) is on.

Outputs

One or two user outputs are available. They will withstand in excess of 30 Vdc and will sink over 1 amp to a low voltage when turned on. In the off state (after reset and power-up) they have a weak pull up resistor to VIO.

3 4

Image 40
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 Connect the Motor After Sign-onDual Ammeter Circuit 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 PortsPort Encoder Input Option J1Typical Output Circuit Step and Direction Inputs J1 Power Supply and Motor Connection J5Encoder 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 LineRS-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 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 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 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 RamESC Global Abort Command Format Description@ Soft Stop Reset Port Read/WriteInputs OutputsProgramming Example Set Jog Speeds Lower case B Fast and Slow DecayClear and Restore NV Memory Divide SpeedsNormally Closed Home Switch Normally Open Home SwitchFind Home Special case Go Step Resolution Initial VelocityJump 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 PLC Mode Flag Limit Polarity FlagMake Step and Direction Outputs Flag Moving Output FlagPort 4 Input Flag Move at a Constant VelocityGentle Limit 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