E
XAMPLE
MANUAL
49
Part 4: "Shows the consumption of motors"
The speed drives have an analog output (0 to 10V) proportional to the current consumed by the motor.
In this example, the following connections have been made:
- The X axis drive’s current output is connected to the analog input 1 of the CNC.
- The Z axis drive’s current output is connected to the analog input 2 of the CNC.
- The spindle (S) drive’s current output is connected to the analog input 3 of the CNC.
Therefore, variables "ANAI1”, “ANAI2” and “ANAI3” show the analog voltage corresponding to the currents of the
X and Z axes and of the spindle S.
21 symbols (0-20) are used to display the value of the current, in increments corresponding to 0.5V.
To select the right symbol each time, the formula: "ABS ROUND (ANAI1/0.5)" is applied. In other words, the
rounded-up absolute value of the result of the operation "ANAI1/0.5".
Program lines.
N400 (PAGE 4)
......................................... Shows page 4.
(KEY = 0)
....................................... Clears memory of last key pressed.
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)
... If "previous page" has been pressed, it goes on to line N300
(part 3)
(GOTO N410)
................................... If not, it refreshes the motor consumption.
Editing symbols 0-20
Access the screen customizing mode and select: [Utilities] [Editor] [Symbol] (symbol number) [Enter]
FILLED RECTANGLE
FINE SOLID LINE
Green
Yellow
Red
Gray
Green
Yellow
Red
From
to
From
to
From
to
From
to
From
to
From
to
From
to
SYMBOL 0
---
---
---
---
---
---
X0 Y0
X400 Y30
X100 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 1
X0 Y0
X20 Y30
---
---
---
---
X20 Y0
X400 Y30
X100 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 2
X0 Y0
X40 Y30
---
---
---
---
X40 Y0
X400 Y30
X100 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 3
X0 Y0
X60 Y30
---
---
---
---
X60 Y0
X400 Y30
X100 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 4
X0 Y0
X80 Y30
---
---
---
---
X80 Y0
X400 Y30
X100 Y0
X100 Y30
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 5
X0 Y0
X100 Y30
---
---
---
---
X100 Y0
X400 Y30
---
---
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 6
X0 Y0
X120 Y30
---
---
---
---
X120 Y0
X400 Y30
---
---
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 7
X0 Y0
X140 Y30
---
---
---
---
X140 Y0
X400 Y30
---
---
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 8
X0 Y0
X160 Y30
---
---
---
---
X160 Y0
X400 Y30
---
---
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 9
X0 Y0
X180 Y30
---
---
---
---
X180 Y0
X400 Y30
---
---
X200 Y0
X200 Y30
X300 Y0
X300 Y30
SYMBOL 10
X0 Y0
X200 Y30
---
---
---
---
X200 Y0
X400 Y30
---
---
---
---
X300 Y0
X300 Y30
SYMBOL 11
X0 Y0
X200 Y30
X200 Y0
X220 Y30
---
---
X220 Y0
X400 Y30
---
---
---
---
X300 Y0
X300 Y30
SYMBOL 12
X0 Y0
X200 Y30
X200 Y0
X240 Y30
---
---
X240 Y0
X400 Y30
---
---
---
---
X300 Y0
X300 Y30
SYMBOL 13
X0 Y0
X200 Y30
X200 Y0
X260 Y30
---
---
X260 Y0
X400 Y30
---
---
---
---
X300 Y0
X300 Y30
SYMBOL 14
X0 Y0
X200 Y30
X200 Y0
X280 Y30
---
---
X280 Y0
X400 Y30
---
---
---
---
X300 Y0
X300 Y30
SYMBOL 15
X0 Y0
X200 Y30
X200 Y0
X300 Y30
---
---
X300 Y0
X400 Y30
---
---
---
---
---
---
SYMBOL 16
X0 Y0
X200 Y30
X200 Y0
X300 Y30
X300 Y0
X320 Y30
X320 Y0
X400 Y30
---
---
---
---
---
---
SYMBOL 17
X0 Y0
X200 Y30
X200 Y0
X300 Y30
X300 Y0
X340 Y30
X340 Y0
X400 Y30
---
---
---
---
---
---
SYMBOL 18
X0 Y0
X200 Y30
X200 Y0
X300 Y30
X300 Y0
X360 Y30
X360 Y0
X400 Y30
---
---
---
---
---
---
SYMBOL 19
X0 Y0
X200 Y30
X200 Y0
X300 Y30
X300 Y0
X380 Y30
X380 Y0
X400 Y30
---
---
---
---
---
---
SYMBOL 20
X0 Y0
X200 Y30
X200 Y0
X300 Y30
X300 Y0
X400 Y30
---
---
---
---
---
---
---
---