PDA

View Full Version : I have trouble with change the response of axes



hummer
6th August 2009, 07:53 PM
I want, that my axes response have changed when the button 3 is pressed and I have made the following script:


SEQUENCE
WAIT( JS1.B3 );
IF ([ FTRSTKMODE == MODE3 ]) THEN // In mode 3
SCALE( JS1.A1, 100, 0, GAIN6 ); // I have linear response
SCALE( JS1.A2, 100, 0, GAIN6 );
ELSE // other modes
SCALE( JS1.A1, 100, 0, GAIN3 ); // I have parabolic response
SCALE( JS1.A2, 100, 0, GAIN3 );
ENDIF
ENDSEQUENCE

But when I press the button 3, the response does not change from linear (default). Why?

Bel
18th October 2009, 02:58 PM
first of all i must apologize for my english.

Im newbie on programing chs, but maybe i could help u.

Have u tried to create a new virtuan axis (example cms.a1). i think that in real axis you cant change that parameters...

Check it please.

Bye.