EasyManua.ls Logo

Fagor CNC 8060 - Page 425

Fagor CNC 8060
900 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CNC 8060
CNC 8065
(REF: 1402)
8
·425·
KEY CODES.
The key codes may be used to know which is the last key accepted by the CNC and also
to simulate the keyboard from the PLC.
The codes are associated with the physical key (the location of the key on the keyboard),
not with the printed character. For example, the code $27 on a Spanish keyboard
corresponds to the character "Ñ" and on an English keyboard corresponds to the character
";".
The print on the keyboards supplied by Fagor only coincides with the codes if the Spanish
language has been selected on the keyboard. See "8.2 Assigning codes for a Spanish
keyboard." on page 430.
Codes to press and release the keys.
Each key is assigned two codes; one for pressing it and another one for releasing it. The
following drawings show both codes in each key; the top one is for pressing the key and the
bottom one for releasing it.
Both codes must be written when sending each key from the PLC. When sending the two
codes, it is recommended to use a delay between them (for safety).
Consulting the last key accepted by the CNC.
This consultation is made using the variable (V.)G.KEY. This variable may be consulted from
the CNC, from the PLC and from an external interface. The consultation from the PLC is made
with the command CNCRD.
Keyboard simulation from the PLC.
This consultation is made using the variable (V.)G.KEY. To read the last key that has been
accepted by the CNC or simulate the keyboard from the PLC by writing in it the code of the
desired key.
This variable is read and written using the commands CNCRD and CNCWR.
CNCRD(variable, register, mark)
CNCWR(register, variable, mark)
The CNCRD command saves the value of the variable in the register. The CNCWR writes
the value of the register in the variable. In both cases, the mark stays active during the whole
operation.
The code $10 indicates that the key has been pressed and the code $90
indicates that the key has been released.
Reading from the PLC. The key code is saved in register R101.
···=CNCRD(G.KEY,R101,M100)
Reading from the PLC. The key code is saved in register R101.
···=CNCRD(G.KEY,R101,M100)
Writing from the PLC. The key code is read from register R102.
···=CNCWR(R102,G.KEY,M100)
$10
$90

Table of Contents

Other manuals for Fagor CNC 8060

Related product manuals