Specifications
SECTION 9 DIRECT PROGRAMMING
53
TALKING WITH A TERMINAL (TT1R2-1)
WARNING: DO NOT CONNECT THE PC AND HANDHELD TO SMC40 AT THE SAME TIME.
DOWNLOAD PROGRAM AND THEN TEST WITH HANDHELD AFTER DISCONNECTING FROM PC.
Start Communications
Press CTRL and SHIFT simultaneously and while holding down on those two buttons press F1. This will
now display the terminal parameters. Press F2 to scroll through the parameters. Set the Address and the
Baud Rate on the SMC40 Indexer switches first (Pg 24), then set the Baud Rate on the Terminal. Press F1
to scroll through the different settings available. The SMC40 Indexer will communicate by sending the
characters back, so be sure to have the Terminal with the Echo = Disable set.. Data Bit = 7, Parity =
Space, Display PE = Disable, Repeat = Fast, Handshake = Disabled, and Self Test = Disabled.
Note: Always set the Terminal to Full Duplex On (FD1) when programming commands. Standard
Communications Settings are 8 Bit with No Parity. The TT1R2-1 will accomplish this buy setting the
Data Bit = 7 and the Parity = Space. AL = 1 will allow the commands to be entered one per line as
shown in the example below.
Connect the Terminal
Type @0 ( where 0 is the axis you dialed in SW3 )
Notice that the Status LED should start to blink rapidly on the indexer.
Type ID
This should return the version number of the chip - like “SMC40”
Example of Entering a Short Program
@0 ‘select axis 0
ID ‘chip type
“SMC40”
VN ‘version number
“0”
AL1 ‘Auto -Linefeed On
FD1 ‘Full Duplex
PI1LB TOP ‘Label Top
PI2XMH1 ‘Current Motor Hold/ Power Off
PI3XMM4000 ‘Program Insert at line 1, Max Speed = 4000
PI4XMB500 ‘Base Speed = 500
PI5XMN400 ‘Distance = 400
PI6XGR ‘Go Relative
PI7XWM ‘Wait Motor until motion is complete
PI8BG TOP ‘Branch Goto Label Top
PS ‘Program Start
Motion should start at this point and your stored program will begin to execute.
Note: To stop this stored program inserted you need to type @0 then Enter.
Example of a Short Program on the X Program
XPI1XMH1 ‘Current Motor Hold/ Power Off
XPI3XMM4000 ‘Program Insert at line 1, Max Speed = 4000
XPI4XMB500 ‘Base Speed = 500
XPI5XMN800 ‘Distance = 800
XPI6XGR ‘Go Relative
PS ‘Program Start
Note: To stop this stored program inserted you need to type @0 then Enter.










