0% found this document useful (0 votes)
12 views24 pages

Parameter Setting Tool - Operation Manual - 20130701

This document is an operation manual for a Parameter Setting Tool, detailing its functions, directory structure, and system overview. It outlines features such as application setting, NC parameter management, and print preview capabilities. The manual includes instructions for normal and edit modes, as well as error handling and file management procedures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views24 pages

Parameter Setting Tool - Operation Manual - 20130701

This document is an operation manual for a Parameter Setting Tool, detailing its functions, directory structure, and system overview. It outlines features such as application setting, NC parameter management, and print preview capabilities. The manual includes instructions for normal and edit modes, as well as error handling and file management procedures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Parameter setting tool

operation manual

Disclaimer: This document was translated from the Japanese original. In case of any
discrepancies, the Japanese original shall take precedence over the English
translation.

Oactober 17, 2008


Computer Engineering & Consulting, Ltd.
ID
Parameter setting tool Program design

Contents
1. Function overview ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 1

2. Directory and file structure ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 2

3. Setting file ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 3

4. System overview diagram ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 4

5. Function details ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 5

6. Normal mode

6.1 Retrieve and edit of setting va・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 8

6.2 Save of setting value ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 9

6.3 Reading of setting value ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 11

7. Edit mode

7.1. Edit of setting file ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 12

7.2 Save of comments ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 13

8. Print preview

8.1 Switch to print preview ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 15

8.2 Switch to list ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 16

8.3 Switch of displayed page ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 17

8.4 Print of documents ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 18

8.5 Print setting ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 19

8.6 Scaling ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 20

Attachment

1. List of error codes ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ 22


ID Page
Parameter setting tool Program design 1

1. Function overview

1.1 Function
This program realized the following three functions.

(1) Application setting function


(a) Configuration file reading function
Use this to incorporate setting, which is read from the setting file, into the application.
Following five items are set in the setting file.
1. Interface language setting
2. Comment edit switch setting
3. Number of setting axes
4. Number of setting systems
5. Number of setting spindles
6. Number of setting machines

(b) Master file reading function


Use this to read the master file, and maintain the standard value of each address.

(c) Display definition file reading function


Use this to read the display definition file and maintain the editable/uneditable status of each address.

(2) NC parameter setting


(a) NC parameter file reading function
Use this to maintain the setting value of each address read from NC parameter file.

(b) NC parameter file writing function


Use this to write the maintaining setting value of each address into the NC parameter file.

(c) NC parameter list function


Use this to display the list of maintaining address information.

(d) NC parameter edit function


Use this to edit the setting value of each address selected from the list.

(e) NC parameter retrieval function


Use this to display the specified address on the top of the list.

(g) Comment edit function


Use this to edit the comments of each address selected from the list.
(In the case that the system starts up in the comment edit mode.)

(f) Comment output function


Use this to write the edited comments into the display setting file.
(In the case that the system starts up in the comment edit mode.)

(3) Print preview function


(a) Print preview function
Use this to display the preview of the document print layout.

(b) Page up/down function


When the document has multiple pages, use page up/down button, or enter the page number directly to
display a page.

(c) Printing function


Use this to print documents.

(c) Print setting function


Use this to set the data area (normal/all) to display or print, and the paper size.

(e) Scaling function


Use this to change the scaling of print preview.

Person in
Date Correction charge
Remarks
ID Page
Parameter setting tool Program design 2

2. Directory and file structure

/ParameterSettingTool "root directory"



├―/system
The files in bold can be operated by
| └/master "Master data folder"
users.
| ├CNC-PARA.TXT "CNC parameter user file"
| ├PARA-COMMENT.CSV ""Display definition file"
| └EDITED-PARA-COMMENT.CSV "Display definition file" * When user edits

├―/user "User data folder"
| └CNC-PARA.TXT "CNC parameter user file"

├―/temp "Operation file folder" * The application creates. It is not the initial state.
| ├ ….emf "Image file for print layout"
| └ ….emf ⋮

├―/Template "Layout folder"
| └ReportTemplate.rdlc "Print layout template file"

├―/ja "multilingualization Japanese folder"
| └ParameterSettingTool.resources.dll "Japanese difference file"

├―/en "multiliingualization English folder"
| └ParameterSettingTool.resources.dll "English difference file"


├―ParameterSettingTool.exe "Application executable file"
└―ParameterSettingTool.ini "Application setting file"

Date Correction Person in Remarks


charge
ID Page
Parameter setting tool Program design 3

3.Setting file (ParameterSettingTool.ini)

//Interface language setting


[LANGUAGE]
//0:Japanese (standard)
To change the interface language, users must set
//1:English
the parameter directly.
Type=0
The application must be restarted for the change
//Operation mode
to take effect.
[MODE]
//0: Comments uneditable (standard)
//1: Comments editable
Edit=0
//Number of items of each type
[PARAMETER_COUNT]
//Number of single type items
Single=1
//Number of axis type items
Axis=32
//Number of system type items
System=9
//Number of spindle type items
Spindle=8
//Number of machine type items
Machine=3

Person in
Date Correction charge
Remarks
ID Page
Parameter setting tool Program design 4

4. System overview diagram

Main screen

ParameterSettin Setting file control class


gTool.ini Parameter list
(All)
List control Report view control

CNC- Parameter list


PARA.TXT (Edit data)

CNC- Data control class CNC-


PARA.TXT PARA.TXT

PARA- PARA-
COMMENT.CS COMMENT.CS

Explanatory note

・・・ File

・・・ Custom class

・・・ Standard control

・・・ Screen

・・・ Document

Person in
Date Correction charge
Remarks
ID Page
Parameter setting tool Program design 5

5. Function details

5.1 Main screen


(1) List display status
At the start of application, if all essential files (refer to Table 1 below) exist, the main screen is displayed.
If there is no essential file, error dialogue is displayed, and exits from the application.
If there is User edit comment file (EDITED-PARA-COMMENT.CSV), reads the user comment edit file.
If there is no User edit comment file, reads Master comment edit file (PARA-COMMENT.CSV).
Reads the standard value and setting value from the Master file (CNC-PARA.TXT).
* To re-edit the edited setting value, select "File" → "Open" to read.

Table 1 List of essential files


No File name Outline
1 ParameterSettingTool.ini Application setting file
2 CNC-PARA.TXT NC parameter file
3 PARA-COMMENT.CSV Application data file
4 ReportTemplate.rdlc Layout template file of print document

Figure 1 Main screen (list display)




③ ④

Table 2 Main screen (list display) screen layout


No Control Outline
① Menu bar Application operation menu
①-1 File Executes functions related to file. There are sub menus, such as "Open",
"Save parameter", and "Save comments (in the case of edit mode)".
①-2 Open Reads the specified data file.After reading, updates the list or the print preview.

①-3 Parameter Preservasion Outputs the setting value edited on the list to the specified folder and file name.

Outputs the setting value edited on the list to the predetermined folder. It can be
①-4
Comment Preservasion used in edit mode only.
* The output destination is fixed to "Application folder/system/master/
EDITED-PARA-COMMENT.CSV".
①-5 Report Preview This is a menu to switch the screen to print preview.
In the case of print preview display, this menu is not displayed.(toggle display with ①-6)
①-6 This is a menu to switch the screen to the list.
List In the case of list display, this menu is not displayed.(toggle display with ①-5)

Person in
Date Correction charge Remarks
ID Page
Parameter setting tool Program design 6

Table 2 Main screen (list display) screen layout (continued)


No Control Outline
Search criteria entry field. Enter the address to search.You can enter one-byte
①-7 Operable
numerals up to five digits.
If the address is less than five digits, add 0 to search. In that case, exact matching
is performed.
Inoperable Example: To enter "15", "00015" is OK. "0015*", "015**", and "015**" are not good.
(* is any of 0 to 9)
In the case of print preview display, this function is inoperable.
If the search criteria field is filled out, the search is executed. If the condition is not
①-8 Search Operable
entered, an error dialogue is displayed.
Search Inoperable If there is an address corresponding to the search criteria, scrolls to the row.
In the case of print preview display, this function is inoperable.
② Control box Maximizes/minimizes the screen, or exits from the application.
③ Data list Use this to display the list of data read from the file, and edit.
④ Scroll bar Scrolls the list.
(2) Print preview display status
Press Print preview menu to display.
Displays the data on the list as print preview.
Figure 2 Main screen (Print preview display status)


Table 3 Main screen (Print preview display status) screen layout


No Control Outline
① Print preview menu bar Print preview operation menu
First page button.If there are two or more pages in the print preview, use this to display the
①-1
first page.
When the first page is displayed, the displayed page is not changed by pressing this button.
Previous page button.If there are two or more pages in the print preview, use this to display
①-2 the previous page.
When the top page is displayed, the displayed page is not changed by pressing this button.
Go to page field.If there are two or more pages in the print preview, use this to display the
①-3
specified page.
If the entered page number is not effective, the error dialogue is displayed, and the displayed
page is not changed.
①-4 Number of pages.Displays the number of pages of print preview.

Next page button.If there are two or more pages in the print preview, use this to display the
①-5
next page.
When the last page is displayed, the displayed page is not changed by pressing this button.
Last page button.If there are two or more pages in the print preview, use this to display the
①-6
last page.
When the last page is displayed, the displayed page is not changed by pressing this button.

Person in
Date Correction charge Remarks
ID Page
Parameter setting tool Program design 7

TableMain screen (Print preview display status) screen layout (continued)


No Control Outline
①-7 Print button.After the confirmation dialogue is displayed, press "Yes" button to print.
When "No" button is pressed, cancel the print.
①-8 Print setting button.The print setting dialogue is displayed.

①-9 Zoom combo box. Use this to select the scaling of print preview.
When Full page display is selected, this function displays a page with the maximum
scale that the full page is displayed in the print preview screen.

② Print preview Use this to display the print preview.

(3) File select/save dialogue


Select "Open" and "Save parameter" to use.
Select "Open", "Save parameter", and the subject file.
Figure 3 File select dialogue Figure 4 File save dialogue

※ In both dialogues, the default folder is "Application folder/user/".

(4) Print setting dialogue


Press Print preview menu to display.
Display the data on the list as print preview.

Figure 5 Print setting dialogue


③ ④
TablePrint setting dialogue screen layout
No Name Outline
① Check box for display all Check box to change the display items (unchecked: normal, checked: all)
② Paper size combo box Use this to change the paper to print (refers to the "Default printer" of the PC).
Use this to incorporate the print settings entered through the dialogue into the print
③ OK button
preview.
④ Cancel button Use this to cancel the setting of print setting dialogue.

(5) Other dialogues


To display the application status, these dialogues will be displayed.

Figure 6 Confirmation dialogue Figure 7 Processing dialogue Figure 8 Preview creation dialogue

Person in
Date Correction charge Remarks
ID Page
Parameter setting tool Program design 8

6. Normal mode
The followings are the functions in normal mode.

6.1 Search and edit of setting value


(1) Start up the application.
(2) Search the address to edit.

① Enter the address to


search.

② Press Search button.

③ The cursor moves


to the searched row.
* If the row does not
exists, the cursor
does not move.
④ Go to the setting value
column to enter the value.
* If the value is not editable,
the cell is displayed in gray,
and it is not possible to enter

* If the input value is invalid, the following message is displayed, and the input value is cancelled.
Place the cursor on the cell. After a while, the tool tip is displayed. Please refer to that.

Error dialogue

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 9

6.2 Save of setting value


(1) Edit the setting value.

① Change the
setting value.

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 10

(2) Save the edited data.


① Press "File"

② Press " Save


parameter".

③ Select the
destination folder for
output files.

④ Enter the output


file name. ⑤ Press "Save"
button to output the
edited data.
Press "Cancel"
button to cancel the
output.

Note: The application users are responsible for troubles, such as overwriting of important files by
changing the destination folder and the file name.
Please pay enough attention to save the parameter.

*1 Default values are entered as the destination folder and the output file name.

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 11

6.3 Reading of setting value


(3) Read the data.

② Press "Open".

① Press "File" menu.

③ Select the folder to


read.

④ Enter the reading


file name. ⑤ Press "Open" button
to the read the data.
Press "Cancel" button
to cancel the reading.

*1 Default values are entered as the folder and the file name to read.

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 12

7. Edit mode
The followings are the functions in edit mode.

7.1. Edit of setting file


(1) Edit the setting file (ParameterSettingTool.ini).
Open ParameterSettingTool.ini in the application folder using a text editor, such as Notepad.
Change [MODE] section to Edit=1, and save it.
Note: If the setting file is rewritten incorrectly, there is a risk that the application is corrupted.
If a trouble is caused when the setting file is edited, the application user is responsible for that.
Please pay enough attention to edit the setting file.

(2) Start up the application.

① Entry to the
comment column is
enabled.

② Select the row to edit,


and edit the comment.

Person in
Code and date Correction charge
Remarks
ID Page
Parameter setting tool Program design 13

7.2 Save of comments


(1) Edit the comment.

① Edit the comment.

Person in
Code and date Correction charge
Remarks
ID Page
Parameter setting tool Program design 14

(2) Save the edited comment.


① Press "File" menu.

② Press "Save
comment".

③ The confirmation dialogue


is displayed.

④ Press "Yes" button to ⑤ Press "No" button to


output the edited data. cancel the output.

* It is not possible to change the destination of output and the file name of the comment file.
The destination of output is fixed to "Application folder/system/master/EDITED-PARA-COMMENT.CSV".

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 15

8. Print preview
The followings are the functions of print preview.
* Print preview is the same in normal mode and edit mode.

8.1 Switch to print preview


(1) Display the print preview.

① Press "Print preview"


menu.

② Print preview is
displayed.

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 16

8.2 Switch to list


(1) The list is displayed.

① Press "List" menu.

② The list is displayed.

Person in
Code and date Correction charge Remarks
ID Page
Parameter setting tool Program design 17

8.3 Switch of displayed page


(1) Change the displayed page.

① Enter the page number


to go to, in the field.

② Press Return key,


of move focus to confirm the entry.

If an invalid page is entered, the following dialogue is displayed,.

* Explanation is omitted for the buttons of the first page, previous page, next page, and the last page.

Person in
Code and date Correction charge
Remarks
ID Page
Parameter setting tool Program design 18

8.4 Print of documents


(1) Print the document.
① Press "Print" button.

②Print confirmation dialogue


is displayed.

③ When you press "Yes" button,


the document is printed.
When "No" button is pressed,
the print is cancelled.

8.5 Print setting


(1) Change the data and paper size to print
① Press "Print setting" button.

② The print setting dialogue is


③ Check/uncheck the check displayed.
box of display all.
Unchecked: normal display
(default)
Checked: all items are
displayed

④ Change the paper size.


Obtain the paper information
from the PC printer setting.

Go to the next page

Code and date Correction Person in Remarks


charge
ID Page
Parameter setting tool Program design 19

(2) Incorporate the print setting.

⑤ Check the check box for


display all, and
select A4 size paper.

⑥ To display all, the print


preview is updated.

ode and da Correction on in ch Remarks


ID Page
Parameter setting tool Program design 20

8.6 Scaling
(1) Change the scaling of print preview.

① Select a scale from the list.

② Print preview is
displayed with the selected
scale.

Person in
Code and date Correction charge
Remarks
ID Page
Parameter setting tool Program design 21

9. Operating environment

OS: Windows XP Professional

[Remarks]
This application is written in the C# language. Before operation, you need to install the following
package.
* The development environment is Visual Studio 2005 SP1.
(It is introduced by installing CX-ONE.)
Microsoft .NET Framework 2.0 Service Pack 1 (x86)
http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-
A7633F706BA5&displaylang=ja

Microsoft .NET Framework 2.0 Service Pack 1 (x86) Japanese Language Pack
http://www.microsoft.com/downloads/details.aspx?FamilyId=5F7F4632-C9C0-4E79-B269-
C2AEE9D1962E&displaylang=ja

Person in
Code and date Correction charge
Remarks
ID Page
Parameter setting tool Program design 22

Attachment 1. List of messages

No Message code Message text Contents


This message appears when the format is
not the specified one to edit the setting
1 A0000_ERR_INPUT_FORMAT Input format is invalid. values.
Example: Two or more decimal points were
input when a decimal point is allowed in a
ll message appears when the system
This
2 A0000_ERR_NO_COMMENT Failed to obtain comments. failed to obtain comments from PARA-
COMMENT.CSV.
This message appears when the system
3 A0000_ERR_NO_DEFAULT Failed to obtain the default. failed to obtain the default value from CNC-
PARA.TXT.
This message appears when a file required
4 A0000_ERR_NO_EXSIST_FILE File: {0} not found. for the application does not exist in the
specified folder.
This message appears when the system
failed to obtain the default value from the
5 A0000_ERR_NO_SETTING Failed to obtain the setting value.
CNC-PARA.TXT specified at reading the
setting value.
This message appears when the input value
6 A0000_ERR_OUT_OF_RANGE Input value is out of range. is out of the allowable range to edit the
setting value.

A0000_ERR_PRINTER_NOT_F This message appears when the printer is


7 Printer not found.
OUND not connected at the time of printing.
This message appears when characters
A0000_ERR_SEARCH_FORMA
8 Enter five-digit one-byte numbers. other than numbers were input as a search
T
criteria.
This message appears when you exit the
9 A0000_INFO_APP_EXIT Exit the application.
application.
This message appears in a confirmation
10 A0000_INFO_CONFIRM Do you want to continue?
dialogue.
This message appears when a non-existent
11 A0000_INFO_INVALID_PAGE The page is invalid. page number is entered in the Go to page
field of print preview.

12 A0000_INFO_PRINT The list is printed. This message appears when you print.
This message appears when you print all
13 A0000_INFO_PRINT_ALL All items are printed.
items.
14 A0000_INFO_REFRESH Preview is updated. Unused
This message appears when the comment
A0000_INFO_SAVE_COMMEN
15 Comment is saved. is saved while the system is running in edit
T
mode.
A0000_INFO_SEARCH_NO_IN This message appears when you perform a
16 Enter the search criteria.
PUT search without the search criteria.
A0000_INFO_SEARCH_NO_R This message appears when the search
17 The search criteria address not exist.
ESULT criteria address does not exist in the list.
Under processing.This process can take This message appears during application
18 A0001_INFO_PROCESSING
a few minutes. processing.

Person in
Code and date Correction charge Remarks

You might also like