Hello!
I just got a task in school on controlling a motor (frequency thingy, idk the english name for it)
Anyhow, so i wrote up a FC function to convert scales, as the frequency thingy uses 4k hex as max value, whereas the rpm then would actually be 1375.
I wonder if there are any way to overload the returns (without creating multiple ones) To return "any" (word, int, dint, real) type.
With multiple return values i must use a temp var to catch the unused types, but functions such as move uses overloading. Is this something you can do, or is it some "s7 secret function"
Regards, Carl Hjerpe!
PS: No you're not doing my homework, this is more then expected
I just got a task in school on controlling a motor (frequency thingy, idk the english name for it)
Anyhow, so i wrote up a FC function to convert scales, as the frequency thingy uses 4k hex as max value, whereas the rpm then would actually be 1375.
I wonder if there are any way to overload the returns (without creating multiple ones) To return "any" (word, int, dint, real) type.
With multiple return values i must use a temp var to catch the unused types, but functions such as move uses overloading. Is this something you can do, or is it some "s7 secret function"
Regards, Carl Hjerpe!
PS: No you're not doing my homework, this is more then expected