|
The final step in code generation is to compile the program. This converts the source code (which was converted from the drawing) into executable code that can be downloaded into hardware or simulated in the i.CanDrawIt tool.
Select Compile Program. When done, you should see a dialog box showing that a *.plx file was successfully created with some number of bytes of code. If you get any sort of error at this point, there is a problem with one of the library function blocks. Make a note of the line number, then look at the source code (*.pli file). Comment lines are inserted in the source code telling you which function block number is associated with each segment of code. Use that number to go back and find the symbol on the drawing, and then determine which library you need to look at. If the problem occurs with a standard library provided by Control Solutions, please submit a support ticket and post your *.dsn file for our engineers to review. If the problem occurs with a library that you have created or modified, please submit a support ticket and post both your *.dsn file and the *.mdb library containing the offending function block.
|