
Programming
94
NetLinx Studio - Instruction Manual
Code Wizard dialog - Data tab
The advanced options available for Data_Events in the Data tab of the
Code Wizard
dialog (FIG. 169) are described
below:
Code Wizard - Level tab Options (Cont.)
Device
The device name used during code generation. This name may appear in a DEVLEV definition,
LEVEL_EVENT, CREATE_LEVEL or SEND_LEVEL statements depending on the platform and options
selected.
From, To, Total
The level range used during code generation. The range is 1 - 1000. You may change any of these
values; the others will adjust automatically. A value of 0 (zero) in the
From
field will generate an "all
level" LEVEL_EVENT handler. In this case, code generation cannot support arrays.
Note: The range setting (1-1000) affects the load placed on the CPU at compile time. Higher range
settings may result in slower compile operations.
Array Name
The array name used for generating DEVLEV or INTEGER array for level ranges.
Value/Variable
Name
The array name or value used for generating CREATE_LEVEL or SEND_LEVEL statements.
If generating code for a level range on NetLinx, this variable will be created as an array. If generating
code for a level range on Axcess, this variable will be created as a series or variable starting with this
name, i.e. Variable Name 1, Variable Name 2, etc…
Comment
This value is used on the lines before the array definition, LEVEL_EVENT, CREATE_LEVEL, and
SEND_LEVEL statements as determined by the options. Comments in NetLinx are always line-style
comments (i.e. //).
Insert
Once you have made the relevant selections on this tab, click this button to insert the specified code
into the file.
FIG. 169
Code Wizard dialog - Data tab
Code Wizard - Data tab Options
Online
Generate ONLINE statements.
Offline
Generate OFFLINE statements.
OnError
Generate ONERROR Statements.
String
Generate STRING statements.
Command
Generate COMMAND Statements.
Create Buffer
Define a buffer and connect it to a device using CREATE_BUFFER, in the DEFINE_START section.
Process Buffer
Generate a construct for detecting incoming strings.
If generating code for NetLinx, this code is placed in the STRING section of the DATA_EVENT.
Device
The device name used during code generation. This name may appear in a variable declaration,
ONLINE/OFFLINE construct, DATA_EVENT or CREATE_BUFFER statements depending on the
platform and options selected.
Содержание NetLinx Studio
Страница 40: ...Working with Projects 28 NetLinx Studio Instruction Manual...
Страница 148: ...Communication Settings 136 NetLinx Studio Instruction Manual...
Страница 160: ...Working with Online Devices 148 NetLinx Studio Instruction Manual...
Страница 178: ...File Transfer Operations 166 NetLinx Studio Instruction Manual...
Страница 208: ...Tools Menu Options 196 NetLinx Studio Instruction Manual...
Страница 229: ...Setting Program Preferences 217 NetLinx Studio Instruction Manual...