Don't let the word "programmable" scare you, the only programming is entering a number to indicate how many shipments you want in a month. The file you will receive will contain a read_me file to explain things better than this page does.
My Programmable Traffic Generator (PTG) software package is designed to be used by model railroaders to generate sets of JOB TICKETS (requests for freight movement) which can then be used to initiate the movement of freight on a model railroad during an operating session.
The PTG introduces the concept of seasonal changes in traffic to automatic waybill generation. The railroad's operations with the PTG will start on the day, month, and year of the users choice, and then continue on from that point, with each operating session representing a new day. As the months go by, the mix of the traffic will change, according to traffic patterns the user has set for each type of freight.
The database and other files associated with one railroad's jobs all use the same base name. In the examples given, we'll assume the Modeler is modeling the Great Northern, and use the base name GN. The PTG will create three files:
If you are still reading at this point, I'll assume you are considering obtaining the package for your own use. Click here to get a copy. What follows is copied directly from the PTG.TXT file.
You probably have a good idea of the shipments moving between the industries and interchanges on your railroad, and how their volumes may vary with the passing months. Pick one or two with a high volume of traffic, and let's get started on the hardest part: building the database of jobs. You should be prepared to answer the following questions about each job:
The maximum length of all these fields may be found in the chart at the end of this document. WEDIT truncates overlength lines.
The UBOL file contains four of the following forms: as an aid to help job planning.
Lading: ________________________ Jan |----+----|----+----|----+----|----+----|
Car Type(s): __________ Qty: ___ Feb |----+----|----+----|----+----|----+----|
Handling: ______________________ Mar |----+----|----+----|----+----|----+----|
Apr |----+----|----+----|----+----|----+----|
Consignor: _____________________ May |----+----|----+----|----+----|----+----|
________________________________ Jun |----+----|----+----|----+----|----+----|
Jul |----+----|----+----|----+----|----+----|
Consignee: _____________________ Aug |----+----|----+----|----+----|----+----|
________________________________ Sep |----+----|----+----|----+----|----+----|
Oct |----+----|----+----|----+----|----+----|
Routing: _______________________ Nov |----+----|----+----|----+----|----+----|
Dec |----+----|----+----|----+----|----+----|
NOTES:
Once you have a few jobs planned, you can start by typing WEDIT GN
If GN.JOB doesn't exist, WEDIT will ask you to confirm that you want to start a new database. If so, it will then ask for the railroad date. WTYPE will use this date for the first set of job tickets it produces. When WTYPE knows the railroad date, it will remind you of it, and then go to the MAIN MENU.
The MAIN MENU lists only the actions that apply under the circumstances. When first starting a database, your choices are to ADD a job or QUIT. Here's a description of the MAIN MENU choices you may have later.
The EDIT MENU shows all of the information for one job, including an annual traffic pattern graph and the total shipments for the year. At the bottom of the screen, it prompts for an action, listing the actions that apply.
The choices behave as follows:The -l option to WEDIT causes it to create the file GN.LST, a formatted listing of jobs in the GN.JOB database. The format is the same one used in the Edit Menu. You are given the choice of including the shipment profile graph, or just the total annual shipments. It takes about three times as much paper to include graphs. You are also asked for a key, so you may (for example) limit the listing to all jobs for one customer. To get all jobs, just hit ENTER.
Now that you have a database of jobs, you can create a file containing one day's worth of job tickets from the GN database by typing WTYPE GN
WTYPE will tell you what day it is processing, and the name of the output file (e.g. GN.OUT) containing the job tickets ready for printing. If the length of the file exceeds 66 lines, WEDIT will put formfeed characters between pages. (The page length can be changed with an option, below.)
When done, WTYPE updates GN.CNT with new information, to be used next time. WTYPE does not change the GN.JOB file.
WTYPE can prepend the GN.OUT file with a customized set of printer setup characters to initialize options on your printer when the file is printed.
You specify these setup characters in the HEADER file (e.g. GN.HDR) which you can create with any text editor. Non-printing ASCII control characters, such as ESCAPE or SI, which would be hard to enter from the keyboard, and even harder to see in the file, can be represented by three-digit OCTAL numbers preceded by a backslash.
The format of the job tickets WTYPE produces is defined in one or more TEMPLATE files: text files which resemble the desired output. Special Percent-sign sequences in the template file specify where WTYPE is to fill in the appropriate data.
When WTYPE prints a job ticket, it passes the template file through to the output file until it encounters a valid percent sequence, then it replaces the text from the template with the desired text from the database.
If the format of the job tickets produced by WTYPE doesn't suit you, you can change it in one of two ways.
Options should be specified on the command line, and may be preceded by either a dash or a slash. They are case-sensitive.
-d for days. To create three day's worth of job tickets in GN.OUT, type WTYPE -d3 GN This may help save paper by printing more than one day's worth on the same page.
-a for across. If your job ticket templates are narrow enough to print two side-by-side on the paper, you can use the argument -a2 to print them two across. Bills can be printed up to 5 across, if desired.
-l for lines. If your header (GN.HDR) file contains instructions to print at (for example) 8 lines per inch, you can use the argument -l88 (dash el eighty-eight) to tell WTYPE to allow up to 88 lines per 11 inch page, to make better use of the paper.
Field_______ Length__ PS* Description___________________________
Consignor 1 35 chars %S Shipper, line 1
Consignor 2 35 chars %s Shipper, line 2
Consignee 1 35 chars %R Receiver, line 1
Consignee 2 35 chars %r Receiver, line 2
Lading 25 chars %L The load to be shipped
Handling 35 chars %H Any special instructions
Car type 1 5 chars %t First, second, third and fourth choice
Car type 2 5 chars %y of car type, using AAR Mechanical des-
Car type 3 5 chars %p ignations. Note how the letters spell
Car type 4 5 chars %e "type" to help you remember them.
Routing 25 chars %V Via what roads?
Job number 5 chars %J Job number in database
Long date 18 chars %D Like September 30, 1958
Short date 8 chars %d Like 9/30/58
* PS is the Percent-sign Sequence as used in a template file.