EasyManua.ls Logo

AMX NX-2200 - Configuring Application-Defined Devices

AMX NX-2200
145 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WebConsole - Modules Options
62
NX-Series Controllers - WebConsole & Programming Guide
Conf iguring Application-Defined Devices
Elements such as DUET_DEV_TYPE_DISPLAY and DUET_DEV_POLLED are defined within the NetLinx.axi file.
The NetLinx.axi file contains both the new API definitions, as well as the pre-defined constants that are used as some of the API
arguments (ex: DUET_DEV_TYPE_DISPLAY).
NOTE: Physical device names are typically pref ixed with "dv" and Virtual device names are typically prefixed with "vdv".
Example Code:
PROGRAM_NAME='DDD'
DEFINE_DEVICE
COM1 = 5001:1:0
COM2 = 5001:2:0
dvDisplay = 41001:1:0
dvVideoProjector = 41002:1:0
DEFINE_CONSTANT
DEFINE_TYPE
DEFINE_VARIABLE
DEFINE_START
STATIC_PORT_BINDING(dvDisplay, COM1, DUET_DEV_TYPE_DISPLAY,
'statbcc Display', DUET_DEV_POLLED)
DYNAMIC_POLLED_PORT(COM2)
DYNAMIC_APPLICATION_DEVICE(dvVideoProjector, DUET_DEV_TYPE_VIDEO_PROJECTOR,
'statbcc Serial Projector')
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
DATA_EVENT [dvVideoProjector]
{
// Duet Virtual device data events go here
}
You can find this example code within the DEFINE_START section of your code. This code is reflected in the first two entries listed in
FIG. 51. The code gives the Master a “heads-up notification to look for those devices meeting the criteria outlined within the code.

Table of Contents

Other manuals for AMX NX-2200

Related product manuals