Professional Documents
Culture Documents
https://cache.industry.siemens.com/dl/dl-media/123/109803123/att_1083101/v1/828D_Run_MyScreens_progr_man_0721_en-US/en-US/index.html#tr… 1/4
12/17/21, 4:22 PM SINUMERIK Integrate Run MyScreens
File overview
"custom.com"
"easyscreen.ini"
Programming
Note
he graphic file "mcp.png" integrated in the example is also only a sample file. If you wish to use this
T
programming example in your application, you must replace the graphic by one of your own graphics.
//S(Start)
HS7=("Start example", se1, ac7)
PRESS(HS7)
LM("Maske4")
https://cache.industry.siemens.com/dl/dl-media/123/109803123/att_1083101/v1/828D_Run_MyScreens_progr_man_0721_en-US/en-US/index.html#tr… 2/4
12/17/21, 4:22 PM SINUMERIK Integrate Run MyScreens
END_PRESS
//END
//M(Maske4/"Example: MCP"/"mcp.png")
DEF byte=(I/0/0/"Input byte=0 (default)","Byte number:",""/wr1,li1///380,40,100/480,40,
DEF Feed=(IBB//0/"","Feed override",""/wr1//"EB3"/20,180,100/130,180,100), Axistop=(B//
DEF Spin=(IBB//0/"","Spindle override",""/wr1//"EB0"/20,210,100/130,210,100), spinstop=
DEF custom1=(IBB//0/""," User keys 1",""/wr1//"EB7.7"/20,240,100/130,240,100)
DEF custom2=(IBB//0/"","User keys 2",""/wr1//"EB7.5"/20,270,100/130,270,100)
DEF By1
DEF By2
DEF By3
DEF By6
DEF By7
PRESS(VS7)
EXIT
END_PRESS
PRESS(VS8)
EXIT
END_PRESS
LOAD
By1=1
By2=2
By3=3
https://cache.industry.siemens.com/dl/dl-media/123/109803123/att_1083101/v1/828D_Run_MyScreens_progr_man_0721_en-US/en-US/index.html#tr… 3/4
12/17/21, 4:22 PM SINUMERIK Integrate Run MyScreens
By6=6
By7=7
END_LOAD
PRESS(HS1)
Byte.wr=2
END_PRESS
CHANGE(Byte)
By1=byte+1
By2=byte+2
By3=byte+3
By6=byte+6
By7=byte+7
Feed.VAR="EB"<<By3
Spin.VAR="EB"<<Byte
Custom1.VAR="EB"<<By6
Custom2.VAR="EB"<<By7
Axisstop.VAR="E"<<By2<<".2"
Spinstop.VAR="E"<<By2<<".4"
Byte.wr=1
END_CHANGE
CHANGE(Axis stop)
IF Axistop==0
Axistop.BC=9
ELSE
Axistop.BC=11
ENDIF
END_CHANGE
CHANGE(Spin stop)
IF Spinstop==0
Spinstop.BC=9
ELSE
Spinstop.BC=11
ENDIF
END_CHANGE
//END
See also
https://cache.industry.siemens.com/dl/dl-media/123/109803123/att_1083101/v1/828D_Run_MyScreens_progr_man_0721_en-US/en-US/index.html#tr… 4/4