|
发表于 2019-2-28 00:22:46
|
显示全部楼层
In order to add a code, such as a G10 for example, a keyword needs to be found that can be used to define it. Keywords can be found in the Symbolic Code Keywords list.
There are many miscellaneous keywords in the list, such as MiscSymbolicCode10. In the Symbolic Codes section of the .ASC file, this could be added:
MiscSymbolicCode10 : G10Now that the G10 is defined, it can be put in the appropriate example in the Examples section.
For instance, say the G10 is to be output when the Machine Setup (or Set Origin) is performed. Look in the Examples section to see if there already is an ex_MachineSetup (or ex_SetOrigin) defined. Maybe the .ASC file has one of the following:
ex_MachineSetup : O*
: MeasurementCode CoordinateCode
: MachineSetupComment
ex_SetOrigin : O*
: MeasurementCode CoordinateCode
: SetOriginCommentIf the G10 needed to come after the program number O, it could be modified like so:
ex_MachineSetup : O*
: G10
: MeasurementCode CoordinateCode
: MachineSetupComment
ex_SetOrigin : O*
: G10
: MeasurementCode CoordinateCode
: SetOriginCommentIf the .ASC file did not contain either an ex_MachineSetup or ex_SetOrigin, then either one could be added anywhere in the Examples section:
ex_MachineSetup : G10
ex_SetOrigin : G10Using a keyword to define a symbolic code is the preferred method for outputting code like this. That way you can associate the code to a descriptive name.
There is, however, a quick alternative for outputting codes such as the G10 above, and that is by adding strings to the Examples Section.
« Symbolic Codes |
|