![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/0/62/06299bfb-a560-44eb-81db-024bbc109314/06299bfb-a560-44eb-81db-024bbc109314-bg28.png)
ADVANCED MICRO SYSTEMS, INC. SMC-27X2 SOFTWARE
34
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.
Function Type NV Bytes
Reset Controller None N/A
Command
^C
Mnemonic
(Name) ^C
Data 1
None
Data 2
None
Result
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.
Function Type NV Bytes
Read/Write to Ports Immediate, Program 2, 2
Command
A
Mnemonic
(Name) A (n)
Data 1
0-129
Data 2
None
Result
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 (“l” command) 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.