beautypg.com

Camgenerator, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 103

background image

Cam Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

90

CamGenerator

This function can calculate the information required for various master / slave motion profiles. It was designed
to replicate the formulas available in Yaskawa’s CamTool windows software and includes additional curve types.
The “CamData? input is a structure of key datapoints required by the application, including a formula code
which is used to generate a pair of master / slave datapoints at the resolution specified. The output “CamTable?
is a

Y_MS_CAM_STRUCT

which can be downloaded to the Motion Engine using the Y_CamStructSelect function

block.

Parameters

*

Parameter

Data Type

Description

VAR_IN_OUT

V

CamData

CamSegmentStruct

This structure must be populated with the key datapoints
required for the cam profile.

V

CamTable

Y_MS_CAM_STRUCT

Cam data structure. Can be downloaded to the motion
engine using Y_CamStructSelect.

VAR_INPUT

Default

B

Execute

BOOL

Upon the rising edge, all other function
block inputs are read and the function
is initiated. To modify an input, change
the value and re-trigger the execute
input.

FALSE

V

TableSize

UDINT

This value must be the same as the
definition of the ARRAY size of the
MS_Array_Type in the MotionInfo
DataTypes folder of either the PLCopen
or DataTypes Toolbox.

UDINT#2880