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

Models: DCB-274

1 72
Download 72 pages 34.52 Kb
Page 60
Image 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

Page 60
Image 60
AMS DCB-274 manual Read NV Memory, Read Limits, Hardware