Parte 4: "Muestra el consumo de los motores"
Los reguladores de velocidad disponen de una salida analógica (0 a 10V) proporcional a la corriente que está
consumiendo el motor.
En este ejemplo se han efectuado las siguientes conexiones:
- La salida de corriente del regulador del eje X, se encuentra conectada a la entrada analógica 1 del CNC.
- La salida de corriente del regulador del eje Z, se encuentra conectada a la entrada analógica 2 del CNC.
- La salida de corriente del regulador del cabezal (S) se encuentra conectada a la entrada analógica 3 del
CNC
Por lo tanto, las variables "ANAI1", "ANAI2" y "ANAI3" muestran la tensión analógica correspondiente a las
corrientes de los ejes X, Z y S.
Para mostrar el valor de la corriente se utilizan 21 símbolos (0-20), con incrementos correspondientes a 0.5V.
Para seleccionar el símbolo adecuado en cada momento se aplica la formula "ABS ROUND (ANAI1/0.5)", es
decir, el valor absoluto del resultado redondeado de la operación "ANAI1/0.5".
Líneas de programa.
N400 (PAGE 4) ......................................... Muestra la página 4.
(KEY = 0) ....................................... Borra memoria de última tecla pulsada.
N410 (SYMBOL ABS ROUND (ANAI1/0.5), 130, 120)
(SYMBOL ABS ROUND (ANAI2/0.5), 130, 190)
(SYMBOL ABS ROUND (ANAI3/0.5), 130, 260)
(IF KEY EQ $FFA5 GOTO N300) ... Si se ha pulsado "página anterior", continúa en la línea N300
(GOTO N410) ................................... Si no, refresca el consumo de los motores.
Edición de los símbolos 0-20
Acceder al modo de personalización y seleccionar: [Utilidades] [Editor] [Símbolo] (nº símbolo) [Enter]
Verde
De
a
SYMBOL 0
---
---
SYMBOL 1
X0 Y0
X20 Y30
SYMBOL 2
X0 Y0
X40 Y30
SYMBOL 3
X0 Y0
X60 Y30
SYMBOL 4
X0 Y0
X80 Y30
SYMBOL 5
X0 Y0
X100 Y30
SYMBOL 6
X0 Y0
X120 Y30
SYMBOL 7
X0 Y0
X140 Y30
SYMBOL 8
X0 Y0
X160 Y30
SYMBOL 9
X0 Y0
X180 Y30
SYMBOL 10
X0 Y0
X200 Y30
SYMBOL 11
X0 Y0
X200 Y30
SYMBOL 12
X0 Y0
X200 Y30
SYMBOL 13
X0 Y0
X200 Y30
SYMBOL 14
X0 Y0
X200 Y30
SYMBOL 15
X0 Y0
X200 Y30
SYMBOL 16
X0 Y0
X200 Y30
SYMBOL 17
X0 Y0
X200 Y30
SYMBOL 18
X0 Y0
X200 Y30
SYMBOL 19
X0 Y0
X200 Y30
SYMBOL 20
X0 Y0
X200 Y30
RECTANGULO RELLENO
Amarillo
Rojo
De
a
De
a
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
X200 Y0
X220 Y30
---
---
X200 Y0
X240 Y30
---
---
X200 Y0
X260 Y30
---
---
X200 Y0
X280 Y30
---
---
X200 Y0
X300 Y30
---
---
X200 Y0
X300 Y30
X300 Y0
X320 Y30
X200 Y0
X300 Y30
X300 Y0
X340 Y30
X200 Y0
X300 Y30
X300 Y0
X360 Y30
X200 Y0
X300 Y30
X300 Y0
X380 Y30
X200 Y0
X300 Y30
X300 Y0
X400 Y30
M
ANUAL DE EJEMPLOS
(parte 3)
Gris
De
a
De
X0 Y0
X400 Y30
X100 Y0
X20 Y0
X400 Y30
X100 Y0
X40 Y0
X400 Y30
X100 Y0
X60 Y0
X400 Y30
X100 Y0
X80 Y0
X400 Y30
X100 Y0
X100 Y0
X400 Y30
---
X120 Y0
X400 Y30
---
X140 Y0
X400 Y30
---
X160 Y0
X400 Y30
---
X180 Y0
X400 Y30
---
X200 Y0
X400 Y30
---
X220 Y0
X400 Y30
---
X240 Y0
X400 Y30
---
X260 Y0
X400 Y30
---
X280 Y0
X400 Y30
---
X300 Y0
X400 Y30
---
X320 Y0
X400 Y30
---
X340 Y0
X400 Y30
---
X360 Y0
X400 Y30
---
X380 Y0
X400 Y30
---
---
---
---
- T -
LINEA CONTINUA FINA
Verde
Amarillo
a
De
a
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
---
X200 Y0
X200 Y30
X300 Y0
---
X200 Y0
X200 Y30
X300 Y0
---
X200 Y0
X200 Y30
X300 Y0
---
X200 Y0
X200 Y30
X300 Y0
---
X200 Y0
X200 Y30
X300 Y0
---
---
---
X300 Y0
---
---
---
X300 Y0
---
---
---
X300 Y0
---
---
---
X300 Y0
---
---
---
X300 Y0
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
Rojo
De
a
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
X300 Y30
---
---
---
---
---
---
---
---
---
---
---
---
49