摘要: 连接 S7COMM简介 https://www.anquanke.com/post/id/186099 OSI layer Protocol Application Layer S7 communication Presentation Layer S7 communication(COTP) Se 阅读全文
posted @ 2021-04-19 20:45 frogkiller 阅读(2358) 评论(0) 推荐(0) 编辑
摘要: 1,Bit.cs 第一个布尔表达是,v前面加int强制原因是由于,&与操作符号是int,int类型 2,Boolean.cs 取字节或字中的某个位(((int)value & (1 << bit)) != 0); 置位字节或字节的某个位(byte)((value | (1 << bit)) & 0x 阅读全文
posted @ 2021-04-19 20:44 frogkiller 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 1,数据转换 BinStringToInt32;将类似"01110001100"的转为Int32.BinStringToByte;将类似"01110001100"的转为Byte.ValToBinString:将类似Byte,Int,Dint,等整型转为BinString.SelectBit:查询By 阅读全文
posted @ 2021-04-19 20:44 frogkiller 阅读(236) 评论(0) 推荐(0) 编辑