EasyManuals Logo

Toshiba TS3100 Communications Manual

Toshiba TS3100
174 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #29 background imageLoading...
Page #29 background image
STE 80722
– 24 –
COMMUNICATION MANUAL
series Robot Controller
Selecting a task to be performed (COM1)
PROGRAM SELECT
K = 0
START:
PRINT COM1, "STR"
SELECT:
INPUT COM1, K
GOTO(K) L1, L2, L3
PRINT COM1, "NG"
GOTO FIN
L1:
(Task 1)
GOTO FIN
L2:
(Task 2)
GOTO FIN
L3:
(Task 3)
GOTO FIN
FIN:
END
In this program, the external device tells the
controller what task is to be performed.
First, the controller will send the character string
STR to the external device. The external device
will send back a number which specifying task the
controller (robot) is to perform. The controller
reads in this number as variable K, which is then
used in the GOTO ( ) command to branch the
program to the appropriate task.
Task 1 will be performed if the value of K is 1,
Task 2 if the value is 2, and Task 3 if the value is
3. If the value of K is anything else, the controller
will send the character string NG
(non-acknowledge) back to the external device.
Should program execution have been suspended
while the controller was waiting for the number to
come in, variable K will be taken as 0 when the
program is resumed. In this case also, the
controller will send the character string NG back to
the host computer.

Other manuals for Toshiba TS3100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Toshiba TS3100 and is the answer not in the manual?

Toshiba TS3100 Specifications

General IconGeneral
BrandToshiba
ModelTS3100
CategoryController
LanguageEnglish

Related product manuals