Input Description¶
MC_CamSwitch_DC provides the possibility to switch a cam on/off at projected positions. The position is given by an encoder, which must be available, if the cam switch functionality is to be used.
The switch-on-position and the switch-off-position are individually changeable online. Further more a compensation time in both directions can be added to the switch position. Compensation is applied to both switch-on-position and switch-off-position.
The actual state of the cam can also be monitored with the output “state”.
Enable
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
The Function Block is activated with Enable TRUE. With Enable=FALSE, the respective cam will be switched off immediately.
FirstOnPosition
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | - | - |
The value of FirstOnPosition is automatically truncated to the resolution of the circle without notice. For example, all FirstOnPosition greater than 36000 will be limited to 36000 (given if the default resolution of CI51x-ETHCAT cam is used).
FirstOnPosition can be changed at any time. It will be immediately valid after sending to the CI51x-ETHCAT via the POU.
LastOnPosition
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | - | - |
The value of LastOnPosition is automatically truncated to the resolution of the circle without notice. For example, all LastOnPosition greater than 36000 will be limited to 36000 (given if the default resolution of CI51x-ETHCAT cam is used).
LastOnPosition can be changed at any time. It will be immediately valid after sending to the CI51x-ETHCAT via the POU.
Note
If FirstOnPosition is smaller than LastOnPosition, the cam is switched on between the values of FirstOnPosition and LastOnPosition of the same turn.
Note
If FirstOnPosition is greater than LastOnPosition, the cam is switched on between the values of FirstOnPosition of the actual turn and LastOnPosition of the next turn.
Note
If FirstOnPosition is equal to LastOnPosition, the cam is switched on for one interrupt cycle.
Compensation
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DINT | - | - | µs |
The switch action is rescheduled with Compensation:
- If Compensation is positive, the switch action will be delayed by the value of Compensation.
- If Compensation is negative, the switch action will be brought forward by the value of Compensation.
CamNumber
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | - | - |
Number of the cam; the parameter cam_To_Track[0..31] must be used to map the cam to the available digital outputs. A configuration tool must be used for setting the cam_To_Track.
csdc
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | - | - |
See data type CSDC_REF_TYPE.