16
7.2 – AMX
To interface to the AMX Clock Audio CDT100 module, the programmer must perform the following steps:
Dene the device ID for the CDT100 that will be controlled.
Dene the NetLinx virtual device ID that the CDT100 COMM module will use to communicate with the main program and User
Interface.
If a touch panel interface is desired, demo programs have been created for tesng.
Touch Panel le - Clock Audio-CDT100_Demo_Panel.tp4
Demo program (ClockAudio_CDT100_Demo.axs
(Go to www.clockaudio.com CDT100 Technical Downloads).
The CDT100 module must be included in the program with a DEFINE_MODULE command. This command starts execuon of the
module and passes in the following key informaon: the device ID of the CDT100, and the virtual device ID for communicang to
the main program.
Issue the following SEND_COMMAND’s to the virtual device in the virtual device ONLINE event:
PROPERTY-IP_ADDRESS,<IP Address of the CDT100>
PROPERTY_IP_PORT,<UDP Port used to communicate with the CDT100>
REINIT
An example of how to do this is shown below.
DEFINE_DEVICE
dvCDT100 = 0:3:0
vdvCDT100 = 33001:1:0
dvTP_CH32_In = 10003:1:0
dvTP_CH32_Out = 10003:2:0
dvTP Arm_C = 10003:3:0
dvTP_Phantom = 10003:4:0
dvTP_Preset = 10003:5:0
DEFINE_MODULE 'ClockAudio_CDT100_Module' ClockAudioCDT100 (vdvCDT100, dvCDT100)
DATA_EVENT [vdvCDT100]
ONLINE:
SEND_COMMAND vdvCDT100,"PROPERTY-IP_ADDRESS,192.168.187.219"
SEND_COMMAND vdvCDT100,"PROPERTY-IP_PORT,49494"
SEND_COMMAND vdvCDT100,"REINIT"
Upon re-inializaon the AMX Comm module will communicate with the CDT100 and informaon will be exchanged.
Port Mapping
This module uses mulple virtual device ports in order disnguish events for one channel on the CDT100 from another
(i.e. virtual device port 1 = Channel 1, virtual device port 2 = Channel 2, etc.)
Virtual Device Buon Events Channels Levels Control Feedback
33001:1:0 – 33001:4:0 1 1, 2, 3, 4, 5, 6, 251, 252 None See tables See tables
CDT100 User Manual
© Clockaudio 2015
Download the AMX interface module and applicaon notes from the CDT100 product / Technical Downloads secon of the
website www.clockaudio.com.