12 Automation lntegration
12.4 Sample Robotic - CNC lntegration Programs
181
g00 x45 y20
g01 x45 y20 z-2
g01 x45 y27
g01 x45 y27 z2
g00 x52 y35
g01 x52 y35 z-2
g01 x52 y35 z2
g00 x38 y35
g01 x38 y35 z-2
g01 x38 y35 z2
g00 x0 y0 z10
;*****************************************************************
G0 X0 Y25 Z20
G0 Z50
M5
M20
START.NC
12.4.2.
Sample Device Driver Script File
Shown below is a sample device driver script file for use in OpenCIM or FMS.
REQUEST
ACTION
RETURN
OPERATE0
DRAW( ---PM8000 OPERATE --- )
sendmsg(2581)
DRAW( -- OPERATING ---)
MSWINDOWS(cscript O:\project_name\WS3\MILL\CHAIN.VBS P1)
SENDSTR(V1,RUN WAIT_CYCLE_END_PM8000)
WAITSTR(V3,18000000)
SENDMSG( 2582 )
SENDMSG( 2580 )
DRAW(---END---)
END
ABORT
ABORT()
END
INITC
END
OPEN DOOR
DRAW( ---OPEN PM8000 DOOR --- )
MSWINDOWS(cscript O:\ project_name \WS3\MILL\CHAIN.VBS ODOOR)
END
CLOSE DOOR
DRAW( ---CLOSE PM8000 DOOR --- )
MSWINDOWS(cscript O:\ project_name \WS3\MILL\CHAIN.VBS CDOOR)
END