Internet PLC Forum

General => Technical support => Topic started by: Chris O'Brien on October 10, 2002, 09:07:40 AM

Title: T BASIC
Post by: Chris O'Brien on October 10, 2002, 09:07:40 AM
Hello.
Does anyone out there know where I can download a tutorial for TBASIC ?
The last time I used any Basic was about 15 years ago, and have forgotten most of it!
I have no problem with ladder programming due to performing that feat for 20 years, but would appreciate any help on this subject if possible.
Thank you.

Chris :-*
Title: Re: T BASIC
Post by: support on October 11, 2002, 09:10:22 AM
If you have downloaded the TRILOGI software, there are plenty of examples with comments on them in the "usr\samples" directory.

Since you can simulate these example using TRiLOGI simulator and test them on your PC, it is probably the best way of getting familiar with the most commonly used keywords of TBASIC.

There are some examples in last chapter of the TRiLOGI programmer's reference which you can download at the following link:

     www.tri-plc.com/tbasic.pdf
Title: Re: T BASIC
Post by: cjo on November 20, 2002, 10:04:48 AM
Yes that is true, there are "examples", but for the complete TBasic novices of us out there (and I bet that are quite a few!) these examples do not fulfill a proper tutorial, and the Tri site lacks this.
I do hope there are plans to back this area up and make the task of programming in TBasic easier as I plan to use these boards again in the future.
Any suggestions anyone out there?
Title: Re: T BASIC
Post by: support on November 20, 2002, 10:18:06 AM
The most fundamental concept you need to learn before using any form of "BASIC" are as follow:

1) IF  ...  THEN ....   ELSE  ...   ENDIF
2) FOR ... NEXT
3) WHILE .... ENDWHILE
4) GOTO
5) Variables and constants.

The rest of the commands are specifically related to the hardware that you need to work with.

The beauty of the Ladder+BASIC is that you don't have to be an expert in BASIC in order to use it. You'll normally use the ladder logic for normal programming and when you need to do anything that you can't achieve with the ladder logic then you go look up for the command in TBASIC that allows you to do that. You need to learn about the syntax of only those commands that you need to use and not all at once.  You can get the syntax of each command and examples in TBASIC refererence manual or press <F1> key to get helps.



Title: Re: T BASIC
Post by: scottsaunders on April 10, 2003, 06:09:36 AM
I agree I don't have a clue about basic and Tbasic is even more complicated. I need to set up a simple if then else program but don't know where to start