Author Topic: T BASIC  (Read 11209 times)

Chris O'Brien

  • Guest
T BASIC
« 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 :-*
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: T BASIC
« Reply #1 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
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cjo

  • Guest
Re: T BASIC
« Reply #2 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?
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: T BASIC
« Reply #3 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.



« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

scottsaunders

  • Guest
Re: T BASIC
« Reply #4 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
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »