AMX NI-700 Webconsole & Programming Manual page 63

Netlinx integrated controllers firmware version 4.0 or higher
Hide thumbs Also See for NI-700:
Table of Contents

Advertisement

Example Code:
PROGRAM_NAME='DDD'
DEFINE_DEVICE
COM1 = 5001:1:0
COM2 = 5001:2:0
dvRECEIVER1 = 41000:1:0
dvDiscDevice = 41001:1:0
DEFINE_CONSTANT
DEFINE_TYPE
DEFINE_VARIABLE
DEFINE_START
STATIC_PORT_BINDING(dvDiscDevice, COM1, DUET_DEV_TYPE_DISC_DEVICE,
'My DVD', DUET_DEV_POLLED)
DYNAMIC_POLLED_PORT(COM2)
DYNAMIC_APPLICATION_DEVICE(dvRECEIVER1, DUET_DEV_TYPE_RECEIVER,
'My Receiver')
(***********************************************************)
(*
(***********************************************************)
DEFINE_EVENT
DATA_EVENT [dvRECEIVER1]
{
// Duet Virtual device data events go here
}
Sample code can be found within the DEFINE_START section, as shown in FIG. 67:
Manage Device Bindings page - showing the NetLinx code relation
FIG. 67
This code gives the Master a "heads-up" notification to look for those devices meeting the criteria outlined within the code.
NetLinx Integrated Controllers (Firmware v4)- WebConsole & Programming Guide
THE EVENTS GO BELOW
WebConsole - System Options
*)
63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents