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

ELEOK

標題: [logix5000源程序]Number Converter AOI [打印本頁]

作者: 山海致遠    時間: 2019-4-6 20:42
標題: [logix5000源程序]Number Converter AOI
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, 售價: 1 E幣)
DTBN_Converter_V1.3_Rev17.L5X (11.17 KB, 售價: 1 E幣)




歡迎光臨 ELEOK (http://m.afoofa.cn/) Powered by Discuz! X5.0