Reserved Identifiers
104
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
CANCEL_WAIT_UNTIL
This keyword cancels a specified
WAIT_UNTIL
or
TIMED_WAIT_UNTIL
. Only
named
WAIT_UNTIL
and named
TIMED_WAIT_UNTIL
commands can be can-
celed.
CANCEL_WAIT_UNTIL '<wait name>'
CASE
See
SWITCH..CASE
on page 153.
CHANNEL_EVENT
The
CHANNEL
keyword defines a channel event handler. This type of handler is
invoked when an output change occurs on the specified device-channel and
can only be used in the
DEFINE_EVENT
section of the program.
CHANNEL[DEVICE,CHANNEL] or
CHANNEL[(DEVCHAN[ ])]
{
ON:
{
// Channel ON event handling
}
OFF:
{
// Channel OFF event handling
}
}
DEVICE
refers to:
• Device – a single device number constant.
• D:P:S – a constant device specification such as TP:1:0.
CHANNEL
refers to:
• Channel – a single channel number constant.
DEVCHAN[ ]
refers to a device-channel array.
See the
Event Handlers
section on page 61 for more information on
CHANNEL_EVENT
s.
CHAR
This keyword defines an intrinsic data type representing an 8-bit unsigned inte-
ger. This data type is used with ANSI character strings.
CHARD
Sets the delay between all transmitted characters to that specified in
100-microsecond increments.
The syntax:
CHARD-<time in 100 microsecond increments>
Example:
SEND_COMMAND device,'CHARD-100'
Sets a 10mS delay between all transmitted characters.
CHARDM
Sets the delay between all transmitted characters to that specified in
1-millisecond increments.
The syntax:
CHARDM-<time in 1 millisecond increments>
Example:
SEND_COMMAND device,'CHARDM-100'
Sets a 10 mS delay between all transmitted characters.
CLEAR_BUFFER
This command sets the contents of the specified text buffer to zero; therefore,
subsequent
GET_BUFFER_CHAR
calls will not return anything. The
CLEAR_BUFFER
command does not modify the data in the buffer, just the inter-
nal length value.
CLEAR_BUFFER Buffer
CLEAR_BUFFER
does not delete the data in the buffer; it only sets the length to
zero.
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...