Table of Contents
7.8.2 Writing and Editing Programs .................................................... 125
7.8.2.1 Short Cut Programming Wizard ........................................ 125
7.8.2.2 CRBasic Editor ................................................................. 125
7.8.2.2.1 Inserting Comments into Program ........................... 126
7.8.2.2.2 Conserving Program Memory ................................. 126
7.8.3 Sending CRBasic Programs ........................................................ 126
7.8.3.1 Preserving Data at Program Send ...................................... 127
7.8.4 Programming Syntax .................................................................. 128
7.8.4.1 Program Statements .......................................................... 128
7.8.4.1.1 Multiple Statements on One Line ............................ 128
7.8.4.1.2 One Statement on Multiple Lines ............................ 128
7.8.4.2 Single-Statement Declarations .......................................... 129
7.8.4.3 Declaring Variables ........................................................... 129
7.8.4.3.1 Declaring Data Types .............................................. 130
7.8.4.3.2 Dimensioning Numeric Variables ........................... 134
7.8.4.3.3 Dimensioning String Variables ................................ 134
7.8.4.3.4 Declaring Flag Variables ......................................... 135
7.8.4.4 Declaring Arrays ............................................................... 135
7.8.4.5 Declaring Local and Global Variables .............................. 136
7.8.4.6 Initializing Variables ......................................................... 137
7.8.4.7 Declaring Constants .......................................................... 137
7.8.4.7.1 Predefined Constants ............................................... 138
7.8.4.8 Declaring Aliases and Units .............................................. 138
7.8.4.9 Numerical Formats ............................................................ 139
7.8.4.10 Multi-Statement Declarations ......................................... 140
7.8.4.10.1 Declaring Data Tables ........................................... 140
7.8.4.10.2 Declaring Subroutines ........................................... 147
7.8.4.10.3 'Include' File .......................................................... 147
7.8.4.10.4 Declaring Subroutines ........................................... 150
7.8.4.10.5 Declaring Incidental Sequences ............................. 150
7.8.4.11 Execution and Task Priority ............................................ 151
7.8.4.11.1 Pipeline Mode ........................................................ 152
7.8.4.11.2 Sequential Mode .................................................... 153
7.8.4.12 Execution Timing ............................................................ 154
7.8.4.12.1 Scan() / NextScan .................................................. 154
7.8.4.12.2 SlowSequence / EndSequence ............................... 155
7.8.4.12.3 SubScan() / NextSubScan ...................................... 156
7.8.4.12.4 Scan Priorities in Sequential Mode ........................ 156
7.8.4.13 Programming Instructions ............................................... 158
7.8.4.13.1 Measurement and Data-Storage Processing ........... 158
7.8.4.13.2 Argument Types .................................................... 159
7.8.4.13.3 Names in Arguments ............................................. 159
7.8.4.14 Expressions in Arguments ............................................... 160
7.8.4.15 Programming Expression Types ..................................... 160
7.8.4.15.1 Floating-Point Arithmetic ...................................... 161
7.8.4.15.2 Mathematical Operations ....................................... 161
7.8.4.15.3 Expressions with Numeric Data Types .................. 162
7.8.4.15.4 Logical Expressions ............................................... 164
7.8.4.15.5 String Expressions ................................................. 166
7.8.4.16 Programming Access to Data Tables .............................. 167
7.8.4.17 Programming to Use Signatures ...................................... 169
7.9 Programming Resource Library ........................................................... 169
12
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......