
Code Generation
60
RMS CodeCrafter
FOR(nLoop = 1; nLoop <= LENGTH_ARRAY(dvRFIDReaders); nLoop++)
{
// append device number to string
cRFIDReaderDeviceIdentifiers =
"cRFIDReaderDeviceIdentifiers,ITOA(dvRFIDReaders[nLoop].Number)"
// if this is not the last device in the array, then append a semicolon
delimiter character
IF(nLoop != LENGTH_ARRAY(dvRFIDReaders))
cRFIDReaderDeviceIdentifiers = "cRFIDReaderDeviceIdentifiers,';'"
}
// send the IDENTIFIERS property to the Anterus Duet module to identify
additional reader devices
SEND_COMMAND vdvRFIDGtwy,"'PROPERTY-Identifiers,',cRFIDReaderDeviceIdentifiers"
SEND_COMMAND vdvRFIDGtwy,"'REINIT'"
}
Anterus DATA_EVENT
If support is enabled in the CodeCrafter project for Anterus, then the code generator will include a single copy
of the following DATA_EVENT in the AXI file:
(*******************************************)
(* DATA: Anterus RFID Duet Module *)
(*******************************************)
//
// We need to identify additional Anterus RFID reader devices to the Anterus RFID
// Duet module. We do this by sending the 'PROPERTY-Identifiers,' command to the
// Anterus Duet module virtual device with a semicolon delimited listing of
// additional device numbers when the Anterus Duet module comes online.
// This command is followed by a 'REINIT' command to ensure the Duet module is
// initialized properly.
DATA_EVENT[vdvAnterusGateway]
{
ONLINE:
{
// send the IDENTIFIERS property to the Anterus Duet module to identify
additional reader devices
RMSSendRFIDModuleIdentifiers(dvAnterusReaders, DATA.DEVICE)
}
}
Anterus Copy Files
If support is enabled in the CodeCrafter project for Anterus AND the "Copy RMS Module Files" option is
checked on the
Generate NetLinx Code File
page, then the code generator will also include the following files:
AMX_Anterus_Comm_dr1_0_0.jar (
only included if this file exists in the project directory
)
RMSRFIDTrackingMod.axs
FIG. 1
Generate NetLinx Code File page - Copy RMS Module Files option
Summary of Contents for RMS CODECRAFTER
Page 6: ...iv RMS CodeCrafter Table of Contents i ConnectLinx 67 Using i ConnectLinx 67...
Page 10: ...Welcome to RMS CodeCrafter 4 RMS CodeCrafter...
Page 44: ...RMS CodeCrafter Project Pages 40 RMS CodeCrafter...
Page 67: ...RMS Concepts 66 RMS CodeCrafter...