Vs basic


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Vs basic
# 8  
Old 05-24-2017
We use Indusoft VBScript at work... its basically the code behind script in all the HMIs we produce.

It could be better, but there isn't much you can't do in it that you need to do. It does a few things like bit level addressing, and you can work around limitations in the HMI package by being able to address global HMI variables by string formatting thier names and passing to a function which allows you to pretend that you have nested classes.. even though it doesn't really support that.

For instance Say I have a Control panel class CP as and I want to have Estop values in it... with fault, description and id fields, the work around is that I generate the tag names as strings to referece them in a for loop.... which you would be able to directly do with nested classes, its a much needed organizational structure that is sadly missing.

CP.ESTOP_Desc_1 ... n
CP.ESTOP_ID_1 ... n
CP.ESTOP_Fault_1 ... n

Interestingly they are intending to transition to Javascript... I'm not sure if that is a good thing or a bad thing :/ At least the HMIs will run on Linux potentially going forward currently they are ball and chained to Windows.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Basic help

Hi , I need to know the difference between $((command)) and $(command) and $(($(command))). "" and '' and ``. I have tried searching the help files but cant able to find this. Could you let me knoq about any document. Thanks (4 Replies)
Discussion started by: Raj999
4 Replies

2. Solaris

Basic - how do I?

How do I use ls and grep together to count a certain number of files in a directory? -Thanks (1 Reply)
Discussion started by: secno
1 Replies

3. UNIX for Dummies Questions & Answers

basic if else

I know this is pretty basic, but i cant figure it out to save my life. i want it to ask for a variable, as long as that variable isnt -/0 i want it to print out the area. else if the variable is -/0, i want it to print out invalid entry. the only problem is it will still try to print out the... (1 Reply)
Discussion started by: cookiebooy
1 Replies

4. HP-UX

to know the basic

Hi, Good morning I want to install HP-Unix in my PC. I already have windows XP home edition in my PC. I do not want remove XP,But I need HP-Unix in the same system. Is it posssible? If it is what is the name and version of HP-Unix cd? Where can I get the CD to install. I have... (4 Replies)
Discussion started by: nandhini
4 Replies

5. UNIX for Dummies Questions & Answers

Need some basic help

Hi everyone, I need some help! I know that this is a very simple little problem but I seem to be stuck. I was just wondering if you could show me the right way. I basicly have to write a single line of commands (using piping) to do the following: From the file data.txt, select all of the... (2 Replies)
Discussion started by: itk
2 Replies

6. HP-UX

Bt-basic

Hi Guys, I very new to bt-basic even I got 8 years experience on UNIX. I searched through google about bt-basic but nothing really give me solid documentation. Anybody have documentation or manual for this bt-basic? Pls help me (2 Replies)
Discussion started by: shahru
2 Replies

7. What is on Your Mind?

Basic...

hi, I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands... eg:- instead of "cd /usr/bin" i want to to give " bin " and get to that path. I'm using HP-UX 11.0 abey (2 Replies)
Discussion started by: abey
2 Replies

8. UNIX for Dummies Questions & Answers

Basic

hi, I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands... eg:- instead of "cd /usr/bin" i want to to give " bin " and get to that path. I'm using HP-UX 11.0 abey (2 Replies)
Discussion started by: abey
2 Replies
Login or Register to Ask a Question
petcat(1)						      C64 Program Development							 petcat(1)

NAME
petcat - convert and display PETSCII or BASIC files SYNOPSIS
petcat [ -text | -<version> | -w<version> | -k<version> ] [ -l hexaddr ] [ -c | -nc ] [ -o outfile ] [ -skip offset ] [ -- ] [ file list ] DESCRIPTION
petcat converts input files from the most common CBM file formats into printable ASCII form and writes to standard output. The type of input file is determined automatically, if possible, and appropriate conversion is performed. Since a few of the BASIC versions have key- words defined differently, the right conversion has to be selected on the command line. Where such confusion cannot happen, automatical recognition of input is used. This is useful when expanding several files at once or if the program contains code for several versions, selected according to the hardware; eg. Simon's Basic vs. Basic 7.0. Please note that each input file is converted individually, but the output is produced as continuous flow. Also, all input files that are read trough a pipe, are concatenated before they reach petcat so any machine language section in between the BASIC programs causes all con- secutive files to be taken as one machine language program. For that reason files containing machine language parts attached to them must be input separately, otherwise the remaining files won't be expanded. petcat recognizes normal PETSCII text files (SEQ), program files containing directory listing, and BASIC programs. Both the original CBM files and files with a PC64 `P00' header are accepted. The differ- ent BASIC versions are not automatically distinquished, but standard C64 and C128 versions are used as default. In order to tokenize a text file into a BASIC binary file the desired BASIC version must be exclusively specified so that correct set of keywords will be used. If line numbers are not found in the beginning of each program line, the cruncher creates the missing line numbers by adding 2 to the numeric value of previous one. Since also line numbers deviating from strictly ascendind order are accepted, care must be taken when editing such a program on a C64 again. Clarification Since CBM programs usually contain unprintable characters, a way to spesify them has been created. Normally, petcat uses the same codes as most printers, but for tokenizing programs scanned from magazines, it can use the following convention: <DOWN> stands for single control code <6 RIGHT> contains amout of consecutive codes List of valid mnemonics: <wht> <dish> <ensh> <swlc> <down> <rvon> <home> <del> <esc> <red> <rght> <grn> <blu> <orng> <F1> <F3> <F5> <F7> <F2> <F4> <F6> <F8> <sret> <swuc> <blk> <up> <rvof> <clr> <inst> <brn> <lred> <gry1> <gry2> <lgrn> <lblu> <gry3> <pur> <left> <yel> <cyn> List of alternate mnemonics: <wht> <up/lo lock on> <up/lo lock off> <return> <lower case> <down> <rvs on> <home> <delete> <esc> <red> <right> <grn> <blu> <orange> <f1> <f3> <f5> <f7> <f2> <f4> <f6> <f8> <shift return> <upper case> <blk> <up> <rvs off> <clr> <insert> <brown> <lt red> <grey1> <grey2> <lt green> <lt blue> <grey3> <pur> <left> <yel> <cyn> OPTIONS
-a load_address Specify load_address for tokenized program. -c Causes petcat to interpret also control characters. By default, these strings are the same as used by printers. However, an alter- nate set is attempted whenever none within the primary set matches. Default is ON, unless text mode is selected. -nc Suppress control codes. -f Force overwrite of existing output file. Default true. -h Print filename and start address for each Basic file expanded. Default true. -nh Suppress file header in printout. -o file Redirect output to the specified file. This option overrules -h. When file has extension `.P00' and also -w option is specified, the PC64 file header is written automatically. .P00 file cannot be written on stdout but to a file only. -skip offset Skip offset bytes in the beginning of input file. -text Force text mode even if the input file looks like a Basic program, i.e. the first byte in file is 01. -k<version> Just prints all valid keywords for the specified Basic version. Without any version, all names of supported BASIC versions are listed instead. -w<version> Tokenise program listing using keywords set from the specified Basic version. -<version> Changes the set of keywords for the specified Basic version and expands tokenized input file. Without this option petcat uses V7.0 keywords in expanding. Versions 1 Basic 1.0 2 Basic 2.0 a Basic 2.0 with AtBasic t Basic 2.0 with Turtle Basic super su se Basic 2.0 with Super Expander simon si Basic 2.0 and Simon's Basic speech sp Basic 2.0 with Speech Basic v2.7 4 Basic 4.0 4e Basic 4.0 Extension 3 Basic 3.5 7 Basic 7.0 10 Basic 10.0 RESTRICTIONS
Line numbers must be less than 65536. Maximum line length is 255 bytes. Leading white space is ignored. Blank lines and line numbers not followed by any text are rejected. While expanding, Machine Language section concatenated to a BASIC program is ignored. While crunching, control codes that appear outside quotes are not interpreted. The low order byte of load address must be "01". SEE ALSO
cat(1), tr(1), sed(1), fvcbm(1), petlp(1), cbmconvert, iso2asc(1), ASCII(7), CBM Tokens Documentation, CBM's Programmers' Reference Guide series AUTHOR
Jouko Valta (jopi@stekt.oulu.fi) Thanks to Frederik Ekman (d91fe@lelle.pt.hk-r.se) Marko Makela (msmakela@nic.funet.fi) Russell Alphey (r.alphey@dce.vic.gov.au) Andre Fachat (a.fachat@physik.tu-chemnitz.de) Onno Ebbinge (ebbin200@hio.tem.NHL.NL) Frank Kontros (jeno@kontr.uzhgorod.ua) VICE
12 Dec 1996 petcat(1)