开发软件
因为开发文件包括.ini文件和.com文件所以小编用的是:Notepad++
下载链接:https://notepad-plus-plus.org/
配置启动文件easyscreen.ini
打开机床存储卡文件夹card\sinumerik\hmi\cfg,找到easyscreen.ini这里是全部界面的配置文件。(大家可以复制到\card\oem\sinumerik\hmi\cfg文件中)
[STARTFILES]
StartFile01 = area := AreaStartup, dialog:=SlSuDialog, startfile := startup.com
;StartFile02 = area := Custom, dialog := SlEsCustomDialog, startfile := custom.com
;StartFile03 = area := AreaProgramEdit, dialog := SlProgramEdit, startfile := aeditor.com
[LANGUAGEFILES]
LngFile01 = almc.txt
LngFile02 = alsc.txt
LngFile99 = slestemplates.ts
[GENERAL]
SymmetricalAspectRatio=false
DefaultLineHeight=18
DefaultLineSpacing=3
HlpPicFixPos=false
DefaultMultiTouchAdjustmentLevel=1
DefaultVirtualKeyboardMode=1
[640x480]
EasyPwdModalLayout = x:=82, y:=84, width:=435, height:=181
[800x480]
EasyPwdModalLayout = x:=103, y:=84, width:=544, height:=228
[800x600]
EasyPwdModalLayout = x:=103, y:=106, width:=544, height:=228
[1024x768]
EasyPwdModalLayout = x:=131, y:=134, width:=696, height:=290
[1280x768]
EasyPwdModalLayout = x:=164, y:=134, width:=870, height:=362
[1280x800]
EasyPwdModalLayout = x:=164, y:=150, width:=870, height:=362
[1280x1024]
EasyPwdModalLayout = x:=164, y:=134, width:=870, height:=362
[1366x768]
EasyPwdModalLayout = x:=180, y:=134, width:=870, height:=362
[SIDESCREEN_RESOLUTION_MAPPING]
768=640x480
1080=800x600
###############################################################################################################
###############################################################################################################
;#######################################
;# OEM / Easyscreen Start Softkeys #
;#################################################################
;# #
;# (please copy the required line into section [STARTFILES] and #
;# delete the semicolone at the beginning of the line) #
;# #
;#################################################################
;########################
;# AREA Machine #
;########################
;<===============================================================>
;< OEM Softkey on horizontal Machine-Automatic Menu >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile03 = area := AreaMachine, dialog := SlMachine, menu := SlMaAutoMenuHU, startfile := ma_auto.com
;<===============================================================>
;< OEM Softkey on horizontal Machine-Jog Menu >
;< TECHNOLOGY ==> TURNING >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile04 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogTurnMenuHU, startfile := ma_jog.com
;<===============================================================>
;< OEM Softkey on horizontal Machine-Jog Menu >
;< TECHNOLOGY ==> MILLING >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile05 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogMillMenuHU, startfile := ma_jog.com
;<===============================================================>
;< OEM Softkey on horizontal Machine-Jog Menu >
;< TECHNOLOGY ==> UNIVERSAL >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile06 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogUniversalMenuHU, startfile := ma_jog.com
;<===============================================================>
;< OEM Softkey on horizontal Machine-MDI Menu >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile07 = area := AreaMachine, dialog := SlMachine, menu := SlMaMdaMenuHU, startfile := ma_mda.com
;<===============================================================>
;< OEM Softkey on horizontal Manual Machine Menu >
;< TECHNOLOGY ==> TURNING >
;< SOFTKEY position="3" (extended horizontal softkey bar)>
;<===============================================================>
;StartFile08 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogManualTurnMenuHU, startfile := xxxx.com
;<===============================================================>
;< OEM Softkey on horizontal Manual Machine Menu >
;< TECHNOLOGY ==> MILLLING>
;< SOFTKEY position="3" (extended horizontal softkey bar)>
;<===============================================================>
;StartFile09 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogManualMillMenuHU, startfile := xxxxx.com
;<===============================================================>
;< OEM Softkey on vertical menu workpiece zero >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;< SOFTKEY position="2-7"
;<===============================================================>
;StartFile07 = area := AreaMachine, dialog := SlMachine, screen := SlMaJogMeTurnEdgeEasyScreen, menu := SlMaJogMeTurnEdgeEasyScreenMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical menu measure tool >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;< SOFTKEY position="7"
;<===============================================================>
;StartFile08 = area := AreaMachine, dialog := SlMachine, screen := SlMaJogMeToolCircularGrindEasyScreen, menu := SlMaJogMeToolCircularGrindEasyScreenMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on horizontal machine-Jog Menu >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile06 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogCircularGrindMenuHU, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical menu workpiece zero >
;< TECHNOLOGY ==> SURFACE GRINDING >
;< SOFTKEY position="2-7"
;<===============================================================>
;StartFile13 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogMeSurfGrindEdge1EasyScreenMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical menu measure tool >
;< TECHNOLOGY ==> SURFACE GRINDING >
;< SOFTKEY position="2-7"
;<===============================================================>
;StartFile12 = area := AreaMachine, dialog := SlMachine, screen := SlMaJogMeToolSurfaceGrindEasyScreen, menu := SlMaJogMeToolSurfaceGrindEasyScreenMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on horizontal machine-Jog Menu >
;< TECHNOLOGY ==> SURFACE GRINDING >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile11 = area := AreaMachine, dialog := SlMachine, menu := SlMaJogSurfaceGrindMenuHU, startfile := xxx.com
;########################
;# AREA Parameter #
;########################
;<===============================================================>
;< OEM Softkey on horizontal Parameter Menu >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile10 = area := AreaParameter, dialog := SlParameter, menu := SlPaMenuHU, startfile := param.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Ctrl-Energy' >
;< 'Energy analysis' and 'Energy-sav. profile' >
;< SOFTKEY position="4" >
;<===============================================================>
;StartFile11 = area := AreaParameter, dialog := SlParameter, menu := SlNrgDisplayVr, startfile := param.com
;StartFile12 = area := AreaParameter, dialog := SlParameter, menu := SlNrgControlVr, startfile := param.com
;########################
;# AREA Program Editor #
;########################
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< SOFTKEY position="3,4,5" >
;<===============================================================>
;StartFile13 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepEditorMenuHU, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< TECHNOLOGY ==> MILLING >
;< SOFTKEY position="15" >
;<===============================================================>
;StartFile14 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepStdMillMenuHU, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< TECHNOLOGY ==> TURNING >
;< SOFTKEY position="15" >
;<===============================================================>
;StartFile15 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepStdTurnMenuHU, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< OPTION ==> SHOPMILL >
;< SOFTKEY position="15" >
;<===============================================================>
;StartFile16 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepShopMillMenuHU, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="15" >
;<===============================================================>
;StartFile17 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepShopTurnMenuHU, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Drilling (Drill.)' >
;< OPTION ==> SHOPMILL >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile18 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopMillDrillScreen, menu := SlStepShopMillDrillMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Milling (Mill.)' >
;< OPTION ==> SHOPMILL >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile19= area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopMillMillScreen, menu := SlStepShopMillMillMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Contour Milling (Cont. Mill.)' >
;< OPTION ==> SHOPMILL >
;< SOFTKEY position="15" (2. vertical menue) >
;<===============================================================>
;StartFile20 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopMillFciMillScreen, menu := SlStepShopMillFciMillMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Miscellaneous (Misc.)' >
;< OPTION ==> SHOPMILL >
;< SOFTKEY position="15" (2. vertical menue) >
;<===============================================================>
;StartFile21 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopMillMiscScreen, menu := SlStepShopMillMiscMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Drilling (Drill.)' >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="6" >
;<===============================================================>
;StartFile22 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopTurnDrillScreen, menu := SlStepShopTurnDrillMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Turning (Turn.)' >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile23 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopTurnTurnScreen, menu := SlStepShopTurnTurnMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Countour Turning (Cont. Turn.)' >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="15" (2. vertical menue) >
;<===============================================================>
;StartFile24 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopTurnFciTurnScreen, menu := SlStepShopTurnFciTurnMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Milling (Mill.)' >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile25 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopTurnMillScreen, menu := SlStepShopTurnMillMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Miscellaneous (Misc.)' >
;< OPTION ==> SHOPTURN >
;< SOFTKEY position="15" (2. vertical menue) >
;<===============================================================>
;StartFile26 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepShopTurnMiscScreen, menu := SlStepShopTurnMiscMenuVR, startfile := aeditor.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Miscellaneous (Misc.)' >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;<===============================================================>
;StartFile04 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepCircularGrindingMiscScreen, menu := SlStepCircularGrindingMiscMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Contour ' >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;<===============================================================>
;StartFile05 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepCircularGrindingFciScreen, menu := SlStepCircularGrindingFciMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< TECHNOLOGY ==> CIRCULAR GRINDING >
;<===============================================================>
;StartFile14 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepCircularGrindingMenuHU, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Miscellaneous (Misc.)' >
;< TECHNOLOGY ==> SURFACE GRINDING >
;<===============================================================>
;StartFile04 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepSurfaceGrindingMiscScreen, menu := SlStepSurfaceGrindingMiscMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on vertical Menu 'Contour ' >
;< TECHNOLOGY ==> SURFACE GRINDING >
;<===============================================================>
;StartFile05 = area := AreaProgramEdit, dialog := SlProgramEdit, screen := SlStepSurfaceGrindingFciScreen, menu := SlStepSurfaceGrindingFciMenuVR, startfile := xxx.com
;<===============================================================>
;< OEM Softkey on horizontal Main Menu >
;< TECHNOLOGY ==> SURFACE GRINDING >
;<===============================================================>
;StartFile14 = area := AreaProgramEdit, dialog := SlProgramEdit, menu := SlStepSurfaceGrindingMenuHU, startfile := tail_man.com
;########################
;# AREA ProgramManager #
;########################
;<===============================================================>
;< OEM Softkey on first horizontal Main Menu >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile27 = area := AreaProgramManager, dialog := SlPmDialog, menu := hu_global, startfile := progman.com
;########################
;# AREA Diagnosis #
;########################
;<===============================================================>
;< OEM Softkey on first horizontal Main Menu >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile28 = area := AreaDiagnosis, dialog:= SlDgDialog, menu := DgGlobalHu, startfile := diag.com
;########################
;# AREA StartUp #
;########################
;<===============================================================>
;< OEM Softkey on first horizontal Main Menu >
;< SOFTKEY position="7" >
;<===============================================================>
;StartFile29 = area := AreaStartup, dialog := SlSuDialog, menu := SlSuMainScreenMenuHu, startfile := startup.com
.com大概框架
//S(START) ;启动软键定义开始,软键栏名称必须用Start
HS6=(“安全区域”) ;启动软键为水平第6软键,软键名为“安全区域
PRESS(HS6) ;点击动作响应定义
LM(“MaskSafetyArea") ;专载名为”MaskSafetyArea”的页面
END PRESS ;点击动作结束
//End
//M{屏幕名称,HD="标题",HLP="图片.png",X=X位置,Y=Y位置,W="宽度",H="高度",VAR="系统变量或用户变量",HLP_X=图片X位置MC=屏幕背景色}
DEF VAR1={TYP="类型",MIN=最小值,MAX=最大值,TGL="转换值",VAL="预设值",LT="长文本",ST="短文本",UT="单位文本",TT="提示框文本",
WR=输入模式,AC=访问级,AL=文本对齐,HLP="图",VAR="系统变量和用户变量",TXT_X="文本XYWH位置",X=输入/输出栏XYWH位置,UT_DX=输入/输出栏之间的间距和单位文本,
BC=输入/输出栏背景色,FC=输入/输出栏前景色,BC_ST=短文本背景,FC_ST=短文本前景色,BC UT=单位文本背景色,FC_UT=单位文本前景色,SC1=进度条信号色,
SC2=进度条信号色2,SVAL1=进度条阀值 1,SVAL2=进度条值 2,DT=显示类型,DO=显示对齐}
LOAD ;开始标记
;s=: 1 = 实线 2 = 虚线 3 = 点线 4 = 点虚线
;f=颜色
LINE (x1,y1,x2,y2,f,s) ;线
RECT (x,y,w,h,f1,f2,s) ;矩形
ELLIPSE(x,y,w,h,f1,f2,s) ;圆
V_SEPARATOR (x,w,f,s) ;垂直线
H_SEPARATOR (y,h,f,s) ;水平线
END_LOAD ;结束标记
//END
补充:
变量类型
R[x]:REAL(小数点位数为正数 +);I:整数;S[x]:字符串(字符串长度为正数 +);C: 字符(单字符);B: BOOL;V:VARIANT
显示模式
dt0:标准(输入/输出栏或转换栏)(默认) dt1:可变色的进度条: dt2:Operate 风格的不变色进度条 dt4:列表栏 dt5:口令输入模式(星号)
显示选项
do0:从左往右(默认) do1:从右往左 do2:从下往上 do3:从上往下
输入模式
wr0:输入/输出栏不可见,短文本可见 wr1:读取(没有输入中心) wr2:读取和写入(行以白色显示) wr3:wr1 带输入中心 wr4:所有变量单元不可见,没有输入中心 wr5:按下任何键立即保存输入的值
文本对齐
al0:左对齐 al1:右对齐 al2:居中
预定义
颜色
2023年初赛答案
https://www.ad.siemens.com.cn/CNC4YOU/Home/Article/3331
PLC调试部分
https://www.ad.siemens.com.cn/CNC4YOU/Home/Article/3349
界面开发
https://www.ad.siemens.com.cn/CNC4YOU/Home/Video/6835?isNew=1
https://www.ad.siemens.com.cn/CNC4YOU/Home/Video/3226?isNew=1
https://www.ad.siemens.com.cn/CNC4YOU/Home/Article/3265