350 Series Custom Transmit Format Codes and Parameters

350 Series Custom Transmit Format Codes and Parameters

Postby gseadmin » Wed Apr 08, 2009 10:48 am

How do I write a 350 custom transmit?

Re: 350 Series Custom Transmit Format Codes and Parameters

Postby gseadmin » Wed Apr 08, 2009 10:49 am

The serial output of the Model 350/355 can be configured for a custom application such as a remote display format, a customized computer program format, or a customized ticket format. The custom transmit must be designed in a computer-transmittable ASCII text file and is loaded into the indicator's serial port via a computer. P213 must be set to 0 to select the custom trnamist format for transmission.

Elements of a Custom Transmit

* Parameters: Certain parameters related to weight, quantity, setpoints and status can be sent out of the comm port. Gross Weight, Target 1 and Quantity are examples of printable parameters.
* ASCII Text: ASCII text can be entered into a custom transmit to provide further details of a transaction. "P", "@" and "+" are examples of ASCII text.
* Control Codes: ASCII control codes can be transmitted to control a printing device. <CR> (carriage return) and <FF> (form feed) are examples of control codes. When entering a control code in a custom transmit table, use three digits preceded by a decimal point.
  • Example: Start of Text <STX> = 2. Key in .002 [ENTER] or in a text file ".002%e".
Writing a Custom Transmit ASCII Text File
Any text editor may be used to construct a custom transmit (Notepad, Wordpad, etc.), but you must save the custom transmit as a text (.txt) file. Instructions can also be sent keystroke by keystroke from a communications program. To do so, ignore the Model 350/355 display and enter the characters in the correct order.

Accessing Setup and Clearing Existing Custom Transmit
Every custom transmit file must start with:
  • 1999%s%s%z%p%u%e
  • %c%e
This accesses the Setup Mode at the end of the existing transmit and then clears the transmit so that a new one may be entered.

Entering ASCII Text
ASCII text is defined as printable characters, including alpha-numerics as well as pumctuation and symbols. ASCII text can be entered directly into a custom transmit with a %e (enter command). For example, Joe's Fertilzer Plant%e.

Entering ASCII Control Codes
Some ASCII characters are known as controls codes, non-printable characters that instruct a printing device to perform certain functions. For example, a carriage return <CR> forces a printer to move the print head to the left-most position of the current line. A line fee <LF> forces the print head to move down one line. Enter control codes with a decimal point, a 3-digit ASCII code, and a %e. For example, .013%e.

Parameter Entry
The following sequence enters parameters into a custom transmit:
* %e (initiates parameter entry)
* Parameter number (for example: 0)
* %e%e (enters parameter and initiates format entry)
* Format code
* %e%e (enters format and ends entry)
* No intervening spaces between commands.
Example 1: %e0%e%e0%e%e

Custom Transmit Parameter Selection Numbers

The default format code for all parameters is 0. This prints all numeric data with 8 characters, right justified, left spaces filled, the units (if applicable) and the parameter name. The format choices for all parameters (except Stability Status and Setpoint Status) are shown in Table 2.

Custom Transmit Format Codes


Example 2: If a combination of format choices is required, add the choice numbers together and enter their sum as the format code. For example, to print the net weight without the name (Net) or units (lb) and to print it minimum width:

Note: Only one of the choices 0-3 may be used at one time.

Exiting Setup Mode and Saving Changes
Each custom transmit file must end with: %z%c%e%e. This exits the Setup Mode, bypasses the calibration procedure and saves the indicator configuration file.

Example 3: Custom Transmit File

Return to 350 Series