Mitsubishi Electric CR750-Q Instruction Manual page 265

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

(9) Logic numbers can be described in the condition expression. If the logic number is not 0, then it is true
(the condition is met), and if 0, it is false. Therefore, a description such as one below can be used.
Example) If M_IN(900) Then M_Out(30)=1
When the input signal 900 is on, it is processed as true (M_In(900) = 1). Consequently, the description
following Then is executed.
When the input signal 900 is off, it is processed as false (M_In(900) = 0). Consequently, the description
following Then is not executed.
Input (Input)
[Function]
Inputs data into a file
[Format]
Input[]#<File No.>, <Input data name> [, <Input data name>] ...
[Terminology]
<File No.>
<Input data name> Describe the variable name for saving the input data. All variables can be described.
[Reference Program]
1 Open "COM1:" AS #1
2 Input #1, M1
3 Input #1, CABC$
:
10 Close #1
[Explanation]
(1) Data is input from file having the file No. opened with the Open statement, and is substituted in the vari-
able. If the Open statement has not been executed, an error will occur.
(2) The type of data input and the type of variable that is substituting it must be the same.
(3) When describing multiple variable names, use a comma (,) between variable names as delimiters.
(4) When the Input statement is executed, the status will be "standby for input. "The input data will be substi-
tuted for the variables at the same time as the carriage return (CR and LF) are input.
(5) If the protocol (in the case of the standard port: the "CPRC232" parameter is 0) of the specified port is for
PC support (non procedure), it is necessary to attach "PRN" at the head of any data sent from a PC. Nor-
mally, the standard port is connected to a PC and used for transferring and debugging robot programs.
Therefore, it is recommended to use the optional expansion serial interface if a data link is used.
(6) If the number of elements input is greater than the number of arguments in the Input statement, they will
be read and discarded.
When the End or Close statement is executed, the data saved in the buffer will be erased.
Example) To input both a character string, numeric value and position.
10 Input #1,C1$,M1,P1
Data sent from the PC side
(when received by the standard port of the robot: the "CPRC232" parameter is 0)
PRN MELFA,125.75,(130.5,-117.2,55.1,16.2,0,0)(1,0) CR
MELFA is substituted in C1$, 125.75 in M1, and (130.5, -117.2,55.1,16.2,0,0)(1,0) in P1.
[Related instructions]
Open
(Open),
Close
(including communication lines)
Describe a number between 1 and 8.
This corresponds to the file No. assigned with the Open command.
' Assign RS-232-C to file No. 1.
' The value will be set to the numerical variable M1 if data are inputted from the
keyboard.
'
(Close),
Print (Print)
. Only AscII character data can be received.
Detailed explanation of command words 4-245
4MELFA-BASIC V

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents