Hi all,
I've been messing about with my screen script for many months with some successes. But some failures at the same time. One of the things that stumps me a lot is in the CoreAPI, the descriptions of the parameters at times state an integer is required. Take mcJogSetInc for example, the axisID is stated to be an integer. But in th usage example given at the bottom of that particular page, it states "mInst, X_AXIS, .010". Now just to make sure I was thinking correctly, I actually looked up the meaning of integer. I found what I thought it to be, "a whole number; a number that is not a fraction".
So just where are these integers explained in the CoreAPI? I never have found any in the looking I've done. I actually have this function working in my script, but it was mostly by trial and error trying to figure out what exactly I needed to have in that portion of the statement. I ended up using the motor numbers and got things to working. When I tried using X_AXIS there, I got an error stating basically a number was expected and it didn't get it.
Is there a listing of the integers used in these portions of the functions somewhere? I hate for things to be a guessing game, but that so far has been the only way I've got much of this to work. Another example would be the mcJogSetType, again it states in the LUA syntax for that function number, number, number for the three parameters and for axis it specifies an integer as it does for the type. But in the usage at the bottom of the page is has no such thing and using that results in an error, again with it expecting a number in the second and third portions of the statement.
So unless I'm completely daft, I think I need to supply an integer for these statements. Is this something I need to make an assignment for somewhere? I didn't for the axis in my statements to set the jog increment value. Maybe I got lucky using the motor numbers there, I got no clue. And I really don't like operating like that.
Thanks for any advise you might have.
Regards
Bob