Friday, 27 May 2016

My Simple OPC Web

- 0 komentar

Today, I want to share: MySimpleOPCWeb project.
this is the web version of MySimpleOPCClient (please read the article here).

I use Visual Studio Community 2015 (its free). I am not sure, is it OK with other version of Visual Studio or not.

Here is the design form:

We will use IIS Express as local web host, so make sure IIS Express is already installed on your PC.
This is the setting of Web, please open the project properties.

I use Matrikon OPC Server simulation as OPC Server, you can read the operation steps in the article of MySimpleOPCClient.

You can download the source code of MySimpleOPCWeb project here.

Oke. Thats it. If you found some problem using this project, or you have a suggestion, please let me know..
Thank you very much.

[Continue reading...]

Thursday, 26 May 2016

Modbus RTU Simulation

- 1 komentar

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