STE 58762

CHAPTER 2

WRITING PROGRAMS IN ROBOT LANGUAGE

In Chapter 1, we got a rough idea of what a robot language is and how it works. Now, in Chapter 2, we will describe how to write a program in robot language.

2.1PROGRAM CONFIGURATION

Below we present a general outline of program configuration with the SCOL language.

2.1.1Files

In order to get the robot to perform a task, you need both a program written in robot language and positional data for use by the program. That is, for each job you want the robot to do, you have to have a matched set of a program (or programs) and data. This matched set is called a file.

Program editing, execution, saving and loading are all done in units of files.

2.1.2Program

A program is an arrangement of words in robot language that tell the robot what you want it to do.

A program may "call" (use) other programs from inside of the original program. The original program is referred to as the main program. These other programs are called subprograms since, from the point of view of the main program, they are secondary. It is often convenient to make sub- programs for sequences that are used often or for sequences that are more or less self- contained. These subprograms can then be called when you need them. Subprograms save you the trouble of having to write the same thing many times and, if used properly, can make your job a lot easier.

You can include many programs in a single file. Unless you specify differently (in the command lines at beginning of the file), the robot will assume that the first program in your file is the main program. In order to call a subprogram, the subprogram must be in the same file as the main program. Also, just because you may have several programs lined up in the file does not necessarily mean that all the programs will be executed. As far as the robot is concerned, its job is over when the main program is completed (i.e., when the robot reaches the final END statement of the main program), and if the other programs have not been called by that time they will never be called.

A plural number of programs can be executed at the same time, using the TASK command (multitask execution). For details of the multitask execution, see Para. 2.8.

2-1

Page 15
Image 15
Toshiba STE 58762 instruction manual Chapter Writing Programs in Robot Language, Program Configuration, Files, - 2-1 -

STE 58762 specifications

The Toshiba STE 58762 is a high-performance microcontroller known for its advanced features and robust architecture, making it suitable for a range of applications in automotive, industrial, and consumer electronics. One of the standout characteristics of this microcontroller is its ability to perform complex computations with improved efficiency, thanks to its 16-bit RISC architecture. The RISC (Reduced Instruction Set Computing) design enables faster processing speeds, lower power consumption, and an overall increase in performance.

The STE 58762 integrates a variety of peripherals that enhance its functionality. It includes multiple I/O ports, timers, and an advanced interrupt management system, allowing for seamless interaction with external devices. The integrated analog-to-digital converter (ADC) is particularly noteworthy, enabling the microcontroller to handle real-time data acquisition, essential in applications that require precision and quick response times.

Another significant advantage of the Toshiba STE 58762 is its built-in support for communication protocols, facilitating easy integration into different systems. It supports standard communication interfaces such as UART, SPI, and I2C, which enhance its connectivity with other devices and components. This flexibility makes the microcontroller a versatile choice for designers looking to implement diverse communication methods in their projects.

In terms of memory architecture, the STE 58762 offers an ample amount of ROM and RAM, allowing for sufficient space to store program code and data. This characteristic is crucial for developers who require extensive data handling capabilities in their applications. Furthermore, the microcontroller is equipped with built-in power management features, including sleep and idle modes, that optimize energy consumption during operation.

Overall, the Toshiba STE 58762 microcontroller is characterized by its powerful processing capabilities, extensive peripheral support, and efficient power management. These features make it an excellent choice for demanding applications, providing designers with the tools they need to create innovative and reliable solutions across various industries. As technology continues to evolve, the STE 58762 stands out as a dependable option, ensuring performance and efficiency are met in today’s competitive market. Its reliability and robust features position it as a strong contender in the landscape of microcontroller options available today.