Yaskawa MotionWorks+ Windows Software User Manual

Page 181

Advertising
background image

MotionWorks+

Appendix A Operational Examples

175

CamData[Point] is the master value of the current “Point”. MasterStart is the dwell
distance at the beginning of the cycle. MasterFinal is the dwell distance at the end of the
cycle. The master is always the MasterStart offset plus some percentage of the total
master travel while the slave moves.

TempData is a floating point which is the sine of the percentage times 180. This value
is scaled by the maximum travel of the slave. In the example, the number is 4096
encoder counts, or 1/2 of a revolution. This number may also be a variable, if desired.
TempData is transferred to CamData[Point+1].

Point is incremented by two to reflect the number of cam pairs, not each individual
value in the table.

The loop keeps running while Point is less than the “total number of pairs” - “one pair”
times 2. The reason for “times 2” is that the value of Point is doubled, to account for
master and slave.

Block #7

Block #8

Advertising