Architect User's Manual-4302010

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 46

®

Architect
User’s Manual

DOC. NO. UM-PT202-03


Version 1.10
February 2010
TABLE OF CONTENTS
Chapter 1: Introduction ...........................................................................1
Features......................................................................................................................... 1
System Requirements...................................................................................... 2
Installing the Software ..................................................................................... 2
Opening the Software....................................................................................... 6
Chapter 2: Architect® Interface ...................................................................7
Main Menu....................................................................................................... 7
File Menu....................................................................................................................7
Define Menu .......................................................................................8
Setup Menu ........................................................................................9
Build Menu ..........................................................................................9
Tool Menu ........................................................................................ 10
View Menu ....................................................................................... 10
Window Menu .................................................................................. 10
Help Menu........................................................................................ 11
Toolbars .........................................................................................................11
Main Toolbar .....................................................................................11
Node Toolbar .................................................................................................13
Windows ........................................................................................................13
Chapter 3: Creating a New Project ............................................................14
Step 1: Configure Project Settings.......................................................................14
General Page ................................................................................... 14
AID Setup Page ............................................................................... 15
Record Page .................................................................................... 15
Barcode Page................................................................................... 15
Bluetooth Page................................................................................. 15
Step 2: Create Nodes ...................................................................................16
Note Node .........................................................................................16
Display Node..................................................................................... 16
Input Node ........................................................................................ 19
Operand Node .................................................................................. 25
Program Node .................................................................................. 28
Transmit Node................................................................................... 29
Bluetooth Trans................................................................................. 30
Step 3: Create Links...................................................................................... 31
Step 4: Create the Record File...................................................................... 34
Step 5: Compile and Simulate ...................................................................... 37
Compile the Project .......................................................................... 37
Simulate the Application ................................................................... 38
Step 6: Configure the Communication Settings ........................................... 39
Step 7: Download the Application to the Terminal........................................ 40
Chapter 4: Sample Project.......................................................................... 41
How to Make This Project............................................................................. 42
ARCHITECT® USER’S MANUAL 1
Chapter 1: Introduction

Introduction
Architect® is a Windows-based software program use to create
and directly upload applications for use with PT-20 series
Terminals. Its’ user-friendly interface provides users the
simplicity in designing a project suitable for their business needs.
It is
similar to drawing objects and lines on a piece of paper.
Architect® is designed for novice and advanced users. Unlike
customary methods, basic programming is required to develop
an application. But with Architect’s node functions, novice
users can develop an application.. For more advanced users,
the program
node offers versatility that allows users to define basic
commands to execute.
Architect® incorporates a systematic project flow: create,
design, compile, simulate and download.

Features
• Reduces operation cost. There is no need to purchase a
separate compiler.
• User-friendly. Architect uses nodes and drag-and-drop
functions to create and define project properties.
• Systematic flow. Projects can be easily understood and
maintained.
• Uses Basic language. To cope with more complex business
demands, Architect® supports Basic programming input
and utilizes Basic Interpreter to compile applications.
• Comes with additional tools. Architect® also comes with a
built-in Simulator and PT FileManager®. For more details,

1
1 ARCHITECT® USER’S MANUAL

see “Simulator on page 38” and PT File Manager on


Introduction
page 40.

System Requirements
Before you start installing the software, make sure that your
computer meets the following system requirements:
• IBM Intel 80586 or above
• Microsoft Windows XP / 2000 / Vista
• 64 MB RAM
• 5 MB hard disk space for software installation
NOTE: Install Basic Interpreter in the Terminal to ensure
compatibility when running projects created with Architect.

Installing the Software

1. Insert the installation CD in your CD-ROM drive and locate


the setup file.
2. Double-click “Architect Vxxx.exe”. The window on the
below appears. Click .

2
ARCHITECT® USER’S MANUAL 1
3. The setup wizard will check your computer and display the

Introduction
window below. Click Next.

4. Read the License Agreement. Click “I accept the terms of


the license agreement”, then click Next.

NOTE: The installation will be cancelled if you click “I do not accept


the terms of the license agreement”.

3
1 ARCHITECT® USER’S MANUAL

5. Enter User Name and Company Name information, then


Introduction
click Next.

6. Select the type of installation, then click Next.

4
ARCHITECT® USER’S MANUAL 1
7. Click Install to begin installation.

Introduction
8. The progress window appears.

5
1 ARCHITECT® USER’S MANUAL

9. When setup is complete, click Finish to exit the wizard.


Introduction

Opening the Software


After installing the software, two shortcut icons should appear
on your desktop, Architect® and PT FileManager®. To run
Architect®, double-click the desktop icon.
If the shortcut icons do not appear on the desktop, click the
Start button >All Programs or Programs > Argox
Applications >Terminal >Architect.

6
ARCHITECT® USER’S MANUAL 2
Chapter 2: Architect® Interface

Architect® Interface
This chapter describes the Architect user interface: main menu,
toolbars and windows. It is important to be familiar with these
functions to maximize the features of Architect®.
Main
Main Menu
Toolbar

Nodes
Toolbar
Project
window

Status Bar
The Archichtect® Application Interface

Main Menu
The main menu appears at the top of
the application window. It consists of
the following menu items:File ,
Define , Setup , Build , Tool , View,
Window and Help


File Menu

Submenu Shortcut Key Description


New Ctrl + N Creates a new project.
Open Ctrl + O Opens an existing project.

7
2 ARCHITECT® USER’S MANUAL

Submenu Shortcut Key Description


Architect® Interface
Close Closes the current project.
Save Ctrl + S Saves the project.
Save As Saves the project to a new file.
Print Ctrl + P Prints the visual representation of the
project.
Print Preview Previews the visual representation of
the project.
Print Setup Sets printer properties.
Exit Closes the software program.

Define Menu
The Define Menu is used to create and setup records and nodes
of the project. It consists of the following submenu: Project,
Note, Display, Input, Operand, Program, Transmit, BT Trans
and Link. To view and modify the project and record settings,
click
Define > Project. See “Creating a New Project” on page 14 for
more information.
To add nodes, click Define > the node you want to add.

After you select any of these items, move


the mouse pointer to the project window,
notice that the mouse icon corresponds
to the node that you selected, then click
on the area where you want to place the
node.
See “Step 1: Configure Project Settings”
on page 14 for more information.

8
ARCHITECT® USER’S MANUAL 2
Setup Menu

Architect® Interface
The Setup Menu is used to configure file records and
communication settings.
Submenu Description
New Record Creates a new file to save the data records. See
“Step 4: Create the Record File” on page 34.
Record Setting Views and modifies existing record settings. See
“Step 4: Create the Record File” on page 34.
Communicate Configures the communication port where the
Terminal is connected and sets baud rate. See “Step
6: Configure the Communication Settings” on
page 39.

To access these items, click a submenu to open its window.

Build Menu
The Build Menu is used to compile a project and create batch
files.
Submenu Description
Compile Compiling means to process an
information to form usable codes that
the Terminal understands. After a project
has been compiled it is now an
application.
To compile a project, click Build >
Compile. An Output window appears to
list any errors. See “Compile the Project”
on page 37 for more information.
Batch Build Build the project for faraway user.

9
2 ARCHITECT® USER’S MANUAL

Tool Menu
Architect® Interface
The Tool Menu is used to simulate and download an
application.
Submenu Description
Simulator Loads the Simulator to test how the application
will run on the Terminal.
Download Opens the PT FileManager to download the
application to the Terminal.
Download BI Opens the PT FileManager to download the Basic
Interpreter file.

See “Step 5: Compile and Simulate” on page 37.

View Menu
The View Menu allows you to display or hide the following:
Toolbar, Node Toolbar, Status Bar, Output, and Language.
When you click on an item, a checkmark
appears indicating that the item has been
selected to be displayed on the Architect®
application window. To hide it, uncheck the
item.

Window Menu
The Window Menu allows you to define how you want the
project windows to be displayed. It has the following options:
• Cascade: Displays project windows on top of the other.

10
ARCHITECT® USER’S MANUAL 2
• Tile: Displays project windows on a tile format without

Architect® Interface
overlapping each other.

Opened projects are listed here. A checked file name


indicates that the project is activated.

Help Menu
The Help Menu contains help topics and the software version
of Architect®.

Toolbars
The Toolbars act as shortcuts for common functions.
Main Toolbar
Icon Operation Description
New Creates a new project.
Open Opens an existing project.
Save Saves the project.
Print Prints the visual representation.

Print Preview Previews how the visual representation will be


printed.
New Record Creates a new record file.
Record Setup Views and modifies record settings.
One-byte Font Selects a one-byte font format.
Two-byte Font Selects a two-byte font format.
Build Activates the compiler to compile the project.

11
2
Architect® Interface ARCHITECT® USER’S MANUAL

Icon Operation Description


Simulator Activates the Simulator to test how the
application will run on the Terminal.
Communication Sets the communication port and the baud rate
where the Terminal is connected.
Download BI Activates the PT FileManager to download the
Basic Interpreter file.
Download Activates PT FileManager to download the
application to the Terminal.
Help Displays the software version.

12
ARCHITECT® USER’S MANUAL 2
Node Toolbar

Architect® Interface
Understanding the functions of these nodes is vital in
designing a project.
Icon Node Description
Create a note node. The note created will not
Note
be displayed on the Terminal
Display Create a display node. See “Display Node” on page 16.
Input Create an input node. See “Input Node” on page 19.
Create an operand node. See “Operand Node”
Operand
on page 25.
Program Create a program node. See “Program Node” on page 28.
Transmit Create a transmit node. See “Transmit Node” on page 29.

BT trans. Create a Bluetooth Transmission node. on page 30.

Link Create a link node. See “Step 3: Create Links” on page 31.

Windows
There are two types of windows in Architect®:
• Project Window: The interface where you design a project.
It consists of START and END points. Dotted lines appear as
grid on the window.
• Output Window: The output window displays any
information, errors or warnings when you compile a
project. See “Compile the Project” on page 37.

13
3 ARCHITECT® USER’S MANUAL

Chapter 3: Creating a New Project


Creating a New Project

Follow the steps below to create a new project:


Step 1: Configure Project Settings. See below.
Step 2: Create Nodes. See page 16.
Step 3: Create Links. See page 31.
Step 4: Create the Record File. See page 34.
Step 5: Compile and Simulate. See page 37.
Step 6: Configure the Communication Settings. See page 39.
Step 7: Download the Application to the Terminal. See page 40.

Step 1: Configure Project Settings


To open the settings page, click Define > Project or double-
click on a blank area on the project window.
General Page
Define the color of each node as you want it to appear on the
project window.
1. Click on a color to open the color palette and select the
desired color. To apply the default setting, click [Default].
2. Define Programming Keys P1 & P2 ,if project requested

Check to display the


status bar on the
display node screen as
it appears on the
Terminal screen. See
page 17.

3. Click [OK].
14
ARCHITECT® USER’S MANUAL 3
AID Setup Page

Creating a New Project


Use the AID Setup page to configure and require users to enter
the Agency ID (AID) or password on the Terminal before
accessing the application.

1. Select Check AID to enable the function.


2. Enter the AID or Password.
3. Type your own error message or
use the pre-defined message.
4. Click [OK].

Record Page
See “Step 4: Create the Record File” on page 34.

Barcode Page
Use the Barcode page to configure
the general barcode settings of the
project. Options vary depending on
the barcode type selected on the left
panel.

Bluetooth Page
Use the Bluetooth page to configure
the general Bluetooth settings of
the connect device.

15
3 ARCHITECT® USER’S MANUAL

Step 2: Create Nodes


Creating a New Project
A node referes to a function or an operation that the Terminal
executes. Architect® supports seven kinds of nodes: Note,
Display, Input, Operand, Program, Transmit, BT Trans. and Link.

Note Node
A Note node allows users to add comments that are shown on
the project window. This node does not affect the project and
is not displayed on the Terminal screen. This node is useful for
adding notes about the project for future reference or
maintenance.
To add a Note node, do the following:
1. From the Node toolbar, click the Note node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click on an area to place the note. The Note screen
appears.
4. Type your comments. To change the font, style, size and
color, click [Advance].
5. Click [OK]. The note is displayed on the project window.
NOTE: To move the note, click and drag the node to your desired
position.

Display Node
Use the Display node to design text layout and contents to be
displayed on the Terminal screen.
To create a display screen, do the following:

1. From the Node toolbar, click the Display node icon.


2. Move the mouse pointer to the project window. Notice that

the mouse pointer turns .


16
ARCHITECT® USER’S MANUAL 3
3. Click on an area to place the display node.

Creating a New Project


4. The Display screen appears.

Page Tabs
See page 19.

Screen window
Click here to add
text.

5. On the Display page, click anywhere inside the Screen


window, the Edit screen appears.

Indicates the X The Terminal’s


(horizontal) and Y Status Bar, as
(vertical) position of it appears on
the mouse pointer the Terminal
on the Terminal screen.
screen. The values
change as the
mouse moves Screen
around window. Window

17
3 ARCHITECT® USER’S MANUAL

6. To add text, click [Add Text]. The Text Input


Creating a New Project
screen appears. Type the text on the Text Data
window and modify the font type, size, and color if
necessary.
Select available
font settings
here.
Type text here.
Select to modify
font type, size,
and color.
Displays current
font settings.

Click [OK]. Move the mouse pointer within the Screen


window and click on an area to place the text.
7. To show other input value, click [Add Object]. Select the
desired object from the box, and click [OK]. Move the
mouse pointer within the Screen window and click on an
area to place the object. The object’s position is indicated
by .
8. Click [OK] when done.
9. On the Display tab, click either of the following:
• Display in (time) seconds: To specify the amount of time
to display the text.
• Any key to next object: To display the text until a key is
pressed.
10. Click [OK]. A display node is shown on the project window.

18
ARCHITECT® USER’S MANUAL 3
Other Display Node Settings

Creating a New Project


Other Display node settings can be changed using the different
tab pages.
Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.
Display Page As described above, tap here to add text to be
displayed on the Terminal.
Link Page Shows and lets you adjust how the nodes are
connected. See “Step 3: Create Links” on page 31.

Input Node
An Input node allows users to select the device source, the
data type, range and initial values of input. The data gathered
from this function can be saved to a record file. See “Step 4:
Create the Record File” on page 34.
To add an Input node, do the following:
1. From the Node toolbar, click the Input node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click on an area to place the node. The Input screen
appears.
4. On the Display page, define the prompt message to be
displayed on the Terminal. See page 17, steps 5 to 9.
5. Drag to adjust the position
of the display text and the
input location .

19
3 ARCHITECT® USER’S MANUAL

NOTE: The position of the input location is where the input


Creating a New Project
text will appear on the Terminal screen when input is finished.

6. Click the Input tab. Configure the settings then click [OK].
The picture below shows the Input Device page.

Click an item here


to configure.

Device
Click Device to select the input device. Options are:
• Keypad
• Scanner: Select to use a scanner as the input source.
Check the “ENTER” to confirm in Scanner to require
users to press the ENT key on the Terminal after
scanning a barcode.
• Keypad & Scanner
• Date & Time: When you select Date & Time, the Format
parameters appears on screen. Select the format you prefer.
Setting
Click Setting to define the data type and its limitations
which is allowed for input. This function verifies the type
of input received from the Terminal and is used to control

20
ARCHITECT® USER’S MANUAL 3
the program flow. When the settings are met, the Node

Creating a New Project


status is set as “True”. Otherwise, the Node status is set as
“Fail”.
NOTE: For more information about the link and node status,
see page 31.

Click the button to select


the type of input data.

Available parameters here


may vary depending on the
Data Type selected.

• Data Type: Select the type of input data required.


Option Example Description
String a, A, 1a Alphanumeric characters can be entered.
Float 2.5, Digits with a decimal point can be
12.65 entered. Only a maximum of 6 decimal
digits can be entered.
Integer 5, 4, 0 Numeric characters without fractional or
decimal points can be entered
2147483647-2147483648.
Password ky1212 A password entry is required.

21
3 ARCHITECT® USER’S MANUAL

• Bound: Set the limit of input entry.


Creating a New Project
Option Description
Length Check the box to enable the set length
function, then enter the allowable
length of characters. This function is
available only for String and Integer.
Range Check the box to enable the set range
function, then enter the allowable range
of digits. This function is available only
for Integer.

• Password: Enter the required password here. This


paramater is shown only when Password
data type is selected.
Initial Value

Click to select the


type of initial value
from the list.

Click Initial Value then the box to select the type of value
from the list.
Available options and their parameters may vary
depending on the data type selected.
Initial Value Description
None No initial value is set.
Constant Select this option to enter a specific
value.

22
ARCHITECT® USER’S MANUAL 3

Creating a New Project


Initial Value Description
From Data Node Select this option to set the value of
another node as the initial value.

Lookup File Select this option to set the initial value


from a key node entry or file.

Formula Select this option to set the initial value


from the result of a formula equation.
Enter the formula after “Variable =”.

7. To compare input entries, click the Check up tab

23
3 ARCHITECT® USER’S MANUAL

This function compares the input entry from the Terminal to


Creating a New Project
a field in a file or a condition set by the user. When the
check up condition is met, the Node status is set as “True”.
Otherwise, the Node status is set as “Fail”.
NOTE: For more information about Node status, see page 31.

The parameters shown on the screen varies depending on


the option selected.
Check up Option Description
None Does not perform the check up
function.
Lookup in file Select this option to compare the input
to a field in a record file.
Click [Search] to select the file.
Select the Location in the terminal
from the list.
Select the Separator among the list.
Enter the Field No. to compare.
Lookup in Record Select this option to compare the input
to a field of a record.
Select the record and the field from the
list.
Condition Define Select this option to compare the input
based on the condition defined by the
user.
Enter the condition after “Result = “.

Other Input Node Settings


Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.

24
ARCHITECT® USER’S MANUAL 3

Creating a New Project


Page Tab Description
Check Up Page Allows you to enter conditions to compare with the
input entries. See step 8 above.
Link Page Shows and lets you adjust how the nodes are
connected. See “Step 3: Create Links” on page 31.

Operand Node
The Operand node is use to calculate mathematical equations
and compare the results.
To create an operand node, do the following:
1. From the Node toolbar, click the Operand node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click on an area to place the node. The Operand screen
appears.
4. On the Display page, define the prompt message to be
displayed on the Terminal. See page 17, steps 5 to 10.
5. Drag to adjust the position of
the display text and the operand
location .

NOTE: The position of the operand location icon is where the


resulting value will appear on the Terminal screen.

25
3 ARCHITECT® USER’S MANUAL

6. Click the Operand tab. Configure the settings. The picture


Creating a New Project
below shows the Operand Setting page.

Setting
Select whether the resulting value of the operation will be
an Integer or Float.
Initial Value
Click Initial Value then the box to select the type of value
from the list. Available options and their parameters may
vary depending on the data type selected.
Initial Value Description
None No initial value is set.
Constant Select this option to enter a specific
value.

From Data Node Select this option to set the value of


another node as the initial value.

Formula Select this option to set the initial value


from the result of a formula equation.
Enter the formula after “Variable =”.

26
ARCHITECT® USER’S MANUAL 3
Logistics

Creating a New Project


Click Logistics then select the operation to perform from
the list. Operations include: addition (+), subtraction (-),
multiplication (*), division (/), or a user-defined equation.

Select operation
here.

With Constant
Select to enter a
constant value.
With Node
Click here to select the node to use as an operand.
7. To add comparison conditions, click the Compare tab.
Select and define the condition. Options are:
• None
• Greater than (>)
• Greater than or equal to (>=)
• Less than (<)
• Less than or equal to (<=)
• Equal to (==)
• Not equal to (!=)
• User Define: Enter a user-defined equation.
NOTE: The result of this function can be used to control the
program flow.

Other Operand Node Settings


Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.
Link Page Shows and lets you adjust how the nodes are
connected. See “Step 3: Create Links” on page 31.

27
3 ARCHITECT® USER’S MANUAL

Program Node
Creating a New Project
The Program node is designed for users with programming
knowledge. With this node, users can define and execute PT-
Basic commands.
To create a program node, do the following:
1. From the Node toolbar, click the Program node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click on an area to place the node. The Program screen
appears.
4. On the Program tab, type the Basic commands to execute.

PRINT "Input price"


GOSUB FN_GetPrice Type the Basic commands
here.
For example, to execute
another node, named GetPrice,
type the command “GOSUB
FN_GetPrice”.
For more information about
the Basic commands, refer to
the Basic Interpreter
documentation.

5. Click [OK] when done.

Other Program Node Settings


Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.
Link Page Shows and lets you adjust how the nodes are connected. See “Step 3:
Create Links” on page 31.

28
ARCHITECT® USER’S MANUAL

Transmit Node
3

Creating a New Project


The Transmit node is used to call up remote link while running
an application in the Terminal.
To create a transmit node, do the following:
1. From the Node toolbar, click the Transmit node icon.
2. Move the mouse pointer to the project window.
3. Click on an area to place the node. The Transmit screen
appears.
4. On the Transmit tab, select the Port and Baud rate.

5. Click [OK] when done.

Other Transmit Node Settings


Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.
Link Page Shows and lets you adjust how the nodes are
connected. See “Step 3: Create Links” on page 31.

29
3 ARCHITECT® USER’S MANUAL

Bluetooth Transmission Node


The Bluetooth Transmission node is used to transfer data.
To create a bluetooth transmission node, do the following:
1. From the Node toolbar, click the BT Trans. node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click on an area to place the node. The BlueTooth
Transmission screen appears.
4. On the Bluetooth Transmission tab, select the
Bluetooth Transmission and fill out the file name.

5. Click [OK] when done.

Other Bluetooth Transmission Node Settings


Page Tab Description
General Page Type your preferred node name.
Comment Page Type any comments or notes for this node. The
information here will not be shown nor affect the
Terminal.
Link Page Shows and lets you adjust how the nodes are
connected. See “Step 3: Create Links” on page 31.

30
ARCHITECT® USER’S MANUAL 3
Step 3: Create Links

Creating a New Project


After creating the different nodes, you are now ready to
connect them to using the Link node. Link nodes control the
program flow. There should at least be two nodes (except a
note node) on the project window to create a link. The
connection flow from one node to another is indicated by
directional arrows.
To create links, do the following:
1. From the Node toolbar, click the Link node icon.
2. Move the mouse pointer to the project window. Notice that
the mouse pointer turns .
3. Click a node (except a note node) then drag the mouse to
another node to connect.
Drag to link Item ID to Warning1.

This link node indicates that after performing


the display node (Demo Display), the input
node (Item ID) is activated.

4. A directional arrow appears to indicate link.


NOTE: There should at least be two nodes on the project window to
create a link node.

31
3 ARCHITECT® USER’S MANUAL

5. To configure link conditions, double-click one of the


Creating a New Project
connected node to open the node’s page. Click the Link
tab.

Linked nodes are Select condition


displayed here. option here.
Tap “+” to
expand the list. Parameters vary
depending on
selected
condition.

Check to clear
the Terminal Check this item
screen after and select the
performing the record to save
node’s function. data.

Parameters Description
Link In Lists the connected nodes that preceed the active
node.
Link Out Lists the connected nodes that the active node goes
to after completing its process.
Condition Select an option to set conditions and determine
the next process of the program. Options are:
• Key: Checks the key press from the Terminal.
Click the Keypad textbox
to activate the keypad
window and enter key.
• Verify Node: Checks the node status. Node
status can be: Pass Always, Fail, Succeed.
• Data Input (for Input node only): Checks the
input data.
Type the required data in
the Input textbox.

32
ARCHITECT® USER’S MANUAL 3

Creating a New Project


Parameters Description
Clear when Check this item to clear the Terminal screen after
leave performing the node’s function.
Write Record Check this item to save the data to a record file (.txt
or .dat). Select the record from the list. See “Step 4:
Create the Record File” on page 34.

6. Click [OK] to close the page.

33
3 ARCHITECT® USER’S MANUAL

Step 4: Create the Record File


Creating a New Project
A record is used to save input data. To create a record, do the
following:
1. On the main toolbar, click the New Record icon.
2. On the left panel, click Setting.

Click an option
to view page.

3. Enter the required settings.


Items Description
Record name Type the record name.
File Name Define the file to save the record. The file
should be a data (*.dat) or a text file (*.txt) If
you assign a file that exists in the PC, it will
be downloaded to the Terminal.
Location Select the location where to save the record
on the Terminal.

34
ARCHITECT® USER’S MANUAL 3
4. On the left panel, click Field. Define the fields of the

Creating a New Project


record. The screen should look something like this:

Click to move
the items to
the left or
right column.
Left Column
Right Column

Items Description
Left Column Lists all the input nodes in the project.
Right Column Move the input nodes to be saved as fields
of the record. The data will be saved in the
same sequence. Use the “Up” and “Down”
buttons to sort the sequence.
Overwrite record with Check this item to overwrite the specified
record field. If left unchecked, the new data
will be recorded at the end of the file.
5. On the left panel, click Separator.
Select how you want the fields to be separated from the
list. If Length is selected, you need to set the length of each
field.

35
3 ARCHITECT® USER’S MANUAL

6. For notes and maintenance purposes, click Comment on


Creating a New Project
the left panel and type your comments on the box.
7. Click [OK] when done.

NOTE: To access the Record setup anytime, click the icon on the
main toolbar or double-click anywhere on the project window or
click Setup > Record Setting.

36
ARCHITECT® USER’S MANUAL 3
Step 5: Compile and Simulate

Creating a New Project


When the project flow is complete, compile and simulate your
project to check for errors.

Compile the Project


Click the Build icon to compile. The Output window
appears and displays any errors or warnings. If errors occur,
debug your project. The picture below is an example of an
output window that shows the number and the source of
errors.

NOTE: Double-click the error message to directly go to the source


setting.

When the project is compiled successfully, an application


program is created. When the Output window shows the “0
error(s), 0 warning(s)” message, see picture below, you are now
ready to simulate the application.

37
3 ARCHITECT® USER’S MANUAL

Simulate the Application


Creating a New Project
With the Simulator, you can see how the application will work
when downloaded to a Terminal. Users can check the program
flow and match it to the users needs and expectations.
Simulating before downloading saves time for debugging at a
later time.
1. Click the Simulator icon. The
Simulator is activated.
2. To turn on the Simulator, click the
PW key.
3. Click 1, then the ENT key to
run the application.
4. The Terminal screen displays
the simulated application.
5. To close the Simulator, click .

NOTE: If you enabled the Write Record function, running Simulator


will save the data in the record file. The record file will be saved in
the install path \\Simulator\.

38
ARCHITECT® USER’S MANUAL 3
Step 6: Configure the Communication Settings

Creating a New Project


Before you download the application, you need to configure
the communication port settings.
1. On the main toolbar, click the Communication icon.

2. Select the Port and the Baud rate.


NOTE: The Port is where the Terminal is connected to the computer.
The Baud rate set here should match the one set on the Terminal (see
the terminal’s user guide manual).

3. Click [OK] when done.

39
3 ARCHITECT® USER’S MANUAL

Step 7: Download the Application to the Terminal


Creating a New Project
NOTE:

To download the application, click the icon. The PT


FileManager screen appears. The application is automatically
downloaded to the Terminal.

For more information about the PT FileManager, refer to the


software’s manual.

40
ARCHITECT® USER’S MANUAL 4
Chapter 4: Sample Project

Sample Project
Below is a sample project that generates the total cost based
on the quantity and the amount of an item.

• Demo Display: This is the display screen.


• Item ID: This is an input node. The user enters the Item ID.
If the Item ID entered is invalid, the Terminal will execute
Error ID (display node). The application will start again.
• Quantity: This is an input node. If the Item ID entered is
valid, the Terminal will ask the user for the Quantity.
• Amount: This is also an input node. After entering the
quantity, the user will enter the amount of the item.
• Total: This is an operand node. This node multiplies the
Quantity by the Amount and displays the total value. If
the total value is less than 500, the ADDCharge message is
displayed. If the total value is more than or equal to 500,
the application will start from the Item ID node again.

41
4 ARCHITECT® USER’S MANUAL

How to Make This Project


Sample Project
1. Create a display node as the
welcome screen. Name it “Demo
Display”.

2. Create an input node.


• Name it “Item ID”.
• Create the display screen.

• Set the input settings.The


input value can only be
between 1-3.

3. Create a display node.


• Name it “Error ID”.
• On the display page, type “Stock ID error”.
• Set the display time to “2 secods”.

42
ARCHITECT® USER’S MANUAL 4
4. Create link nodes.

Sample Project
• Link START to Demo Display.
• Link Demo Display to Item ID.
• Link Item ID to Error ID.
• Link Error ID to Demo Display.

• Double-click Item ID and go


to the Link page.
• Select Link out > Error ID.
• Select Condition: Verify
Node = Fail.
NOTE: Thedefault Condition is Pass Always, thus it is
unnecessary to change Link In > Demo Display.
5. Create an input node.
• Name it “Quantity”.
• Create the display text and position the input location.
6. Create another input node.
• Name it “Amount”.
• Create the display text and position the input location.
7. Create an operand node.
• Name it “Total”.
• Create the display text and position the operand location.
• On the Operand page, configure: Data Type = Integer;
• Select Initial Value > Intial = From Data Node;
Copy Node = Quantity.

43
4 ARCHITECT® USER’S MANUAL

• Select Logistics > Operator


Sample Project
= * (multiplication);
With Node = Amount.

• On the Compare page,


configure: Condition = <;
With Constant = “500”.

8. Create a display node.


• Name it “ADDCharge”.
• Create the display text and set the time.

9. Create link nodes.


• Link Item ID to Quantity.
• Link Quantity to Amount.
• Link Amount to Total.
• Link Total to ADDCharge.
• Link Total to Item ID.
• Double-click Total and go to the Link page.
• Select Link Out > ADDCharge > Condition = Verify
Node; Node Status = Succeed.

10. Save the project.


11. Compile and simulate.
12. Download the application to the Terminal.

44

You might also like