The text of a manual · part 14 of 34
MCL-Designer for Phaser Series User's Guide: Chapter 4 Designing Programs, pages 97 to 106
Pages 97 to 106 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 97
Designing Programs
Value
Enter the value to assign to a variable.
Result Variable Name
Selects the variable that the value is assigned to. Click o the to open the Variable dialog box to create a new 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
Combine In the Insert A Process dialog box, click on Group Variable and then on Command Combine. Click on the to open the Variable Combine dialog box. This dialog box enables you to combine all or part of variables into a new variable.
Figure 4-24. Variable Combine Dialog Box
4-31
Page 98
MCL-Designer for Phaser Series User’s Guide
Data/Variable
Enter a data string or select a variable from the list box.
Extract
Selects part of the variable.
Add Key Code
Enter a key code or select a key code from the list box.
Result Variable
Selects the variable that the value is assigned to. Click on the to open the Variable dialog box to select a 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 combine variables: 1. Click on the Data String list box to select a variable to combine (e.g., V_PROD). Note: This data string can also be a fixed value entered directly in the field (e.g., 134). 2. Click the Extract check box if only a portion of this variable is required. 3. If so, choose the position of the characters to extract using the From and To counter (e.g., 1 to 6). 4. Repeat steps 1 through 3 for the next variable (e.g., V_LOCAT). 5. Do not select Extract check box if all of the variable is to be used. 6. Click
4-32 to select the variable that contains the combined variables.
Page 99
Designing Programs
Format In the Insert A Process dialog box, click on Group Variable and then on Command Format. Click on the to open the Variable Format dialog box. This dialog box enables you to format a variable with a smaller length than the required length.
Figure 4-25. Variable Format Dialog Box Input Variable
Selects the input variable to format.
Length
Selects the new length of the variable.
Fill With
Sets the open spaces between the required length and the variable length. Click on the appropriate radio button to set the fill type.
On the
Sets the side of the variable that the fill characters will go on. Click on the appropriate radio button to select the side.
Result Variable
Selects the variable that the value is assigned to. Click on to open the Variable dialog box to create a new variable or select an existing variable. Refer to Working with Variables on page 4-92 for information on variables.
to accept the default setting
!
Click or
!
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-33
Page 100
MCL-Designer for Phaser Series User’s Guide
To format a variable: 1. Click on the Input Variable list box and select the input variable to format (e.g., V_CODE). 2. Using the up and down arrow button, select the new length for the variable (e.g., 10). 3. Click on Zero or Blank radio button to fill the open spaces with zeros or blanks. 4. Click on Left or Right radio button to place the open spaces on the left or the right of the variable. 5. Click to select a variable name to put the new format in.
Substring In the Insert A Process dialog box, click on Group Variable and then on Command Substring. Click on to open the Variable Substring dialog box. This dialog box enables you to remove a certain number of characters from a variable.
Figure 4-26. Variable Substring Dialog Box
4-34
Input Variable
Selects the input variable to remove characters from.
Substring
Selects the starting character and ending character to remove from the variable. Use the up and down arrow keys to select the character position.
Result Variable
Selects the variable that the value is assigned to. Click on to open the Variable dialog box to create a new variable or select an existing variable. Refer to Working with Variables on page 4-92 for information on variables.
Page 101
Designing Programs
!
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 remove characters from a variable: 1. Click on the Input Variable list box to select the variable to remove characters from (e.g., V_BARC). 2. Select From position and the To position (e.g., From position 1 to position 10 ). 3. Click to select the variable to save the string value.
Extract In the Insert A Proces dialog box, click on Grou Variable and then on Command Extract. Click on to open the Variable Extract dialog box. This dialog box enables you to extract a specified part out of a variable.
Figure 4-27. Variable Extract Window
4-35
Page 102
MCL-Designer for Phaser Series User’s Guide
Input Variable
Selects the input variable to extract a field from.
Extract
Selects the field number and the separator of the variable. Use the up and down arrow keys to select the field number.
Result Variable
Selects the variable that the value is assigned to. Click on the to open the Variable dialog box to select a 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 extract a field from a variable: 1. Click on the Input Variable list box to select the variable to extract (e.g., V_BARC). Input variable is: 123,abc,456,def. 2. Select the field to extract (e.g., 2). 3. Select the separator between the fields (e.g., (,) Comma). 4. Click to select the variable name to put the extract in. The result variable contains abc.
4-36
Page 103
Designing Programs
Length In the Insert A Process dialog box, click on Group Variable and then on Comman Length. Click on to open the Variable Length dialog box. This dialog box enables you to count the length of a variable.
Figure 4-28. Variable Length Dialog Box Variable to Measure
Selects the variable whose characters will be counted by this process.
Result Variable
Selects the variable that the value is assigned to. Click on to open the Variable dialog box to create a new variable or 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 determine the length of a variable: 1. Click on the Variable to Measure list box to select the variable to count (e.g., V_PROD). 2. Click to select the variable to save the length value.
4-37
Page 104
MCL-Designer for Phaser Series User’s Guide
Arithmetic In the Insert A Process dialog box, click on Grou Variable and then click on Command Arithmetic. Click on to open the Variable Arithmetic dialog box. This dialog box enable you to perform the following operations on a variable: !
add
!
subtract
!
multiply
!
divide
!
percent.
Figure 4-29. Variable Arithmetic Dialog Box
4-38
Value 1
Selects the first variable to perform the operation.
+, -, X, /, %
Sets the operation to perform on Value 1 variable.
Value 2
Selects the second variable to perform the operation.
Result Variable
Selects the variable that the value is assigned to. Click on to open the Variable dialog box to create a new variable or select an existing variable. Refer to Working with Variables on page 4-92 for information on variables.
Integer
Sets the integer format for the resulting variable.
Page 105
Designing Programs
Decimals
Sets the decimal format for the resulting variable.
Fill With
Fills the input field with zeroes or blanks. This is used when the input data is smaller than the required input.
Add Sign
Adds the sign to the result variable.
!
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 perform an arithmetic operation on a variable: 1. Click on the Value 1 list box and select one of the two variables/values (e.g., V_QUAN). 2. Click on one of the operation radio buttons (+, -, X, / or %). 3. Click on the Value 2 list box and select the other variable/value (e.g., 12). 4. Click to select the variable to save the result.
5. Select the Integer and Decimal formats for the resulting variable.
4-39
Page 106
MCL-Designer for Phaser Series User’s Guide
Branch Group Goto In the Insert A Process dialog box, click on Group Branch and then click on Command Goto. Click on to open the Goto dialog box. This dialog box enables you to set a goto function: !
a jump to another screen
!
a jump to a label (enter the label name directly)
!
a jump to a specific process
!
exit (or return to the main Menu).
Figure 4-30. Goto Dialog Box Goto
Selects a screen, label, or process to go to.
!
Click or
!
Enter the appropriate information to change the values and click changes.
!
Click to close the dialog box without saving the changes.
4-40 to accept the default setting to apply the