Specifications

SECTION 9 DIRECT PROGRAMMING
55
TERMINAL COMMANDS (SMTNR2-1 AND 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.
The terminal commands are used in conjunction with the Panel Mount Terminal (SMTNR2-1) or the Handheld
Terminal (TT1R2-1). The commands allow an SMC40 program to prompt an operator per operational information
needed to begin a cycle of operation. The instructions are Write Text , Write Value, Write ASCII, and Read Value.
Write Text allows the user to transmit a character string to the handheld terminal, which produces a character
string on the terminal display. Write Value allows the user to transmit a numerical value to the terminal display.
Write ASCII allows the user to transmit an ASCII character/code to the terminal display . The Read Value
command waits for a numerical value to be entered- a number terminated by a carriage return from the handheld
terminal – and stores it in the RV register.
WARNING: Do not connect PC Serial Port to the SMC40 Indexer at
the same time the Handle Terminal is connected. Damage may
occur to the serial port or handheld.
It is best to write your program, download the program via the serial
port, enable the autostart from the Program Menu, then power the
indexer down.
The RS232 cable must now be disconnected from the SMC40 and the
handheld terminal connector should be plugged into the telephone
connector J1. The final step now is to power up the SMC40 Indexer.
The sample program below demonstrates the terminal commands:
Lines 1 and 2 are used to clear the terminal display and home the cursur to the top left corner of the display using
the ESC E code. Line 3 is a text string that will be displayed on the LCD Screen. Line 4 is the command that drops
the cursur to column one of the next line. Line 5 will read a numerical value the user enters when excecuting the
program. Line 6 is a math application that will use the Register Value(RV), multiply it by 400 and set the x-axis
motor number equal to the result. Line 7 will index the motor the value stored in the Result Register. Line 8 is a
branch quit command required at the end of all programs.