60 Series Custom Transmits

60 Series Custom Transmits

Postby gseadmin » Wed Apr 08, 2009 12:49 pm

A custom transmit is a sequence of characters, control codes and parameter values to be transmitted out a communication port to a peripheral device such as a printer, remote display, computer or another weight indicator. As the name suggests, each custom transmit may be configured to send data in virtually any format.

Communication Setup
Before discussing the configuration of a custom transmit table it is important to have an understanding of the communication port setup parameters. These parameters are:

These parameters collectively define each communication port’s protocol. The most important thing to remember about protocol is that the protocol of any receiving device must match the protocol of the transmitting device to ensure proper communication.

Custom Transmit Setup Parameters
Up to 250 separate custom transmits may be defined, each containing up to 5000 characters. Setup parameters P989 – P998 set the criteria for initiating each custom transmit.

There are three ways to initiate a custom transmit:
1. [PRINT] key will send a custom transmit out the port specified at P992 provided P991 is set for ‘on request’ or ‘prompt’.

Every custom transmit set for ‘on request’ will begin transmission when [PRINT] is pressed.

If any custom transmits are set for ‘prompt’, pressing [PRINT] will first display the prompt “Which Tx# ?”. This gives you the opportunity to choose one of several transmits. For example, a vendor may supply components to ten different customers. The vendor can create ten custom transmits, each with a different name, address and phone number to be printed on the shipping label. The operator can then print the appropriate label by pressing [PRINT] to display the “Which Tx# ?” prompt and then key in the desired transmit number and press [ENTER] to print the label.

Note that only one ‘prompt’ transmit can be sent at a time. After a ‘prompt’ transmit is sent, any transmits set for ‘on request’ will also be sent.

2. Custom transmits can be sent automatically on a continual basis by setting P989 to ‘continuous’. The time between each continuous transmit is defined at P980 (transmit rate). Continuous transmits are used to send data to devices such as scoreboards, remote displays and computers.

3. A macro command can initiate a custom transmit. This is possible even if P991 is set to ‘off’. This allows custom transmits to be event driven such as having weight tickets printed automatically each time a new weight is applied.

Defining a New Custom Transmit
1. Enter the setup mode and access P989.
2. Key in the desired transmit number and press [ENTER].
3. If the transmit does not exist, “Make? NewTx” is displayed. Press [ENTER] to confirm.
4. Select P990 and enter a name for the custom transmit if desired. The name is only used for documentation purposes.
5. Select P991 and select whether the transmit will be ‘off’, ‘on request’ or ‘prompt’.
6. Select P992 and select which communication port the transmit should use.
7. Select P993 – P997 and select whether the transmit should ‘ignore’ the motion of each scale or be ‘inhibited’ by it.
8. If a custom transmit is to be ‘continuous’, enable P998.
9. Select P1000 to access the custom transmit table.

Creating a Custom Transmit Table
The custom transmit table begins at P1000. It contains the information to be transmitted. When a custom transmit is first defined, the transmit table is empty. Text, parameters and control codes must be entered in the proper sequence to achieve the desired output. For example, suppose we wish to print the following ticket:
60_Series_example_ticket.jpg (9.73 KiB) Viewed 6155 times

This ticket begins with the text “GSE Scale Systems” on the first line, followed by one blank line, followed by three consecutive lines of parameter information. The custom transmit will be configured in the same sequence.

Entering Text
Starting at P1000, begin entering the text characters for “GSE Scale Systems”.

To enter text using the alpha keypad or serial port, simply key in the desired character(s) and press [ENTER].

To enter text using the scrolling method proceed as follows:

1. [ 5 ] to scroll through the character set.
2. Once the desired character is displayed, press [ 4 ] to shift right to the next character position.
3. Repeat steps 1 and 2 until the entire name is displayed ending at step 1.
4. Press [ENTER] to accept insert the entered text into the transmit table.

* Pressing [ 6 ] will scroll backwards through the character set.
* Pressing [ 3 ] will shift left, or backspace.
* Pressing [CLR] will delete an entry in process.
* The text appears in the custom transmit table exactly as entered.

Entering Control Codes
Having entered the text for the first line of the ticket, we must next account for the blank line that follows and position the print ‘cursor’ at the beginning of the third line (the ‘cursor’ now resides at the end of ‘Systems’). Positioning the ‘cursor’ requires use of special non-printable characters call control codes. Our example requires the use of two common control codes – carriage return <CR> and line feed <LF>.

A carriage return <CR> positions the ‘cursor’ to the left-most position of the current line.

A line feed <LF> moves the ‘cursor’ down one line without moving it left or right.

Therefore, to move the ‘cursor’ from the end of the first line to the beginning of the third line we must transmit a carriage return and two line feeds <CR><LF><LF>. Similarly, a <CR> and <LF> will be required after each subsequent line as illustrated below. Note the form feed <FF> at the end of the ticket. This is another control code which is used to advance the printer paper to the top of the next ticket.
60_Series_example_ticket_2.jpg (14.87 KiB) Viewed 6183 times

A control code must be entered into the custom transmit table using it’s three-digit ASCII value preceded by a decimal ‘.’. Reference an ASCII chart for these and other character values. For example, to enter the carriage return, key in
60_Series_example_ticket_3.jpg (2.49 KiB) Viewed 6286 times

The control code appears in the transmit table as a single character:
60_Series_example_ticket_cc.jpg (580 Bytes) Viewed 6279 times

Enter the two line feed characters next:
60_Series_example_ticket_4.jpg (4.58 KiB) Viewed 6166 times

The transmit table now shows the three control codes:
60_Series_example_ticket_cccccc.jpg (1.02 KiB) Viewed 6251 times

Note that four lines in our example use the <CR><LF> combination. Since this is a very common combination of control codes, a single entry unique to GSE indicators was created to make entering these characters more convenient. Keying in
60_Series_example_ticket_5.jpg (2.5 KiB) Viewed 6269 times

will enter the <CR><LF> combination.

Any other ASCII character, including printable characters, may be entered using this method. Referencing the ASCII chart, ‘GSE’ could have been entered as:
60_Series_example_ticket_6.jpg (7.57 KiB) Viewed 6179 times

Entering Parameter Data
Operating parameters may be entered in a custom transmit table. Parameters may be formatted to include the parameter’s value, units (if applicable) and name. To enter a parameter into the transmit table:
1. Press [ENTER]
2. The display prompts Pick Parm:, Parm= Gross.
3. Select the desired parameter by:
  • Pressing [ 5 ] or [ 6 ] to scroll through the parameter list, or
  • Key in the parameter number and instance if applicable ( you will be prompted Pick Inst: by the indicator if an instance is required).
4. The display prompts Set Formt, Formt 00000.
5. Key in the desired format and press [ENTER].
6. The display confirms the entered format.
7. Press [ENTER] to accept the parameter configuration.
8. The formatted parameter is entered into the transmit table as a single character:
60_Series_example_ticket_pa.jpg (675 Bytes) Viewed 6237 times

For example, the third line of our ticket
60_Series_example_ticket_7.jpg (1.55 KiB) Viewed 6240 times

contains the gross weight value (50.00), the weigh units (lb) and the parameter name (Gross). To enter this parameter into the transmit table:

1. Press [ENTER]
2. The display prompts Pick Parm:, Parm= Gross.
3. Key in the gross weight parameter for scale #1, 0.1, and press [ENTER].
4. The display prompts Set Formt, Formt 00000.
5. Press 0 [ENTER].
6. The display confirms the entered format.
7. Press [ENTER] to accept the parameter configuration.

To complete our example, enter a <CR><LF> after the gross weight parameter and repeat steps 1 – 7 substituting the tare and net parameter numbers at step 3. Remember the <CR><LF> control codes after each parameter. Also include the <FF> character at the end.

Parameter Format Codes
A format code defines how a parameter value is to be transmitted. For example, a customer may prefer to have the parameter names Gross, Tare and Net appear to the left of the weight values instead of the to the right. Perhaps the weight values should be left-padded with zeros instead of spaces. A time value may be printed in 12 or 24 hour format, with or without the date. Do you want to include seconds? Include the name of the day? These and many more variations are possible using format codes. Refer to the tables on pages 8-21 through 8-26 of the M660 Technical Reference Manual for a list of available formats.

Each type of parameter (floats, integers and strings) has it’s own format code selections. Keep this in mind when selecting format codes for weight parameters, time & date parameters, variables, etc. Refer to the appropriate format table.

Establishing the desired format code is a simple matter of addition. First decide how you want the data to appear, then add the various format codes that will generate the desired output. Suppose we want the gross weight to appear as follows:
60_Series_example_ticket_8.jpg (3.75 KiB) Viewed 6256 times

Navigating a Custom Transmit Table
If we could examine the entire transmit table from our example, it would appear as:
60_Series_example_ticket_ccpaccpacc.jpg (9.68 KiB) Viewed 6249 times

Of course the standard VF display can only show five characters at once . Using the [ 3 ] and [ 4 ] keys we can scroll backward and forward through the transmit table. Text characters are easy to identify as they appear exactly as entered. However the cc and PA characters can make the custom transmit data appear rather cryptic. We know that cc represents a control code, but which one? Likewise, PA represents an unidentified parameter of unknown format.

To determine what these characters represent, press [ 6 ] to access the expanded display mode. The display now shows the details of the rightmost display character. Using the [ 3 ] and [ 4 ] keys we can now scroll backward and forward through the transmit table in the expanded mode, examining details of each character in sequence. Text characters and control codes are shown with their corresponding ASCII value. Parameter names are displayed with format codes. Press [ 6 ] again to return to the normal display mode.

The parameter number appearing in the large digits represents the position of the rightmost displayed character. This information is helpful when attempting to access the middle of a large transmit table. If you wish to access to 500th element of a table, rather than scrolling to that position you can simply key in 1500 [SELECT]. To immediately access the end of a custom transmit table, key in 4999 [SELECT] (the maximum entry position).

Editing a Custom Transmit Table
Information may be deleted from or added to an existing custom transmit table. Press [CLR] will delete the rightmost displayed character. To delete the entire custom transmit, access the end of the table and press [CLR] [ENTER]. When adding elements, characters are inserted between the two rightmost characters.

Return to 60 Series