Toshiba STE 58762 instruction manual Variables and Constants, Scalar Data, - 2-5 -

Page 19

STE 58762

2.4VARIABLES AND CONSTANTS

Not all data takes the same form, and these different forms of data are called data types. Scalar type (integer type, real number type and character string) and vector type (position type, coordinate type and load type) can be used in the SCOL language. Variables are divided into global variable and auto variable according to the definition method. All taught data and variable defined in the area between GLOBAL and END are called the global variable. These variables can be referred and changed from any part of the program. For all data types of global variables, the array can be declared. For descriptions of global variable and array, see Para. 2.8.5.

The work area in the controller is used for all data. The defined value is substituted for the global variables value at the start of the program, except for the array without a specific initial. If the value is entered for the variable during program execution, only the work area is changed. If the power of controller is turned off, execution file is reselected or the file is edited, work area is reset by the variable’s initial value saved in the file and the changed value is lost accordingly. This is also applicable for change of the taught data. If the data in the file is to be overwritten, the RESTORE command should be executed in the program.

2.4.1Scalar Data

There are three types of scalar data, i.e., integers, real numbers and character strings. Scalar type auto variables can only be used in the program in which they were declared. That means that if you use a variable with the same name in another program, the two variables will be completely independent and have nothing to do with each other. Therefore, when passing data from one program to another, make it a point to, if possible, redefine the variable as the scalar type global variable or declare the arguments in the program. (If you did not understand this too well, refer to Section 2.8 "Programming.")

(1)Integer data

(a)Constants

SCOL can handle integer values ("whole numbers") in the range of - 2147483648 to + 2147483647. When an integer is used as a constant in a program, if it is positive, directly describe the value; if it is negative, describe the value following the - symbol. Examples are:

0

234 -39208 5963

2-5

Image 19
Contents STE Industrial Robot SR Series Robot Language Manual- i - - ii - Preface- iii - Variables and Constants ・・・・・・・・・・・・・・・・ Table of Contents AN Outline of Robot LanguageRemarks and COMMENTS・・・・・・・・・・・・・・・・・ Program Examples Programming Hints and Warnings Explanation of Robot CommandsThings not to do When Programming ・・・・・・・・・ Things to Watch OUT for When Writing a PROGRAM・・Appendix B List of Reserved Words ・・・・・・・・・・・・・ List of Commands ・・・・・・・・・・・・・・・・・HOW to Read Symbols ・・・・・・・・・・・・・・・ Appendix aRobot Movement Chapter AN Outline of Robot Language- 1-1 - Robot movement - 1-2 -Robot Language - 1-3 -- 1-4 - - 1-5 - Types of Commands- 1-6 - - 1-7 - Program Program ConfigurationChapter Writing Programs in Robot Language Files- 2-2 - Positional Data- 2-3 - Character SET- 2-4 - IdentifiersS H I B a R O B O T Scalar Data Variables and Constants- 2-5 - - 2-6 - - 2-7 - Vector Data- 2-8 - - 2-9 - - 2-10 - STE System Variables- 2-11 - System Constants- 2-12 - Mathematical Functions- 2-13 - Computational ExpressionsAND, or - 2-14 -- 2-15 - - 2-16 - - 2-17 - - 2-18 - Logical ExpressionsIf J1 then Goto BRANCH1 Else Goto BRANCH2 - 2-19 - LabelsLOOP1 Move P1 Goto LOOP1 Remark this Program WAS Written by ME Move P1 This Command Moves the Robot to P1Remarks and Comments - 2-20 -Program Declaration Programs- 2-21 - - 2-22 - STE SubprogramsPrint K END - 2-23 -Program Subexample M1, M2, M3 Program Main Remark *** Sample- 2-24 - Library- 2-25 - STE Multitask Processing- 2-26 - - 2-27 - END Program Global Variable Definition- 2-28 - GlobalDIM D10 AS INT - 2-29 -DIM F5 AS Point

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.