2 VB

You might also like

You are on page 1of 5

Topic: PLC Mitsubishi & Visual Basic HMI communication

Section 2/3: Visual Basic

Step 1. Set up Visual Studio 2008


Visual Studio 2008 Standard Edition will be used to make HMI for PLC
(by Visual Basic)

Step 2. Add MX Component to VB project


1 In VB Project, choose:

Page 1 of 5
2 Right click at Toolbox to add ActEasyIFControl

Page 2 of 5
3 ActEasyIF tool is added to Toolbox

Page 3 of 5
Step 3. Make HMI and test
1 Make an HMI, set property of ActEasyIF

If Visual Studio has warning as following, it can


be solved:
Warning:
Unable to get the window handle for the 'AxActEasyIF'
control.
Windowless ActiveX controls are not supported

Solution:
At the cmd Command Prompt (run as Administrator),
type "bcdedit.exe /set {current} nx AlwaysOff" and press
<ENTER>.

Page 4 of 5
2 After all finished, the HMI can monitor PLC I/O

3 Open "PLC Monitor Utility" of MX Component to force D1~D5, result will also display
on HMI

Page 5 of 5

You might also like