<< Click to Display Table of Contents > 

USC-2 Manual > Stand-Alone (Flash) Functionality > G-Code

G-Code
Previous pageReturn to chapter overviewNext page

The USC-2 card can interpret G-Code commands by converting ASCII *.cnc files to binary *.unf files directly on the card. These files can be run in standalone mode (flash mode), so no PC is needed for this process.

Required for this feature:

USC-2 scanner control card
Option flash license
Correctly pre-configured USC-2 card

ConvertCNCtoUNF

Figure 28: USC-2 G-Code interpreter

 

There are two ways of converting a *.cnc file into a *.unf file:

1.Upload and converting the *.cnc file via the usc_server -> Flash -> Load button.
If you are using the usc_server you have to save the file 'sc_gcode_defines.cnc' within the <SCAPS>\system directory. The *.unf file will automatically converted if you load it via the usc_server.

note

sc_usc-server.exe will generate a debug log file g_code_to_unf.log at scaps intermed folder when converting the *.cnc file to *.unf file.

To look for *.cnc to *.unf compile errors, please search for "UNKNOWN" within g_code_to_unf.log file.

2.Upload the *.cnc file to the \jobs directory of the USC-2 flash memory and convert it directly on the USC-2 card.
If you are using the G-Code interpreter of the USC-2 card (without usc_server) you need to upload the file 'sc_gcode_defines.cnc' to the \misc directory of the USC-2 flash memory. Please refer to the chapter Convert G-Code for further instructions.

For a system with multiple cards or heads, the following is recommended:

Use neutral settings in Settings - System - Optic: Gain X = Gain Y = 1, Offset X = Offset Y = 0, Rotation =0, no flip or inversion of axes.
Use the same neutral settings in all *.cnc files: $SC_FIELDXGAIN = $SC_FIELDYGAIN = 1, $SC_FIELDXOFFSET = $SC_FIELDYOFFSET = 0, and $SC_FIELDAXISSTATE = 0. If not specified, default values will be taken, which might not be as wanted.
Use the identical field size for all cards or heads in Settings - System - Optic and in the *.cnc file. This is only the nominal field size.
Implement any flip or any inversion in the correction file *.ucf of each card or head. Assign the correction file to each head in Settings - System - Optic - Advanced - Correction
Specify the real field size and further head-specific settings (Gain, Offset, Rotation) for each head in Settings - System - Optic - Advanced - Correction. Use the store button to store these settings to each card.

Following these steps makes sure that all *.unf files generated from *.cnc files use identical and neutral settings and head-specific changes are stored on the card directly. Thus, generation of the *.cnc files is independent of the head this file will be marked later on. These "neutral" *.unf files then can still be used after exchange of a card.