Y_CA_CamSlave_WindowCheck
This function block is used by the CamSlave_FeedToLength function blocks to determine when the MC_TouchProbe output is valid and should be used for correction. It compares the CamTableOutput parameter 1520 to the SensorMinimum and SensorMaximum, not the actual slave feedback.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | Prms #19250 | Yt_AX_AxisParameterStruct | User Defined DataType declared in the PLCopen Toolbox. | |
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| V | ProductSize | LREAL | This value must be the same as the total one way index of the cam profile for this slave. | LREAL#0.0 |
| V | SensorMinimum | LREAL | The earliest slave position where a sensor position is valid for correction. | LREAL#0.0 |
| V | SensorMaximum | LREAL | The latest slave position where a sensor position is valid for correction. | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| V | InWindow | BOOL | Indicates the slave output. | |
| 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. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Notes
If SensorMinimum and SensorMaximum are both zero, this function does not check for a window and reports InWindow as TRUE.
For the most accurate WindowCheck, this function block must be executed in a fast CYCLIC task. Since this function is used by CamSlave_WindowCheck, that block also should be executed in a fast CYCLIC task.
Error Description
Refer to the Function Block ErrorID List .