Hello
please help colleagues trying to steer smoothly inverter do not know how to map devicent.
I was able to just run to the front of kpc2
Hello
please help colleagues trying to steer smoothly inverter do not know how to map devicent.
I was able to just run to the front of kpc2
Mapping done. Now the question is how to make the program run rotation. 1, 2, 3, 4, ....... 300 hz .nie want to create a program to any speed.
1 Hz ()
2 Hz ()
3 Hz ()
,
..
,
,
,
..
300 Hz ()
You have provided no details about your setup. I don't mean manufacturer or model -- I mean I/O details, mapping, what values the inverter needs to receive in order to command a particular speed. Without that level of detail, we cannot provide any useful advice.
ANIN1=1,0,16,3,CAL65535
ANIN2=1,2,16,3,CAL65535
ANOUT1=1,0,16,3,CAL65535
ANOUT2=1,2,16,3,CAL65535
ANOUT1 - 1.000 v running fwd
2.000 v stop
3.000 v running rev
ANOUT2 - 5.493 v 300 hz
So.... what's the question?
Hello
The main concern is not to write a program for each "hz"
1hz = 60 rpm
1hz() = 0.018 v
2hz()= 0.036 v
3hz()= 0.054 v
.
.
.
.
.
300hz()=5.493v
Is it possible to write it somehow differently lest it create 300 separate programs?
And is it possible to display the current information about the speed of the spindle?
This is basic programming. Just make the desired frequency an attribute for the function/program that sets the output, and just convert the input value to voltage before setting the output.
A may be a bit brighter. example of how and where to put it.
you don't see relationship in those values? each step is same increment, this is so called linear relationship:
5.493/300 = 0.01831
1 * 0.01831 = 0.01831
2 * 0.01831 = 0.03662
3 * 0.01831 = etc.
you can create new function for example called SetHz.src
then use it in your program
I DO NOT UNDERSTAND THIS QUESTION .
you don't see relationship in those values?
SORRY IF is heavy .
He WANTS to learn something.
I had no training kuka.
I've done the module and gets: corresponding end block missing
Read the KUKA programming manuals if you don't even know the basics.
on another forum i found this, it seem to apply to many young people
I've done the module and gets: corresponding end block missing
sounds like you are typing this into another module instead of creating new function.
robot is complaining that there is a mismatch between number of "begin" and number of "end" lines in your program.
various constructs have their own "begin" and "end".
if you make archive and open your file in text editor, you will see what really goes on (HMI always hides at least some of lines).
for example, some matching "being" and "end" are:
FOR - ENFOR
IF - ENDIF
SWITCH - ENDSWITCH
DEF - END
DEFFCT - ENDFCT
DEFDAT - ENDDAT
etc.
I did so in notepad
QuoteDisplay More
&ACCESS RVO
&REL 2
&PARAM TEMPLATE = C:\KRC\Roboter\Template\FunctionVorgabe
&PARAM EDITMASK = *
DEFFCT REAL SetHz(HZ:in)
DECL REAL HZ, Volts
Volts=HZ*0.01831
RETURN Volts
ENDFCT
When you enter the program gets:
ok so function is ok....
you can test it in variable monitor, just type
=SetHZ(1)
or
SetHZ(30)
to see the result.
message you have now tells you that 'whatever' is not of correct type. it need to be REAL (or at least INT) to receive result from SetHz
Monitor > Variable > Single ?
Nothing happens .