Cancel_Wait_Until; Case; Channel_Event; Char - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Reserved Identifiers
Keywords & Run-Time Library Functions (Cont.)

CANCEL_WAIT_UNTIL

CASE

CHANNEL_EVENT

CHAR

CHARD

CHARDM

CLEAR_BUFFER

104
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>'
See SWITCH..CASE on page 153.
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_EVENTs.
This keyword defines an intrinsic data type representing an 8-bit unsigned inte-
ger. This data type is used with ANSI character strings.
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.
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.
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 Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents