We use cookies to ensure that we give you the best user experience on our website.If you want to find out more about the cookies we use, you can access to our Privacy Policy here.By continuing your visit to our website, we'll assume you consent to our use of cookies.

DENSO DENSO WAVE

Close

Technical Information

3.Creating Programs

Coding

Use Windows Notepad.exe or other text editor to write the source code for the program.

Building (compiling and linking)

The BHT-BASIC compiler converts the program source code into a user application program for downloading to the BHT.

The description of builds proceeds in the following order.

For further details, refer to Chapter 2 "Development Environment and Development Procedures" in the BHT-BASIC Programmer's Manual.

Build Procedure

  1. 1. Run the BHT-BASIC compiler.
  2. 2. Choose the File|Open menu command to display the Open File dialog box.
  3. 3. Select a program source code file and press the Open button to open it.
  4. 4. Choose the Tools|Options menu command to display the Set Options dialog box.
  5. 5. Configure options.
    First, select the Compiler Version appropriate for the BHT model used. (See the table below.)
     
    BHT series [Compiler Version]
    BHT-7000 series
    BHT-7500 series
    BHT-8000 series
    BHT-100 series
    BHT-BASIC3.6
    BHT-300 series BHT-BASIC4.0
    The other option settings depend on the intended application, but for the moment start with the ones shown.
    Selecting BHT-BASIC 3.6 grays out certain options.
  6. 6. Choose the Build|Build menu command to build the program.

Checking build results

A successful build displays the message "Building finished normally" and creates a user application program with the file extension .PD4 or .PD3. Proceed to Downloading Programs.

If the compiler detects a syntax error, however, it displays the message "Failed to compile" and creates an error message file with the file extension .ERR. Use the line numbers and error codes from these error messages to determine the source of the error and modify the source code accordingly.

For further details on syntax error codes, refer to Appendix A2 "Compilation Errors" in the BHT-BASIC Programmer's Manual.

The compiler displays the following screen when it detects a fatal error. Use the error code to determine the source of the error and modify the source code accordingly. For further details on fatal error codes, refer to Appendix A2 "Compilation Errors" in the BHT-BASIC Programming Manual.

Creating a user application from multiple source code files

BHT-BASIC allows developers to split a user application program into multiple source code files. The key step is creating a project file listing those files.
This manual omits the description of the project file. Refer to the BHT-BASIC Programmer's Manual.

Contact us

QBdirect

If you have not registered

The services on this member site are available only for registered customers.

New member reg.