Difference between revisions of "softMI HMI Getting started"

From SoftMC-Wiki
Jump to: navigation, search
Line 32: Line 32:
 
Press "Add" again, and set SoftMC IP and comm protocol:
 
Press "Add" again, and set SoftMC IP and comm protocol:
  
[[File:HMI6.png|RTENOTITLE]]
+
[[File:HMI6new.png|RTENOTITLE]]
  
 
After adding both HMI and PLC this is the final display:
 
After adding both HMI and PLC this is the final display:
  
[[File:HMI7.png|RTENOTITLE]]
+
[[File:HMI7new.png|RTENOTITLE]]
  
 
Double click the HMI for access extra Attribute configure:
 
Double click the HMI for access extra Attribute configure:
Line 44: Line 44:
 
 
 
 
  
 +
 
  
 
== Importing Parameters file (CSV) ==
 
== Importing Parameters file (CSV) ==
Line 59: Line 60:
 
[[File:HMI10.png|RTENOTITLE]]
 
[[File:HMI10.png|RTENOTITLE]]
  
3.Make sure the "AddrPLCID" in the .CSV file is similar to the defined PLC Controller. If not, change the address in the .CSV and save it before importing the file to HMI Studio.
+
Once the .CSV file was selected, the parameters (Modbus Tags) should appear in the Address Tag list.
 +
 
 +
[[File:Picture1.png|RTENOTITLE]]
 +
 
 +
 '''Note''': If the Modbus Tags do not appear on the list, make sure the "AddrPLCID" in the .CSV file is similar to the defined PLC Controller. If not, change the address in the .CSV, save it and import the file again
  
[[File:PLC0.JPG|800x500px|PLC0.JPG]]
+
[[File:csvadr.JPG|1000x500px|csvadr.JPG]]
  
[[File:PLC1.JPG|800x500px|PLC1.JPG]]
+
 
  
 
== Build and design the interface ==
 
== Build and design the interface ==
Line 74: Line 79:
  
 
Basic components are located at "Graph Element Window" at "PLC Parts":
 
Basic components are located at "Graph Element Window" at "PLC Parts":
 +
 +
Lets create an ON / OFF button, which will use the Modbus tag “ENAB” and “DISAB”.
  
 
[[File:HMI13.png|RTENOTITLE]]
 
[[File:HMI13.png|RTENOTITLE]]
Line 79: Line 86:
 
Drag and drop required component to center window (HMI Screen).<br/> When doing so, arttribute of the component will open:
 
Drag and drop required component to center window (HMI Screen).<br/> When doing so, arttribute of the component will open:
  
[[File:HMI14.png|RTENOTITLE]]
+
1.Select “Bit State Switch”.
 +
 
 +
2.Select “Use Address Tag:”.
 +
 
 +
3.In Addr. Type, select the desired parameter.
 +
 
 +
4.Select “Bit State Switch”.
 +
 
 +
5.In Switch Type, select “Reset”. This will reset the button and return it to “0” value.
 +
 
 +
[[File:onoffbutton.JPG|1000x500px|onoffbutton.JPG]]
 +
 
 +
Now lets add a bit lamp, which will indicate whether the drive is ON or OFF.
 +
 
 +
1.Select “Bit State Switch”. Remember ENAB Register Type is a “Bit”
 +
 
 +
2.Select “Use Address Tag:”.
 +
 
 +
3.In Addr. Type, select the desired parameter.
 +
 
 +
[[File:bitlamp.JPG|1000x500px|bitlamp.JPG]]
  
Check the box “Use Address Tag”. Then Parameters from CSV file will shown in “Addr. Type” – only if their type fit (for example this is “Bit” switch, so only “EN_BIT1” is shown because it is the only bit in CSV file.<br/> After finish configuration and pressing OK, another left click on screen to place the switch.
+
The final screen should look lie this:
  
&nbsp;
+
[[File:Picture3.png|700x400px|Picture3.png]]&nbsp;[[File:Picture2.png|700x400px|Picture2.png]]
  
 
== Component Attribute ==
 
== Component Attribute ==
  
It is important to fully configure the component, in means of data tpye, size, operation, etc.<br/> For example, when adding number display, make sure “Data width” is according to what configured in softMC Modbus configurator:
+
It is important to fully configure the component, in means of data tpye, size, operation, etc.<br/> For example, when adding number display, which is a 16bit register (Hreg), make sure “Data width” is according to what configured in softMC Modbus configurator:
  
 
[[File:HMI15.png|RTENOTITLE]]
 
[[File:HMI15.png|RTENOTITLE]]

Revision as of 08:34, 10 February 2020

This is a tutorial for first configuration of SoftMC with SoftMI through HMIStudio.

 

Access HMI properties and IP configuration

Turn HMI power off. Long press anywhere on the screen. Turn HMI power on.

Now properties windows pops up at power on. Notice, changing IP address will only saved after downloading initial project to HMI.

Creating project and adding network components

Open new project:
RTENOTITLE

At the left side bar - "Graph Element Window" select HMI tab, and choose HMI type.

RTENOTITLE

At the left side bar - "Graph Element Window" select PLC tab, and choose controller / PLC type.
Drag and drop in center window:

RTENOTITLE

At the left side bar - "Graph Element Window" select Connector tab, and choose communication type.
In this example I choose Ethernet (TCP)
Drag and drop in center window:

RTENOTITLE

At the pop up window - "Network Device Setting" press "Add".
Set HMI IP, and choose correct Comm Protocol:

RTENOTITLE

Press "Add" again, and set SoftMC IP and comm protocol:

RTENOTITLE

After adding both HMI and PLC this is the final display:

RTENOTITLE

Double click the HMI for access extra Attribute configure:

RTENOTITLE

 

 

Importing Parameters file (CSV)

SoftMC Modbus Configurator is generating CSV file containing the project parameters and their Modbus addresses.

Generating CSV file with Modbus Configurator [[1]]

Importing the CSV file to HMIStudio:
Go to “Project Database” tab in “Graph Element Window”, and choose “Address Tag”:

RTENOTITLE

Import the CSV File:

RTENOTITLE

Once the .CSV file was selected, the parameters (Modbus Tags) should appear in the Address Tag list.

RTENOTITLE

 Note: If the Modbus Tags do not appear on the list, make sure the "AddrPLCID" in the .CSV file is similar to the defined PLC Controller. If not, change the address in the .CSV, save it and import the file again

csvadr.JPG

 

Build and design the interface

Operations in HMI screen are carried out through Components.
In this components user can execute SoftMC Functionality, read and write data.

To enter screen design window, Right click on HMI, and “Edit”:

RTENOTITLE

Basic components are located at "Graph Element Window" at "PLC Parts":

Lets create an ON / OFF button, which will use the Modbus tag “ENAB” and “DISAB”.

RTENOTITLE

Drag and drop required component to center window (HMI Screen).
When doing so, arttribute of the component will open:

1.Select “Bit State Switch”.

2.Select “Use Address Tag:”.

3.In Addr. Type, select the desired parameter.

4.Select “Bit State Switch”.

5.In Switch Type, select “Reset”. This will reset the button and return it to “0” value.

onoffbutton.JPG

Now lets add a bit lamp, which will indicate whether the drive is ON or OFF.

1.Select “Bit State Switch”. Remember ENAB Register Type is a “Bit”

2.Select “Use Address Tag:”.

3.In Addr. Type, select the desired parameter.

bitlamp.JPG

The final screen should look lie this:

Picture3.png Picture2.png

Component Attribute

It is important to fully configure the component, in means of data tpye, size, operation, etc.
For example, when adding number display, which is a 16bit register (Hreg), make sure “Data width” is according to what configured in softMC Modbus configurator:

RTENOTITLE

  • “Word” is 16bit

In SoftMC:

  • “Short” = 16bit
  • “Long” = 32bit

So if chosen parameter as “long”, choose DWORD (double word).

Download project to HMI

First project download (brand new HMI from the box) must be performed through serial communication. Wiring:

RTENOTITLE

RTENOTITLE