EasyManua.ls Logo

Mitsubishi Electric MELFA BFP-A8787-F - Page 57

Mitsubishi Electric MELFA BFP-A8787-F
132 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
Loading...
5Read Current Line of Robot Program
How to Operate Program 5-46
[Number of program characters]
Outputs the number of characters of target line in the target program.
Count and specify the number of characters from the leading to final character (exclusive of line feed/ ter-
minating characters) including comment line (exclusive of line number).
When the target line is longer than 128 characters, up to 128 characters are read as a program data, but
the number of counted characters is set as-is as the number of program characters.
When writing into a program, the number of characters of written line is set.
[Program data]
• The data is in ASCII format and up to 128 characters of program content are stored.
• Shift JIS codes are used for kanji.
• Line number is excluded from the program data.
MOV P1 ' Move to the aimed position <CR>
PHOSEI=PBASE*INV(PTOOL)*PDATA ' Calculate······································· correction calculation <CR>
Example 1: A line is less than 128 characters:
Specify the number of characters from the leading to the final character (exclusive of
terminting character)
25
Number of program characters
Example 2: A line is more than 128 characters:
Specify the number of characters from the leading to the final character (exclusive of
terminting character)
132
Number of program characters
Stored in program data area (25 characters + terminating code (0))
Stored in program data area (128 characters)

Table of Contents

Related product manuals