Channel_Event Block; Code Generation For Anterus Rfid Support; Anterus Duet Virtual Device; Anterus Rfid Readers Device Array - AMX RMS CodeCrafter Operation/Reference Manual

V3.2 or higher
Hide thumbs Also See for RMS CodeCrafter:
Table of Contents

Advertisement

Code Generation

CHANNEL_EVENT Block

RMS CodeCrafter generates a CHANNEL_EVENT block for each device with button mappings. It does not
make use of the i!-ConnectLinx variables defined in the variables section. An example block is provided
below.
(*******************************************)
(* CHANNEL: i!-ConnectLinx Feedback
(*******************************************)
CHANNEL_EVENT[dvTP1a,nchCLPanelButtons]
{
ON:
ON[vdvCLActions,nchCLButtons[GET_LAST(nchCLPanelButtons)]]
OFF:
OFF[vdvCLActions,nchCLButtons[GET_LAST(nchCLPanelButtons)]]
}

Code Generation for Anterus RFID Support

Anterus Duet Virtual Device

If support is enabled in the CodeCrafter project for Anterus, then the code generator will need to check the
user's AXS file for the defined virtual device:
vdvAnterusGateway = 41001:1:0
If the device is not found, then the code generator will need to add a device definition in the generated AXI file
for this device. This works exactly like the existing CodeCrafter behavior for the RMS Engine virtual device
and the i!-ConnectLinx virtual device.

Anterus RFID Readers Device Array

If support is enabled in the CodeCrafter project for Anterus, then the code generator will need generate a
DEVICE ARRAY that includes all the user defined RFID reader devices:
// Anterus RFID Readers Device Array
//
(all RFID readers must be included in this array!)
VOLATILE DEV dvAnterusReaders[] =
{
dvAnterusReader1,
dvAnterusReader2
}
The reader's logical name is placed in a comment to the right of each device array element. This works similar
to the device arrays the code generates creates for the touch panel devices.
Anterus & RMS RFID Modules
If support is enabled in the CodeCrafter project for Anterus, then the code generator will need include the
following modules:
// Anterus RFID Duet Module
DEFINE_MODULE 'AMX_Anterus_Comm_dr1_0_0'
mdlAnterusDuetMod(vdvAnterusGateway,dvAnterusReaders[1])
// RMS RFID Tag Tracking Module
//
(This module is used to synchronize RFID tag changes with the RMS engine.)
DEFINE_MODULE
mdlRMSRFIDTracking(vdvAnterusGateway,vdvRMSEngine)
This works similar to the other modules that the code generator already includes.
58
(* Duet RFID Virtual Device *)
// RFID Reader (Front)
// RFID Reader (Back)
'RMSRFIDTrackingMod'
*)
RMS CodeCrafter

Advertisement

Table of Contents
loading

Table of Contents