Originally Posted by
Dan911
OMG....You are one arrogant man. I posted "NICE VID" in another thread!!! I really care less of your interest, what I do care about is you continually flooding my thread of your NO INTEREST.
Am I arrogant?...
Well, I thought it was not clear to you, because you actually believed I was not telling you the truth before about it, and was actually using the plugin. Anyway, your comment was in fact much more than "nice vid", it was mostly about the plugin and I thought that hijacking somebody else's thread to discuss your plugin is wrong. Perhaps you don't think so, but I do.
Originally Posted by
Dan911
There's 3 pages of you with a NON US windows issue and then don't have the courtesy to say its fixed.
3 pages????? you mean three posts... perhaps. Indeed I had the courtesy to actually TEST and continue testing (without personal need for it) until I thought that I have no more time or will to be a lab rat and bailed out. BTW, I thought it was clear that the culture info problem was fixed already when I answered in #21, which is why I said what I said in that post. If it was not, then next time be more open towards those who spend time in testing your plugin and don't go around insulting them.
Originally Posted by
Dan911
PLEASE MOVE ON... I will refrain from posting/commenting in any of your threads and please do the same for me.
Seems like your bubble is more easily burst than mine... Sorry I hurt your feelings, was definitely not my intentions at all.
Originally Posted by
Dan911
Yes, well... so does my macro as well... it did that long before you created the HY plugin... it's not really rocket science to write to the Sact field with the spindle override.
Code:
// ----------------------------------------------------------------------------------------------------
//
// M20300 Macro for Set spindle speed via Modbus
//
// When this macro is called it will check the Set Spindle Speed and the Spindle Speed Override DRO
// and will calculate the matching frequency. This is set in Modbus register which is sent to the VFD.
// The actual RPM is displayed in Sact field and is corrected by the spindle speed override.
//
// ----------------------------------------------------------------------------------------------------
//
// Constants
//
ushort SSetDRO = 869;
ushort SactDRO = 20000;
ushort SspeedOverrideDRO = 233;
ushort VFDFrequencyRegister = 1;
ushort MaximumRPM = 24000;
//
// Variables
//
string SspeedOverride;
int IndexOfPercentSign;
string SSpeedOverride;
//
// Program starts here
//
// ----------------------------------------------------------------------------------------------------
//
//
// Get the string of Spindle speed override percent, strip off the '%' sign.
//
SspeedOverride = AS3.Getfield(SspeedOverrideDRO);
IndexOfPercentSign = SspeedOverride.IndexOf('%');
if (IndexOfPercentSign > 0) // Necessary because the macro starts before the SspeedOverrideDRO is initialized
{
SSpeedOverride = SspeedOverride.Substring(0, IndexOfPercentSign);
//
// Calculate the real RPM by multiplying the set spindle RPM with the override percent.
//
double SSpeedHz = ( AS3.Getfielddouble(SSetDRO) * ( (double) Convert.ToDouble (SSpeedOverride) / 100));
if (SSpeedHz > MaximumRPM)
{
SSpeedHz = MaximumRPM; // Force maximum RPM to prevent exception
}
AS3.Setfield( SSpeedHz , SactDRO); // Write the real RPM to dro
//
// Calculate the matching RPM frequency and send the value to Modbus register.
//
exec.SetModbusregister(VFDFrequencyRegister, (ushort) Convert.ToUInt16(SSpeedHz / 0.6));
}
//
// ------------------------------------------------------------------------------------------------------
//
// End of program
That is the code I have been using for quite a long time now. I hope you approve.
BTW, remember that this is an open forum. If you think I done something which is against the rules, feel free to report that to the admins, or ask them to remove my posts, but that's all. If you post something you should accept that people respond, even if you don't like the answer. If you don't like the response there are other ways to handle that than insulting them and asking them to stay away from you. I don't know why it makes you so upset that I keep repeating something which you don't seem to believe or understand. Even in this post you held up the Sact field writing as some sort of "evidence" that I am lying to you about it, so please stop and don't assume anything. I felt the need to post the answer here, because this discussion is ONLY about your plugin and not my vid or the current consumption of steppers or dimensioning PSUs, which that other thread was about. That's obvious. So, of course, discussing this there is totally off topic and hijacking that thread, but not this one.