Техническая Спецификация для C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805
Модели
198805
Variable= (SQR(value*value)) MOD value2
This is legal when the result of the term matches the mentioned type
Additional to the Syntax description an example is shown. Please note that the required definitions are not
mentioned on samples trougout the document.
Definiton:
This is legal when the result of the term matches the mentioned type
Additional to the Syntax description an example is shown. Please note that the required definitions are not
mentioned on samples trougout the document.
Definiton:
DEFINE MyWord as word
DEFINE MyByte1 as byte
DEFINE MyByte2 as byte
Example:
MyWord=MyByte1 MOD MyByte2
DECLARATIONS AND DEFINITIONS
Variables and Port registers are memory locations in the controller. While User Variables are freely usable
the Port Registers can be considered as System Variables with defined functions and names.
The content of this memory locations can be changed or requested during program runtime. They are a very
important component in all programming languages. Depending on the variable type it may contain different
values. BYTE type variables contain values from 0 to 255, and they occupy one byte of memory inside the
controller. Once a memory location or port is defined its content can be changed by assignments of other
variables content, constants or terms.
MyBitport1 = ON
MyBitport1 = OFF
MyByte1 = MyByte2
MyWord1 = MyByte1*10
PROGRAM MEMORY
The C-Control Unit M 2.0 has almost 10kB of program memory. Memory that is not occupied by a program
can be used can be used as non volatile data memory. The Unit ADVANCED has an extended program
memory. 22kB are available for program memory or data saving. No declarations concerning the memory
have to be done
can be used can be used as non volatile data memory. The Unit ADVANCED has an extended program
memory. 22kB are available for program memory or data saving. No declarations concerning the memory
have to be done
USER VARIABLES
The C-Control Unit M 2.0 supports 140 bytes of variables memory.The Unit ADVANCED memory for
variables has been extended, but with some small restrictions. Unrestricted usable are 140 bytes, up to 240
bytes are usable if the File Function PRINT# is not used, or is used that way, (e.g for temporary variables)
that it does not matter if variables content in the range from 140 to 240 will be changed when INPUT# is
used.
At BASIC++ you have to consider special cases. Local and global variables define the valid area of this
variables within the entire program or within single functions. The valid area has to be declared with DEFINE.
Any declaration of a variable within a function causes the variable to be a local type. Any other declaration
variables has been extended, but with some small restrictions. Unrestricted usable are 140 bytes, up to 240
bytes are usable if the File Function PRINT# is not used, or is used that way, (e.g for temporary variables)
that it does not matter if variables content in the range from 140 to 240 will be changed when INPUT# is
used.
At BASIC++ you have to consider special cases. Local and global variables define the valid area of this
variables within the entire program or within single functions. The valid area has to be declared with DEFINE.
Any declaration of a variable within a function causes the variable to be a local type. Any other declaration
5