Tuesday 7 June 2016

SerialComm : Serial Communication (Chat)

- 0 komentar
This simple VB.net project is for testing connection/communication between 2 serial port.


We will use VSPE (Virtual Serial Port Emulator) to create 2 virtual COM ports.


The steps for testing:
1. copy the EXE, so we have 2 application file
2. open both application
3. open VSPE, make Pair for COM3 dan COM4
4. set Port on one application to COM3 and the other to COM4
5. click button Connect on both application
6. write some text on Text to Send box
7. click button Send.



Please download the project here.

Thank you..
[Continue reading...]

Monday 6 June 2016

Modbus RTU Client

- 4 komentar
ModRTUClient is a VB.net application to Read and Write data register (Coil Output, Digital Input, Analog Input, Holding Register) from Modbus RTU (Master) device.

The different with Modbus RTU VB6 is, this project created using Visual Studio 2010 Express, and there is options to select I/O type register.



Please download the project from here: https://goo.gl/qesRYj
* revised version (rev.3.3)

How to use:
1. Select the Port
2. Select Baudrate
3. Input Slave ID, Start Address register, and Register Quantity
4. Select type of I/O (Coil Output, Digital Input, Analog Input, Holding Register)
5. Select Data Type
6. click Connect button
7. click Read button
8. to Write, input Register to write, input the Value, then click Write button
9. Disconnect button for Disconnect from Modbus Master
10. Exit button for quit from application


Thank you..


note for the revised version (r1) :
- data type only Decimal
+ add combo box for select Parity
> edit script for sub Connect

note for the revised version (r2) :
- write loop

note for the revised version (r3) :
- support data type Float

note for the revised version (r3.3) :
- support data type Float Swap

[Continue reading...]

Sunday 5 June 2016

AutoBatch : Auto Run Batch File

- 0 komentar

Hi..

I create a simple sample (demo) VB.net project (application) named AutoBatch. 
This application is for Auto Run BAT file, when the file is added to specified directory (folder).


Please download the project from here.

Learning points from this project was :
+ how to watch the content of diretory
+ how to run the BAT file 
+ how to delete file
+ how to save the Setting of application
+ how to load the Setting of application
+ how to use Timer to evaluate the change of folder
+ how to use Timer for Demo session
+ how to make a sample simple BAT file. 



picture when there is no BAT file.

picture when new BAT file added.

picture when Run BAT file.


Thank you..
[Continue reading...]
 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger