COD Parameter Definition

  1. Select Parameters from the COD editing menu. In our example, only the printer COD takes parameters:

    In our example two parameters must be defined, the first specifying the printer type (slip or journal) and the second specifying the character size (10 or 18 points):

    Parameter types may be character strings, escape sequences, hex integers in character form (for example, 0xff becomes "0xff") or decimal integers in character form. In the above example the point size is defined as an escape sequence. In our example the DP4 Till printers take numeric values for character size, and so an escape sequence (rather than a hex integer as string) is used.

    Note that all the parameter values chosen to define a POD will be concatenated into a single string when an application selects the POD. Column and length refer to position and size of the individual parameter value within the whole parameter string. The positions are counted from 1 (not 0) as the beginning of the string. If you enter NULL for the position, the parameter will be adjacent to the previous one in the string with no intervening blanks; thus you must put in non-NULL positions if you want the parameter values to be blank-separated. Parameters defined as escape sequences do not take a length because the length is implied by their possible values.

    Hex and decimal integers in character form can have a range and default value specified at this stage. This is where their values are defined and so the separate 'values' option on the parameter menu is unavailable for these parameter types.

  2. Set the possible values for your parameters. Select Values from the Parameters menu. Select the New device parameter value record on the Parameter values list, and add the parameters you require. The printer destination parameter is defined as follows:

    The character size parameter values are defined as:

  3. Finally, select an appropriate default value in both cases. This is the value a printer POD will take by default.