A very popular industrial Internet of Things communication plug-in. Using this dll can be very convenient, stable, and fast to obtain data from PLC equipment of multiple brands, and also supports redis, mqtt, websocket, etc., which can let your data on the network Free transmission, reducing enterprise development costs.
private void Closecomplc()//关闭接口 { try {
///
/// 读取和写入
///
///
///
private void btn5xy_Click(object sender, EventArgs e)
{
if (FxSerial.IsOpen() == true)
{
OperateResult R_X1 = FxSerial.ReadBool("Y002");
if (R_X1.IsSuccess)
{
// success
bool value = R_X1.Content;
if (value == false)
{
OperateResult write = FxSerial.Write("M2", true);