What happened to onParameter

What happened to onParameter

Anonymous
Not applicable
718 Views
4 Replies
Message 1 of 5

What happened to onParameter

Anonymous
Not applicable

In the previous post processors that I have used there was an onParameter section that was used for manual NC ACTION commands. I can't find onParameter in the newest Okuma mill post that I downloaded. How do I define ACTION commands in the attached post?

Thanks,

Jason

0 Likes
Accepted solutions (1)
719 Views
4 Replies
Replies (4)
Message 2 of 5

AchimN
Community Manager
Community Manager
function onParameter(name, value) {
  if (name == "action") {
    if (String(value).toUpperCase() == "myActionName") {
      // do something here;
    }
  }
}


Achim.N
Principal Technology Consultant
0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi AchimN, did you find that in my post or is that what I am supposed to put into my post.? If it is what  I should put in the post, where should I put it?

Thanks,

Jason

 

0 Likes
Message 4 of 5

AchimN
Community Manager
Community Manager
Accepted solution

Hi Jason,

this is just a sample code you can place into your post processor anywhere outside an existing function.

 



Achim.N
Principal Technology Consultant
0 Likes
Message 5 of 5

Anonymous
Not applicable

Ok, thanks

0 Likes