
Installation manual.
CNC 8060
CNC 8065
KEYBOARD SIMULATION
VIA THE PLC
. KEY
C
O
DES.
8.
Exampl
e.
Keyb
oard simula
ti
on via the PLC.
·529·
(R
EF
: 1709)
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
Содержание CNC 8060
Страница 1: ...Ref 1709 8060 8065 CNC Installation manual...
Страница 10: ...BLANK PAGE 10...
Страница 14: ...BLANK PAGE 14...
Страница 20: ...BLANK PAGE 20...
Страница 32: ...BLANK PAGE 32...
Страница 36: ...BLANK PAGE 36...
Страница 38: ...BLANK PAGE 38...
Страница 40: ...BLANK PAGE 40...
Страница 41: ...PART 1 INSTALLATION MANUAL...
Страница 42: ...BLANK PAGE 42...
Страница 58: ...Installation manual CNC 8060 CNC 8065 1 SOFTWARE INSTALLATION Software configuration 58 REF 1709...
Страница 340: ...Installation manual CNC 8060 CNC 8065 3 INTRODUCTION TO THE PLC Operation of a counter 340 REF 1709...
Страница 448: ...Installation manual CNC 8060 CNC 8065 6 LOGIC CNC INPUTS AND OUTPUTS Keystroke modifiable signals 448 REF 1709...
Страница 532: ...Installation manual CNC 8060 CNC 8065 9 CNC VARIABLES 532 REF 1709...
Страница 533: ...PART 2 CONCEPTS...
Страница 534: ...BLANK PAGE 534...
Страница 548: ...Installation manual CNC 8060 CNC 8065 10 GENERAL SETUP Configuration examples 548 REF 1709...
Страница 574: ...Installation manual CNC 8060 CNC 8065 11 CONFIGURING AN AXIS Home search 574 REF 1709 X Z H OM OW ZMH ZMW XMH...
Страница 598: ...Installation manual CNC 8060 CNC 8065 12 VOLUMETRIC COMPENSATION Error messages cause and solution 598 REF 1709...
Страница 644: ...Installation manual CNC 8060 CNC 8065 14 SUBROUTINES Assistance for subroutines 644 REF 1709...
Страница 668: ...Installation manual CNC 8060 CNC 8065 15 HARDWARE Configure the PT100 inputs 668 REF 1709...
Страница 697: ...Installation manual CNC 8060 CNC 8065 697 User notes REF 1709...