Step distance - text field.

If you have a question about the software please ask it here.

Step distance - text field.

Postby kig23 » Tue Jul 17, 2018 3:23 pm

Hello,
i'm wondering if there is a way to make working the Step dist. textfield from the jog panel on the main screen.

Thanks
kig23
 
Posts: 158
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy

Re: Step distance - text field.

Postby Dan911 » Wed Jul 18, 2018 12:12 am

kig23 wrote:Hello,
i'm wondering if there is a way to make working the Step dist. textfield from the jog panel on the main screen.

Thanks


Could be a simpler way but this will certainly work...Put code in macro loop.

Code: Select all
string stepdist = AS3jog.Getfield(2027);
AS3.Setfieldtext(stepdist, 2027);// Replace your text field labelnumber with"2027" here
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Step distance - text field.

Postby kig23 » Wed Jul 18, 2018 7:59 am

Thanks Gerry.
kig23
 
Posts: 158
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy

Re: Step distance - text field.

Postby Dan911 » Wed Jul 18, 2018 5:43 pm

Dan911 wrote:
kig23 wrote:Hello,
i'm wondering if there is a way to make working the Step dist. textfield from the jog panel on the main screen.

Thanks


Could be a simpler way but this will certainly work...Put code in macro loop.

Code: Select all
string stepdist = AS3jog.Getfield(2027);
AS3.Setfieldtext(stepdist, 2027);// Replace your text field labelnumber with"2027" here



Hmmm.... taking another look at code I posted will only update the textfield from jog screen and wouldn't be able to set there, but I'm sure you get the idea. Surprised no1 posted to corrected me.
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Step distance - text field.

Postby kig23 » Wed Jul 18, 2018 9:57 pm

Sorry Dan i confused your nickname with Gerry’s nickname. Thank you
kig23
 
Posts: 158
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy

Re: Step distance - text field.

Postby Dan911 » Thu Jul 19, 2018 12:56 am

kig23 wrote:Sorry Dan i confused your nickname with Gerry’s nickname. Thank you


NP, Normally Gerry does answer question like this and certainly more qualified.

If you are just looking to move your jog buttons to Run screen than something simple like "AS3jog.Setfieldtext(AS3.Getfield(????),2027);" would do it. If you want to be able to set in both screens than it can be a little more tricky as Terry pointed out, but not that complicated.

Need help just post, many here besides myself will certainly help.

Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Step distance - text field.

Postby kig23 » Thu Jul 19, 2018 6:56 am

Thanks indeed Dan.
kig23
 
Posts: 158
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 7 guests