Reserved Identifiers
119
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
DO_PUSH
This keyword causes an input change from OFF to ON to occur on a specified
device-channel without the device-channel being activated by external means.
To prevent the program from stalling mainline too long, there is a 0.5 second
timeout on
DO_PUSH
.
DO_PUSH
defaults to a 0.5 second push on a channel
before issuing a
DO_RELEASE
for you (unless another
DO_PUSH
is executed for
the same channel). NetLinx will forcibly exit the
DO_PUSH
after 0.5 seconds,
regardless of the operation it is executing. If the channel is already ON, no
event is generated.
Note
: The timeout feature is used to prevent un-released pushes and out of
control ramping.
DO_PUSH(DEVICE, CHANNEL)
DO_PUSH_TIMED
Similar to
DO_PUSH
, except
DO_PUSH_TIMED
lets you specify the timeout, so
you can control the length of time that will pass before the automatic
DO_RELEASE
is generated.
DO_PUSH_TIMED(DEV Device, INTEGER Channel, LONG Timeout)
Parameters:
•
Device
: The device to PUSH.
•
Channel
: The channel to PUSH.
•
Timeout
: The time (in 1/10ths of seconds) the
PUSH
remains active. If zero is
specified as the timeout then the timeout is 0.5 seconds. If
DO_PUSH_TIMED_INFINITE
is specified as the timeout then the push never
times out.
DO_PUSH_TIMED (dvTouchPanel, 5, 10) // push button 5 for
1.0S
DO_RELEASE
This keyword causes an input change from ON to OFF to occur on a specified
device and channel without the channel being deactivated by external means.
If the channel is already OFF, no event is generated.
DO_RELEASE(DEVICE, CHANNEL)
DOUBLE
This keyword defines an intrinsic data type representing a 64-bit (double preci-
sion) signed floating-point value.
DUET_MEM_SIZE_GET
Displays the amount of memory allocated for Duet Java pool.
This is the current Java memory heap size as measured in Megabytes.
An example is a value of 5 = 5 MB.
DUET_MEM_SIZE_SET
Set the amount of memory allocated for Duet Java pool. This is the current Java
memory heap size as measured in Megabytes.
This feature is used so that if a NetLinx program requires a certain size of mem-
ory be allotted for its currently used Duet Modules, it can be reserved on the tar-
get Master.
Valid values are:
• 2 - 8 for 32MB systems
• 2 - 36 for 64MB systems
This setting does not take effect until the next reboot.
Note
:"DUET_MEM_SIZE_SET(int)" should call REBOOT() following a set.
ELSE
If the corresponding
IF
statement is false, the program will jump to the
ELSE
section of the
IF…ELSE
set of statements.
FALSE
This keyword is a CHAR constant contains the value 0.
While NetLinx does not support a BOOLEAN data type, zero is consider false
conditional expressions.
Summary of Contents for NETLINX PROGRAMMING LANGUAGE
Page 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Page 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Page 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Page 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Page 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Page 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Page 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Page 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Page 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Page 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...