検索機能を使用して 500 を上回る Kepware の知識ベース記事の中から閲覧します。結果を絞り込むか、クエリーを下部の検索フィールドに入力します。

解決策が見つからなかった場合には、当社の PTC eSupport Portal で追加資料を確認することもできます。eSupport Portal へのログインを要求された場合、My Kepware の認証情報を使用できます。My Kepware アカウントが必要ですか? こちらで作成

各種検索方法:
View All Solutions

Kepware Knowledge Base: Solution


Sending Multiple Pieces of Data to Create a Label on an ASCII Label Printer


Last Update: 2018/11/12

To create a label on an ASCII label printer, use multiple tags to update scratch buffers and a single tag (which is essentially a trigger) to send the information to the printer. For more information, download the ZIP file ASCII Printer Example.

This example prints a simulated product label. It has five tags: four data tags (Prod_Name, Prod_Desc, Prod_Model, and Prod_SN) and a Print Tag. The first three data tags are ASCII string tags, and the last data tag is an ASCII Integer format. The four data tags have the following:

  • A write transaction that writes data to a scratch buffer. Each tag has a different buffer.
  • A read transaction consisting of one Update Tag command that updates from the respective scratch buffer. This allows clients to read back what was last written to each tag.

The Print Tag has the following:

  • A write transaction that combines the other tags' data into one message and then sends that message to the device.
  • A read transaction that updates the tag from a scratch buffer.

Notes:

  1. The write transaction is triggered when a value is written to the Print Tag.
  2. This example uses the Initialize Buffers feature to make the Write Only Print Tag be read as good quality (or value 0). This feature can also be used to make the data tags be read as good quality before they've been written to. It is accessible from the User-Configurable (U-CON) driver's Transaction Editor's toolbar.