0% found this document useful (0 votes)
502 views101 pages

MagicWorks+HMI+User+Manual+V2 90 (050-150)

The document provides an introduction to the MagicWorks HMI software, including: 1) Descriptions of menu options such as File, Edit, View, Options, and Help for creating, opening, and modifying projects, screens, and settings. 2) Explanations of toolbar buttons for common functions like creating, opening, saving, compiling, and simulating projects as well as editing screen objects. 3) Details on arranging, grouping, selecting, locking and unlocking screen objects, and adjusting object layers, sizes, and positions.

Uploaded by

Daniel Carrizal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
502 views101 pages

MagicWorks+HMI+User+Manual+V2 90 (050-150)

The document provides an introduction to the MagicWorks HMI software, including: 1) Descriptions of menu options such as File, Edit, View, Options, and Help for creating, opening, and modifying projects, screens, and settings. 2) Explanations of toolbar buttons for common functions like creating, opening, saving, compiling, and simulating projects as well as editing screen objects. 3) Details on arranging, grouping, selecting, locking and unlocking screen objects, and adjusting object layers, sizes, and positions.

Uploaded by

Daniel Carrizal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 101

Chapter 3 MagicWorks HMI software introduction

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]

Select menu [Options], popup below dialog:

[Workbench]

You can set the "Language and font" and "General" of MagicWorks HMI by

41
Chapter 3 MagicWorks HMI software introduction

configuring 'Workbench settings'.

There are two languages to choose: 'English(United States)' and 'Chinese(People's

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

Select 'Screen editor', popup below dialog box:

3.1.6
1.6 Menu [Help]

[Help] command is applied to call the help function.

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.

Note: This function is valid for V3.3.0 and later versions.

Please follow below steps to update the 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.

※ A file named as “updatedownload” will be created in the install directory during


downloading, please do not delete parts or all of the file, otherwise, the updated
version would appear abnormalities.

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:

MagicWorks HMI provides the following toolbar options:

New command. Use this command to establish a new project.

Open command. Use this command to open an existing project.

Save command. Use this command to save the current project.

Complier command. Use this command to compile the current project,


check whether the configuration is correct or not.The red font in the output
view means the configuration errors, double-click “Error” can transfer to the
failure place.

Start Runtime command. Use this command to simulate the project.

Start online runtime command, the designated project would be simulated


online (PPI protocol is supported at present).

Download project command. Use this command to download the project.

Undo command. Use this command to cancel the last operation command.

Restore command. Use this command to restore the last operation


command.
Cut command. Use this command to cut the graphical object that selected
to the clipboard buffer.
Copy command. Use this command to duplicate the selected graphics
object to clipboard buffer.
Paste command. Use this command to paste the objects from clipboard
buffer.
Delete command. Use this command to delete the selected graphics object
from the screen.
Print command. Use this command to print the current screen, alarm view,
data view and recipe view.

Find command. Use this command to find the contents you need.

Zoom in command. Use this command to enlarge the current picture. To


keep on enlarging, please continue to execute this command.
Zoom out command. Use this command to shrink the current picture. To
keep on shrinking, please continue to execute this command.

45
Chapter 3 MagicWorks HMI software introduction

Center objects vertically. Use this command to center the selected


objects(Two or more) vertically.
Center objects horizontally. Use this command to center the selected
objects(Two or more) horizontally.
Left Justify command. Use this command to justify the selected objects(two
or more) to align to the leftmost objects.
Right Justify command. Use this command to justify the selected
objects(two or more) to align to the rightmost objects.
Top Justify command. Use this command to justify the selected objects(two
or more) to align to the topmost objects.
Bottom Justify command. Use this command to justify the selected
objects(two or more) to align to the bottommost objects.
Space objects horizontally equal command. Use this command to justify the
selected objects(three or more) as the same space horizontally.
Space objects vertically equal command. Use this command to justify the
selected objects (three or more) as the same space vertically.
Size objects horizontally equal command. Use this command to justify the
selected objects(two or more) to be same size of the longest objects
horizontally.
Size objects vertically equal command, Use this command to justify the
selected objects(two or more) to be same size of the longest objects
vertically.
Move selection to the front command. Use this command to move the
selected objects to the front.
Move selection forward one level command. Use this command to move the
selected objects forward one level.
Move selection backward one level command. Use this command to move
the selected objects backward one level.
Move selection to the background command. Use this command to move
the selected objects to the background.
Rotate command. Use this command to rotate the selected objects from
clockwise rotation direction to 90 degrees.(The objects(Two or more) which
had been grouped also can be rotated. Grouped Objects, user view, alarm
view, recipe view, trend view and data view cannot be rotated.)
Group command. Use this command to compose the selected objects into
one group, you can edit the group the same as other objects.(user view,
alarm view, recipe view, trend view and data view cannot be composed.).
Ungroup command. Use the command to decompose the group,restore
the group to single objects.
Lock Command. Use the command to lock the selected objects in the
screen, and the locked objects would not respond to the drag operation of
the mouse.
Unlock Command. Unlock the objects, and the objects would respond to the
operation of the mouse.

46
Chapter 3 MagicWorks HMI software introduction

3.3 Project view

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.

3.4 Work area

You can edit screen objects in work area.

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

3.5 Tool window

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.

Simple objects' screen see as following figure:

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

3.6 Property view

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:

3.7 Output view

52
Chapter 3 MagicWorks HMI software introduction

Output view is used to display the compiler information, show as below:

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.

The simulator of screens is displaying as follows:

In the simulator of screens, you can simulate user's operation by mouse and
keyboard offline.

The simulator of tags is displaying as follows:

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

4 Configuration method of MagicWorks HMI

The general process of configuring a project:

1. Create a new project.

2. Add connections, choose communication protocol for them.

3. Define internal and external tags.

4. Design the project's screens.

5. Compile and Start Runtime.

6. Download projects to the HMI and run it.

Instruction:These steps are not completely independent, in fact, they are often cross.

4.1 How to configure a project

Please refer to chapter 2.1 of creating a new project.

4.2 How to configure connections

Use 'Connection' editor to create new connections.

The steps of configuring a new connection, show as below:

1. Double-click 'Connections' to open the connection editor in the project view, see as
follows:

2. Click or right-click on the Sequence Number to select "Add" to add a new


connection.

Click or right-click on the Sequence Number to select "Delete" to delete the

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.

Assign a communication driver for the new connection in 'Communication driver'


column. There are ten communication drivers for you to select: SIMATIC S7 200,
Modicon MODBUS, Omron Hostlink / Multilink , Mitsubishi Protocol 4, Mitsubishi FX,
Omron Finslink, Panasonic Mewtocol, Delta DVP, LS MASTER-K Cnet, Fatek FBs,
SIMATIC S7 300.

3. Configure "Parameters" for the new connection.

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.

Profile: Choose the relevant configuration files in the network.

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.

Please refer to chapter 5.1 for details.

5. Save the project.

4.3 How to configure tags

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]

Creating a new tag:

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:

[Configure the properties of the tag]

There are four important properties for the tag to be configured: Connection Id, Data
type, Address, Acquisition cycle Id.

We can edit the tag in the table or in its property view.

1) Configuring 'Connection 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:

2) Configuring 'Data type'

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:

4) Configuring 'Acquisition cycle'

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

Show or hide the columns of table to control the table's displaying.

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.

Click the item you


Resting your mouse on
need then it will be
the title of the tag table
displayed on the
and right-click it.
tag table

4.4 How to design screens

4.4.1 Create Screen

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

4.4.2 Edit Screen

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]

Export screen is copying screen object.

The steps of exporting the screen show as follows:

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 path to save the screen.

Input screen name in the “filename” column.

Choose the default values 'HMI screen (*.screen)' in the “Save as type” option.

[Import screen]

Import screen is pasting screen object.

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

Find the storage location and choose the screen (*.screen).

[Rename screen]

Rename screen: Change the name of the selected screen.

[Delete screen]

Delete: Delete the selected screen.

Edit the properties of the screen:

“General” properties are described as below:


Property name Description
Name Customize the name for the screen.
Number Edit screen ID.

64
Chapter 4 MagicWorks HMI configuration method

Use template Whether to enable the template or not.


Background color Set the background color.
Font Set the default font for screen objects.

“Properties” properties are described as following:

Infotext: Describe the object by the text.

“Events” properties refer to chapter 11.1.

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.

4.4.3 Create Screen objects

We can configure all screen objects which include Simple Objects, Enhance Objects
and Graphics.

See the following simple objects:

See the following enhanced objects:

65
Chapter 4 MagicWorks HMI configuration method

[Insert a new object]

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.

[Editing object properties]

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.

The related operations of screens and objects

(1) Select multiple objects

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.

(2) Right-click operation of screen object

Right-click the selected object, it will show the following options:

68
Chapter 4 MagicWorks HMI configuration method

Toolbar and menu bar had also provided the right-click function.

(3) Bulk editing screen objects

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.

Configuring Number IO Field:

1. Configure a tag for number IO field.

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

Number IO Field has three operating modes, see as follows:

Output:: Only display variable value.


Output

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.

Configure the process tag for it in 'General' properties:

Configure the display format in 'General' properties.

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

Misc and Security etc., see as follows:

4.5 How to create alarms

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.

4.5.1 Create Analog Alarms

1. Double-click the Analog Alarm in below project view, show as follows:

2. Click to add an analog alarm, click to delete analog alarms, as follow:

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]

Input the text in Text cell.

[Configure Class]

Click the drop-down arrow of 'Class', select a alarm class from the drop-down box,
see as follows:

[Configure Trigger tag]

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:

[Configure Trigger mode]

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.

4.5.2 Create Discrete Alarms

1. Double-click the Discrete Alarm in below project view, as follow:

2. Click to add a discrete alarm, Click to delete a discrete alarm, show as


follow:

3. Configure its properties, such as Text, Class, Trigger tag, Trigger bit, Alarm Group
ect..

[Configure Text]

Input the text in Text cell.

[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

[Configure Trigger tag]

Click the drop-down arrow of 'Trigger tag' cell, select a tag from the drop-down box,
see as follows:

[Configure Trigger bit]

Double click the 'Trigger bit' cell, the input the bit(0-15), default to 0.

4.6 Debug projects

4.6.1 How to debug projects

Configuring the project is a cross process, need several times to verify the project.

The steps of debugging a 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.

3. Run the project on PC.

Run the project if there are no errors after compiling.

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.

4.6.2 Attach compile information

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

The graphic configured for [Error] Invalid graphic assigned to '%1' in


37 graphics view has been screen '%2'.
deleted.
In the set Value column, the [Error] Invalid reference parameter for system
parameter is (tag_1, xxx) we function.
38 need to check xxx whether it
is the value style. Otherwise,
error.
About recipe
39 Recipe has no recipe entries. [Error] Recipe has no recipe entries.
The tag of the recipe entry is [Error] No tag assigned to recipe entry.
40
undefined
The tag assigned to the recipe [Error] The tag assigned to the recipe entry is
41
entry is deleted. not available.
The array count of the tag [Error] The array count of the tag assigned to
42 assigned to the recipe entry is the recipe entry is invalid, please reselect the
changed. tag.
The transfer property of the [Error] Recipe is flagged for synchronization
recipe has configured but no connection is specified.
43
synchronization, but the
connection is undefined.
The transfer property of the [Error] Recipe is synchronized to a
recipe has configured connection which has no data mailbox area
synchronization, and the pointer.
44 connection is selected. But
data mailbox in area pointer is
not activated or the
connection has been deleted.
The transfer property of the [Error] Invalid address for area pointer 'Data
recipe has configured Mailbox'.
synchronization, and the
45 connection is selected, data
mailbox in area pointer is also
activated. But the address of
the data mailbox is invalid.
About trend view
No trend tag configured for [Warning] No trend tag configured for trend
46
trend. 'name of trend'.
The trend tag of trend is [Error] The trend tag of trend 'name of trend'
47
invalid. invalid.
When the x axis of the trend [Error] This trend type cannot be used with
view is time model, configure the currently selected X-axis mode.
48
buffer bit triggered or
Real-time bit triggered.
49 Buffer bit triggered of the trend [Error] This trend type cannot be used with

81
Chapter 4 MagicWorks HMI configuration method

do not configure a tag. the currently selected X-axis mode.


Buffer bit triggered and [Warning] No trend request tag configured for
real-time bit triggered do not trend 'name of trend'.
50
configure trend request tag for
trend.
The trend request tag of trend [Error] The trend request tag of trend 'name of
which configured by buffer bit trend' is invalid.
51
triggered and real-time bit
triggered is invalid.
The request tag of the buffer [Error] Multiple usage of bit in curve.
bit triggered and real-time bit
52
triggered conflict with other
trend.
Trend of the buffer bit triggered [Warning] No trend transfer 1 tag configured
53 and the real-time bit triggered for trend 'name of trend'.
do not configure transfer 1 tag.
The transfer 1 tag which [Error] The trend transfer 1 tag of trend 'name
configured by Trend of the of trend' is invalid.
54 buffer bit triggered and the
real-time bit triggered is
invalid.
The Array count of transfer 1 [Error] Samples and trend buffer are not valid
tag which configured by Trend at 'name of trend'. Maybe the array count of
55
of the buffer bit triggered is the switch buffer does not match the number
smaller than the trend's count. of samples.
The bit of transfer 1 tag which [Error] Multiple usage of bit in curve.
configured by Trend of the
56 buffer bit triggered and
real-time bit triggered conflict
with other trend.
Trend of the buffer bit triggered [Warning] No switch buffer tag configured for
57 selects switch buffer, but does trend 'name of trend'.
not configure the tag.
Trend of the buffer bit triggered [Error] The switch buffer tag of trend 'name of
selects switch buffer and trend' is invalid.
58
configures the tag, but the tag
is invalid.
Trend of the buffer bit triggered [Warning] No trend transfer 2 tag configured
selects switch buffer, but does for trend 'name of trend'.
59
not configure the tag of
transfer 2.
Trend of the buffer bit triggered [Error] The trend transfer 2 tag of trend 'name
selects switch buffer, and also of trend' is invalid.
60
configures the tag of transfer
2.But the tag is invalid.

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 .

4.7 Download projects

Please refer to chapter 2.6 for details.

4.8 Configure project password

Project password is used to set the permissions for users configuring the project. After
set password, it needs the password to reopen the project.

The steps of configuring password:

1. Right-click "Project" in project view, it appears following screen.

83
Chapter 4 MagicWorks HMI configuration method

2. Click the 'Set Project Password', it show as follows:

3. Input new password and verify password, and then click the 'OK'.

4.9 Key functions and configuration

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.

4.9.1 Function and the configuration of the key LED

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:

1. Open the Template screen.

Double-click "Template" in project view to open the Template screen.

84
Chapter 4 MagicWorks HMI configuration method

Double-click

2. Choose the K key or F key which need configure.

Take F1 for an example.

Click the 'F1' on the Template, it shows following figure:

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.

4.9.2 Key functions and configuration

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”.).

4.9.2.1 Configure F key function

F key can configure global permissions in "template", after we configured global


permission in the template, and then we can use global function in the screens. In
general, we configure global functions in the screen by choosing 'use global
assignment' in the property view. When using a global function, tag and bit of the LED
would default to the tag and the value that configured in the template.F key can be
configured both global function and local function in different screens.

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.

2. Click the F1 in the template, show as follow figure:

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

that configured in the template. Both of them cannot be configured.

6. Open the screen_3, select the F1 key and click the 'Events' properties view to
configure SetBit function.

7. Open screen_4, configure no function for it.

4.9.2.2 Configure K key 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.

1. Double-click [Screens] / [Template] in the project view to enter in the template


editor.

2. Select K1 key in the template. It shows as following:

3. Click the 'Events' in the property view, and click the 'Press' to configure
Active-Screen function.

89
Chapter 4 MagicWorks HMI configuration method

4.9.3 Configure Key permissions

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.

Configuring the F key global permission

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:

Configuring the K key permission

The steps are the same as F key global permission's. See as following:

4.9.4 Function list of other system keys

Below is the function of system key in the key-press screen:

91
Chapter 4 MagicWorks HMI configuration method

keys Function Instruction


Delete the characters on the left of the cursor.
Delete character

Select a screen object can be operate on the current


Move the cursor object.

Move to the top of the line/object. It is used in string IO


Move to the top field and Data view.

Move to the Move to the bottom of the line/object. It is used in string


bottom IO field and Data view.
Application and closed input.
ENTER Enter key Open the dropdown list of String IO field.
Trigger the button.
According to the configured order, select the next
TAB TAB keys
available screen objects.
Open operator comments configured for the object,
Through
HELP such as alarm and IO field. LED send a signal indicated
comments
that the selected object has operator comments.
Delete a value of the input character, return to its
ESC Cancel original value.
Shut the window in working conditions.
Confirm that the error alarm or all error of the alarm
ACK group.
Confirm
LED light have been lighted, As long as there was
wrong in queue.
For key combination input special characters.
Some key in the lower contains blue special
FN Shift characters, Such as '%' character. FN+ some left lower
special character, which can input this special
character.
For key combination, such as Switching to the capital
SHIFT Shift
letters.
For key combination, such as browsing through trend
Conventional
CTRL view. CTRL+ALT+ buttons, which can move the trend's
control function
ruler. Move a pixel once.
Conventional Use in Key combination, such as using 'state
ALT
control function mandatory' picture objects.

DEL Delete character Delete the characters of cursor.

92
Chapter 5 Communication Parameter

5 Communication Parameter
Parameterss

5.1 Connections

The protocols supported by MagicWorks HMI are: SIMATIC S7 200 PPI/MPI、Modicon


Modbus、Omron Hostlink/ Multi link、Mitsubishi protocol 4、Mitsubishi FX、Omron
Finslink、Panasonic Mewtocol、Delta DVP、LS MASTER-K Cnet、Fatek FBs 、SIMATIC
S7 300.

The max. Connections of each protocol are displayed in below table:


Protocol Max. connections
SIMATIC S7 200 PPI 1
SIMATIC S7 200 MPI 32
Modicon Modbus 32
Omron Hostlink/ Multi link 32
Mitsubishi protocol 4 16
Mitsubishi FX 1
Omron Finslink 16
Panasonic Mewtocol 16
Delta DVP 16
LS MASTER-K Cnet 32
Fatek FBs 32
SIMATIC S7 300 1

In project view, double-click [Communication] / [Connections] to open the connection


editor, it consists of three parts: Connection table, Parameter and Point area, see as
follows:

93
Chapter 5 Communication Parameter

Connection table

Parameter

[Connection]

In the connections form, show the basic properties of connection:

Name: Configure 'Connection' name, has uniqueness. You can configure the name
according to your requirements.

Communication driver: SIMATIC S7 200, Modicon MODBUS, Omron Hostlind /


Multilink, Mitsubishi Protocol 4, Mitsubshi FX, Omron Finslink, Panasonic Mewtocol,
Delta DVP, LS MASTER-K Cnet, Fatek FBs, SIMATIC S7 300.

Online: We can choose 'open' or 'close', choose 'open' in general.

Comment: The description will be inputted to the 'comments' area. Comment is not
visible at run time.

5.1.1 Setup communication parameters

[Parameter]

Different communication drivers determine different parameters.

When choose SIMATIC S7200 as communication driver, the Parameters see as


below:

94
Chapter 5 Communication Parameter

Name Range Description


Interface Port1 The HMI device is connected to the PPI network
or MPI network through this interface.
Baud rate 19200(Default) Data transfer rate between PLC and HMI device.
187500 The entire network must be consistent. When
configured for PPI, support three baud rates:
9600/19200/187500, when configured for MPI,
support two baud rate: 19200/187500.
Address 1 to 31 Set the HMI device's MPI addresses. In the
network, the MPI address must be unique.
Profile MPI Choose relevant network configuration files,
PPI support MPI and PPI.
Highest 15 Set the highest address. The highest address
Address 31 must be equal to or greater than the highest MPI
63 address. The entire network must be consistent.
126
Master count 0 to 31 When the HMI device is connected to the network,
this feature prevents bus disturbances. The slave
station can only send data after receiving request
from the master station. If the HMI device
connected to the slave station only, please set
"Only master on the bus" check box to disable this
security feature. For SIMATIC S7 200, HMI device
must also be set to master station.
Address 0 to 31 It’s address of the PLC device. Set the slave
station address to communicate with HMI.

Data type description of Tag


Data Type Bit Description Range
Char 8-bit Character -128~127
Byte 8-bit Byte 0~255
Int 16-bit Signed integer -32768~32767
Word 16-bit Unsigned integer 0~65535

95
Chapter 5 Communication Parameter

DInt 32-bit Signed long integer -2147483648~2147483647


DWord 32-bit Unsigned long integer 0~4294967295
Real 32-bit Floating number -3.4e+38~3.4e+38
bool 1-bit Bool(Bit) 0~1
StringChar - String char
Timer 32-bit Null Datetime value

When choose Modicon MODBUS as communication driver, the Parameters see as


below:

Name Range Description


Interface Port0/Port1 The HMI device is connected to the PPI network
or MPI network through this interface.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 1200 Data transfer rate between PLC and HMI device.
2400
4800
9600(Default)
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)
Date bits 8 Data bits of each byte frame for 232 or 485.
Stop bits 1(Default) Stop bits of each byte frame for 232 or 485.
2
Framing RTU standard
Slave 1 to 247 Slave Address of PLC.
Address

Data type description of Tag


Data Type Bit Description Range

96
Chapter 5 Communication Parameter

Int 16-bit Unsigned integer 0~65535


+/-Int 16-bit Signed integer -32768~32767
Double 32-bit Unsigned long integer 0~4294967295
+/-Double 32-bit Signed long integer -2147483648~2147483647
Float 32-bit Floating number -3.4e+38~3.4e+38
bit 1-bit Bool(bit) 0~1
16 bit Group 16-bit Unsigned integer 0~65535
ASCII - String char

When choose Omron Hostlink / Multilink as communication driver, the Parameters


see as below:

Name Range Description


Interface Port0/Port1 The HMI device is connected to the PPI network
or MPI network through this interface.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 1200 Data transfer rate between PLC and HMI device.
2400
4800
9600(Default)
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)
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.

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.

Data type description of Tag


Data Type Bit Description Range
BYTE 8-bit Byte 0~255
DEC 16-bit Unsigned integer 0~65535
+/-DEC 16-bit Signed integer -32768~32767
LDEC 32-bit Unsigned long integer 0~4294967295
+/-LDEC 32-bit Signed long integer -2147483648~2147483647
IEEE 32-bit Floating number -3.4e+38~3.4e+38
BIN 1-bit Bool(Bit) 0~1
ASCII - String Char

When choose Mitsubishi Protocol 4 as communication driver, the Parameters see as


below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 1200 Data transfer rate between PLC and HMI device.
2400
4800
9600(Default)
19200
Parity None Internal checking rule of each byte.

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.

Data type description of Tag


Data Type Bit Description Range
Int 16-bit signed integer -32768~32767
Word 16-bit Unsigned integer 0~65535
DInt 32-bit signed long integer -2147483648~2147483647
DWord 32-bit Unsigned long integer 0~4294967295
Real 32-bit Floating number -3.4e+38~3.4e+38
bit 1-bit Bool(Bit) 0~1
4 bit block 4-bit Unsigned 0~15
8 bit block 8-bit Unsigned 0~255
12 bit block 12-bit Unsigned 0~4095
16 bit block 16-bit Unsigned 0~65535
20 bit block 20-bit Unsigned 0~1048575
24 bit block 24-bit Unsigned 0~16777215
28bit block 28-bit Unsigned 0~268435455
32 bit block 32-bit Unsigned 0~4294967295
string - String char

When choose Mitsubishi FX as communication driver, the Parameters see as below:

99
Chapter 5 Communication Parameter

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 300 Data transfer rate between PLC and HMI device.
600
1200
2400
4800
9600(Default)
19200
Parity None Internal checking rule of each byte.
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

Remark:This protocol also applies to Invoance Inothink H1U/H2U PLC.

Data type description of Tag


Data Type Bit Description Range
Int 16-bit signed integer -32768~32767
Word 16-bit Unsigned integer 0~65535
DInt 32-bit signed long integer -2147483648~2147483647
Double 32-bit Unsigned long integer 0~4294967295

100
Chapter 5 Communication Parameter

IEEE-Float 32-bit Floating number -3.4e+38~3.4e+38


bit 1-bit Bool(Bit) 0~1
4 bit block 4-bit Unsigned 0~15
8 bit block 8-bit Unsigned 0~255
12 bit block 12-bit Unsigned 0~4095
16 bit block 16-bit Unsigned 0~65535
20 bit block 20-bit Unsigned 0~1048575
24 bit block 24-bit Unsigned 0~16777215
28bit block 28-bit Unsigned 0~268435455
32 bit block 32-bit Unsigned 0~4294967295
String - String char

When choose Omron Finslink as communication driver, the Parameters see as below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 1200 Data transfer rate between PLC and HMI device.
2400
4800
9600(Default)
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)

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

Data type description of Tag


Data Type Bit Description Range
DEC 16-bit Unsigned integer 0~65535
+/-DEC 16-bit signed integer -32768~32767
LDEC 32-bit Unsigned long integer 0~4294967295
+/-LDEC 32-bit signed long integer -2147483648~2147483647
IEEE 32-bit Floating number -3.4e+38~3.4e+38
BIN 1-bit Bool(Bit) 0~1
ASCII - String char

When choose Panasonic Mewtocol as communication driver, the Parameters see as


below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 9600(Default) Data transfer rate between PLC and HMI device.
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)

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

Data type description of Tag


Data Type Bit Description Range
+/-INT 16-bit signed integer -32768~32767
UINT 16-bit Unsigned integer 0~65535
+/-LONG 32-bit signed long integer -2147483648~2147483647
ULONG 32-bit Unsigned long integer 0~4294967295
FLOAT 32-bit Floating number -3.4e+38~3.4e+38
BIT 1-bit Bool(Bit) 0~1
ASCII - String char

When choose Delta DVP as communication driver, the Parameters see as below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 9600(Default) Data transfer rate between PLC and HMI device.
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)
Date bits 7(Default) Data bits of each byte frame for 232 or 485.
8

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

Data type description of Tag


Data Type Bit Description Range
+/-INT 16-bit signed integer -32768~32767
UINT 16-bit Unsigned integer 0~65535
+/-LONG 32-bit signed long integer -2147483648~2147483647
ULONG 32-bit Unsigned long integer 0~4294967295
FLOAT 32-bit Floating number -3.4e+38~3.4e+38
BIT 1-bit Bool(Bit) 0~1
ASCII - String char

【Fatek
Fatek FBs
FBs】

When choose Fatek FBs as communication driver, the Parameters see as below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if
there is one 485 port.
Note:The two ports cannot be configured to the
same protocol.
Baud rate 9600(Default) Data transfer rate between PLC and HMI device.
19200
38400
57600
115200
Parity None Internal checking rule of each byte.
Odd
even(Default)

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

Data type description of Tag


Data Type Bit Description Range
+/-INT 16-bit signed integer -32768~32767
UINT 16-bit Unsigned integer 0~65535
+/-LONG 32-bit signed long integer -2147483648~2147483647
ULONG 32-bit Unsigned long integer 0~4294967295
FLOAT 32-bit Floating number -3.4e+38~3.4e+38
BIT 1-bit Bool(Bit) 0~1
ASCII - String char

【LS
LS MASTER-K Cnet
Cnet】

When choose LS MASTER-K Cnet as communication driver, the Parameters see as


below:

Name Range Description


Interface Port0/Port1 Two 485 ports of HMI.Please configure Port1 if there
is one 485 port.
Note:The two ports cannot be configured to the same
protocol.
Baud rate 9600 Data transfer rate between PLC and HMI device.
19200(Default)
38400
57600
Parity None(Default) Internal checking rule of each byte.

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

Data type description of Tag


Data Type Bit Description Range
+/-INT 16-bit signed integer -32768~32767
UINT 16-bit Unsigned integer 0~65535
+/-LONG 32-bit signed long integer -2147483648~2147483647
ULONG 32-bit Unsigned long integer 0~4294967295
FLOAT 32-bit Floating number -3.4e+38~3.4e+38
BIT 1-bit Bool(Bit) 0~1
ASCII - String char

【SIMATIC
SIMATIC S7 300
00】

When choose SIMATIC S7 300 as communication driver, the Parameters see as


below:

Name Range Description


Interface Port1 The HMI device is connected to the PPI network
or MPI network through this interface.
Baud rate 19200(Default) Data transfer rate between PLC and HMI device.
187500 The entire network must be consistent. When
configured for PPI, support three baud rates:
9600/19200/187500, when configured for MPI,
support two baud rate: 19200/187500.
Address 0 to 31 Set the HMI device's MPI addresses. In the
network, the MPI address must be unique.

106
Chapter 5 Communication Parameter

Address 0 to 31 It’s address of the PLC device. Set the slave


station address to communicate with HMI.

Data type description of Tag


Data Type Bit Description Range
Char 8-bit Character -128~127
Byte 8-bit Byte 0~255
Int 16-bit Signed integer -32768~32767
Word 16-bit Unsigned integer 0~65535
DInt 32-bit Signed long integer -2147483648~2147483647
DWord 32-bit Unsigned long integer 0~4294967295
Real 32-bit Floating number -3.4e+38~3.4e+38
bool 1-bit Bool(Bit) 0~1
String - String char
StringChar - String
Timer 16-bit Timer
Counter 16-bit Counter
Date 16-bit Date
Time 32-bit Time
Datetime 64-bit Datetime
TimeofDay 32-bit The time of the day

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:

(1) Use PLC to control HMI screens.

(2) PLC and HMI exchange clock fuction. (This function can solve the problem of
losing clock when PLC power-off).

Select "Communication"->"Connections" from project view to set and activate the


point area:

107
Chapter 5 Communication Parameter

Point area includes the following parameters:

� Active:Enable the point area. You should activate the point area before use.

� Name:Defined by MagicWorks HMI.

� Address:The variable address in PLC.

� Length:MagicWorks HMI define the default length.

� Trigger mode:On demand, Cyclic on use, Cyclic continuous.

� Acquisition Cycle: Define a collection cycle used for this field to read point area
periodically at run time.

� Comment: The description of the point area.

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

"Screen number" point area

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 screen number is transferred spontaneously to the controller; in other words, it is


transferred whenever a new screen is selected on the HMI device. It is therefore
unnecessary to configure an acquisition cycle.(Default to "Undefined")

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.

This is enabled when the controller is time master.

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.

DATA_AND_TIME Format(BCD code)


Most significant byte Least significant byte
Data word
7 ...... 0 7 ...... 0

109
Chapter 5 Communication Parameter

n+0 Year(80-99/0-29) Month(1-12)


n+1 Day(1-31) Hour(0-23)
n+2 Minute(0-59) Second(0-59)
n+3 Reserved Reserved Week(1-7,1=Sunday)
n+4 Reserved Reserved
n+5 Reserved Reserved

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.

"Date//Time" point area


"Date

Function: This point area is used to transfer the date and time from the HMI device to
the controller.

The controller writes job mailbox "41" to the jobs mailbox.

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.

The date/time data area has the following structure:


Data Left byte Right byte
word 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n+0 Reserved Hour(0-23)
n+1 Minute(0-59) Second(0-59) Time
n+2 Reserved Reserved
n+3 Reserved Week(1-7,1 = Sunday)
n+4 Day(1-31) Month(1-12) Date
n+5 Year(80-99/0-29) Reserved

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.

"Data mailbox" point area

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.

3)The transfer of data mailboxes is triggered by a job mailbox.

Requirement: In order to synchronize transfer of data records between the HMI


device and the controller, the following requirements must be met during
configuration:

110
Chapter 5 Communication Parameter

1)Point area has been set up;

2 ) The controller with which the HMI device synchronizes transfer of data
mailboxes is specified in the recipe.

The data structure shows as below:


15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1st word Current recipe number(1-999)
2nd word Current data mailbox number(1-65535)
3rd word Reserved
4th word Status(0、2、4、12)
5th word Reserved

Status(The meaning of the 4th word)


Value
Meaning
Decimal Binary
0 0000 0000 Transfer permitted, data mailbox free
2 0000 0010 Transfer active
4 0000 0100 Transfer completed without error
12 0000 1100 Transfer completed with error

Start data record transfer by one of following three methods:

1)Input in recipe view by operators.

2)It's triggered by PLC job mailbox

3)It's triggered by functions

The transfer sequence started by operators in recipe view

1) Start PLC Read operation

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

The HMI device enters the Abort with system alarm


recipe number to be read and
the status "Transfer active" in
the data mailbox and sets the
data mailbox number to 0.

The HMI device reads the


values from the controller and
displays them in the recipe
view.
If the recipes have
synchronized tags, the values
from the PLC are also written
to the tags.

The HMI device sets the status


"Transfer completed."

To allow further transfers, the


controller program must set the
status word to 0 again.

112
Chapter 5 Communication Parameter

2) Start PLC Write operation

Check:Status Word = 0?

Yes No

The HMI device enters the Abort with system alarm


recipe number to be read and
the status "Transfer active" in
the data mailbox and sets the
data mailbox number to 0.

The HMI device reads the


values from the controller and
displays them in the recipe
view.
If the recipes have
synchronized tags, the values
from the PLC are also written
to the tags.

The HMI device sets the status


"Transfer completed."

To allow further transfers, the


controller program must set the
status word to 0 again.

Tip

You can only set the status word by HMI device, PLC can only reset the status word
to 0.

The transfer sequence after triggered by job mailbox:

� The data log transfer between HMI device and PLC can be started by any
station.

113
Chapter 5 Communication Parameter

� The PLC job 69 and 70 is available for such kind transfer.

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

2)No. 70:Write the specified data mailbox of designated recipe to PLC.

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 —

3)Sequence when reading from PLC with job mailbox(No. 69)

Check:Status Word = 0?

Yes No

The HMI device enters the Abort with system alarm


recipe and data mailbox
number specified in the job
and the status "Transfer
active" in the data mailbox.

The HMI device reads the


values and stores the values in
the data mailbox specified in
the job mailbox.

114
Chapter 5 Communication Parameter

•If "Overwrite" was selected in the


job, an existing data mailbox is
overwritten without any prompt for
confirmation.
The HMI device sets the status
"Transfer completed."
•If "Do not overwrite" was selected
in the job, and the data mailbox
already exists, the HMI device
aborts the job and enters 0000
1100 in the status word of the data
mailbox.

To allow further transfers, the


controller program must set the
status word to 0 again.

4)Sequence of writing to the PLC using PLC job(No.70)

Check:Status Word = 0?

Yes No

The HMI device enters the Abort with system alarm


recipe and data mailbox
number specified in the job
and the status "Transfer
active" in the data mailbox.

The HMI device fetches the


values of the data mailbox
specified in the job from the
data medium and writes the
values to the controller.

The HMI device sets the status


"Transfer completed."
115
Chapter 5 Communication Parameter

The controller program can


now evaluate the transferred
data.
To allow further transfers, the
controller program must set
the status word to 0 again.

"Coordination" point area


Function:The "Coordination" area pointer is used to implement the following
functions:

1) Detecting the startup of the HMI device in the control program

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.

The data format of "Coordination" see as below:


Word Most significant byte Least significant byte
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1st word Reserved 0 is startup bit,1 is operating mode,2 is
status bit,the rest of the bits are
reserved.
2nd word Not assigned Not assigned

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.

"Job mailbox" point area


Function: The job mailboxes can be given to the HMI device so as to trigger actions

116
Chapter 5 Communication Parameter

on the HMI device.

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

(in the OP/MP format)


There should be at least 5 seconds between two jobs, otherwise the HMI
device will be overloaded.
Parameter 1、2、 -
3
51 Screen selection
Parameter 1 Screen number
Parameter 2、3 -
69 Read mailbox from PLC
Parameter 1 Recipe No.(1-999)
Parameter 2 Data mailbox No.(1-65535)
Parameter 3 0:Do not overwrite existing data record
1:Overwrite existing data mailbox
70 Write mailbox to PLC
Parameter 1 Recipe No.(1-999)
Parameter 2 Data mailbox No.(1-65535)
Parameter 3 -

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

Example 1:Screen number

Step 1:Create a new project.

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

Likewise ,if switch to screen N,the 5 number IO field would show:1 、 N 、 0 、 0 、 0


(N:1~65535)

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

Example 2:Date/Time PLC

Step 1:Create a new project and a new connection according to Example 1.

Step 2:Create a tag group_1, and configure 6 tags in this group:Tag_1(VW10)、Tag_2


(VW12)、Tag_3(VW14) 、Tag_4(VW16) 、Tag_5(VW18) 、Tag_6(VW20), and
configure "Connection_1" for the 6 tags.

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

n+1 Day(1-31) Hour(0-23)


n+2 Minute(0-59) Second(0-59)
n+3 Reserved Weekl(1-7,1=Sunday)
n+4 Reserved Reserved
n+5 Reserved Reserved

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.

Example 3:Data mailbox

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.

Step 3:Configure a recipe in the screen:

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:

1)Point area has been set;

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;

Data structure of the Data mailbox show as below:


15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1st word Current recipe No.(1-999)
2nd word Current data mailbox No.(1-65535)
3rd word Reserved
4th word Status(0、2、4、12)
5th word Reserved

Status(The meaning of the 4th word)


Value
Meaning
Decimal Binary
0 0000 0000 Transfer is available, data record is free.
2 0000 0010 Transfer is busy.
4 0000 0100 Transfer is finished, and no errors.
12 0000 1100 Transfer is finished, and occurred errors

Step 8: If you changed other recipe value and need download to PLC, then you
should set the 4th bit to 0.

Example 4:Job mailbox

124
Chapter 5 Communication Parameter

Here use the 51th Job as a sample.

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.

Step 3: Create a new screen,and configure 4 number IO field in the screen,then


configure tag for each IO field:Tag_1、Tag_2、Tag_3、Tag_4,see as below:

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.

Note:The data format of Job number is decimal.

5.2 Tags

5.2.1 The properties of tags

Tags contain external and internal 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.

In the Project view,double-click [Communication] / [Tags] to open the tag editor, it


consists of two parts, tag table and Property view, see as follows:

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.

Connection:For external tags, you must configure a PLC connection.

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 Mitsubishi FX protocol:

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

Acquisition mode:The modes of updating tags. Three types: On demand, Cyclic on


use, Cyclic continuous.

On demand is reserved.

Cyclic on use: Continuous update the tags for current screen.

Cyclic continuous: Continuous update the tags for all of the screens.

Acquisition cycle:The updating cycle of the tags.

Array count:The dimension of the array tag.

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

Omron Hostlink / Multilink:

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

alarm range, will produce the analog alarm.

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.

Comment:Info text of the tag.

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'']

Each variable has three events types:

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.

Please refer to chapter 11.1 for configuring the “Events”function.

135
Chapter 5 Communication Parameter

5.2.2 The import / export function of tag group

The tag group supports the import / export function.

Right-click the tag group that need to be imported or exported from the project view,
would pop up the corresponding dialog.

Export tag group

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.

Import tag group

MagicWorks HMI supports to import the tag group from external, the imported data
must meet the following requirements:

� The file format of the file to be imported must be“.tag”.

� 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.

5.2.3 The bulk editing function of tag table

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.

Note: You need select the column that to be bulk edited.

5.2.4 The filter function of 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.

In Project view, double-click [Communication] → [Cycles] to open the editor, see as


follows:

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.

The range of cycle unit see as following:


Cycle unite Range
Hour 1-18
Minute 1-1092
Second 1-65535
Millisecond 100-65535000

Cycle time: Integer multiples of Cycle unit.

Double-click 'cycle time' to modify the time for the cycle.

Name: The name of a cycle.

Double-click “Name” unit can change a new name for the cycle according to your
requirements.

Comment: The comments of a cycle.

137
Chapter 6 Components of Screen

6 Components of Screen

6.1 Simple Objects

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

X and Y coordinates of inflection point "1",


"2", "3", "4" and "5" labeled above.

Property name Description


Appearance Color Border Forecolor of polyline.
color
Fill color Background color of polyline.
Border Width Width of border line.

139
Chapter 6 Components of Screen

Style (referring to description of 'Line')


Layout X Horizontal distance between the spinodal
of polyline and the left edge of screen,
units of pixel.
Corner Point
Y Vertical distance between the spinodal of
polyline and the top edge of screen, units
of pixel.
Flashing Runtime
Flashing (referring to description of 'Line')
Appearance
Misc. Name (referring to description of 'Line')
Miscellaneous
Opacity (referring to description of 'Line')

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

X and Y coordinates of inflection point "1", "2", "3"


and "4" labeled above.

Property name Description


Appearance Color Border Color Border line color of polygon.
Fill Color Fill color of polyline.
Border Width Width of border line.
Style (referring to description of 'Line')
Layout Corner Point X Horizontal distance between the spinodal
of polygon and the left edge of screen,
units of pixel.
Y Vertical distance between the spinodal of
polygon and the top edge of screen, units
of pixel.
Flashing Runtime Flashing (Refer to the description of 'Line')
Appearance
Misc. Miscellaneous Name (Refer to the description of 'Line')
Opacity (Refer to the description of 'Line')

6.1.4
1.4 Ellipse

'Ellipse' is a closed object.

141

You might also like