確認(rèn)你的儀表數(shù)據(jù)是二進(jìn)制浮點(diǎn)或十進(jìn)浮點(diǎn)數(shù),然后再轉(zhuǎn)為二進(jìn)制整數(shù)就OK,
118
DEBCD
二進(jìn)制浮點(diǎn)數(shù)→十進(jìn)制浮點(diǎn)數(shù)
119
DEBIN
十進(jìn)制浮點(diǎn)數(shù)→二進(jìn)制浮點(diǎn)數(shù)
129
INT
二進(jìn)制浮點(diǎn)數(shù)→BIN 整數(shù)變換
樓主留言:
我也是這樣轉(zhuǎn)換的,是要講數(shù)據(jù)先存放到其他數(shù)據(jù)寄存器中嗎,我直接轉(zhuǎn)換D1073 D1074沒(méi)效果,還有顯示出的數(shù)據(jù)和我儀表上數(shù)據(jù)不一致啊 ,是要講高地位數(shù)據(jù)合并嗎