FGN command in Yaskawa

Can anyone explain the FGN command in Yaskawa CP-717 programming?


And how this can be used to control the speed of a Yaskawa servo drive?


I have it in a program running a calendar machine and do not understand it.


Thank you
 
This is called "function generator" in Yaskawa manual and it is used to calculate an output value based on an input value via a memory table. One popular use of this function is a cam table, where the electronic cam profile is defined as a set of master-slave pairs, the master axis position is the input and the slave axis position is the output. The function can interpolate - that is to calculate the output value by doing simple linear math if the input value happens to fall between two cam table entries.

If you can post a screenshot of the FGN function as it looks in CP-717 software, I can be a bit more specific.
 
Thank you. Have not seen this old Yaskawa software in years, good old times :)

So the input value is in register DW0010, the output goes to register DW0011 and the data table starts at register DW0050 (for those who reads this thread and is not familiar with Yaskawa PLC addressing, these are local 16-bit word memory registers).

Now, if you can open the Register list and look at the values there starting at DW0050, you should see the following:

DW0050 will contain the number of the master-slave pairs in the table
DW0051 and DW0052 will contain the first master and the first slave data
DW0053 and DW0054 - the second master-slave pair data
DW0055 and DW0056 - the third... and so on

So when the value of the input matches the data stored in DW0055, the value from DW0056 will be copied to the output register. If the input matches, say, DW0059, the value from DW0060 will go to the output. And so on.

However, if the input register value does not exactly match anything but falls in between, say, DW0053 and DW0055, the function will do the math and will produce an output value somewhere in between the values stored in DW0054 and DW0056. This is the interpolation part.

Not knowing your application I can only infer that for whatever reason the servo speed has to change in some non-linear manner if, say, the master speed pot is turned. Maybe the designers wanted the speed to change slower initially and then faster when the speed pot value is getting closer to 100% or vise versa. For that purpose this non-linear curve had been stored in the data table as a set of master-slave data pairs starting at DW0050.

There is a separate application called "Yaskawa CamTool" that is used to create curves like that and to download them to the PLC memory. If you do not have the original cam table file (*.cdt extension) and still want to visualize what the relationship between the input and the output look like, you might be able (don't exactly remember how) to export the cam table data to Excel and do the graph there.
 
It is a rewinding operation with a press roller on the rewinding roll of paper. As the diameter of the roll of paper gets bigger, the press roll backs off to maintain a certain pressure against the roll. The servo drive moves carriage on which the press roll resides.


The carriage has a potentiometer mounted to provide positioning feedback of the carriage.


I understand your explanation of the FGN command.


Thank you
 

Similar Topics

I need some help setting up msg instruction to control a powerflex 40. The PLC is a 1769-l32e version 20. The information I've googled has pretty...
18
Replies
508
Views
Hello everyone! I'm doing an HMI for a project I'm working on, and I'm trying to make it a little bit more complex than what we usually do in my...
18
Replies
1,719
Views
I put a line after the R command, that's the part I'm interested in. The first AND statement is false, and the RLO is 0 throughout the logic and...
15
Replies
1,137
Views
Good afternoon, I work for a custom automation company and I am starting to program a machine with an Allen-Bradley 5069-L320ERMS2 Compact...
0
Replies
772
Views
Can we use ADPRW command on cloned FX3U PLCs? or do they only support IVRD and IVWR commands? IVRD and IVWR seems to be somewhat unreliable when...
0
Replies
1,245
Views
Top