AMS DCB-274 Computer Hardware User Manual


 
ADVANCED MICRO SYSTEMS, INC. SMC-27X2 SOFTWARE
54
Function Type NV Bytes
Read NV Memory Immediate N/A
Command
[
Mnemonic
(Name) [
Data 1
Address (0-2047)
Data 2
Sequential Bytes (0-255)
Result
Displayed
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.
Function Type NV Bytes
Read Limits, Hardware Immediate, Program 2
Command
]
Mnemonic
(Name) ]
Data 1
0-1
Data 2
None
Result
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.