Showing posts with label Emulator. Show all posts
Showing posts with label Emulator. Show all posts

Saturday, 11 March 2017

Modbus Osiloskop

- 0 komentar
Sebenarnya sudah lama kami ingin post aplikasi VB ini, namun baru kali ini bisa kami share.
Aplikasi Modbus Osiloskop adalah permintaan dari seseorang dan beliau membayar kami untuk projek ini, jadi tidak akan kami share secara gratis source code projek VB nya, hanya aplikasi EXE nya.
Aplikasi ini berfungsi untuk membaca nilai dari register Modbus Serial (RS232), kemudian menampilkannya di grafik/chart. Chart nya bisa diperbesar (zoom in) dan diperkecil (zoom out).
Berikut adalah tampilan dari aplikasi tersebut:

Setting/konfigurasi nya:

Tampilan ketika dijalankan:

Untuk menjalankan aplikasi ini sebenarnya tinggal langsung PC nya dikonek ke device Modbus, sesuaikan setting Port dan alamat registernya.
Namun pada saat pengetesan saya menggunakan dua software ini: ModRS_Sim dan VSPE.
Penjelasannya sudah dijelaskan di artikel sebelumnya, namun sekilas saya gambarkan sebagai berikut:

VSPE
Virtual Serial Port Emulator, aplikasi ini berfungsi untuk membuat virtual serial port. Kita akan membuat 2 buah serial port yang secara virtual terhubung (Pair). Ini adalah tampilan dari aplikasi VSPE:

dan ini adalah koneksi Pair nya:

ModRS_Sim
Ini adalah tampilan aplikasi ModRS_Sim. Pilih protokolnya Serial.

Berikut setting portnya:

Ini adalah fitur ModRS_Sim untuk animasi/simulasi pertambahan nilai di register:


 Jadi seperti ini prosedurnya:
> buka aplikasi VSPE, buat koneksi Pair. pada contoh diatas port Com2 dan Com3
> buka aplikasi ModRS_sim, setting protokol ke Serial, setting Baud rate, parity, dll. pilih port Com2.
> buka aplikasi Modbus Osiloskop, buat file baru, buka tab Setting, Edit. lalu pilih port Com3, setting baudrate, parity sesuai dengan settingan di ModRS_sim. Tentukan alamat Register 1 sampai 3.
> dari aplikasi Modbus Osiloskop, jalankan dengan klik menu Action > Start.
> dari aplikasi ModRS_sim, tulislah nilai tertentu pada register yang sudah ditentukan, bedakan nilainya agar terlihat beda pada grafik, misal 10,20,30.
> kemudian dari aplikasi ModRS_sim, buka fitur Animation, laukakn penambahan 10 nilai setiap 1 detik, lihatlah ke grafik Osiloskop, setelah nilai di register lebih dari 100 maka ubah pertambahannya menjadi -10 agar kurva di grafik Modbus Osiloskop terlihat seperti gelombang sinus.

Demikian penjelasan kami.
Alikasi EXE Modbus Osiloskop silahkan download disini: https://goo.gl/3SYIhC
note: rename ekstensi file ke .zip

Untuk yang ingin membeli source code projek VB nya, silahkan hubungi kami via email.
Terima kasih.
[Continue reading...]

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...]

Thursday, 26 May 2016

Modbus RTU Simulation

- 0 komentar
Welcome..

Today, we will simulate and emulate, Modbus RTU Server (Master).
Imagine, we have a Modbus RTU device (PLC, Remote I/O, etc) connected to our PC through Serial (COM) Port.
then, let we change the device (hardware) with an application (software), we will simulate it. And also, let we change the COM port connection with virtual serial port.
Oke?
Oke. we will use Mod_RSsim for the first one (Modbus RTU Simulator), and we will use VSPE (Virtual Serial Port Emulator) for the second one (Serial Port Emulator).

You can download Mod_RSsim from here.
You can download VSPE from here.

Oke. lets go..!

Now, we will configure the virtual connection of serial port :
- open VSPE application

- goto menu Device > Create

 

- select Pair, then click Next

 

- select unused (undefined) Port, example COM3 and COM4, then Finish

 

- the Emulator has started

 

- dont close the application, minimize is Ok.


Now, we will open Mod_RSsim application as Modbus RTU Master simulator :
- open Mod_RSsim

- select Port to MODBUS RS-232


- click on port icon to open the port setting


- select the type of I/O


- to write Digital Input or Coil Output, just double-click on the register


- to write Holding Register or Analog Input, double-click on register then write the value on the box



Oke. The next step is testing with Modbus RTU Client. We can use the simplest sample application from this blog: Modbus RTU Sample VB6. 
Actually I develop new (advanced) sample project for Modbus RTU client, maybe I will post here someday.


Thats all.. Thanks for visiting..
See you next time.. :)
[Continue reading...]
 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger