Installation manual.
CNC 8060
CNC 8065
KEYBOARD SIMULATION
VIA THE PLC
. KEY
C
O
DES.
8.
Con
s
ulting
the la
st key
a
ccepted by th
e CNC.
·525·
(R
EF
: 1709)
8.3
Consulting the last key accepted by the CNC.
The (V.)G.KEY variable keeps the code of the last key accepted by the CNC (press key code).
This variable can be read and written from the PLC and read from the program and interface.
To read the variable from the PLC, use the command CNCRD.
8.4
Keyboard simulation via the PLC.
To simulate the keyboard from the PLC, write the code of the key in the variable (V.)G.KEY.
Each key is assigned two codes; one for pressing it and another one for releasing it. For each
key that the PLC sends, both codes must be written; it is recommended to use a delay of
at least 200 ms between both codes (for safety). To write the variable from the PLC, use the
command CNCRD.
Uppercase and lowercase letters.
One key can have more than one character. To send the first character (lowercase), use the
indicated codes; for the second character (uppercase), add the code corresponding to the
[SHIFT] key, in the following way. When sending the two codes, it is recommended to use
a delay of at least 200 ms between each (for safety).
1
Send the code associated for pressing the [SHIFT] key.
2
Send the code associated with pressing the letter key.
3
Send the code associated for releasing the [SHIFT] key.
4
Send the code associated with releasing the letter key.
Reading variables from the PLC.
The command CNCRD saves the code of the key in the register R100. The PLC activates the M100
mark when the operation begins and keeps it active until the operation ends.
{condition} = CNCRD(G.KEY,R100,M100)
Writing variables from the PLC.
The command CNCWR writes the value of the R101 register in the variable. The PLC activates the
M101 mark when the operation begins and keeps it active until the operation ends.
{condition} = CNCWR(R101,G.KEY,M101)
Initialize the records.
() = MOV $1E R200 ; Press the [A] key
() = MOV $9E R201 ; Release the [A] key
() = MOV $2A R202 ; Press the [SHIFT] key
() = MOV $AA R203 ; Release the [SHIFT] key
The first user key (B0KEYBD1) sends the character "a".
DFU B0KEYBD1 = CNCWR(R200,G.KEY,M200) = TG1 200 200
T200 = M300
DFD M300 = CNCWR(R201,G.KEY,M201) = TG1 201 200
T201 = M301
The second user key (B1KEYBD1) sends the character "A".
DFU B1KEYBD1 = CNCWR(R202,G.KEY,M202)
= CNCWR(R200,G.KEY,M203)
= TG1 202 200
T202 = M302
DFD M302 = CNCWR(R201,G.KEY,M204)
= CNCWR(R203,G.KEY,M205)
= TG1 203 200
T203 =M303
Содержание 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...