Programming

Programming

Anterus Duet Module - Overview

The COMM module translates between the standard interface described below and the device protocol. It parses the buffer for responses from the device, sends strings to control the device, and receives commands from the UI module or telnet sessions.

Refer to the documentation supplied with the Anterus Duet Module for more details.

A sample UI module is provided in the module package. It is not intended to cover every possible application, but can be expanded as needed by a dealer to meet the requirements of a particular installation.

Implementing the Anterus Duet Module

To interface to the AMX_Anterus_Comm_dr1_0_0.jar module:

1.Define the device ID for the UPS that will be controlled.

2.Define the virtual device ID that the AMX_Anterus_Comm_dr1_0_0 COMM module will use to communicate with the main program and User Interface.

Duet virtual devices use device numbers 41000 - 42000.

3.If a touch panel interface is desired, a touch panel file AMX_Anterus.TP4 and module AMX_Anterus_UI.axs have been created for testing.

4.The Duet AMX_Anterus_Comm_dr1_0_0 module must be included in the program with a DEFINE_MODULE command.

This command starts execution of the module and passes in the following key information: the device ID of the UPS to be controlled, and the virtual device ID for communicating to the main program.

An example is shown below.

DEFINE_DEVICE

 

 

 

dvAnterus

=

96:1:0

(* AxLink. Main RFID reader *)

vdvAnterus

=

41001:1:0

(* Virtual Device *)

dvTP

=

10001:1:0

// TP

DEFINE_VARIABLE

 

//Define arrays of button channels used on your own

 

touch panel

integer nBUTTONS[]={1,2,3,4,5,6,7}

DEFINE_START

// Place define_module calls to the very end of the

 

define_start section.

DEFINE_MODULE 'AMX_Anterus_Comm_dr1_0_0' Comm(vdvAnterus,dvAnterus)

DEFINE_MODULE 'AMX_Anterus_UI' UI(vdvAnterus,dvTP,nBUTTONS)

Since this API will communicate with a system of RFID readers, you must specify the AxLink device numbers used by your install followed by a REINIT command in order to start communicating, like so:

Anterus RFID Solution

27

 

 

Page 31
Image 31
AMX manual Anterus Duet Module Overview, Implementing the Anterus Duet Module