 |
 |
|
|
|
|
| |
|
| |
SynopsisBartender is a label printing application. It can accept trigger commands via TCP/IP sockets instructing what label to print and what printer to use. The Ethernet/Serial DataLink can be configured to establish a connection to Bartender using TCP/IP. There are a few steps that must be followed to setup Bartender and the DataLink for communication.DiscussionBartender Configuration:
- Open the Bartender Commander Utility.
- Add a new Task.
- Select TCP/IP Socket as the trigger type.
- Click on the Socket Options button. Note the port number. This will be used when setting up the Ethernet/Serial DataLink.
- Check the Save to File box and choose a location for the incoming data to be saved. The name of the file should be IGear.txt. This file will be used by Bartender when filling out the variables defined in the label.
- Click on the Command tab. Here you can select the action the task will perform. If the DataLink will contain the script to control the action, select Commander Script as the Command Type. Click OK to create the Task.
- After the Task is created, click on Start Detection. This will cause the application to begin listening on the designated port.
I/Gear Ethernet/Serial Configuration:
- Create a new Ethernet/Serial DataLink in the DTU.
- On the Specify the Communication Hardware screen, select Ethernet as the Hardware Type and TCP(Stream Socket) as the Software Protocol.
- On the Specify the Ethernet Settings screen, enter the IP Address of the Print Server and the Port defined when creating the task in the Commander Utility.
- Create a new Output Command. This will be used to make the connection to the server and send the configuration file. The data to send should be entered in the Specify the Transmission screen. The format should look like the following:
%BTW% /AF="C:\BarTender\Formats\HardwareInvoice.btw" /D=IGear.txt /PRN="Dell Laser MFP 1815" /C=2 /R=3 /P /DD
[CR][LF]%END%[CR][LF]Around the Town,Jerome Davis,Buyer,1220 Governor Sq.,Hadden,Alberta,WA1 1DP,Canada,(171) 555-7788,(171) 555-6750
- The %BTW% command opens the Bartender application.
- The /AF assignment indicates the label to print. This will need to be changed to match the desired label format.
- The /D assignment indicates what to use when assigning the values to the variables in the label. Note that in the Bartender setup, we selected to save the trigger data to a file named IGear.txt. This instructs Bartender to use this file to assign values to variables.
- The /PRN assignment indicates what printer to use. This will need to be changed to match the printer to use.
- The /C assignment indicates how many copies of the label to print.
- The /R assignment indicates at which line the actual data for the variables begins.
- The /P command instructs Bartender to print the label after assigning the values to the variables.
- The /DD command instructs Bartender to delete the trigger file after printing.
- The %END% command indicates the end of the trigger script. This needs to be surrounded by carriage returns and line feeds to avoid any errors.
- The remainder of the string contains the data needed by the label. The format of this data depends on how the label was setup. This particular label defined its data source as being comma-delimited. Make sure that the data you send matches the format the label is expecting.
Additional InformationMore in-depth information in creating Tasks and Triggers in the Commander Utility can be found at
http://www.seagullscientific.com/ftp/whitepapers/WhitePaper_Commander.pdf and
http://www.seagullscientific.com/ftp/whitepapers/WhitePaper_CommanderExamples.pdf. These documents also discuss the format of the data that should be sent to the Commander Utility as part of the transmission stream of the socket.Posted: 12/22/2008
|
|
|
|
|
|
|
|