Example. Keyboard Simulation Via The Plc - Fagor CNC 8060 Installation Manual

Hide thumbs Also See for CNC 8060:
Table of Contents

Advertisement

I n s t a l l a t i o n m a n u a l .
8.6

Example. Keyboard simulation via the PLC.

The first user key (B0KEYBD1) performs the following operations.
1
The CNC goes into jog mode.
2
The CNC goes into MDI mode.
3
The CNC performs a machine home search on the X axis.
4
After the home search, the CNC exits the MDI mode.
For each key to be sent from the PLC, the corresponding codes for "press key" and for the
"release key" must be written. When sending both codes, the example uses a 200 ms delay
between them (for safety).
; Initialize the records.
START OR DFU M313 = CYSTART
() = MOV $1D R200 = MOV $9D R201 ; [CTRL]
() = MOV $41 R202 = MOV $C1 R203 ; [F7]
() = MOV $42 R204 = MOV $C2 R205 ; [F8]
() = MOV $22 R206 = MOV $A2 R207 ; [G]
() = MOV $08 R208 = MOV $88 R209 ; [7]
() = MOV $05 R210 = MOV $85 R211 ; [4]
() = MOV $2D R212 = MOV $AD R213 ; [X]
() = MOV $02 R214 = MOV $82 R215 ; [1]
() = MOV $01 R216 = MOV $81 R217 ; [ESC]
; The CNC goes into jog mode. [CTRL]+[F7]
DFU B0KEYBD1 = CNCWR(R200,G.KEY,M200) = CNCWR(R202,G.KEY,M201)
= TG1 200 200
T200 = M300
DFD M300 = CNCWR(R201,G.KEY,M202) = CNCWR(R203,G.KEY,M203) = TG1 201 200
T201 = M301
; The CNC goes into MDI mode. [CTRL]+[F8]
DFD M301 = CNCWR(R200,G.KEY,M200) = CNCWR(R204,G.KEY,M204) = TG1 202 200
T202 = M302
DFD M302 = CNCWR(R201,G.KEY,M202) = CNCWR(R205,G.KEY,M205) = TG1 203 200
T203 =M303
; Home search. G74
DFD M303 = CNCWR(R206,G.KEY,M206) = TG1 204 200 ;G
T204 = M304
DFD M304 = CNCWR(R207,G.KEY,M207) = TG1 205 200
T205 = M305
DFD M305 = CNCWR(R208,G.KEY,M208) = TG1 206 200 ; 7
T206 = M306
DFD M306 = CNCWR(R209,G.KEY,M209) = TG1 207 200
T207 = M307
DFD M307 = CNCWR(R210,G.KEY,M210) = TG1 208 200 ; 4
T208 = M308
DFD M308 = CNCWR(R211,G.KEY,M211) = TG1 209 200
T209 = M309
DFD M309 = CNCWR(R212,G.KEY,M212) = TG1 210 200 ; X
T210 = M310
DFD M310 = CNCWR(R213,G.KEY,M213) = TG1 211 200
T211 = M311
DFD M311 = CNCWR(R214,G.KEY,M214) = TG1 212 200 ; 1
T212 = M312
DFD M312 = CNCWR(R215,G.KEY,M215) = TG1 213 200
T213 = M313
DFD M313 = SET M500 ; [START] (CYSTART=1)
DFD ZERO = SET M501
; The CNC comes out of MDI mode.
()= CNCRD(G.STATUS,R220,M220) ; CNC status ("1"=READY)
M500 AND M501 AND (CPS R220 EQ 1) = CNCWR(R216,G.KEY,M216) = TG1 214 200
T214 = M314
DFD M314 = CNCWR(R217,G.KEY,M217)= RES M500=RES M501
8.
CNC 8060
CNC 8065
(R
: 1709)
EF
·529·

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cnc 80658060 t power8060 l8060 m fl8060 t fl8060 m power ... Show all

Table of Contents