国产免费AV|泡泡玛特欧洲总部将设在伦敦|中文天堂网www新版资源在线|一本久道综合在线中文|国精产品一二三产区的使用方法|香蕉鱼在线观看|www.27eee

 找回密碼
 注冊(cè)
搜索

[基本使用] [logix5000源程序]Number Converter AOI

[復(fù)制鏈接]
樓主
山海致遠(yuǎn) 發(fā)表于 2019-4-6 20:42:19 | 只看該作者 |倒序?yàn)g覽 |閱讀模式
廠商
廠商: AB
The DTOS instruction in Logix processors converts a DINT into a decimal ASCII string. It is sometimes required to convert numbers to different bases (most usually Hexadecimal, Binary and Octal). This AOI converts a positive DINT number (Source) to an ASCII string of any base (Base) between 2 and 16 and stores the result in Destination. The program operates by dividing the Source (numerator) by Base (denominator) and storing the remainder (converted to an ASCII character) in Destination. The integer result of this division is then set as the new numerator (Source) and is divided by base and the remainder is stored. This process is repeated until the numerator (Source) is less than base.
The instruction sets the Error bit when Source is negative or when Base is outside the range 2 - 16.
DTBN_AOI_V1_3_Rev17.ACD (315.91 KB, 售價(jià): 1 E幣)
DTBN_Converter_V1.3_Rev17.L5X (11.17 KB, 售價(jià): 1 E幣)
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則

手機(jī)版|小黑屋|ELEOK |網(wǎng)站地圖

GMT+8, 2026-5-26 20:14

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回復(fù) 返回頂部 返回列表