【实例简介】
【实例截图】
【核心代码】
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using S7.Net;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
//定义PLC类型
Plc S71500;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//下拉框添加数据类型项
Data_Type.Items.Add("Bool");
Data_Type.Items.Add("Int");
Data_T