Vari Ables, Dec La Ra Tions And Mem Ory Us Age; Memory Usage; Vari Able Dec La Ra Tions - Maple Systems Silver Series Installation And Operation Manual

Operator interface terminal
Hide thumbs Also See for Silver Series:
Table of Contents

Advertisement

Macros
In the example above, a toggle switch object was placed on the screen as a '+' button. When this button is pushed, it
forces LB:1 to ON and the 'AddTwo' macro executes, storing the result in LW:2 and turning LB:1 to OFF and the
macro stops.

Vari ables, Dec la ra tions and Mem ory Us age

Variables, constants & functions are named by the programmer. Variables and constants are called operands.
Variable names can be any character or number (a-z, A-Z, 0-9, or '_') and can be as many characters as you need to
describe it (the compiler has been tested to variable name lengths of 32 characters, but it is best to keep the variable
names small for ease of reading the code). Variable names are not case sensitive, so 'result' is the same as 'ReSult'
or 'RESULT'. Variable names must always start with a letter (i.e. variables cannot begin with a number or the
underscore '_' character).

Memory Usage

Macros use a minimum of about 2.5K, plus the memory required for each variable type:
• float: 4 bytes (32-bits)
• int: 4 bytes (32-bits)
• short: 2 bytes (16-bits)
• char: 1 byte (8-bits)
Tog gle Switch Ob jects At trib utes Dialog
279
1010-1007W, Rev 06

Advertisement

Table of Contents
loading

Related Products for Maple Systems Silver Series

This manual is also suitable for:

Hm15070thHm15100t

Table of Contents