我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How do I convert an ASCII string of positive integers to a single register value in Concept IEC?

GOALS AND SYMPTOMS

The purpose of this resolution is to provide users with an example of converting an ASCII string of positive integers to a single register value in Concept IEC.

CAUSES AND FIXES


Below is an example of converting a string of ASCII digits to a single register value.

When a string of ASCII digits is read from a device like a bar code reader the digits are often in ASCII format. The logic below will convert the ASCII string 1234 to the decimal equivalent 1234.

The ASCII string is located in registers 400001 - 400002; two ASCII characters in each register.

Image1

The desired end result would is to have this ASCII string converted to a single decimal value located in one 4X register.
Image2

Below is the conversion chart for ASCII , Hexadecimal , Decimal illustrating the need for this conversion. If the register 400001 containing 12 ASCII was looked at in Hex format it would display 3132, if looked at in Decimal it would display 12594.
Generally this type of application only focuses on ASCII digits to decimal conversion. Other characters can be converted in the following manner. A complete conversion chart of ASCII, Hex, Decimal characters can be found on the web with the help of any search engine.

Image3

Image4

Image5

Legacy KB System (APS) Data: RESL2481 V1.0, Originally authored by on , Last Edited by on
Related ranges: Concept

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings