
Code Generation
58
RMS CodeCrafter
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 (* Duet RFID Virtual Device *)
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, // RFID Reader (Front)
dvAnterusReader2 // RFID Reader (Back)
}
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 'RMSRFIDTrackingMod'
mdlRMSRFIDTracking(vdvAnterusGateway,vdvRMSEngine)
This works similar to the other modules that the code generator already includes.
Содержание RMS CODECRAFTER
Страница 6: ...iv RMS CodeCrafter Table of Contents i ConnectLinx 67 Using i ConnectLinx 67...
Страница 10: ...Welcome to RMS CodeCrafter 4 RMS CodeCrafter...
Страница 44: ...RMS CodeCrafter Project Pages 40 RMS CodeCrafter...
Страница 67: ...RMS Concepts 66 RMS CodeCrafter...
Страница 70: ...i ConnectLinx 69 RMS CodeCrafter...