如何计算BK5200输入输出字节数?答:以下图配置为例(3)KL1002(2channel24Vdcdiscreteinputterminals)(1)KL2002(2channel24Vdcdiscreteoutputterminal)(2)KL2114(4channel24Vdcdiscreteoutputterminals)(1)KL1501(HighspeedUp/Downcounter)(1)KL4002(2channel0-10Vanalogoutputterminal)(1)KL3062(2channel0-10Vanaloginputterminal)(1)KL9010(endterminal)输入字节数的计算方法:Rx(bytes)=(((IN1+IN2+..+INn)/8)(+1如果有余数))+1statusbyteVariableTerminalType#ofproducedbitsAnalogorDiscreteIN1terminal1KL10022bitsdiscreteIN2terminal2KL10022bitsdicsreteIN3terminal3KL10022bitsdiscreteIN4terminal7KL150140bitsanalogIN5terminal9KL306232bitsanalogRx(bytes)=((((IN1+IN2+IN3+IN4+IN5)/8)+(1ifaremainderexists))+1status)((((2+2+2+40+32)/8+(remainderexistsso+1))+1status)Rx=11bytes输出字节数的计算方法:Tx(bytes)=(((OUT1+OUT2+...+OUTn)/8)(+1如果有余数))VariableTerminalType#ofconsumedbitsAnalogorDiscreteOUT1terminal4KL20022bitsdiscreteOUT2terminal5KL21144bitsdicsreteOUT3terminal6KL21144bitsdiscreteOUT4terminal7KL150140bitsanalogOUT5terminal8KL400232bitsanalogTx(bytes)=(((OUT1+OUT2+OUT3+OUT4+OUT5)/8)+(1ifaremainderexists))(((2+4+4+40+31)/8)+(remainderexistsso+1)Tx=11byesThefollowingisatabulardisplayoftheRxstring:Byte#DatainformationBit7Bit6Bit5Bit4Bit3Bit2Bit1Bit01KL15012KL15013KL15014KL15015KL1506KL3062Channel1Lowbyte7KL3062Channel1HighByte8KL3062Channel2LowByte9KL3062Channel2HighByte10notusednotusedt3c2t3c1t2c2t2c1t1c2t1c111notimplementednotimplementednotimplementednotimplementednotimplementednotimplementednotimplementedBK5200statust3c1=terminal3,channel1etc.ThefollowingisatabulardisplayoftheTxstring:Byte#DatainformationBit7Bit6Bit5Bit4Bit3Bit2Bit1Bit01KL15012KL15013KL15014KL15015KL1506KL4002Channel1Lowbyte7KL4002Channel1HighByte8KL4002Channel2LowByte9KL4002Channel2HighByte10t6c2t6c1t5c4t5c3t5c2t5c1t4c2t4c111notusednotusednotusednotusednotusednotusedt6c4t6c3