Demo entry 6643809

1

   

Submitted by yao on Sep 29, 2017 at 05:35
Language: Lua. Code size: 799 Bytes.

G906
	M802 P=(16*65536+1) '使用换刀行程

	M5
	M901 H=#PLC.nc_boreon P0
	'顺序关闭各气缸
	M400
	'z轴上抬到换刀高度
	G905 G903 G53 G90 G00 Z= #USERPARAM1

	'关闭真空吸附,等待真空吸附延时
	M901 H=#PLC.nc_vacuumadsorption P0
	G04 P= #USERPARAM17

	'y轴移动到推料起点
	G905 G903 G53 G90 G00 Y= #USERPARAM4   F= #USERPARAM7

	M802 P=17*65536+1
	'打开推料气缸,打开左定位气缸,打开右定位气缸
	M901 H=#PLC.nc_pushcylinder P1
	M901 H=#PLC.nc_sidecylinder1 P1
	M901 H=#PLC.nc_sidecylinder2 P1
	G04 P= #USERPARAM9

	'打开下料台启动
	M901 H=#PLC.nc_xltqd P1

	'y轴移动到推料终点
	G905 G903 G53 G90 G00 Y= #USERPARAM5   F= #USERPARAM7
	M802 P=17*65536
	'关闭推料气缸
	M901 H=#PLC.nc_pushcylinder P0
	M901 H=#PLC.nc_sidecylinder1 P0
	M901 H=#PLC.nc_sidecylinder2 P0
	G04 P= #USERPARAM9

	'关闭下料台启动
	M901 H=#PLC.nc_xltqd P0	
	
	M802 P=(16*65536+0) '使用机床行程
	G906

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).