Vous êtes sur la page 1sur 19

4/10/2017

Syntec Technology Co., Ltd. Fundamental eHMI Training Course

Version1.4

2015/12/29

2017/4/10 1 Syntec Inc. eHMI tools download and install  Simulator download 1. Go to www.syntecclub.com.tw
2017/4/10
1
Syntec Inc.
eHMI tools download and install
 Simulator download
1.
Go to www.syntecclub.com.tw Input username and password
2.
Click ON download button
3.
Select 01. Controller,Select types(turn, mill……etc)
4.
Start download
 eHMI download
1.
Go to www.syntecclub.com.tw Input username and password
2.
Click ON download button
3.
Select 04. application Tools >eHMI
4.
Start download
Syntec Inc.
Process of Outline Customizing HMI [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator
Process of
Outline
Customizing HMI
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
2
Syntec Inc.
eHMI tool download and install  LadderEditor Download 1. Go to www.syntecclub.com.tw Input username and password
eHMI tool download and install
 LadderEditor Download
1.
Go to www.syntecclub.com.tw Input username and password
2.
Click ON download button
3.
Select 04. application Tools > Ladder Editor
4.
Start download
 Installation
1.
Please Install CE simulator first, Refer to App Mechatronic
Articles EMC1_Installation EMC1_C002_Instruction of
Installing CE Simulator on PC
2.
Install eHMI tool: extract the files, move the files according
readme.txt
3.
Install LadderEditor
Syntec Inc.

4/10/2017

Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Design Browser and
Fenubar
Introduction of eHMI
Using eHMI
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
5
Syntec Inc.
Introduction to Syntec customize HMI  HMI design tool eHMI:(basic) Designing interface layout file Syntec Inc.
Introduction to Syntec customize HMI
HMI design tool
eHMI:(basic)
Designing interface layout file
Syntec Inc.
The relation between Controller, HMI, and User Controller HMI User Functions Functions • Execute NC Functions
The relation between Controller,
HMI, and User
Controller
HMI
User
Functions
Functions
Execute NC
Functions
Edit NC
Parameters read
1.
Browser display
Modify NC
Execute PLC
2.
Fenubar display
Parameters Setting
Execute MACRO
Debug
Syntec Inc.
Syntec eHMI tool Introduction Main Function  Operation Interface Designer design his own browser interface /XML
Syntec eHMI tool Introduction
Main Function
Operation Interface
Designer design his own
browser interface /XML file
Fenu button
Designer design his own
button
(Fenubutton/Fenubar)
Design method
Operation Interface
Use eHMI to make browser,
Produce xml file,use eHMI for pre-
test。
Fenu button
Use eHMI to make button and set its
actions
Syntec Inc.

4/10/2017

Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Design Browser and
Fenubar
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
9
Syntec Inc.
Folder Structure of HMI (2/3)

Use OCRes as example :

LocationDiskC\OcRes\Common

 

AppDataCustomized Browsers

CanCycleCustomized Canned Cycle CustomFenuCustomized Fenubars (Only OCRes)

 

AttachfenuNew customized Fenubar

 

ModifyFenuModified Fenubar

HelpEnglish *Help.xml

ImageFigures that applied in all browsers StringEnglish string files

LocationDiskC\OcRes\CHT

 

HelpChinese (Traditional) *Help.xml

StringChinese (Traditional) string files

LocationDiskC\OcRes\CHS

 

HelpChinese (Simplified) *Help.xml

StringChinese (Simplified) string files

P.S. The browsers (*.xml) name shall be exactly the same with corresponding string files, eHMI shall create the string file when a browser (*.xml) is saved.

Syntec Inc.
Syntec Inc.
Folder Structure of HMI (1/3) DiskC StdMMIRes PrdMMIRes OCRes  Syntec Std HMI  Syntec Sub-System
Folder Structure of HMI (1/3)
DiskC
StdMMIRes
PrdMMIRes
OCRes
Syntec Std HMI
Syntec Sub-System HMI
Customized HMI
Renewed by Update
Renewed by Update
Unaffected by Update
Priority:Low (3rd)
Priority:Medium (2nd)
Priority:High (1st)
Common
Common:Eng,consist of AppData, CanCycle, Help, Image, String
CHT:Chinese (Traditional),consist of Help, String
CHS:Chinese (Simplified) ,consist of Help, String
Syntec Inc.
Folder Structure of HMI (3/3) Use OCRes as example • Path:DiskC\OCRes\Common – CustomFenu:folder for customized fenu
Folder Structure of HMI (3/3)
Use OCRes as example
Path:DiskC\OCRes\Common
CustomFenu:folder for customized fenu
uon(OCRes only)
Attachfenu : new fenu button
ModifyFenu: edit/replace original fenu button
Standard
ModifyFenu
Attachfenu
Syntec Inc.

4/10/2017

Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Design Browser and
Fenubar
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
13
Syntec Inc.
Customized Backgnd.xml • It can be separated in 5 panels,as shown below: – – – –
Customized Backgnd.xml
It can be separated in 5 panels,as shown below:
Pan_Backgnd:Define the whole HMI screen size.
Panel:Define the size and location of status bar which originally on the top.
Pan_Backbone:Define the size and location of the browser screen.
Pan_Status:Define the size and location of CNC status.
Pan_Fenubar:Define the size and location of Fenubar
Syntec Inc.
Compound of HMI Our HMI consists of: Backgnd.xml Browser Fenubar Syntec Inc.
Compound of HMI
Our HMI consists of:
Backgnd.xml
Browser
Fenubar
Syntec Inc.
Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Design Browser and
Fenubar
Introduction of eHMI
Pack the OCRes
Using eHMI
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
16
Syntec Inc.

4/10/2017

Introduction of eHMI • Instead of editing *.xml to customize HMI, we provide you to do
Introduction of eHMI
• Instead of editing *.xml to customize HMI, we provide you to
do so by using eHMI.
• By simply click and drag the item to the desired position,
it makes the customizing process more effective and simple.
• The designing process can be divided into:
• Browser design
• Fenubar design
Syntec Inc.
Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
Design the browser
– Definition of “Action”
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
19
Syntec Inc.
Main Screen of eHMI Editing Area:Edit the browser or fenubar Tools List:Hot-keys area File Manager:Browser Manager
Main Screen of eHMI
Editing Area:Edit the browser or fenubar
Tools List:Hot-keys area
File Manager:Browser Manager / Fenubar Manager
Properties:Properties of current active item
Status Bar:Current status of all items, and the status of fenubar
Syntec Inc.
How to customize Fenubar (1/8) • Definition of Fenubar • A Fenubar consist of 0~1 “escape”
How to customize Fenubar (1/8)
Definition of Fenubar
A Fenubar consist of 0~1 “escape”
button, 0~1 “next” button, and
1~10 general fenu.
Syntec Inc.

4/10/2017

How to customize Fenubar(2/8) • How to edit fenu button properties Fenu button’s properties are devided
How to customize Fenubar(2/8)
How to edit fenu button properties
Fenu button’s properties are devided into 2 kinds:Fenu button and Fenu-bar
Modify / Check whole fenu button properties, only needs to change properties by
clicking properties button which is located on bottom side
Fenu button introduction
• Fenu properties button will influence all fenu button
Normal/Large:enlarge fenu button display
Has/No function:display Function key
3D/Flet:Set fenu display to 3D or flat button
PicOverText:move Image upper the text
etc.” characters
• Hide:During fenubar is set to 3D , 3 dimensional level are defined by this button
Syntec Inc.
How to customize Fenubar (4/8) • Properties of fenu • User Level: • This properties can
How to customize Fenubar (4/8)
Properties of fenu
User Level:
This properties can work together along with Fenubar.UserLevel in C#, only
visible in certain Fenubar.UserLevel
Note : “Escape” does not have this function
Title:
Can set multi-language titles simultaneously
• Can add an additional language other than Eng, CHT, and CHS
Find used
word
Syntec Inc.
How to customize Fenubar (3/8) • Properties of fenu Position:The position of fenu button [Read only]
How to customize Fenubar (3/8)
Properties of fenu
Position:The position of fenu button [Read only]
Name:The name of fenu button
Visible:true - visible;false - invisible
state:can only be modified during “Enabled”
Syntec Inc.
How to customize Fenubar (5/8) • Properties of fenu • Not Password-protected action: Actions that do
How to customize Fenubar (5/8)
Properties of fenu
Not Password-protected action:
Actions that do not require a password
Password-protected action:
In order to proceed certain action, user shall insert a password.
Syntec Inc.

4/10/2017

How to customize Fenubar (6/8) • Properties of fenu • Picture • By clicking “Select”, user
How to customize Fenubar (6/8)
Properties of fenu
Picture
By clicking “Select”, user can put a .bmp picture on certain fenu.
Link:
If one wish to link the certain fenu to another fenubar, it can be achieved by
using “link” function.
Syntec Inc.
How to customize Fenubar (8/8) • FenuBar setting • Rename:to Rename fenubar • New Fenu:Add new
How to customize Fenubar (8/8)
FenuBar setting
Rename:to Rename fenubar
New Fenu:Add new Fenu
Delete:Delete selected fenubar
Copy : Copy Fenu Bar
• Close Fenu:To close fenu bar which is displayed on working area
Syntec Inc.
How to customize Fenubar (7/8) • Add new fenu button Introduction • EnableRule:Has same features with
How to customize Fenubar (7/8)
Add new fenu button Introduction
EnableRule:Has same features with enableRule
ForeColor:Fenu button Forecolor
BackColor:Fenu button Background color
Light On Color:When the button is pressed , background color will change
to this color and it will return to background color after released。
HoldMode:true means the button won’t auto pop up after button is pressed, it
needs be pressed again to pop up(release) the button, and there’s no this features
false is selected.
Reset to Original Value
Copy from another button:Copy properties from another button
Hold ON
mode: True
Syntec Inc.
Editing/add new fenu (1/2) • Use EHMI software,to open (STDMMIRES) Syntec standard HMI folder, according controller’s
Editing/add new fenu (1/2)
Use EHMI software,to open (STDMMIRES) Syntec standard HMI folder, according
controller’s type and number of Fenu key to find its file:
10 series,20 series, 200 series, Super series
5 keys:\StdMMIRes\Common\CncFenu5.xml
8 keys:\StdMMIRes\Common\CncFenu.xml
6 series, 11 series,21 series
5 keys:\StdMMIRes\_Arm\”_車或銑”\”_控制器型號”\Common\CncFenu5.xml
8 keys:\StdMMIRes\_Arm\”_車或銑”\”_控制器型號”\Common\CncFenu.xml
After open the file, please try error to find related Fenubar
Fenubar shown
DO NOT rename Stdmmires folder to Ocres and then make
modification, this method will caused error after software upgrade
Syntec Inc.

4/10/2017

Editing/add new fenu (2/2)

Add New Buttonuse EHMI software to create file in OCRES folder, path as follows:

OCRes\Common\CUSTOMFENU\ATTACHFENU

Creating/adding new Fenubarfor file names just use favorite Fenubar names

• OCRes\Common\CUSTOMFENU\MODIFYFENU

  • - Modifying original STDMMIRES Fenubar

  • - New Fenubar name should exactly same with STDMMIRES, example: main

  • - After created according previous section” How to customize fenubar” to

create new fenu button.

  • - After saved, this fenu button will replace original STDMMIRES standard Fenu.

Syntec Inc. Custom Browser • Use eHMI browser components to layout browser 2017/4/10 31 Syntec Inc.
Syntec Inc.
Custom Browser
Use eHMI browser components to layout browser
2017/4/10
31
Syntec Inc.
Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
Design the browser
Design the fenubar
Appendix
– Definition of “Action”
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
30
Syntec Inc.
Introduction of eHMI Items

PanelThe base part of browser

LabelDisplaying text, its role can be defined as “None”, “HintLabel”, ”HintText”, and “HintTag”

DisplayDisplay the value of certain memory address (e.g. R210)

PictureDisplay picture, can be defined as general picture or “HintPicture”, only support jpgbmpgif format.

LampDisplay different picture according to different value of certain memory. (e.g. R210=1 display green, R210=2 display red)

Multi-textDisplay different text according to different value of certain

Syntec Inc.
Syntec Inc.

memory. (e.g. R210=1 display “”Syntec”, R210=2 display “CNC”)

InputAllow user to input a value/string to certain memory.

ListInputAllow user to drag and chose certain value/text

ButtonButton.

CoordBoxDisplay current coordinate information.

InputLineAllow the user to input information.

DateDisplay date. TimeDisplay time.

4/10/2017

Common properties of eHMI items

NameItem name

Font sizefont size

AlignmentAlign to left/right/mid/top/bottom

Border Style Design the border style

Border ColorDesign the border color

ForeColorText color on the item

BackColorBackground color

WidthWidth of item HeightHeight of item

EnableRuleDefine certain value of memory to decide whether or not to enable the item.

PositionCoordinate(X,Y axis) of item.

Syntec Inc. Components introduction-Label • Display Mode:set label for single line or auto change line •
Syntec Inc.
Components introduction-Label
Display Mode:set label for single line or auto change
line
Caption:Click "…“, to set multiple language setting,
example: English, Chinese trad., Chinese Simp., this
component will display label, if lack setting of
English/Chinese trad./Chinese sim, then this
component will display current eHMI selected language.
Role=none then label will displayed Caption data.
Role:
None : displaying Caption
HintLabel : Displaying HintLabel, only single line
HintText :Displaying HintText, supports multiple
line
HintTag: Displaying HintTag, display location is not
fixed, will be shown around label.
Syntec Inc.
Components introduction-Panel • Name:component Name • Font Size:Component font size • Alignment:Fonts position alignment • Border
Components introduction-Panel
Name:component Name
Font Size:Component font size
Alignment:Fonts position alignment
Border style:With or W/o border
Border color:With border(for with border only)
Back Color:component back color,Width:
component width
Height:component height
Position:Component position (X,Y)
Syntec Inc.
Components introduction-Button(1/2) • Enabled:true means able to be click, False will cause the button became grey,
Components introduction-Button(1/2)
Enabled:true means able to be click, False will
cause the button became grey, unable to be click
Button 3D:Displaying 3D button effects
Level 3D:Set 3D button display level
Hold Mode:Set true will cause button holding after
pressed(not pop up)
Enter Trigger button:Option for Enter key to trigger
this button
List Item:according display value showing different
image, color, etc.
If like to create multiply set of characters,
please press lower right “add new” button
Auxiliary Actions
As shown on image, user may design actions
when the focus leaving the button, by using kill
focus.
Syntec Inc.

4/10/2017

Components introduction-Button(2/2) • Button Up/Button Down • Device:During Button pressed up/down it will memorized its own
Components introduction-Button(2/2)
Button Up/Button Down
Device:During Button pressed up/down it will
memorized its own position
Not Password protected action: Define Action during
Button pressed up/down by pressing “….”button
Password protected action: Define Action during Button
pressed up/down by pressing “….”button, but Password
is need before action is performed
Syntec Inc.
Components introduction-Coorbox • Title:true means will display Coordinate type • Page Size:Max. display axis number •
Components introduction-Coorbox
Title:true means will display Coordinate type
Page Size:Max. display axis number
Coord.type:type of Coordinate
L Fore color:Axis type display color
L Back color:Axis background display color
L Font size: Axis type font size
L border style:Axis border type
V fore color: Coordinate font color
V back color: Coordinate background color
V Font size: Coordinate font size
V border style: Coordinate border type
Axis not home color:Display color for Axis NOT-homing
Axis selected color:Display color for axis selected by
MPG
• Interval:Interval between coordinate
Syntec Inc.
Components introduction-Label • Display Format:Select Display format • Display source:Source to define Display contains Syntec Inc.
Components introduction-Label
Display Format:Select Display format
Display source:Source to define
Display contains
Syntec Inc.
Components introduction-Picture • Picture:Path for display picture, click『…』to select path, after selected eHMI will convert the
Components introduction-Picture
Picture:Path for display picture, click『…』to
select path, after selected eHMI will convert the
image to path as follows:『CustomImage\*.*』
Is a Hint Picture:Check this box means this
components will according input box action shows
different image
Syntec Inc.

4/10/2017

Components introduction-Lamp • Display format:Select Display format • Display source:Source to define Display contains • Value
Components introduction-Lamp
Display format:Select Display format
Display source:Source to define
Display contains
Value of display source:Source define for different image display
Picture:Displayed image according value of source,Click “Add” button for more
sets of source/picture
Syntec Inc.
Components introduction-Input (2/2) • Hint Label:selecting this input box, then single line hint will appears, use
Components introduction-Input (2/2)
Hint Label:selecting this input box, then single line hint
will appears, use 『…』button to set multiple language
Hint Text: selecting this input box, then multiple lines hint
will appears, use 『…』button to set multiple language
Hint Tag: selecting this input box, then hint tag will
appears, use 『…』button to set multiple language
Hint Picture: selecting this input box, then hint image will
appears, define path shortcut, then eHMI will according
the path converting the image to new path『
CustomImage\*.*』
R map to registry:check this box will let user’s selection
saved to L memory data
Syntec Inc.
Components introduction-Input (1/2) • Input Format:Select input format • Input storage:Define storage for input data •
Components introduction-Input (1/2)
Input Format:Select input format
Input storage:Define storage for input data
Input Range:Range for input data
Left column for defining smallest and right for largest. ex.
Input 30~50 or R1~100.
Input Range Inch:similar with Input range, but it will auto
calculated to Inch dimension.
MacroAddr:Macro address, usually use for generating
macro program argument
Syntec Inc.
Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
Design the browser
Design the fenubar
Appendix
– Definition of “Action”
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
44
Syntec Inc.

4/10/2017

Custom actions • Browser or Fenu will need custom actions 2017/4/10 45 Syntec Inc. Definition of
Custom actions
Browser or Fenu will need custom actions
2017/4/10
45
Syntec Inc.
Definition of Actions (2/9)

• Switch to Custom Xml

When CNCMon receive this action, it shall load the certain customized browser

*.xml and display it on the screen.

• Switch to Set WorkPiece Coordinate

When CNCMon receive this action, it shall switch to the workpiece coordinate

setting screen.

• PopUp specify XML Form

When CNCMon receive this action, it shall pop-up a window that directed to

certain *.xml.

• Close PopUp Form

When CNCMon receive this action, it shall close all the pop-up windows.

Syntec Inc.
Syntec Inc.
Definition of Actions (1/9) Enable Action Procedure: Syntec Inc.
Definition of Actions (1/9)
Enable Action Procedure:
Syntec Inc.
Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the same with
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz & Homework
Quiz
2017/4/10
48
Syntec Inc.

4/10/2017

eHMI Packaging Directory:The location of the file/folder that intent to pack Project Path:The location of the
eHMI Packaging
Directory:The location of the file/folder that intent to pack
Project Path:The location of the file/folder that shall be install in CNC
Install Name:Text shall be display during installation (Just display purpose)
Version:Text shall be display during installation (Just display purpose)
When packing success, the “package” shall be located on the top of C drive
2017/4/10
49
Syntec Inc.

eHMI Packaging – example 2

ObjectNon-Customized HMIe.g. ladder, Macro, etc.

Procedure

– The file/folder must be save under *\OpenCnc\, for example C:\MyCustom\OpenCnc

– Open eHMIclick Package > Directory – In “Directory“, please keyC:\MyCustom \OpenCnc

– Project Path : \DiskC. It means the OpenCnc under C:\MyCustom\OpenCncshall be install to DiskC\ of CNC

– Install Name & Version are optional.

– Once packing success, an package_xxxxxx.zip shall appear under C:\ of your PC

2017/4/10

51

Syntec Inc.
Syntec Inc.

eHMI Packaging – example 1

ObjectCustomized HMI

Procedure

– The file/folder must be save under *\OCRes\, for example C:\MyCustom \OCRes

– Open eHMIclick Package > Directory – In “Directory“, please keyC:\MyCustom \OCRes

– Project Path : \DiskC. It means the OCRes under C:\MyCustom\OCResshall be install to DiskC\ of CNC

– Install Name & Version are optional.

– Once packing success, an package_xxxxxx.zip shall appear under C:\ of your PC

2017/4/10 50 Syntec Inc. Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator
2017/4/10
50
Syntec Inc.
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz
Quiz & Homework
2017/4/10
52
Syntec Inc.

4/10/2017

APPENDIX

eHMI Related manual

AppHelp> HMI custom and development>eHMI說明手冊

– – AppHelp> HMI custom and development>CE人機客製

Variable specification

AppHelp> Application manual>OpenCNC MACRO tools

– PLC & eHMI variable specs.(CSR)AppHelp>Application manual>CNC and PLC

2017/4/10 53 Syntec Inc. Components introduction- List Input(1/3) • Input Format:Select input format • Input storage:Define
2017/4/10
53
Syntec Inc.
Components introduction- List Input(1/3)
Input Format:Select input format
Input storage:Define storage for input data
MacroAddr:Macro address, usually use for
generating macro program argument
R map to registry:check this box will let user’s
selection saved to L memory data
Syntec Inc.
Components introduction-Mumti • Display format:Select Display format • Display source:Source to define Display contains • Set-Multi
Components introduction-Mumti
Display format:Select Display format
Display source:Source to define
Display contains
Set-Multi Text:During Register value
equals to 0 display 『sun』 equals = 1
display『moon』。
eHMI provided converting label display to
multiple text display
Click Multi text button to Input multi text,
then new windows will pop up for multi text
setting, if multi text setting is filled, then
control will display the contains according
multi text setting
Syntec Inc.
Components introduction- List Input(2/3) • Input List Item: • Press “NEW“ button to create new item
Components introduction- List Input(2/3)
Input List Item:
Press “NEW“ button to create new item
Caption:define caption
Hint Picture:Define hint image
Item value:Source value for showing different text
Hint text:single line text hint shown after this
component is selected
Hint label:Multiple line text shown after this
component is selected
Hint Tage:Tag shown after this component is
selected
Action:comes with Not Password and Pasworded
Press『…』button next to Not/Password protected action
to define its actions, action details will be shown in next
page
Syntec Inc.

4/10/2017

Components introduction- List Input(1/3) • Secondary Action: • As shown on the right side image, user
Components introduction- List Input(1/3)
Secondary Action:
As shown on the right side image, user may
select corresponding action, then on the right
windows side will pop up related input box.
Syntec Inc.
Components introduction-Meter • Meter component supports source value to define its display • Type:Semi Circle, full
Components introduction-Meter
Meter component supports source value to define its display
Type:Semi Circle, full circle, strip, vertical gauge
Scale up:Max. flag value
Scale low:Min. flag value
Sub interval: interval(value) between flag
Sub scale interval:interval(value) between sub interval
Scale color:Scale color
Meter color:Meter/pointer color
Number color:Number/Flag color on gauge
Scale radius:only supports circle type
Scale range start:Start flag point, only supports circle type and the value should
positive
Scale range end: end flag point, only supports circle type and the value should
positive
Range value list item:Every meter should have this setting, this properties will
according different scale value to show different color as show in lower image.
Syntec Inc.

Components introduction- Date and Time

DateDisplaying control systems date

For Setting method please refer to common properties of EHMI

TimeDisplaying control systems time

For Setting method please refer to common properties of EHMI

Syntec Inc. Definition of Actions (3/9) • Switch to XMLDB processing • Use cyc file recover
Syntec Inc.
Definition of Actions (3/9)
Switch to XMLDB processing
Use cyc file recover variable to system processing memory, or save current
variable setting to cyc file
Definition introduction:
Cyc file:cycle file
Pre-set cyc file:file name is saved in Registry no.3980
Recall files from browser:
Before saving file, this action is needed to call the browser, then just save the
file
Create new file:
If file name is existing, then it will recall variable data from cyc file to memory.
If not existing it will copy all variable memory to “new_file_name.cyc file”
Syntec Inc.

4/10/2017

Definition of Actions (4/9)

Switch to XMLDB file browser

 

Open file

 

According CustomXMLDBData, this Schema will save current memory to cyc fileif preset cyc file is empty, then it will ignore this action

Then, pre-set cyc file set become in use cyc file, then this cyc file variable date will call to memory

 

Copy fileCopy Focused file

Delete file

 

If cyc file different with focused file then the file will be deleted, if cyc file same with focused cyc file, then it will show alarm: unable to delete

 

Rename

 

If cyc file different with focused file then the file can be renamed, if cyc file same with focused cyc file, then it will show alarm: unable to rename

 

Save File• According CustomXMLDBData, this Schema will save current memory to pre-set cyc file Save As

According CustomXMLDBData, this Schema will save current memory tonew_file.cyc File transferMove cyc file to GNcFiles folder; File exportExport GNcFiles folder’s cyc file

 
Syntec Inc.
Syntec Inc.
 

Definition of Actions (6/9)

• Change fenu button attribute

 

Allow user to change the properties of specific fenubutton

• Change current page items attribute

 

Allow user to change the properties of current page items

• Change title text :

Allow user to change the title of current browser

• Change backgnd.xml items attribute :

 

Allow user to change the properties of backgnd.xml

 
Syntec Inc.
Syntec Inc.

Definition of Actions (5/9)

Switch to Fenu

 

When CNCMon receive this action, it shall load the certain customized Fenubar

 

and display it on the screen.

Switch to custom parameter page

 

When CNCMon receive this action, it shall load the custom parameter page and

 

display it on the screen.

Syntec Inc.
Syntec Inc.

Definition of Actions (7/9)

Execute block G-code

 

When CNCMon receive this action, it shall execute the specified G-code

 

immediately

 

Using Method: Enter G-code number in the input box, click add button, then this

 

action will be shown in left side window.

Assign main program

 

Allow user to assign main program

Using Method: Enter program number in the input box, click add button, then this

action will be shown in left side window.

Syntec Inc.
Syntec Inc.

4/10/2017

Definition of Actions (8/9)

Assign value to device

Allow different methods of assigning value

 

Assign value to R Register

On a bit of R Register

Off a bit of R Register

Invert a bit of R Register

R Register value specified add 1

R Register value specified subtract 1

Backup and call device(XMLDB)

In customized browser, Variable R, L, @ etc. are defined by Syntec XMLDB format

and this variable can be saved, deleted, re-open, rename and export/import.

Syntec Inc. Outline [Pre-Customize] Installing Win32 simulation software (be sure the version of simulator is the
Syntec Inc.
Outline
[Pre-Customize] Installing Win32
simulation software
(be sure the version of simulator is the same with
that of controller)
What is HMI?
Compound of HMI
Folder Structure of HMI
Introduction of eHMI
Using eHMI
Design Browser and
Fenubar
Pack the OCRes
– Definition of “Action”
Design the browser
Design the fenubar
Appendix
eHMI packaging
Appendix
Quiz
Quiz & Homework
2017/4/10
67
Syntec Inc.

Definition of Actions (9/9)

Password

 

Set a password to that fenu. Once the password is set, in order to proceed the

 

actions of that fenu, one must insert the correct password.

Setting System information :

 

Only supports setting system date and time.

Keypad On/Off

 

Allow user to On/Off a keypad, only supports Win CE systems.

Using method: Input ”Y” or ”N” to define keyboard display, click add button, left

 

side’s action windows will produce this action.

Else

 

If ones requirement cannot be satisfied by those actions mentioned. Please

choose “Else” and define the action in a .dll file.

Syntec Inc. Quiz 1 ~ Custom panel (1/3) • EHMI components: • Button • Display •
Syntec Inc.
Quiz 1 ~ Custom panel (1/3)
EHMI components:
Button
Display
Red image
Green image
Label
PLC components:
Rbit (R13)
Rbit  C bit(PLC)
R510.10  C40
R510.11  C42
R510.12  C41
R510.15  C36
Syntec Inc.

4/10/2017

Quiz 1 ~ Custom panel (2/3) • PLC components: • Rbit  C bit(PLC) • R510.0
Quiz 1 ~ Custom panel (2/3)
PLC components:
Rbit  C bit(PLC)
R510.0  C06
R510.1  C07
R510.2  C08
R510.3  C09
R510.4  C10
R510.5  C11
R510.6  C12
R510.7  C13
R510.8 
Syntec Inc.
Quiz 2 ~ CanCycle(1/1) • EHMI component: • Macro component: • Label • @24,@25,@4,@5,@9 • Input
Quiz 2 ~ CanCycle(1/1)
EHMI component:
Macro component:
Label
@24,@25,@4,@5,@9
Input
Button
PLC component:
• 圖型模擬
R6000
Syntec Inc.
Quiz 1 ~ Custom panel (3/3) • EHMI components: • Button • Display • Red image
Quiz 1 ~ Custom panel (3/3)
EHMI components:
Button
Display
Red image
Green image
Label
Coordbox
PLC components:
Rbit (R15, R16, R18, R700, R871)
Syntec Inc.
HW

No.1

Please design a customized fenu F3 that allow user to switch to another customized fenubar. Besides, that customized fenubar shall allow user to switch back to the main fenu by pressing “Esc”or “F8”.

No.2 Moreover, by clicking F1 on that customized fenubar designed in No.1 shall switch to a customized browser, which demonstrates at least 6 input/output information about CNC, e.g. machine coordinate, spindle RPM, etc.

2017/4/10

72

Syntec Inc.
Syntec Inc.

4/10/2017

HW

No.3 By clicking F2 on that customized fenubar designed in No.1 shall switch to a customized browser, which shows the debug information of at least two axis, e.g. following error, motor index, etc.

No.4 By clicking F3 on that customized fenubar designed in No.1 shall switch to a customized browser, which allows user to start a Marquee that designed in PLC HW.

2017/4/10

73

Syntec Inc.
Syntec Inc.