Académique Documents
Professionnel Documents
Culture Documents
AdvancedHMI
A different approach to HMI development
6) The project will now need to be compiled in order to add the components
to the Toolbox
Note : If you do not see the Build menu option, Enable the Expert settings:
7) From the ToolBox, add a Comm driver by dragging and dropping to the
form.
8) Set the appropriate properties for the comm driver you selected, e.g.
IPAddress.
9) Add a visual control to the form by dragging and dropping from the
Toolbox.
10) Set the PLC address that you want displayed on the selected control. Here
I used 40001 to reference Mb.R[0] in the Arduino Sketch witch is Analog pin 1.
(more on that later)
11) Now open the Put the Mudbus library in Arduino IDE.
13. Edit the Ethernet information - mac, ip, gateway, subnet to suit your
needs.
14. We already set the Panel meter to display the value in A0 so as a test just
plug in a value.
If that all works then you can hook up an analog device and put the
analogRead statement back in and upload one again. Make sure to stop the
HMI before you upload. It may cause the program to crash otherwise.