MsgProtocol
Purpose:
-
1. Convert logical level commands from the MsgTestInt task to protocol specific messages for the MsgTCP task.
2. Convert other configured events received to protocol specific messages for the MsgTCP task
3. Convert protocol specific level messages from the MsgTCP task to logical level responses sent to the MsgTestInt task, update variable values and set events as configured
Enter:
-
MsgProtocol <filename> <device_name> [priority] [debug]
Where:
-
filename
Specify theĀ .ini configuration filename.
device_name
Specify a unique name for this instance of MsgProtocol. The name must be same name used for comm layer task that MsgProtocal interfaces.
priority
Optional. Specify the task priority. The default is 20.
debug
Optional. Specify ON to enable debug statements. The default is OFF.
Example:
-
MsgProtocol gac.ini GAC
OR
MsgProtocol /specs/MEXA.ini CTC_MEXAgac.ini and MEXA.ini are configuration files in the above examples GAC and CTC_MEXA are the device names.
A sample gac.ini file can be found in the /cyflex/msg/gac/ folder
A sample using an IXXAT with a device can be found in cyflex/specs.def/can.ini. It also provides some explanation of the file
Notes:
-
The priority must be specified for the debug option to be recognized.