Professional Documents
Culture Documents
Inport program of ISO text is a special tool, which is supplied apart from CNC90 Installation disks.
Software file IMPORT.EXE is generally installed in CNC90 working directory, defined by environment
ROOT variable.
Message file IMPORT.LNG should be installed in CNC90 message directory, defined by environment
DIRLING variable (generally is : DIRLING=C:\CNC90\LINGUE).
1 by "External Program" available in CNC90 menu (see appendix C). Batch file IMP.BAT is available for
such process, installed in CNC90 system directory.
IMPORT.EXE program can be started with or without argument. In the first case when the process is ended
control returns to operating system.
In the second case, argument should input return modes, on a complete path name. Assume following starting
example :
IMPORT E :\UTILI\TOOL.EXE <--'
First 6 records head the file : define working general modes, without assigning executing files.
Records numbered from 7° till file end are definition records of operating command : either import or erasure
program.
1° RECORD
<78 CHAR>
Program import directory of ISO source.
If all spaces are defined : current directory is considered valid.
If defined, directory must exist.
Setting example :
<A:\EXAMPLE >
2° RECORD
<78 CHAR>
Writing directory of IMPORT.ERR error file.
If all spaces are defined : current directory is considered valid.
If defined, directory must exist.
Setting example :
<A:\EXAMPLE\ERRORS >
IMPORT Program 3
3° RECORD
Setting examples :
<1004> define : RR=10, CC=4
< 00> define : display not present.
4° RECORD
C1 and C2 should be defined by two figures each, with values valid from "00" to "15".
In case of C1 and C2 value equal or not correct, default value are assumed : C1="00" (black)
and C2="07' (white), with white writings on black background display.
Setting examples :
<1201> define : C1=12 (colour : light red), C2=1 (colour : blue).
<1212> define C1=C2=12 : in this case default values are set C1="00" e C2="07".
4 IMPORT Program APPENDIX F
5° RECORD
<20 CHAR> :
6° RECORD
<3 CHAR>
extension of all mother programs. Extension is significant only in case of mother programs
loading from external directory.
Setting examples :
<SRG> all mother programs should have extension "SRG".
< > mother programs have no extension
IMPORT Program 5
DimL significant only on import command : defines son program length 8 CHAR
dimension. Related Unity measure : [mm] or [inch], as 4.3 or 5.2
programmed on mother program.
Non significant if defined by spaces.
DimH significant only on import command : defines eight dimension of 8 CHAR
son program. Related Unity of measure : [mm] or [inch], as 4.3 or 5.2
programmed in mother program.
Non significant if defined by spaces.
DimS significant only on import command : defines thickness 8 CHAR
dimension of son program. Related Unit of measure : [mm] or 4.3 or 5.2
[inch], as programmed on mother program.
Non significant if defined by spaces.
Comment significant only on import command : defines son program 25 CHAR
comment.
Non significant if defined by spaces.
Command character of command definition or response of command 1 CHAR
Answer execution:
C = import command
G = import command + compiling
K = erasure command
c = correct setting
g = correct setting + compiling
k = correct erasure
6 IMPORT Program APPENDIX F
<A:\EXAMPLE >
<C:\CNC90\MOD1\TEMPOR >
<1010>
<0015>
<1000 >
<SRG>
<001PROOF K>
<002 NOME 1000.0001000.000 30.000 IMPORTATION n.1 C>
<003PR1 NOME 1000000800.000 IMPORTATION n.2 G>
2 first 6 heading records are read by command file : in case of non significant data processing is aborted
and a warning message is displayed.
Error conditions found in this first stage cause :
a) video setting in text way on 80 columns;
b) warning message display;
c) import program exit.
(29) ERROR : video mode can't be set different than starting one
Error refers to record number 5 checking and means a discordance between video mode setting and
setting defined on the 1° character of the field introduced in the record.
command C
requires mother program import, with eventual reintroduction of :
name (field data : PrgSUN)
dimension/s (fields data : DimL, DimH, DimS)
comment (field data : Comment).
Import procedure requires PrgSUN introduction in CNC90 program file, updating programs directory
file. In particular : PrgSUN program is not compiled. Used CNC90 environment should be defined on
set environment variables.
Import procedure may cause error situations; in general, the following errors can be found: ISO text
format, ISO text incongruency with machine parameters, working disk entering.
command G
requires mother program import on PrgSON, with the same modes examined for command C :
PrgSON is also compiled.
command K
requires erasure of PrgSUN program found in CNC90 file..
IMPORT Program 9
4 when the command is ended as explained in preceding point 3, command character written in current
record :
a) is substituted with correspondent character of small letter, if import/erasure has not found error situation;
b) on the contrary it is not changed.
Procedure goes on in this way untill defined commands on IMPORT.CMD file are fulfilled.
When reading and processing commands listed in IMPORT.CMD file current operating mode and warning
messages are displayed only if IMPORT.CMD file allocates a video position messages management (record
number 3).
On the contrary video messages are not displayed.
Warning messages display lasts 2 seconds and a beep is heard : during visualisation, current processing can
be interrupted; press ESC to abort IMPORT.EXE program processing.
In case of imports/erasure programs procedures wrong, such conditions are stored on an error file. The file is
IMPORT.ERR and it is recorded on the second record of command file directory. In the above example :
C:\CNC90\MOD1\TEMPOR.
Error file format is explained in the following paragraph.
10 IMPORT Program APPENDIX F
<A:\EXAMPLE >
<C:\CNC90\MOD1\TEMPOR >
<1010>
<0015>
<1000 >
<SRG>
<001PROOF K>
<002 NOME 1000.0001000.000 30.000 IMPORTATION n.1 C>
<003PR1 NOME 1000000800.000 IMPORTAZION n.2 G>
Suppose to start IMPORT.EXE program from CNC90 working directory, located on environ
ROOT=C:\CNC90.
IMPORT.CMD file is defined by 9 record : the first 6 for heading and the following 3 for commands.
Directory for IMPORT.ERR error file recording is : C:\CNC90\TEMPOR.
Mother program allocation are :
a) read out from external tracks;
b) reading directory : A:\EXAMPLE;
c) common extension : SRG.
<001PROOF K>
it is an import and compiling command on NAME mother program. Mother program is read :
A:\EXAMPLE\NAME.SRG
When calling Editor-CNC90 module in non interactive mode, diagnostic error is recorded on
CNC90.ERR error file, with queuing mode of following diagnostic messages.
CNC90.ERR file is recorded in directory defined by DIRTMP environment variable.