Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

KUKA: SetRPM() external Program call

#2
Hi Chris,

With the KUKA KRC controller you can create functions that allow you to pass variables by adding varname:IN in the function definition. You could also apply a formula to convert the input RPM to an analog value.

For example, from 0-5V using analog output 1, where 5V is 18000 RPM:
Code:
DEF SetRPM(rpm:IN)
REAL rpm
$ANOUT[1] = rpm*5/18000
END

See attached screenshot from the KUKA Expert Programming manual.


Albert


Messages In This Thread
再保险:库卡:SetRPM()外部程序调用 - byAlbert- 05-15-2020, 12:48 PM



Users browsing this thread:
1 Guest(s)