- 博客(7)
- 收藏
- 关注
原创 信捷PLC跟西门子700IE通信
背景:客户要求把旧的西门子屏SMART LINK700IE V3跟信捷XC3通信。分析:西门子屏带网口,XC3不带网口,所以通信不了。西门子屏还带有422和485串口,信捷自带232口及485口。恩想想走458吧,那么问题来了。西门子不支持信捷,没有信捷的驱动。嗯痛苦的表情。继续换个思路,一般支持485的话就支持标准的Modbus RTU协议。嗯嗯看看驱动程序里有莫迪康的,嗯,这就有路子,继续做.......第一步....先确定通信参数屏的参数波特率9600数据位8 停止位1偶校验...
2021-09-10 15:27:07 2675
原创 C# TCP通信服务器端(sockt)
1、服务器端画面2.客户端软件3.所需要的usingusing 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;us...
2021-07-25 16:16:49 1136
原创 C# 创建新文件 按时间保存文本文件
效果如图代码如下: string year = DateTime.Now.Year.ToString() + "年"; string month = DateTime.Now.Month.ToString() + "月"; string day = DateTime.Now.Day.ToString() + "日"; string file_path = "e:\\" + year + "\\" + month + "\\" + day ; .
2021-07-25 08:23:09 1329
原创 C# Acess数据库的 新增查询删除
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 System.Data.OleDb;using Syste...
2021-07-24 16:05:06 143
原创 C# 父子窗体,父窗体打开时 首先弹出登陆窗体
上位机-工控人不放弃学习登陆画面如上视频所示父窗体new子窗体 private void Form1_Load(object sender, EventArgs e) { toolStripStatusLabel3.Text = DateTime.Now.ToString(); if (_Currentuser == null) { Logging log..
2021-07-24 15:51:24 510
原创 C#用户管理(新增/修改/删除)
实测项目,代码可以正常跑。数据库为Acess1、界面如下1、所需的usingusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.OleDb;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Task.
2021-07-24 15:33:45 3327
原创 C# 用户登陆
1、登陆Form画面如下2、所需主要控件还有一个Acess数据库3个 Label1 用户名、Label2 密码、Label3验证码3个textBox控件txtUser、txtPsword、txtNumber1个图片控件pictureBox12个按钮控制button1登陆、button2取消3、所需的usingusing System;using System.Collections.Generic;using System.ComponentModel...
2021-07-24 15:24:12 2145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人