Anterus Rfid Device Registration & Monitoring; Anterus Module Identifiers - AMX RMS CodeCrafter Operation/Reference Manual

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

Advertisement

Anterus RFID Device Registration & Monitoring
If support is enabled in the CodeCrafter project for Anterus, then the code generator will need include the
following code.
In the "RMSDevMonRegisterCallback()" function, each RFID reader device will need to call into the
"RMSNetLinxDeviceOnline" function, passing the RFID reader device name and its associated logical name.
DEFINE_FUNCTION RMSDevMonRegisterCallback()
{
// Anterus RFID Reader Devices
RMSNetLinxDeviceOnline(dvAnterusReader1,'RFID Reader (Front)')
RMSNetLinxDeviceOnline(dvAnterusReader2,'RFID Reader (Back)')
}
In addition to the registration function calls above, the code generator must also create a DATA_EVENT for
each reader device as shown below:
(*******************************************)
(* DATA:
(*******************************************)
DATA_EVENT [dvAnterusReader1]
{
ONLINE:
RMSNetLinxDeviceOnline(dvAnterusReader1,'RFID Reader (Front)')
OFFLINE:
RMSNetLinxDeviceOffline(dvAnterusReader1)
}
(*******************************************)
(* DATA:
(*******************************************)
DATA_EVENT [dvAnterusReader2]
{
ONLINE:
RMSNetLinxDeviceOnline(dvAnterusReader2,'RFID Reader (Back)')
OFFLINE:
RMSNetLinxDeviceOffline(dvAnterusReader2)
}
This works very similar to how to code generator deals with NetLinx Named Devices.

Anterus Module Identifiers

If support is enabled in the CodeCrafter project for Anterus then the code generator will need to generate the
following code:
A single copy of the following function will need to be included in the AXI file.
(**************************************************************)
(* Call Name: RMSSendRFIDModuleIdentifiers
(* Function:
(* Param:
(* Return:
(**************************************************************)
DEFINE_FUNCTION RMSSendRFIDModuleIdentifiers(DEV dvRFIDReaders[], DEV vdvRFIDGtwy)
{
STACK_VAR
INTEGER nLoop
CHAR cRFIDReaderDeviceIdentifiers[200]
// loop over the RFID reader device array and construct an identifiers string
to send to the Duet module
RMS CodeCrafter
RFID Reader (Front)
RFID Reader (Back)
Identify the reader instances to the Duet mod.
ReadersDeviceArray, AnterusDuetVirtualDevice
None
*)
*)
*)
*)
*)
*)
Code Generation
59

Advertisement

Table of Contents
loading

Table of Contents