Wednesday 23 July 2014

Simple Scada 2 - Analog Slider & Trend

Projek ini adalah projek sederhana untuk membuat objek Slider yang bisa mengubah nilai analog dan objek Trend untuk menampilkan nilainya.
This is a simple project to make a Slider objek for change Analog value, and to make Trend objek to display the value.

Seperti projek sebelumnya (Simple Scada 1), pojek ini juga dibuat dengan VS 2010 Express.
This project is build using VS 2010 Express, like the previous project (Simple Scada 1).

Berikut adalah tampilan design dari projek:
This is the design view of project:


Objek-objeknya terdiri dari komponen Winsock untuk komunikasi ke Modbus TCP Server (yang kali ini kita juga akan menggunakan simulator Mod_RSsim), lalu sebuah textbox untuk Analog Value, objek VScrollBar untuk Slider Analog dan objek Chart untuk Trend Analog, juga beberapa label sebagai pelengkap.
This project consist of Winsock component for communicating with Modbus TCP Server (which is using Mod_RSsim), then a textbox for Analog Value, then a VScrollBar object for Analog Slider, and then Chart object for Analog Trend, and also some label.

Objek TimerRead dan TimerTO fungsinya seperti pada projek sebelumnya, yaitu TimerRead untuk membaca nilai register setiap 1 detik sekali, dan TimerTO untuk waktu Time Out sebuah perintah dikirim ke Modbus Server. Yang baru adalah TimerTrend, yang berfungsi untuk menampilkan nilai dari register ke Chart setiap 1 detik sekali.
TimerRead is for read Modbus register every 1 second. TimerTO is for Time Out command which is send to Modbus Server. The new one is TimerTrend, for displaying analog value from register to Chart every 1 second.

Berikut adalah tampilan ketika projek dijalankan:
This is the runtime view of project:

Pastikan aplikasi Mod_RSsim sudah jalan sebelum projek ini dijalankan.
Make sure that Mod_RSsim is running before Run the project.

Projek SimpleScada_2 bisa diunduh disini:
SimpleScada_2 project can be downloaded here:
http://goo.gl/R1dP0M


Semoga bermanfaat.

1 komentar:

 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger