作者: lichenyin 时间: 2021-6-23 18:09
'串口页面
Option Explicit
Private Declare Function ReleaseCapture Lib "user32" () As Long '***************窗体的移动--开始
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long '***************窗体的移动--开始
Dim Cnn As New ADODB.Connection '定义数据连接
Dim rs1s As New ADODB.Recordset '定义数据连接
Dim rs2s As New ADODB.Recordset '定义数据连接
Dim rs3s As New ADODB.Recordset '定义数据连接
Dim rs4s As New ADODB.Recordset '定义数据连接
......
本平台有30路继电器VB实例,实在看不懂!也许是思路不同,坐实费解。也有用FPGA来做的,真是“豆腐做出肉价钱了”。51最小系统应该就能实现,继续努力!作者: taotie 时间: 2021-6-23 19:36
本坛上位机板块多去逛逛作者: 徐花花 时间: 2021-6-23 22:33
看你用的是什么型号的单片机啦不同的单片机控制IO口的指令都不同,51的你如果想输出就把值给IO口,就相当于输出读IO口的值,就可以知道输入的值作者: xgll 时间: 2021-6-23 22:48