Home » Source Code » MODBUS communication written in VB source code

MODBUS communication written in VB source code

cqfeiyu
2014-09-24 11:59:41
The author
View(s):
Download(s): 6
Point (s): 2 
Category Category:
WindowsWindows Visual BasicVB

Description

MODBUS communication written in VB source code,

Features:

Public Sub tran_modbus_order(ByVal byt_slv_id As Byte, ByVal byt_func As Byte, ByVal addr As Long, byt_data() As Byte)

Function CRC16(data() As Byte) As String

Public Function readcoils(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByVal int_time As Integer, ByRef ret_val() As Byte) As Integer


Public Function writecoils(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByRef byt_data() As Byte, ByVal int_time As Integer) As Integer


Public Function readwords(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByVal int_time As Integer, ByRef ret_val() As Long) As Integer


Public Function writewords(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByRef lng_data() As Long, ByVal int_time As Integer) As Integer


Public Function readsgls(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByVal int_time As Integer, ByRef ret_val() As Single) As Integer


Public Function writesgls(ByVal slv_id As Byte, ByVal addr As Long, ByVal lenth As Byte, ByRef sgl_data() As Single, ByVal int_time As Integer) As Integer


Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
VB_MODBUS-?????-?.doc92.00 kB2013-01-24 16:17
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
cenchunjun12
2015-05-15

正在学习中,应该还算可以吧。。。。。。。。。

nmcar
2017-08-08

great

nmcar
2017-08-08

great

pablo_hide
2017-10-23

excelent

pablo_hide
2017-10-23

how?

  • 1
  • Page 1
  • Total 1

MODBUS communication written in VB source code (10.62 kB)

Need 2 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D