EasyManuals Logo

Trio Motion Coordinator MC216 User Manual

Trio Motion Coordinator MC216
566 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 #242 background imageLoading...
Page #242 background image
8-52 Trio BASIC Commands
Input / Output Commands
Trio Motion Technology
Note:
IN
is equivalent to
IN(0,23)
Example:
Test if either input 2 or 3 is ON.
If (IN and 12) <> 0 THEN GOTO start
‘ (Bit 2 = 4 + Bit 3 = 8) so mask = 12
INPUT
Type:
Command.
Description:
Waits for a string to be received on the current input device, terminated with a car-
riage return <CR>. If the string is valid its numeric value is assigned to the specified
variable. If an invalid string is entered it is ignored, an error message displayed and
input repeated. Multiple inputs may be requested on one line, separated by com-
mas, or on multiple lines, separated by <CR>.
Example1:
INPUT num
PRINT "BATCH COUNT=";num[0]
On terminal:
123 <CR>
BATCH COUNT=123
Example2:
getlen:
PRINT ENTER LENGTH AND WIDTH ?";
INPUT VR(11),VR(12)
This will display on terminal:
ENTER LENGTH AND WIDTH ? 1200,1500 <CR>
Note:
This command will not work with the serial input device set to 3 or 4, i.e. the fibre
optic port, as the received codes are not ASCII 0..9. It is also not possible for a pro-
gram to use the serial port 0 as the command line process will remove the charac-
ters. Programs needing a “terminal” style interface should use one of the channel 6
to channel 7 ports if using Motion Perfect.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Trio Motion Coordinator MC216 and is the answer not in the manual?

Trio Motion Coordinator MC216 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC216
CategoryController
LanguageEnglish

Related product manuals