AMS DCB-274 manual Read NV Memory, Read Limits, Hardware

Page 60

ADVANCED MICRO SYSTEMS, INC.

SMC-27X2 SOFTWARE

 

 

 

 

 

 

 

 

 

Command

Function

 

Type

 

NV Bytes

 

[

Read NV Memory

 

Immediate

 

N/A

 

 

 

 

 

 

 

 

Mnemonic

 

Data 1

Data 2

Result

 

 

 

 

 

 

 

 

 

 

Displayed

 

 

(Name) [

 

Address (0-2047)

Sequential Bytes (0-255)

Values

 

[(Read NV Memory)

The user may display any byte of the 2047 byte external NV memory. The address specifies the desired location to access. At addresses 128-191 the NV memory is always Read (not the RAM). The data contained at the specified location is output as a decimal value.

This command is normally used external from the controller’s non-volatile program. Example:

[ 0 20 The result from this command would be 20 sequential bytes starting at location 0 and finishing at location 19.

Command

Function

 

Type

NV Bytes

]

Read Limits, Hardware

 

Immediate, Program

2

 

 

 

 

 

Mnemonic

Data 1

 

Data 2

Result

 

 

 

(Name) ]

0-1

 

None

Status

] (Read Limits, Hardware)

This command allows the user to examine the status of the various switch inputs. The result will contain the state of the limit switch inputs and current phase outputs in binary values as follows:

Decimal value:

128

64

32

16

8

4

2

1

Bit position:

7

6

5

4

3

2

1

0

SMC-27X2:

Lb

La

Hm

P5

P4

P3

P2

P1

Where:

La = Limit “a” switch

Lb = Limit “b” switch

Hm= Home switch (32 = low input)

P 0-5= Ports 1-5 (see “A” command)

“] 1” Read other inputs:

This command reads other inputs; some of which can be used by external applications under the condition that the SMC-27X2 does not use them. For instance, if the jog speeds are set to zero, the three jog inputs could be used as general-purpose inputs.

Decimal value:

128

64

32

16

8

4

2

1

Bit position:

7

6

5

4

3

2

1

0

SMC-27X2:

JOG-S

JOG2

JOG1

*

*

*

*

*

The returned number is converted to an 8-bit byte, each bit represents the state of the specified data. This command is normally used external from the controller’s non-volatile program. Example:

] 0 The result from this command would be in decimal format indicating what I/O port is active.

5 4

Image 60
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 After Sign-on Connect the MotorDual 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 PortsEncoder Input Option J1 PortTypical Output Circuit Power Supply and Motor Connection J5 Step and Direction Inputs J1Encoder 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 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 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 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 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 RamCommand Format Description ESC Global Abort@ Soft Stop Reset Port Read/WriteInputs OutputsProgramming Example Set Jog Speeds Lower case B Fast and Slow DecayClear and Restore NV Memory Divide SpeedsNormally Open Home Switch Normally Closed Home SwitchFind Home Special case Go Step Resolution Initial VelocityLower 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 PLC Mode Flag Limit Polarity FlagMake Step and Direction Outputs Flag Moving Output FlagMove at a Constant Velocity Port 4 Input FlagGentle 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