Scale basic tutorial, Getting started – Industrial Data Systems IDS Scale Basic User Manual
Page 12
Scale Basic 4.2E
Tutorial
Scale Basic Tutorial
The following section assumes that the indicator is connected to a PC computer using EZ Link.
If you are not connected, then use the keyboard entry techniques described in the user’s manual.
Some of the examples used in the tutorial use the TTL Outputs (Relay outputs). Use the
following circuit to view the results of the Relay out commands.
Getting Started
Most instruction books on computer languages start off with the most simple of programs: how
to display “HELLO WORLD” on the computer screen.
Application
Description
Display “HELLO” on the indicators numeric display.
Results / Outputs
HELLO message displayed on numeric display.
Inputs
F1 key to initiate program.
Sequence of operation
Press the F1 key. The indicator displays HELLO.
Use the above design criteria to define the events than need to be configured. The Inputs section
of the design lists the F1 key as the event that starts the Hello program.
Event
Function
Comments
F1 key User Function 1
The F1 key initiates the program by starting function1.
Use the sequence of operation to define User Function 1. The F1 key event triggers a function
that displays “HELLO”. From the list of Scale Basic Instructions we find the Prompt instruction
is used to display messages.
Function
Instructions
Comments
F1:
Instruction
Operand1
Operand2
Operand3
Comment _
Prompt
HELLO Display
HELLO
End
End
of
function
TB4
1
TB2
1
470 ohm
LED
Test Circuit for Relay output 1
+5V
TTL out #1