Difference between revisions of "softMI HMI Getting started"
Line 4: | Line 4: | ||
== Creating project and adding components == | == Creating project and adding components == | ||
− | Open new project: | + | Open new project:<br /> |
[[File:HMI1.png]] | [[File:HMI1.png]] | ||
Line 12: | Line 12: | ||
[[File:HMI2.png]] | [[File:HMI2.png]] | ||
− | At the left side bar - "Graph Element Window" select PLC tab, and choose controller / PLC type. | + | At the left side bar - "Graph Element Window" select PLC tab, and choose controller / PLC type.<br /> |
Drag and drop in center window: | Drag and drop in center window: | ||
[[File:HMI3.png]] | [[File:HMI3.png]] | ||
− | At the left side bar - "Graph Element Window" select Connector tab, and choose communication type. | + | At the left side bar - "Graph Element Window" select Connector tab, and choose communication type.<br /> |
− | In this example I choose Ethernet (TCP) | + | In this example I choose Ethernet (TCP)<br /> |
Drag and drop in center window: | Drag and drop in center window: | ||
[[File:HMI4.png]] | [[File:HMI4.png]] | ||
− | At the pop up window - "Network Device Setting" press "Add". | + | At the pop up window - "Network Device Setting" press "Add".<br /> |
− | Set HMI IP, and choose correct Comm Protocol: | + | Set HMI IP, and choose correct Comm Protocol:<br /> |
[[File:HMI5.png]] | [[File:HMI5.png]] | ||
− | Press "Add" again, and set SoftMC IP and comm protocol: | + | Press "Add" again, and set SoftMC IP and comm protocol:<br /> |
[[File:HMI6.png]] | [[File:HMI6.png]] | ||
− | After adding both HMI and PLC this is the final display: | + | After adding both HMI and PLC this is the final display:<br /> |
[[File:HMI7.png]] | [[File:HMI7.png]] | ||
− | Double click the HMI for access extra Attribute configure: | + | Double click the HMI for access extra Attribute configure:<br /> |
[[File:HMI8.png]] | [[File:HMI8.png]] | ||
Line 42: | Line 42: | ||
== Importing Parameters file (CSV) == | == Importing Parameters file (CSV) == | ||
− | SoftMC Modbus Configurator is generating CSV file containing the project parameters and their Modbus addresses. | + | SoftMC Modbus Configurator is generating CSV file containing the project parameters and their Modbus addresses.<br /> |
Generating CSV file with Modbus Configurator [[http://softmc.servotronix.com/wiki/Modbus_Communication_API#Modbus_Configurator]] | Generating CSV file with Modbus Configurator [[http://softmc.servotronix.com/wiki/Modbus_Communication_API#Modbus_Configurator]] | ||
− | Importing the CSV file to HMIStudio: | + | Importing the CSV file to HMIStudio:<br /> |
− | Go to “Project Database” tab in “Graph Element Window”, and choose “Address Tag”: | + | Go to “Project Database” tab in “Graph Element Window”, and choose “Address Tag”:<br /> |
[[File:HMI9.png]] | [[File:HMI9.png]] | ||
− | Import the CSV File: | + | Import the CSV File:<br /> |
[[File:HMI10.png]] | [[File:HMI10.png]] | ||
Line 59: | Line 59: | ||
== Build and design the interface == | == Build and design the interface == | ||
− | Operations in HMI screen are carried out thru Components. | + | Operations in HMI screen are carried out thru Components.<br /> |
− | In this components user can execute SoftMC Functionality, read and write data. | + | In this components user can execute SoftMC Functionality, read and write data.<br /> |
− | To enter screen design window, Right click on HMI, and “Edit”: | + | To enter screen design window, Right click on HMI, and “Edit”:<br /> |
[[File:HMI12.png]] | [[File:HMI12.png]] | ||
− | Basic components are located at "Graph Element Window" at "PLC Parts": | + | Basic components are located at "Graph Element Window" at "PLC Parts":<br /> |
[[File:HMI13.png]] | [[File:HMI13.png]] | ||
− | Drag and drop required component to center window (HMI Screen). | + | Drag and drop required component to center window (HMI Screen).<br /> |
− | When doing so, arttribute of the component will open: | + | When doing so, arttribute of the component will open:<br /> |
[[File:HMI14.png]] | [[File:HMI14.png]] | ||
− | 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. | + | 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. | + | After finish configuration and pressing OK, another left click on screen to place the switch.<br /> |
== Component Attribute == | == Component Attribute == | ||
− | It is important to fully configure the component, in means of data tpye, size, operation, etc. | + | 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: | + | For example, when adding number display, make sure “Data width” is according to what configured in softMC Modbus configurator:<br /> |
[[File:HMI15.png]] | [[File:HMI15.png]] | ||
− | “Word” is 16bit | + | “Word” is 16bit<br /> |
− | In SoftMC: | + | In SoftMC:<br /> |
− | “Short” = 16bit | + | “Short” = 16bit<br /> |
− | “long” = 32bit | + | “long” = 32bit<br /> |
So if chosen parameter as “long”, choose DWORD (double word). | So if chosen parameter as “long”, choose DWORD (double word). |
Revision as of 13:04, 10 May 2017
This is a tutorial for first configuration of SoftMC with SoftMI thru HMIStudio
Contents
Creating project and adding components
Open new project:
File:HMI1.png
At the left side bar - "Graph Element Window" select HMI tab, and choose HMI type.
At the left side bar - "Graph Element Window" select PLC tab, and choose controller / PLC type.
Drag and drop in center window:
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:
At the pop up window - "Network Device Setting" press "Add".
Set HMI IP, and choose correct Comm Protocol:
Press "Add" again, and set SoftMC IP and comm protocol:
After adding both HMI and PLC this is the final display:
Double click the HMI for access extra Attribute configure:
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”:
Import the CSV File:
Build and design the interface
Operations in HMI screen are carried out thru Components.
In this components user can execute SoftMC Functionality, read and write data.
To enter screen design window, Right click on HMI, and “Edit”:
Basic components are located at "Graph Element Window" at "PLC Parts":
Drag and drop required component to center window (HMI Screen).
When doing so, arttribute of the component will open:
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.
After finish configuration and pressing OK, another left click on screen to place the switch.
Component Attribute
It is important to fully configure the component, in means of data tpye, size, operation, etc.
For example, when adding number display, make sure “Data width” is according to what configured in softMC Modbus configurator:
“Word” is 16bit
In SoftMC:
“Short” = 16bit
“long” = 32bit
So if chosen parameter as “long”, choose DWORD (double word).