
Code Generation
50
RMS CodeCrafter
DEFINE_DEVICES Section
Device Definitions
RMS CodeCrafter will generate device definitions for the following devices in the DEFINE_DEVICE section
of the generated file, if they cannot be located in the integrated source file:
vdvRMSEngine – the RMS Engine virtual device
dvRMSEngine – the socket device for communication with the RMS server
vdvCLActions – the i!-ConnectLinx virtual device.
The values used in these definitions are those entered on the RMS Devices wizard page.
Device Definition Warnings
For all other devices referenced in the code-generation process, RMS CodeCrafter will optionally create
warnings that notify the user that the device has not been defined. Below is one such warning:
// dvTP3a
#IF_NOT_DEFINED dvTP3a
#WARN 'RMS: This Device Needs to be Defined in your Main Program: dvTP3a'
#END_IF
An option is provided to enable/disable these warnings. By default they are enabled.
DEFINE_CONSTANT Section
Server Address Definition
RMS CodeCrafter will create a definition for the server address, using the value provided in the RMS Server
Address Page.
// RMS Server IP
CHAR RMS_SERVER_IP[100] = '192.168.222.51'
Maximum String/Enum Param Length
RMS CodeCrafter will create a definition for RMS_MAX_PARAM_LEN constant, with a value of 100.
// Max String/Enum Param Length
RMS_MAX_PARAM_LEN = 100
RMSCommon.axi
RMS CodeCrafter will create an include statement for the RMSCommon.axi include file. This is inserted after
the DEFINE_CONSTANT section and prior to the DEFINE_VARIABLE section.
(***********************************************************)
(* INCLUDE FILES GO BELOW *)
(***********************************************************)
#INCLUDE 'RMSCommon.axi'
Содержание 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...