11-07-2017 04:11 PM - edited 11-07-2017 04:12 PM
I am trying to create a FGV to store the location of the stage. Default position [x,y,z] = [0,0,0], set new position, get current position, get last position, and offset current position to [0,0,0] but don't know how to. This is what I have so far.
11-07-2017 05:06 PM - edited 11-07-2017 05:07 PM
@BArtzon wrote:
I am trying to create a FGV to store the location of the stage. Default position [x,y,z] = [0,0,0], set new position, get current position, get last position, and offset current position to [0,0,0] but don't know how to. This is what I have so far.
We tend to use the terms Functional Global Variable (FGV) and Action Engine (A/E) interchangeably, but they are actually a bit different in both structure and usage. While they are definitely close cousins, an A/E is what you are really talking about. Check out Ben's Community Nugget 4/08/2007 Action Engines for everything you ever wanted to know about them.
11-07-2017 05:09 PM
Why do I get the feeling we are helping you with some kind of homework assignment building block by building block?
11-07-2017 06:47 PM
This is to learn. I just need help. This is not for grading.
11-07-2017 06:54 PM
@BArtzon wrote:
I am trying to create a FGV to store the location of the stage. Default position [x,y,z] = [0,0,0], set new position, get current position, get last position, and offset current position to [0,0,0] but don't know how to. This is what I have so far.
Okay. So do you have a question you want us to answer?
11-07-2017 08:11 PM
what is the different between last value and current value?
11-07-2017 09:25 PM
What last value and current value are you talking about? Your image doesn't show any sort of value.
I do see 3 problems with the picture you posted.
1. You can't really call it a functional global variable. A primary feature of an FGV is that it has an uninitialized shift register
2. You don't have the "Initialize" defined as an element in your enum because the case title is shown in red.
3. It doesn't look like you have an enum. Your "Numeric" control seems to be an ordinary I32 numeric control