The text of a manual · part 16 of 34
MCL-Designer for Phaser Series User's Guide: Chapter 4 Designing Programs, pages 117 to 126
Pages 117 to 126 of 288, from MCL-Designer for Phaser Series User's Guide
The original document is the PDF (3.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol P360 and Symbol P460
Page 117
Designing Programs
Read a Record In the Insert A Proces dialog box, click on Group Files and then click on Command Read a to open the File Read dialog box. This dialog box enables you to rea Record. Click on the fields of a record in a file and assign the fields content to a variable.
Figure 4-40. File Read Dialog Box File Name
Selects the file to read a record from.
If Record Not Found Sets the action to perform or the screen to go to if the record is not found. Search Record Mode
Selects the search mode: • First: first record • Last: last record • Next: next record • Previous: previous record • Current: current record • Key: If the file is sorted, sets a key to search the record • Recor #: If you know the record number in the file, search using Key 1 list box (= record number).
4-51
Page 118
MCL-Designer for Phaser Series User’s Guide
Key1/Key2
Selects a variable to search for when Key is selected in the Mode list box. Enter a record number whe Record# is selected in the Mode list box.
Fields To Read Field Name
Shows the fields in the selected file.
Length
Shows the length of the fields in the selected file.
Variable to Update
Selects the variable to be assigned to the field. Click on to open the Variable dialog box to create a new variable o select an existing variable. Refer to Working with Variables on page 4-92 for information on variables.
!
Click or to accept the default setting
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
to apply the
To read fields from a file and store them into variables: 1. Click on the Name list box to select the file in which to read the record (e.g. <A>FILE). 2. Click on the Goto list box to select the screen to goto if the record is not found. 3. Click on the Mode list box to select the mode to search. If Key or Record# is selected, select the appropriate variables in the Key list boxes. 4. Click
4-52 to select the variables to store the input in.
Page 119
Designing Programs
Delete a Record In the Insert A Proces dialog box, click on Group Files and then click on Command Delete to open the File Delete dialog box. This dialog box enables you to a Recor . Click on delete a record in a file.
Figure 4-41. File Delete Dialog Box File Name
Selects the file to delete a record from.
If Record Not Found Sets the action to perform or the screen to go to if the record is not found. Goto Search Record Mode
Selects the search mode: • First: first record • Last: last record • Next: next record • Previous: previous record • Current: current record • Key: If the file is sorted, you can set a key to search the record • Recor #: If you know the record number in the file, you can search using Key 1 (= record number).
Key1/Key2
Selects a variable to search for when Key is selected in the Mode list box. Enter a record number whe Record# is selected in the Mode list box.
4-53
Page 120
MCL-Designer for Phaser Series User’s Guide
!
Click or to accept the default setting
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
to apply the
To delete a record from a file: 1. Click on the File Name list box to select the file that holds the record that needs to be deleted (e.g., <A> FILE). 2. Click on the Mode list box to select the search mode (e.g., Record V_PROD). In order to prevent an excessive number of writes to a single block of flash memory, the Phaser does not support record updates in place. Modification of information previously written to a record is accomplished by a delete-and-append operation in the following way: !
perform a “Files: Read a Record” process, storing to temporary variables any field values that are not being changed,
!
perform a “Files: Delete a Record” process to delete the incorrect record,
!
perform a “Files: Write a Record” process to create a new record with the correct data.
Review File In the Insert A Process dialog box, click on Group Files and then click on Command Review to open the File Review dialog box. This dialog box enables you to view a File. Click on a file on the screen (browse records using the up and down keys).
Figure 4-42. File Review Dialog Box 4-54
Page 121
Designing Programs
File Name
Selects the file to delete a record from.
Options
Opens the File Review 2 dialog box.
Fields Selection Field Name
Shows the fields in the selected file.
Length
Shows the length of the field in the selected file.
View
Selects if the field displays on the screen.
Field Title
Sets the title for the field when it appears on the screen.
!
Click or to accept the default setting
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
to apply the
To review a file on the screen: 1. Click on the File Name list box and select the file to review (e.g., <A>Inventory). 2. Click in the appropriate View check box to select the fields to review 3. In the Field Title text box, enter a title for that field. The default value is Field X, where X is the field number.
4-55
Page 122
MCL-Designer for Phaser Series User’s Guide
4. Click to open the
File Review 2 dialog box.
Figure 4-43. File Review 2 Dialog Box
4-56
Start Review On..
Selects the field to start the review on. Click on the appropriate radio button to change the setting.
Fields Presentation
Sets the number of lines for the display of the file review. The file review can contain a maximum of 20 characters for each line. Therefore select: if the length of the field name is less 1 Line/Field than 20. to arrange the view according to the Auto length of the field name and it’s value. Space Separatorto insert a space to separate fields.
Allowed Functions
Sets keys to delete and search for a specific record in the file. Click the Delete Current Record check box t allow the user to select the key to delete a record. Click the Search a Record check box to allow the user to select the key to search for a record
Page 123
Designing Programs
Hot Keys.. Goto Clear
Selects the action to perform or the screen to go to when the CLR key on the scanner is pressed.
Enter
Selects the action to perform or the screen to go to when the Enter key on the scanner is pressed.
Erase File In the Insert A Process dialog box, click on Group Files and then click on Command Erase a on to open the File. Click File Erase dialog box. This dialog box enables you to erase an entire file.
Figure 4-44. File Erase Dialog Box File Name
Selects the name of the file to erase.
Note: Click to go to the Data File Window. For more information, refer to Working With Files on page 4-87 !
Click or to accept the default setting
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
to apply the
4-57
Page 124
MCL-Designer for Phaser Series User’s Guide
Seek In the Insert A Process dialog box, click on Grou Files and then click on Command Seek. Click on to open the File Seek dialog box. This dialog box enables you to look at a specific record in a file without reading it.
Figure 4-45. File Seek Dialog Box File Name
Selects the file to view.
If Record Not Found Sets the action to perform or the screen to go to if the record is not found. Goto Search Record Mode
Selects the search mode: First: first record Last: last record Next: next record Previous: previous record Current: current record Key: If the file is sorted, you can set a key to search the record
Key1/Key2
Selects a variable to search for when Key is selected in the Mode list box.
to Store Record number Writes the record number into a variable. Click on open the Variable dialog box to create a new variable, or into Variable select an existing variable. Refer to Working with Variables on page 4-92 for information on variables.
4-58
Page 125
Designing Programs
Note: Click to go to the Data File Window. For more information, refer to Working With Files on page 4-87 !
Click or to accept the default setting
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
to apply the
To look at a record in a file: 1. Click on the File Name list box to select a file (e.g. <A>FILE). 2. Click on the Mode list box to select the search mode. 3. Click on the Store Record number into Variable list box to store the record number of the selected record into a variable. 4. Click to select the variable.
Local File Check In the Insert A Process dialog box, click on Grou Files and then click on Command Local File Check. Click on to open the Local File Check dialog box. This dialog box enables you to check if a local file (in the scanner) exists.
Figure 4-46. Local File Check Dialog Box
4-59
Page 126
MCL-Designer for Phaser Series User’s Guide
Local Filename
Selects one of eight files to check.
If File Empty Goto
Selects the action to perform or the screen to go to when the file is empty
If File Not Empty Goto
Selects the action to perform or the screen to go to when the file is not empty
Note: Click to go to the Data File Window. For more information, refer to Working With Files on page 4-87 !
Click or
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
4-60 to accept the default setting to apply the