We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我用工具读很快就可以读出来
用下面的代码 mcProtocolTcp = new McProtocolTcp(ip, port, McFrame.MC3E);
result = await mcProtocolTcp.Open(); public async Task<int[]> GetBitDevice(string DeviceName, int iSize) { var bytes = await mcProtocolTcp.GetBitDevice(DeviceName, iSize); return bytes; // var oDataNew2 = await mcProtocolTcp.GetBitDevice("M85", 10);//以位方式读取10个 // return oDataNew2 }
程序没有报错,但是也不会返回数据结果。
The text was updated successfully, but these errors were encountered:
1.PMcProtocol是否尝试过其他的McFrame类型 2.可以使用HslCommunication,在某个版本前是开源的免费的。 3.可以尝试试试IotClient,这是开源的,也是实现了'MC'协议。 4.继续等待,我也正在出一款类似于HslCommunication的开源的类库,可能还需要半年或更长的时间。
PMcProtocol
McFrame
HslCommunication
IotClient
Sorry, something went wrong.
原因是PLC设置为二进制码通讯就好了,之前设置的是ascii码通讯,
No branches or pull requests
我用工具读很快就可以读出来
用下面的代码
mcProtocolTcp = new McProtocolTcp(ip, port, McFrame.MC3E);
程序没有报错,但是也不会返回数据结果。
The text was updated successfully, but these errors were encountered: