Y_CA_CamAnalyzer
The Cam_Analyzer function block provides the slave's maximum velocity, acceleration, deceleration and jerk values for a specific cam profile based on a maximum expected master velocity.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | CamTable | Yt_MS_CamStruct | This structure contains the resulting master/slave information for each data point and can be downloaded to the motion engine using Y_CamStructSelect. | |
| VAR_INPUT | ||||
| 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 |
| B | MasterVelocity | LREAL | Master axis maximum velocity (in master user units/sec.) | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | Done | BOOL | Set high when the commanded action has completed successfully. If another block takes control before the action is completed, the Done output will not be set. This output is reset when Execute goes low. | |
| B | Busy | BOOL | Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error) | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| B | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low | |
| V | MaximumVelocity | LREAL | Peak slave velocity for the given cam profile at the maximum master velocity | |
| V | MaximumAcceleration | LREAL | Peak slave acceleration for the given cam profile at the maximum master velocity | |
| V | MaximumJerk | LREAL | Peak slave jerk for the given cam profile at the maximum master velocity | |
Error Description
Refer to the Function Block ErrorID List .
Example
Consider a linear flying shear application. The maximum slave velocity of the profile is in the speed matching region. The master maximum velocity was given as 24 units/sec and the maximum velocity output of the CamAnalyzer is 24.