C3204
2026-01-06 3462941c01a6d6055988ae079576cac9cc6ebf65
LB_VisionProcesses/Communicators/CommunicatorForm.cs
@@ -1,4 +1,7 @@
using System;
using LB_VisionProcesses.Communicators.SiemensS7;
using LB_VisionProcesses.Communicators.TCom;
using RJCP.IO.Ports;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
@@ -11,8 +14,6 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LB_VisionProcesses.Communicators.TCom;
using RJCP.IO.Ports;
namespace LB_VisionProcesses.Communicators
{
@@ -135,6 +136,20 @@
                txtIP.Text = communicator.CommunicatorConnections["地址"].ToString();
                txtPort.Text = communicator.CommunicatorConnections["端口"].ToString();
            }
            else if (communicator is SiemensLBS7)
            {
                btnSend.Enabled = communicator.bConnected;
                btnRuleSend.Enabled = communicator.bConnected;
                cmbIP.Visible = false;
                txtIP.Visible = true;
                lblIP.Text = "IP";
                lblIP.Text = "槽";
                txtIP.Text = communicator.CommunicatorConnections["地址"].ToString();
                txtPort.Text = communicator.CommunicatorConnections["槽"].ToString();
            }
            else
            {
                btnSend.Enabled = communicator.bConnected;