TConnolly
Lifetime Supporting Member
Prototype: cstring RecipeMnemonic(void)
Code:
/*
Returns a string as 000.0KN-00C-00.0S
Where 000.0KN is programmed force in KN
00C is dither counts.
00.0S is dwell in seconds.
*/
Return DecToText(Force,0,3,1,1,0) + "KN-" + IntToText(Counts,10,2)+"C-" + DecToText(Dwell,0,2,1,1,0)+"S";
For some reason I cannot get this to compile. Its for a G307K2. Crimson reports an error but it doesn't tell me what it is and I can't see anything wrong with it. I tried the AsText() function as well. I originally had Force,Count,and Dwell as passed parameters, right now they are tags but once I get this to compile I want to go back to using passed parameters so I can reuse this function.
Code:
/*
Returns a string as 000.0KN-00C-00.0S
Where 000.0KN is programmed force in KN
00C is dither counts.
00.0S is dwell in seconds.
*/
Return DecToText(Force,0,3,1,1,0) + "KN-" + IntToText(Counts,10,2)+"C-" + DecToText(Dwell,0,2,1,1,0)+"S";
For some reason I cannot get this to compile. Its for a G307K2. Crimson reports an error but it doesn't tell me what it is and I can't see anything wrong with it. I tried the AsText() function as well. I originally had Force,Count,and Dwell as passed parameters, right now they are tags but once I get this to compile I want to go back to using passed parameters so I can reuse this function.