哥們我發(fā)現(xiàn)您有點(diǎn)自欺欺人,除法是不是會(huì)產(chǎn)生小數(shù)點(diǎn)(占用4個(gè)),請(qǐng)問(wèn)誰(shuí)去收留小數(shù)點(diǎn)后面的數(shù)據(jù)(例如10/3=3.333,請(qǐng)問(wèn)誰(shuí)收留0.333呢?不然你會(huì)說(shuō)三菱PLC不準(zhǔn)確,算個(gè)數(shù)都會(huì)出錯(cuò)),要不然3U和5U默認(rèn)8000個(gè)寄存器干嘛呢,我個(gè)人應(yīng)用隔開(kāi)5個(gè)最保險(xiǎn),例如* D0 D5 D10,這樣就不會(huì)出現(xiàn)任何問(wèn)題,5U也越來(lái)越像博途套路靠近,自定義變量還要整數(shù)據(jù)類型