Code Generation
Event Definitions
RMS CodeCrafter generates the following DATA_EVENT blocks the DEFINE_EVENT section.
RMS Engine Device
RMS CodeCrafter generates a DATA_EVENT block for the RMS Engine device. This block will
always be generated, boilerplate, with these exceptions:
See the example block below:
(*******************************************)
(* DATA: RMS Engine
(*******************************************)
DATA_EVENT[vdvRMSEngine]
{
ONLINE :
{
}
}
Named Devices
RMS CodeCrafter generates a DATA_EVENT block for each Named Device. This block will
always be generated as follows:
(*******************************************)
(* DATA: Main Touch Panel
(*******************************************)
DATA_EVENT [dvTP1a]
{
ONLINE:
OFFLINE:
}
80
If the Use Multiple Displays option is selected, RMS CodeCrafter will generate a call to
RMSSetMultiSource(TRUE)
A call to RMSSetDeviceInfo() will be generated for each monitored device using an
RMS Support Module; If the device has a non-negative timeout value, a call to
RMSSetCommunicationTimeout() will be generate.; Finally, if the device has Detect
Control failure enabled, a call to RMSEnablePowerFailure will be generated.
// Configure RMS Server Address
RMSSetServer(RMS_SERVER_IP)
// Track Multiple Sources
RMSSetMultiSource(TRUE)
// Display
RMSSetDeviceInfo(dvProj,'Display','Display Manufacturer','Display Model')
RMSSetCommunicationTimeout(dvProj,200)
RMSEnablePowerFailure(dvProj)
RMSNetLinxDeviceOnline(dvTP1a,'Main Touch Panel')
RMSNetLinxDeviceOffline(dvTP1a)
*)
*)
RMS CodeCrafter