MagicWorks+HMI+User+Manual+V2 90 (050-150)
MagicWorks+HMI+User+Manual+V2 90 (050-150)
Lock Lock: Lock the selected objects in the screen, and the
locked objects would not respond to the drag operation
of the mouse.
Unlock: Unlock the objects, and the objects would
respond to the operation of the mouse.
Arrange Arrange the Layer of the selected object, including four
kinds of arranges: Bring to Front, Move Forward, Move
Backward and Bring to Background.
Group Group the selected objects into one part. At least two objects
are selected.
Selection The selection method of combination objects, At least two objects
including three methods: Select all, select nothing and are selected.
invert selection.
3.1.4
1.4 Menu [View]
Function:Open or close the Project view, Tool window, Property view and Output view.
If choose some item, it will be marked with (' '), and open the corresponding view,
otherwise it will be closed.
3.1.5
1.5 Menu [Options]
[Workbench]
You can set the "Language and font" and "General" of MagicWorks HMI by
41
Chapter 3 MagicWorks HMI software introduction
Republic of China)'.Click button to configure the font. The language and font
settings will take effect when this application starts next time.
"General" is used to set the storage location for projects or select the startup of
HMIRuntime while system is starting.
"Storage location for projects" is used to set the storage location for projects. After
you set the "Storage location for projects", all the operations such as import or expert
for screens/tags, Logo configuration, open project, create new project would enter to
the location. See as follows:
"Start HMIRuntime when system starts up" is used to select whether enable the
HMIRuntime software while system is starting. Tick the box before “Run
automatically” that the HMIRuntime would be enabled as the system is starting. Tick
the box before ”Doesn’t run automatically” that the HMIRuntime would not be enabled
as the system is starting.
[Screen editor]
In this editor, you can configure whether to show the grid or not. Also you can set the
size of 'Snap to grid' in screens.
42
Chapter 3 MagicWorks HMI software introduction
3.1.6
1.6 Menu [Help]
Select 【Help】->【Content】 from the menu bar to transfer to the latest user manual.
Select 【Help】->【Online update】 from the menu bar to update the MagicWorks HMI
to the latest version online.
Step1: Click [Help]->[Online update] from menu bar, following dialog would appears:
43
Chapter 3 MagicWorks HMI software introduction
Step2: Click “Yes” from above dialog, the downloading process would be executing:
Step2: After the downloading is finished, below dialog would be prompted, click
“Retry” to update, the tip of “Update is successful” as the downloading process is
finished.
Note:
※ Please do not click “Cancel” while downloading is processing, otherwise all of the
downloaded files would be deleted, in such case you need download the files as
you are going to update again.
※ Please close the related files when downloading is processing or the downloading
is finished, otherwise the update would not be completed.
Select 【Help】->【About】 from the menu bar to get the latest software version,
including call the help function.
44
Chapter 3 MagicWorks HMI software introduction
3.2 Toolbar
You can quickly access the important functions that used frequently from the toolbar.
Show as below:
Undo command. Use this command to cancel the last operation command.
Find command. Use this command to find the contents you need.
45
Chapter 3 MagicWorks HMI software introduction
46
Chapter 3 MagicWorks HMI software introduction
In the project view, all of the available components are displayed as a tree structure.
Note: You can rename the new screen, tag_group, scripts, data logs, Alarm logs in the
project view by pressing F2 key from the keyboard.
Double-click the component in project view to open the editor and display its work
area. Click the upper-right corner button of work area to close the open editor.
When multiple editors are opened, click the upper tag in work area to switch to the
corresponding editor, it's allowed to open 20 editors at most.
47
Chapter 3 MagicWorks HMI software introduction
Editors
Work area
Tool window includes Simple Objects, Enhanced Objects, Graphics and Object
Inspector.
Simple Objects
Simple objects include Line, Poly Line, Polygon, Ellipse, Circle, Rectangle, Test Field,
Number IO Field, String IO Field, Data-time Field, Graphic IO Field, Symbolic IO Field,
Graphics view, Button, Test Switch, Graphic Switch and bar.
48
Chapter 3 MagicWorks HMI software introduction
Enhanced Objects
Complex objects are basically some more powerful components. The purpose of
these objects is dynamic display process. Enhance objects include Slider、Progress
Bar、Clock、Gauge、Meter、Knob、User View、Trend View、Recipe View、Alarm View、
Alarm Window、Alarm Indicator、Timer Label、Data View、Realtime Bit Trend View and
Water Flow. It shows as following picture.
49
Chapter 3 MagicWorks HMI software introduction
Tips
1)The Alarm window and Alarm Indicator can only be configured in the Template.
2)Log Trend View and Reflow Realtime Trend View can only be configured under HIM
Runtime.
Graphics
These graphics are existing in your computer, you can preview them in Graphics Tool
and configure them for screens.Graphics Tool show as below:
50
Chapter 3 MagicWorks HMI software introduction
Object Inspector
Using the Object Inspector to display all the objects of the current screen in the table,
click the object from the table,you can make the selected object to be the current
editing item.
51
Chapter 3 MagicWorks HMI software introduction
Property view is used to display and set the properties of screens, objects, tags and
alarms.
If you switch to another screen, the property of object, tag or alarm is automatically
switched.
The property view is displayed under the work area by default, you can close it by
clicking the upper-right corner button . The following figure shows the property view
of a screen:
52
Chapter 3 MagicWorks HMI software introduction
3.8 Simulator
After configured the object, you can simulate the project in runtime system, click icon
to start Runtime.
The function of simulator is to debug the projects' functions offline. Simulator includes
two parts: the simulator of screens and the simulator of tags which are configured in
project.
In the simulator of screens, you can simulate user's operation by mouse and
keyboard offline.
53
Chapter 3 MagicWorks HMI software introduction
In the simulator, users can operate on the screen of the objects, such as buttons, to
simulate some control process. It can also monitor the process of tags. We can use
the empty simulation to simulate the variable value from PLC. Double-click 'tag'
column to show each variable value or input tags directly.
54
Chapter 4 MagicWorks HMI configuration method
Instruction:These steps are not completely independent, in fact, they are often cross.
1. Double-click 'Connections' to open the connection editor in the project view, see as
follows:
55
Chapter 4 MagicWorks HMI configuration method
selected connections.
If you want to rename the new connection, double click the 'Name' column in the
connetion editor.
Parameters mainly include four parts: Interface, HMI Device, Network and PLC
Device.
We should configure the network's profile, the HMI device's baud rate and its address,
and the PLC device's address.
56
Chapter 4 MagicWorks HMI configuration method
Baud rate: Define the transmission rate between HMI and PLC device.
Address: Set the address of the PLC device which would connect to the HMI device.
Different connections with the same interface must have the same HMI Device and
Network, but the address of PLC Device must be different.
4. We can configure usable point area by using "Point area" of the connection editor.
Tag groups and tags can be added, deleted or renamed, also we can edit the tag's
properties and control the tag table's displaying.
[Add tags]
1. Double click 'Add tags' in the Project view to add new tag group, double click tag
group can open the tag editor, see as below:
57
Chapter 4 MagicWorks HMI configuration method
2. Click or right-click the mouse on the Sequence Number and choosing “Add”
to add a new tag.
Sequence no.
[Delete tags]
Click or right-click on the Sequence Number to choose 'delete' or enter the Delete
key from keyboard to delete one tag or multiple tags, you can select multiple tags by
drag the mouse.
58
Chapter 4 MagicWorks HMI configuration method
You can also delete the tag group by right-clicking on the tag group that you don't
need, see below:
There are four important properties for the tag to be configured: Connection Id, Data
type, Address, Acquisition cycle Id.
Select the tag, double-click the 'Connected Id' column of the tag editor, it appear ,
and click it, it will popup a dialog box which we can specify a connection for the tag,
see as follows:
Select the tag, double-click the 'Data type' of the tag, it appear , and click it, it will
popup a dialog which we can select a data type for the tag, see as follows:
59
Chapter 4 MagicWorks HMI configuration method
3) Configuring 'Address'
Select the tag, double-click the 'Address' of the tag. It appear , and click it, it will
popup a dialog which we configure storage area type and offset address, see as
follows:
Select the tag, double-click the 'Acquisition cycle' of the tag. It appear , and click it, it
will popup a dialog which we can select a cycle, as follows:
table''s displaying]
[Control the table
60
Chapter 4 MagicWorks HMI configuration method
Right-click the title of horizontal, enable or disable the item in the popup list, see as
following, If choose ' ', so display the column, otherwise hide the column.
A new screen will be automatically created when you creat a new project.
Double-click 'Add Screen' to add a new screen, see as follows:
The new screen is created, and the new screen is opened in work area, show as
follows:
61
Chapter 4 MagicWorks HMI configuration method
Right-click the screen in project view, then choose the relevant options to edit
screen.The following figure is the right-click menu, show as follows:
[Export screen]
Right-Click on the screen which needs to be exported and then click Export. It will
show following figure:
62
Chapter 4 MagicWorks HMI configuration method
Choose the default values 'HMI screen (*.screen)' in the “Save as type” option.
[Import screen]
Steps as follow:
Right-Click on the screen which needs to be imported and then click “Import”. It will
show following figure:
63
Chapter 4 MagicWorks HMI configuration method
[Rename screen]
[Delete screen]
64
Chapter 4 MagicWorks HMI configuration method
Note: After setup the fonts under “General” property, the text in the screen all default
for this font, users can also edit font in the screen directly.
We can configure all screen objects which include Simple Objects, Enhance Objects
and Graphics.
65
Chapter 4 MagicWorks HMI configuration method
Choose the simple object which needs to be configured from toolbar buttons or from
the right drawer views. The background of the selected simple object will turn to dark.
Such as the 'Button' we selected here.
66
Chapter 4 MagicWorks HMI configuration method
Select Button
Move your mouse to the screen, the cursor will become cross shape , it means
that the screen can be inserted objects now. Then click the mouse will generate
object in the screen, see as following figure.
The object, which just be inserted is in the selected state. There are eight little
rectangles around it. (The eight little rectangles have active and inactive state. When
selecting multiple objects, the last one was selected. The eight little rectangles around
it also are active. The active state is used in 'Left justify', 'Right justify', 'Top justify' and
'Bottom justify').The eight little rectangles are active at the time. Move the mouse to
the eight little rectangles the mouse cursor will change. It means that we can use the
mouse and drag to change size of the object now. We also can press the left key of
the mouse to move the objects.
67
Chapter 4 MagicWorks HMI configuration method
We can change the position and the size of the object in the screen by dragging the
mouse. Different objects which include simple objects and enhanced objects have
different properties editor. Click the left tree item of the screen editor to open different
properties editor. Then you can edit the specific properties of the objects, and it work
immediately. Such as changing the 'button' texts' properties.
Hold the Shift key, and then click the mouse to select multiple objects. We also can
use the mouse to draw a rectangle, and then select the multiple objects which we
need drag into the rectangle.
68
Chapter 4 MagicWorks HMI configuration method
Toolbar and menu bar had also provided the right-click function.
Select more than one objects in the screen, you can bulk edit the selected objects
according to the same type, different types would not handle.
4.4.4 Take Number IO Field for example to indicate how to configure screen
objects
Here we take Number IO Field for an example to indicate how to configure the screen
objects.
Create an integer (INT) tag (tag_1) in the Data type column of the tab table.
2. Open a screen and select the simple objects. Click the 'Number IO Field' and drag
it into the screen.
3. Configure the type 'Mode' and 'Process tag' for it in 'General' properties.
69
Chapter 4 MagicWorks HMI configuration method
Input:: For operator input digital which need transfer to PLC, and save the input value
Input
into the specified tags.
Input/
Input/OOutput
utput:: It has both input and output functions, we can change its value and
display the value.
In the 'Format' box, you can configure the format type(such as Dec, Hes, Bin),
decimal point,and the field length, show as follows:
You can configure other properties like Appearance, Layout, Text, Flashing, Limits,
70
Chapter 4 MagicWorks HMI configuration method
Configuring alarm view is to display the Process condition in the HMI device or
Measure and report process data which received from PLC. If you set a specific
position of PLC, HMI device will trigger the alarm, as we have configured the Analog
alarm in the MagicWorks HMI at that time. If a tag beyond the limit value, HMI device
will trigger the alarm. For we have configured the Analog alarm in the MagicWorks
HMI device at this time. System events are predefined on this device so that it can
display the Specific system state of the PLC and HMI device. Custom alarm and
system alarm both can be triggered by HMI device and PLC, and both can be
displayed on the HMI device.
71
Chapter 4 MagicWorks HMI configuration method
3. Configure alarm properties,such as Text, Class, Trigger tag, Limit, Trigger mode,
Alarm Group ect..
[Configure Text]
[Configure Class]
Click the drop-down arrow of 'Class', select a alarm class from the drop-down box,
see as follows:
Click the button right beside 'Trigger tag' column, select a tag from the drop-down
box, see as follows:
72
Chapter 4 MagicWorks HMI configuration method
[Configure Limit]
Double click the 'Limit'cell, click the drop-down arrow of 'Trigger tag' to select a limit
type, see as follows:
There are three types, Disabled,Constant and Tag. If you select 'Constant',you can
input the value directly in the cell,if you select 'Tag',you should configure a tag for it
from the drop-down box, as follows:
73
Chapter 4 MagicWorks HMI configuration method
Double click the 'Trigger mode'cell, click the drop-down arrow of it, select one of the
two trigger modes, see as follows:
On falling edge:The alarm is triggered when the tag value is greater than the limit
value.
On rising edge:The alarm is triggered when the tag value is less than the limit value.
3. Configure its properties, such as Text, Class, Trigger tag, Trigger bit, Alarm Group
ect..
[Configure Text]
[Configure Class]
Click the drop-down arrow of 'Class', select a alarm class from the drop-down box,
see as follows:
74
Chapter 4 MagicWorks HMI configuration method
Click the drop-down arrow of 'Trigger tag' cell, select a tag from the drop-down box,
see as follows:
Double click the 'Trigger bit' cell, the input the bit(0-15), default to 0.
Configuring the project is a cross process, need several times to verify the project.
75
Chapter 4 MagicWorks HMI configuration method
1. First select the "Save" from Project menu or click the save button from toolbar
to save the project .
2. Select "Compile" from Project menu or click the compile button from toolbar to
compile the project, then compiler information are displayed in Output view, see as
follows:
76
Chapter 4 MagicWorks HMI configuration method
The red words in above output view is configuration error, double-click the error can
be transferred to the error place.
Select "Start Runtime" from Project menu or click the button from toolbar to
start the simulator and debug the project.
After started runtime, you can simulate the project offline, such as debugging text
objects, graphic objects, alarms ect. The simulator including two parts, screen
simulator and tag simulator, see as follows:
77
Chapter 4 MagicWorks HMI configuration method
Screen simulator
In screen simulator you can simulate the user operations on HMI device.
Tag simulator
In tag simulator you can emulate the PLC device, such as changing the value of the
PLC tag.
Serial
Incorrect configuration Compiled information
number
About alarm
The text of analog alarm %1 is [Warning] The text of analog alarm %1 is
1
missing. missing.
2 The trigger tag of analog alarm [Error] The trigger tag of analog alarm %1 is
78
Chapter 4 MagicWorks HMI configuration method
%1 is missing. missing.
The analog alarm %1 is an [Error] The analog alarm %1 is an invalid
3
invalid type. type.
The limit value at the analog [Error] The limit value at the analog alarm %1
4 alarm %1 is missing or of an is missing or of an invalid type.
invalid type.
Alarm class of discrete alarm [Error] Alarm class of discrete alarm %1 is not
5
%1 is not available. available.
The alarm group of analog [Error] The alarm group of analog alarm %1 is
6
alarm %1 is not available. not available.
The text of discrete alarm %1 [Warning] The text of discrete alarm %1 is
7
is missing. missing.
The trigger tag of discrete [Error] The trigger tag of discrete alarm %1 is
8
alarm %1 is missing. missing.
The alarm group of discrete [Error] The alarm group of discrete alarm %1
9
alarm %1 is not available. is not available.
The acknowledgment HMI tag [Error] The acknowledgment HMI tag of discrete
10 of discrete alarm %1 is not alarm %1 is not available.
available.
The acknowledgment PLC tag [Error] The acknowledgment PLC tag of discrete
11 of discrete alarm %1 is not alarm %1 is not available.
available.
The alarm log file of alarm [Error] The alarm log file of alarm class %1 is
12
class %1 is unavailable. unavailable.
About connection
Invalid driver for selected PLC [Error] Invalid driver for selected PLC type.
13 type. Please install a valid Install a valid driver.
driver.
The acquisition cycle of 'for all [Error] The cycle of 'for all connections' is
14
connections' is unavailable. unavailable.
The acquisition cycle of 'for [Error] The cycle of 'for each connections' is
15 each connections' is unavailable.
unavailable.
16 Address areas are overlapping. [Error] Address areas are overlapping.
Number of configured [Error] Number of configured connections
17 connections exceeds system exceeds system limit connections.
limit connections.
Address areas exceeds valid [Error] Address areas exceeds valid address
18
address space. space.
Protocol combination not [Error] Protocol combination not possible.
19
possible.
The HMI address is the same [Error] The HMI address is the same as the
20
as the PLC address. PLC address.
Maximum number of interface [Error] Maximum number of interface for the
21
for the communication driver communication driver exceeded.
79
Chapter 4 MagicWorks HMI configuration method
exceeded.
About tag
The connection of tag %1 is [Error] The connection of tag %1 is unavailable.
22
unavailable.
The acquisition cycle of tag %1 [Error] The cycle of tag %1 is unavailable.
23
is unavailable.
The data logging of tag %1 is [Warning]The data logging of tag %1 is
24
unavailable. unavailable.
[Error] The logging cycle of tag [Error] The cycle of tag %1 is unavailable.
25
%1 is unavailable.
26 Invalid limit for tag %1. [Error] Invalid limit for tag %1.
Communication driver was [Error] Communication driver was changed
changed but the tag's address but the tag's address was not changed.
27 was not changed. Please open Please open tags editor to change tag's
tags editor to change tag's address.
address.
Text and graphics list module
A range value in the list '%1' is [Error] A range value in the list '%1' is invalid.
28
invalid.
About screen
Invalid type for tag of '%1' in [Warning] Invalid type for tag of '%1' in screen
screen '%2. '%2.
eg. If the process tag of
number IO field configured
29
INT tag at first, and change
the tag's type to String in tag
table, then there would be a
warning after compiling.
The configuration tag of the Invalid tag or tag missing for property of
30
screen is missing. screen item '%1' in screen '%2'.
The ID of the graphic list is Invalid graphic list assigned to graphic IO field
31
invalid or missing. '%1' in screen '%2'.
The ID of the text list is invalid Invalid text list assigned to symbolic IO field
32
or missing. '%1' in screen '%2'.
The authorization ID The runtime authorization configured for this
33 configured for this screen is screen object '%1' is not available in screen
missing. '%2'.
Invalid reference parameter Invalid reference parameter for system
for system function. Including function.
34
tag , name of the screen,
recipe name.
The alarm log ID in the alarm The used alarm log in the alarm view is not
35
view is not available. available.
No graphic configured for [Warning] No graphic assigned to graphics
36
graphics view. view.
80
Chapter 4 MagicWorks HMI configuration method
81
Chapter 4 MagicWorks HMI configuration method
82
Chapter 4 MagicWorks HMI configuration method
Trend of the buffer bit triggered [Error] Multiple usage of bit in curve.
selects switch buffer, and also
61
configures the bit of transfer 2
which conflict with other trend.
Trend of the buffer bit triggered [Error] Samples and switch buffer are not
selects switch buffer. The array valid at 'trend_1'. Maybe the array count of
62
count of the tag is smaller that the switch buffer does not match the number
the trend's count. of samples.
Compiler will occurs error [Error] Invalid of reference parameter for
when "bit" value of system function.
63 “InvertBitInTag、
ResetBitInTag、RetBitInTag”
exceed the range of variables.
Animation
Invalid range configured for [Error] Invalid range configured for animation
64 animation appearance of %1 appearance of %1 in %2.
in %2.
Invalid bit position in animation [Error] Invalid bit position in animation for
65 for picture element '%1' in picture element '%1' in picture '%2'.
picture '%2'.
System function
Invalid of reference parameter [Error] Invalid of reference parameter for
66
for system function. system function .
Project password is used to set the permissions for users configuring the project. After
set password, it needs the password to reopen the project.
83
Chapter 4 MagicWorks HMI configuration method
3. Input new password and verify password, and then click the 'OK'.
The key here is the function key (F key and K key) on the HMI key panel screen.
We can configure the system function or script for the function key. At the running
state, configure the function key, it will run the system function or script. The F key
that configured in the template can choose the function of quoting or reconfiguring in
the screen. The function configured the K key in the template is Fixed and effective on
each screen.
Key configuration has three parts:One is configuration of the key function, the other is
configuration of the key LED, the last part is configuration of the key permissions.
The key LED can be used to indicate user for the next operation. It also can use to
show whether the operation of current key is right or not.
Key LED only can be configured in template, the steps show as follows:
84
Chapter 4 MagicWorks HMI configuration method
Double-click
85
Chapter 4 MagicWorks HMI configuration method
3. Choose the properties of F1, and configure LED property in the “General” of the F1
key.
In the setting column, select a tag for the LED tag. Here select tag_1 for the LED tag,
and the Bit column select 1.
Tips
• Key LED is triggered by one bit of the tag.LED light will turn on if the tag bit is 1,
while the LED light will turn off when the tag bit is 0.
• If the key has LED, there is a small green Square logo on the right top of the
key. Besides, LED property in “General” also has the logo. Only the key has the
property can be configured, otherwise, it can't be configured.
• The configuration of the K key is the same as the F key.
We can configure the system function or script for the function key. After configuration,
the functional key will run the system function or script when we press it at the running
state.The F key can configure global permissions in "template", the global
permissions of the screen comes from the "template". Local permissions of the F key
can only be configured in the screens. Global permission of K key can only be
configured in the template (All screens have the same global permission as
“template”.).
Take F1 key of kp10 device for example to show the configuration steps. F1 key
configure the global function in screen_1 and screen_2, F1 key configure local
function in screen_3, F1 key configure no function in screen_4.
1. Double-click the [Screens] / [Template] in the project view, entry the template editor.
86
Chapter 4 MagicWorks HMI configuration method
3. Double-click the 'Events' in the F1 key property view, and then click 'Press'.
Configure the 'Increase Value' function for F1 key. It shows as follows:
4. Click the 'General' of F1 key in screen_1, and the enable the 'Use global
assignment'. It shows as follow.
87
Chapter 4 MagicWorks HMI configuration method
After that, event function of the F1 key shows the same as the F1 key that configured
in the template. Both of them cannot be configured.
5. Open the screen_2, and tick the 'Use global assignment' for F1 key in the 'General'
properties view.
Then 'Events' function of the F1 key in the screen_2 shows the same as the F1 key
88
Chapter 4 MagicWorks HMI configuration method
6. Open the screen_3, select the F1 key and click the 'Events' properties view to
configure SetBit function.
K key can only be configured global function (the functions of the K key in the project
are the same) in the template, cannot be configured in the screen. Take the F1 key of
KP10 for an example to show the steps.
3. Click the 'Events' in the property view, and click the 'Press' to configure
Active-Screen function.
89
Chapter 4 MagicWorks HMI configuration method
F key and K key can be configured permissions. But there are some differences
between them.
F key can configure global permissions in "template", the global permissions of the
screen comes from the "template". Local permissions of the F key can only be
configured in the screens.
K key fix global permission (All screens have the same global permission as
“Template”.), which only can be configured in the template.
1. Click the template in the project view, and enter in the template editor.
2. Click the F key and select an existing permission in the runtime authorization of the
“General” properties. See below configuration:
3. Distribute global permission for F key in the screen. If the F key has selected the
“Use global assignment”, it defaults to global permission. It shows as follow.
90
Chapter 4 MagicWorks HMI configuration method
permission::
Configuring the F key local permission
In the project view double-click the screen which we need. Enter the screen editor
and click the F key. Select the existing permission in the 'Runtime authorization' of the
general properties. It shows as below:
The steps are the same as F key global permission's. See as following:
91
Chapter 4 MagicWorks HMI configuration method
92
Chapter 5 Communication Parameter
5 Communication Parameter
Parameterss
5.1 Connections
93
Chapter 5 Communication Parameter
Connection table
Parameter
[Connection]
Name: Configure 'Connection' name, has uniqueness. You can configure the name
according to your requirements.
Comment: The description will be inputted to the 'comments' area. Comment is not
visible at run time.
[Parameter]
94
Chapter 5 Communication Parameter
95
Chapter 5 Communication Parameter
96
Chapter 5 Communication Parameter
97
Chapter 5 Communication Parameter
Address
CPU type FX0N、FX1S Mitsubishi Protocol 4 supports the PLC type
FX2C 、 FX1N 、 FX0N、FX1S、FX2C、FX1N、FX2N、FX2NC of
FX2N、FX2NC Mitsubishi, this protocol also applies to Inovance
Inothink H1U/H2U PLC, which "FX0N 、 FX1S"
corresponds to H1U, "FX2C、FX1N、FX2N、FX2NC"
corresponds to H2U.
98
Chapter 5 Communication Parameter
Odd
even(Default)
Date bits 7(Default) Data bits of each byte frame for 232 or 485.
8
Stop bits 1(Default) Stop bits of each byte frame for 232 or 485.
2
Checksum Yes(Default) You can select to check the data or not.
No
Station 0 to 15 Station Address of PLC.
Address
CPU type FX0N、FX1S Mitsubishi Protocol 4 supports the PLC type
FX2C 、 FX1N 、 FX0N、FX1S、FX2C、FX1N、FX2N、FX2NC of
FX2N、FX2NC Mitsubishi, this protocol also applies to Inovance
Inothink H1U/H2U PLC, which "FX0N 、 FX1S"
corresponds to H1U, "FX2C、FX1N、FX2N、FX2NC"
corresponds to H2U.
99
Chapter 5 Communication Parameter
100
Chapter 5 Communication Parameter
When choose Omron Finslink as communication driver, the Parameters see as below:
101
Chapter 5 Communication Parameter
Date bits 7(Default) Data bits of each byte frame for 232 or 485.
8
Stop bits 1 Stop bits of each byte frame for 232 or 485.
2(Default)
Station 0 to 31 Station Address of PLC.
Address
102
Chapter 5 Communication Parameter
Date bits 7(Default) Data bits of each byte frame for 232 or 485.
8
Stop bits 1 Stop bits of each byte frame for 232 or 485.
2(Default)
Station 1 to 16 Station Address of PLC.
Address
When choose Delta DVP as communication driver, the Parameters see as below:
103
Chapter 5 Communication Parameter
Stop bits 1(Default) Stop bits of each byte frame for 232 or 485.
2
Station 0 to 16 Station Address of PLC.
Address
【Fatek
Fatek FBs
FBs】
When choose Fatek FBs as communication driver, the Parameters see as below:
104
Chapter 5 Communication Parameter
Date bits 7(Default) Data bits of each byte frame for 232 or 485.
8
Stop bits 1(Default) Stop bits of each byte frame for 232 or 485.
2
Station 1 to 32 Station Address of PLC.
Address
【LS
LS MASTER-K Cnet
Cnet】
105
Chapter 5 Communication Parameter
Odd
even
Date bits 7 Data bits of each byte frame for 232 or 485.
8(Default)
Stop bits 1(Default) Stop bits of each byte frame for 232 or 485.
2
Station 0 to 31 Station Address of PLC.
Address
【SIMATIC
SIMATIC S7 300
00】
106
Chapter 5 Communication Parameter
5.1.2
1.2 Point area
"Point Area" is parameter domain, MagicWorks HMI can obtain the location and size
info of data area of the controller, in the communication process, controller and HMI
equipment read, write the data information by each other.
Such as:
(2) PLC and HMI exchange clock fuction. (This function can solve the problem of
losing clock when PLC power-off).
107
Chapter 5 Communication Parameter
� Active:Enable the point area. You should activate the point area before use.
� Acquisition Cycle: Define a collection cycle used for this field to read point area
periodically at run time.
Tips
• The communication protocol of "Connections" should be the same as controllers'.
• You can monitor the point area only when connected to the correct PLC and must
be in runtime system.
The following table introduces the access method of controller and HMI device to
variable data area: Read or Write:
Data area Operations HMI Controller
Screen number Evaluation by the controller to determine W R
which screen is currently open
Date/Time PLC Transfer of date and time from the R/W R/W
controller to the HMI device
Date/Time Transfer of date and time from the HMI R W
device to the controller
Data mailbox Synchronous transfer the data mailbox W R
Coordination Querying the status of the HMI device in R W
the controller program
Job mailbox Trigger the functions on the HMI device by R/W R/W
controller program.
108
Chapter 5 Communication Parameter
Function: The HMI devices store information on the screen called up on the HMI
device in the "Screen number" area pointer.
This allows information on the current screen content of the HMI device to be
transferred to the controller and to trigger certain reactions from the controller, for
example calling up a different screen.
Application: Point is "Screen number" can only be created in one controller once.
Even if there is more than one connection, you can create "Screen number" point
area for one connection.
The point area is a data area in the memory of the controller with a fixed length of 5
words.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1st word Current screen type(Fixed to 1)
2nd word Current screen number(1~65535)
3rd word Reserved(Fixed to 0)
4th word Current field number(Fixed to 0)
5th word Reserved(Fixed to 0)
"Date//Time PLC
"Date PLC"" point area
Function: This area pointer is used to transfer the date and time from the controller to
the HMI device.
The controller loads the data area of the point area. All definitions are coded in BCD
format.
The HMI device reads the data cyclically at the configured acquisition interval and
synchronizes itself.
Tip
To avoid negative effect to the performance of the HMI device, please configure a
long enough acquisition cycle for the date/time point area.
Recommendation: Acquisition cycle of 1 minute, if the process allows this.
The date/time data area has the following structure:Its length is six words.
109
Chapter 5 Communication Parameter
Note that when you enter the year, values 80-99 result in years 1980 through 1999
and the values 0-29 result in the years 2000 through 2029.
Function: This point area is used to transfer the date and time from the HMI device to
the controller.
When it evaluates the job mailbox, the HMI device writes its current date and the time
in the data area configured in the "Date/time" area pointer. All definitions are coded in
BCD format.You must enable all the point area for each connection when one project
that contains more than one connections intends to use "Data/Time" point area.
Note that when you enter the year, values 80-99 result in years 1980 through 1999
and the values 0-29 result in the years 2000 through 2029.
Function:This is useful when configured the transfer as "Synchronize with PLC" for
recipe view.
Application: 1)The controller is the "active partner" in the transfer of data mailboxes,
2)Information about the recipe number and data mailbox number needs to
be evaluated on the controller.
110
Chapter 5 Communication Parameter
2 ) The controller with which the HMI device synchronizes transfer of data
mailboxes is specified in the recipe.
HMI device read the value from PLC and display it in the recipe view, if recipe has
synchronization variables, and would write the value which read from PLC to those
variables.
111
Chapter 5 Communication Parameter
Check:Status Word = 0?
Yes No
112
Chapter 5 Communication Parameter
Check:Status Word = 0?
Yes No
Tip
You can only set the status word by HMI device, PLC can only reset the status word
to 0.
� The data log transfer between HMI device and PLC can be started by any
station.
113
Chapter 5 Communication Parameter
1)No. 69:Read the specified data mailbox of designated recipe from PLC.
Job mailbox no. 69 transfers data mailboxes from PLCto the HMI device. The job
mailbox is structured as follows:
Word Most significant byte Least significant byte
1st word 0 69
2nd word Recipe number(1-999)
3rd word Data mailbox number(1-65535)
4th word Do not overwrite existing data mailbox:0
Overwrite existing data mailbox:1
Job mailbox no. 70 transfers data mailboxes from the HMI device to PLC. The job
mailbox is structured as follows:
Most significant byte Least significant byte
1st word 0 70
2nd word Recipe number(1-999)
3rd word Data mailbox number(1-65535)
4th word —
Check:Status Word = 0?
Yes No
114
Chapter 5 Communication Parameter
Check:Status Word = 0?
Yes No
2) Detecting the current operating mode of the HMI device in the control program
3) Detecting whether the HMI device is ready to communicate in the control program
Its length is two words.It's always write whole coordination area when HMI device
updated point area.
Item Description
Startup bit The startup bit is set briefly to "0" by the HMI device during startup. After
startup, the bit is set permanently to "1."
Operating As soon as the HMI device is switched offline by the user, the operating
mode mode bit is set to 1.
In normal operation of the HMI device, the state of the operating mode bit is
"0." You can find out the current operating mode of the HMI device by
querying this bit.
Status bit The status bit is inverted by the HMI device at intervals of approximately one
second. By querying this bit in the controller program, you can check
whether or not the connection to the HMI device still exists.
116
Chapter 5 Communication Parameter
Data structure:The first word of the job mailbox contains the job number. Depending
on the job mailbox, up to three parameters can be transferred.
Word Most significant byte Least significant byte
n+0 0 Job number
n+1 Parameter 1
n+2 Parameter 2
n+3 Parameter 3
If the first word of the job mailbox is equal to 0, the HMI device evaluates the job
mailbox. This means that the parameters must be entered in the job mailbox first,
followed by the job number.
When the HMI device accepts the job mailbox, the first word is set to 0 again. The
execution of the job mailbox is generally not completed at this point in time.
All of the job mailbox and its parameters are showing in below table,the job mailbox
can be triggered only when the HMI device is online.
Job No. Function
14 Setting time In BCD code
time(In code)
Parameter 1 Left byte:- ; Right byte:Hour(0-23)
Parameter 2 Left byte:Minute(0-59); Right byte:Second(0-59)
Parameter 3 -
15 Setting date In BCD code
date(In code)
Parameter 1 Left byte:-;Right byte:Week(1-7,Sunday-Saturday)
Parameter 2 Left byte:Date(1-31) Right byte:Month(1-12)
Parameter 3 Left byte:Year
23 User login
Logs the user on with the name "PLC user" at the HMI device with the group
number transferred in parameter 1.
The logon is possible only when the transferred group number exists in the
project.
Parameter 1 Group number:1 to 255
Parameter 2、3 -
24 User logoff
Logs off the currently logged on user. ( The function corresponds to the
"logoff" system function)
Parameter 1、2、 -
3
40 Transfer date and time to HMI
(in the S7 DATE_AND_TIME format)
There should be at least 5 seconds between two jobs, otherwise the HMI
device will be overloaded.
Parameter 1、2、 -
3
41 Transfer date and time to PLC
117
Chapter 5 Communication Parameter
Note:The data format of job number is decimal.eg. If you want to use screen selection
function,and the data structure is: 5132, 51means the job No., 32 is parameter1,
means the 32th screen number,parameter 2 and parameter 3 are null.
5.1.
1.22.1 Configuring Point area
Step 2:Create a new connection"Connection_1", and configure the point area for this
connection, the specific configuration see as below:
118
Chapter 5 Communication Parameter
From above figure that the address of screen number is from VW0 to VW8.
After you selected one protocol for the connection, you can configure the
corresponding point area for the connection; If choose connection_1 for the first row
in the point area table, the address would begin from VW0, and the length would
default to 5, that means the data range is from VW0 to VW8. You can change the
address, but cannot change the length, the premise is the new address cannot be
reused.
Step 3:Create a tag group_1, and create 5 tags in the group: Tag_1(VW0),
Tag_2(VW2), Tag_3(VW4), Tag_4(VW6),Tag_5(VW8), and configure the
"Connection_1" for the five tags.
Step 4:Create a screen, and configure 5 Number IO field in the screen,and configure
5 tags for each number IO field: Tag_1、Tag_2、Tag_3、Tag_4、Tag_5, see below
configuration:
119
Chapter 5 Communication Parameter
Whenever select a new screen on HMI device, the screen info would transfer to the
data are of the specified controller.The current screen number of the HMI would store
in the second word of this point area, the first word is fixed to 1, the following 3 words
are 0.
Such as:When current screen default to screen 1,the 5 number IO field would
show:1、1、0、0、0
If configure the screen number at screen 2,when switch to screen 2,the 5 number IO
field would show:1、2、0、0、0
Step 5:Use communication cable to connect the HMI with PLC,download PLC
program,and communicate with HMI,the HMI would show the screen number of
current screen:1、1、0、0、0
Step 3:Create a new screen, and configure 6 number IO field in the screen, then
configure tag for each number IO field:Tag_1、Tag_2、Tag_3、Tag_4、Tag_5、Tag_6,
see as below:
Note: It’s better to use hexadecimal data for above number IO field.
The 6 consecutive data areas of controller are used to save the periodical update
data/time paras of HMI clock. The time is DATE_AND_TIME format (BCD code), the
data structure see as follows:
Data word High byte Low byte
n+0 Year (80-99/0-29) Month(1-12)
120
Chapter 5 Communication Parameter
Step 4:Download PLC program first and PLC communicates with HMI, PLC would
read the tags of above Data/Time PLC,and write the time to HMI data/time field after 1
minute.
Step 1:Create new project and new connection according to example 1, see below
configuration of point area:
Step 2:From above figure, the address of data mailbox is from VW34 to VW42.
Configure 5 tags in the new screen, and setup their connection to "Connection_1",
and the address for each tag is:VW34、VW36、VW38、VW40、VW42.
121
Chapter 5 Communication Parameter
Step 4:Click "Recipe"->"Add Recipe" from project view to create 3 recipes,they are
Recipe_1 、 Recipe_2 、 Recipe_3. And add Elements and data records for each
recipe,see below configuration:
Note: In order to synchronize transfer of data records between the HMI device and
the controller, the following requirements must be met during configuration:
2)The controller with which the HMI device synchronizes transfer of data mailboxes is
specified in the recipe.
122
Chapter 5 Communication Parameter
Step 5: Create 3 number IO fields for Recipe_1 in the screen, and configure Tag_6,
tag_7, tag_8 for the three number IO fields;
Create 2 number IO fields for Recipe_2 in the screen, and configure Tag_9, tag_10
for the two number IO fields;
Create 2 number IO fields for Recipe_3 in the screen, and configure Tag_11, tag_12
for the two number IO fields;
123
Chapter 5 Communication Parameter
Step 6: Create 5 number IO fields for data mailbox, and configure the tag_1, tag_2,
tag_3, tag_4, tag_5 for the 5 number IO fields as the process tag:
Step 7: Download PLC program first and after PLC is communicated with HMI device,
download project from PC to HMI, write variable to recipes and download to PLC, the
data in data mailbox would be changed.
Such as configure 80, 55, 102 as the elements of Recipe_1, and select Data logs_3,
after downloaded the project to PLC, the data mailbox changed to 1、3、0、4、0;
Step 8: If you changed other recipe value and need download to PLC, then you
should set the 4th bit to 0.
124
Chapter 5 Communication Parameter
Step 1: Create project and connection according to Example 1, the data area
configuration of the connection see as follows:
Step 2: From above figure , we know the address of job mailbox is from VW46 to
VW52.Then configure 4 tags,and set "Connection_1" as their connection, set their
address as VW46、VW48、VW50、VW52.
The first word of the job mailbox contains job number.Transfer 3 paras at most
according to the different type of job mailbox.
Word Most significant byte Least significant byte
n+0 0 Job number
n+1 Parameter 1
n+2 Parameter 2
125
Chapter 5 Communication Parameter
n+3 Parameter 3
Step 4: Please refer to chapter 5.1.2 for the job mailbox table, here we select job 51,
the format of job 51 see as follows:
51 Screen selection
Parameter 1 Screen number
Parameter 2、3 -
Step 5:According to the format of job mailbox,write 51、2、0、0 to the four number IO
field in turn,then switch to screen 2.
5.2 Tags
External tags are the reflection of PLC storage units, they are the exchanging data
bridge of HMI and PLC. They can be accessed by HMI device and PLC. Their data
types depend on the PLC which will connect to HMI device.
Internal tags are stored in memory of HMI device, they are used for the internal
calculation or performing other tasks of the HMI device, they are no connections with
the PLC, and only can be accessed by the HMI device. They have no address, only
be distinguished by their name.
126
Chapter 5 Communication Parameter
Tag table
Property view
[Tag properties]
Tag table and Property view include all of the following properties:
Name:The name of the tag, you can edit it. In one tag group, the tags' name must be
unique. If tag is copied and pasted to the tag group, the name of the tag would add
“_1”. eg. If the tag name here is “Tag_1”, the name of the tag would changed to
127
Chapter 5 Communication Parameter
“Tag_1_1” after the tag is copied and pasted for the first time, paste the tag twice the
name would change to ”Tag_1_2”, etc.
Date type: The value type of variable, how to preserve these values in the internal and
the maximum values range of the variables. Different communication drivers of the
connection decide different data types.
The following picture shows the Data type of SIMATIC S7 200 protocol:
The following picture shows the Data type of Modicon MODBUS protocol:
The following picture shows the Data type of Omron Hostlink / Multilink protocol:
The following picture shows the Data type of Mitsubishi Protocol 4 protocol:
128
Chapter 5 Communication Parameter
The following picture shows the Data type of Omron Finslink protocol:
The following picture shows the Data type of Panasonic Mewtocol protocol:
129
Chapter 5 Communication Parameter
The following picture shows the Data type of Delta DVP protocol:
The following picture shows the Data type of Fatek FBs protocol:
The following picture shows the Data type of LS MASTER-K Cnet protocol:
The following picture shows the Data type of SIMATIC S7 300 protocol:
130
Chapter 5 Communication Parameter
On demand is reserved.
Cyclic continuous: Continuous update the tags for all of the screens.
Length:The length of the tag, decide by its Data type and Array count,Length equals
Data types * Array count.
Address:The address of the tag, such as VW0,it is composed of three parts, area,data
type and start position in area , only external tags have has address.
We can configure the address of the tag by setting the following parameters:
SIMATIC S7 200:
Modicon MODBUS:
131
Chapter 5 Communication Parameter
Mitsubishi Protocol 4:
Mitsubishi FX:
Omron Finslink:
Panasonic Mewtocol:
132
Chapter 5 Communication Parameter
Delta DVP:
Fatek FBs:
LS MASTER-K Cnet:
SIMATIC S7 300
133
Chapter 5 Communication Parameter
Address
Communication Address Description
driver
SIMATIC S7 200 Range Setup the memory type and offset address of
the connection variables.
Modicon MODBUS Reference Setup the memory type and offset address of
the connection variables.
Omron Hostlink / Area Setup the memory type and offset address of
Multilink the connection variables.
Mitsubishi Protocol 4 Operand Setup the memory type and offset address of
the connection variables.
Mitsubishi FX Operand Setup the memory type and offset address of
the connection variables.
Omron Finslink Area Setup the memory type and offset address of
the connection variables.
Panasonic Mewtocol Address Setup the memory type and offset address of
the connection variables.
Delta DVP Address Setup the memory type and offset address of
the connection variables.
Address Setup the memory type and offset address of
Fatek FBs
the connection variables.
LS MASTER- K Address Setup the memory type and offset address of
Cnet” the connection variables.
Address Setup the memory type and offset address of
SIMATIC S7 300
the connection variables.
Limit
Limit Description
Limit limit Upper limit The digital tags can be specified the number range
with upper limit range.
Additional upper The digital tags can be specified the number range
limit with additional upper limit range.
Additional lower The digital tags can be specified the number range
limit with additional lower limit range.
Lower limit The digital tags can be specified the number range
with upper limit range.
Create Upper limit If the process value (should be stored in a variable)
alarm alarm reached the limits, can produce a warning
message.
Additional upper If the process value of the variable in an additional
limit alarm upper limit range, will produce the analog alarm.
Additional lower If the process value of the variable in an additional
limit alarm lower limit range, will produce the analog alarm.
Lower limit If the process value of the variable in a lower limit
134
Chapter 5 Communication Parameter
Linear scaling
Linear scaling Description
Linear scaling PLC Upper limit value PLC set upper limit.
Lower limit value PLC set lower limit.
HMI Upper limit value HMI set upper limit.
Lower limit value HMI set lower limit.
Start value:Each variable can configure a start value. When running the operation
system, the variable will be set to this value.In this way, can ensure project startup is
the initial condition.
Log
Log Description
log Data log Name In order to facilitate filing and later evaluation, data can
be stored in the different of data log.
Trigger Acquisition Three types:on change,on demand, Cyclic continuous
mode
On Change:The data record would be written while the
variable were changed
On demand:A data log would be written while LogTag
was executed each time.
Cyclic continuous:Data log would be written according
to the log cycle.
Acquisition Specifies how time to update the variable values.
cycle
[Tag 'Events
Events'']
Change value: The function would be triggered when the tag's value is changed.
High limit:The function would be triggered when the tag's value is higher then the high
limit.
Note: Please set the “upper” or “Additional upper” in the properties view that the
function would be triggered by the high limit.
Low limit:The function would be triggered when the tag's value is less than the low
limit.
Note: Please set the “Lower” or “Additional Lower” in the properties view that the
function would be triggered by the low limit.
Swith On: The function would be triggered when the value of bool type tag is 1.
Swith Off: The function would be triggered when the value of bool type tag is 0.
135
Chapter 5 Communication Parameter
Right-click the tag group that need to be imported or exported from the project view,
would pop up the corresponding dialog.
The exported tag group is a binary format file, you cannot edit it by Excel; When
export the tag group, the "Data Log Id", "Logging Acquisition Mode", "Logging Cycle
Id" and the system functions are discarded.
MagicWorks HMI supports to import the tag group from external, the imported data
must meet the following requirements:
� Before importing, MagicWorks HMI would judge whether the "Connection Id" and
"Acquisition Cycle Id " are existing or not, if exist one of the two options(they are the
same) or not exist the two options, the tag group can be imported; If exist the option
but not entirely the same, it cannot be imported.
You can bulk edit the "Connection Id","Acquisition Cycle Id", "Data log Id", "Data
Type", "Arrange Count", "Logging Cycle Id", "Length", "Logging Acquisition mode"
from tag table.
It's available for you to select the tags by "Tag Group", "Connection" etc requirements.
5.3 Cycles
“Cycle” includes collection cycle and record cycle, to be mainly used for controlling
the updating rate of variable and storing rate of data record.
136
Chapter 5 Communication Parameter
There are 8 default cycles in the system, and you can't edit them, but you can add a
new cycle by clicking button, also you can click button to delete a cycle
added by yourself.
[Cycle properties]
Cycle unit: Smallest unit of cycles, there are four types, Hour, Minute, Second,
Millisecond.
Double-click 'cycle unit' cell ,it will appear a drop-down list box,like this ,
then select a suitable cycle unit.
Double-click “Name” unit can change a new name for the cycle according to your
requirements.
137
Chapter 6 Components of Screen
6 Components of Screen
6.1.1 Line
Line is an open object. Length and gradient of Line are defined by the height and
width which surround the object. Every endpoint of the Line has a blue point, drag it
can change its position directly.
You can set properties of line in the 'Properties' dialog of properties view.
Property name Description
Border color Forecolor of line.
Color
Fill color Background color of line.
width Width of border line.
style Five styles:
Solid, Dash, Dot, DashDot, DashDotDot.
Appearance Line Start Standard and Arrow two types.It defaults to
Border Standard.
Line End Standard and Arrow two types.It defaults to
Standard.
Line End Square and Round two types.It defaults to
Shape Square.
Start point X Horizontal distance between the start point of
line and the left edge of screen, units of pixel.
Y Vertical distance between the start point of line
and the top edge of screen, units of pixel.
Layout
End point X Horizontal distance between the end point of
line and the left edge of screen, units of pixel.
Y Vertical distance between the end point of line
and the top edge of screen, units of pixel.
Flashing Runtime Flashing Two modes: 'standard' and 'none'.
138
Chapter 6 Components of Screen
Appearance
Miscellaneous Name Name of line.
Misc
Opacity Transparency of line.
6.1.2
1.2 Polyline
Polyline is an open object.The area defined by line cannot be filled, even if the start
point is coincided with the end point. Every endpoint of the polyline has a blue point,
drag it can change its position directly.
You can set properties of polyline in the 'Properties' dialog of properties view.
1 3
2
4
5
139
Chapter 6 Components of Screen
6.1.3
1.3 Polygon
'Polygon' is a closed object can be filled by background color. Every endpoint of the
polygon has a blue point, drag it can change its position directly.
You can set properties of polygon in the 'Properties' dialog of properties view.
140
Chapter 6 Components of Screen
2 3
1 4
6.1.4
1.4 Ellipse
141