Tutorial conclusion – Industrial Data Systems IDS Scale Basic User Manual

Page 20

Advertising
background image

Scale Basic 4.2E

Tutorial

3.

Scale Basic enter the following program:
Function

Instructions

Comments

User 1

Timer on, 5

turn on timer 5.

End

end

of

function


User 2

If, Flag1

if LED flag

Flag off, 1

turn off LED flag

Relay

off,

1

turn

off

LED

Else

Else

Flag on, 1

turn on LED flag

Relay

on,

1

turn

on

LED

End

if

End

if

End

End

of

function

4. Upload the program to the indicator. Press the F1 key. The LED flashes at 0.2 second
intervals.

In the above program, the F1 key activates User 1 function, which turns on Timer 5. When
timer5 times out, it simultaneously reactivates itself and activates User 2 function. The result is
that User 2 function is continuously activated every 0.2 seconds. User 2 function turns the LED
on if it was off, or turns the LED off if it was on.

Tutorial Conclusion

The tutorial is intended to get you started in Scale Basic programming. The next steps to take to
become proficient in Scale Basic programming are:

Read through the Reference section of this manual. Become familiar with the scale basic
instructions.

Try modifying the example programs used in the tutorial. Use instructions that were not used
in the tutorial.

Become familiar with the programs in the Application Library. Use the Application Library
programs as starting points for your own program.

Practice modifying the Application Library programs.

Use the Scale Basic Design Template (see the appendix) to create your own application
programs.

Advertising