功能: 1、作为下位机采集8255数据并将此数据通过通讯送出, 2、采集数据为BCD,先转换成二进制,处理后再转换成BCD 3、通讯采用方式3,多机...
代码说明:
功能: 1、作为下位机采集8255数据并将此数据通过通讯送出, 2、采集数据为BCD,先转换成二进制,处理后再转换成BCD 3、通讯采用方式3,多机通讯,上位机发地址时TB8=1,其他TB8=0 下位机SM2=1,RB8=1时产生中断后使SM2=0收发数据,结束后SM2=1-Features: 1, as under the 8255-bit machine data collection and communications sent through this data, 2, collected data for the BCD, first converted into binary, and then converted to deal with BCD 3, communication using methods 3, multi-machine communication, PC-fat address TB8 = 1, other TB8 = 0 under the digital machine SM2 = 1, RB8 = 1 when the failure to make SM2 = 0 to send and receive data, after the end of SM2 = 1
下载说明:请别用迅雷下载,失败请重下,重下不扣分!