Input Description¶
MCX_BinaryShift_dc provides the possibility to start a cam switch related to a binary input. The BinaryShift observes a binary input. When a positive (Mode_Off_On=TRUE) or negative (Mode_Off_On=FALSE) edge is received, the associated cam is started. It is then shifted by a certain distance or time. The following characteristics apply to the BinaryShift:
- Used to create a trigger to some kind of “žShiftedCam”
- Is edge triggered
- “ShiftedCam” might be
- Common, comfort, timed, multi, multi-timed
- Time-timed (just valid with shift)
The values for Mode_Off_On and OnCompensation are individually changeable online.
The example shows how a BinaryShift and a CamSwitchTimed would work together:
- Mode_Off_On=TRUE, therefore a positive edge is evaluated. The CamSwitchTimed is triggered in relation to the received edge.
- After the positive edge on a binary input was received, the connected CamSwitchTimed would be triggered. The output “level” will be increased by 1
- When the encoder moved a distance of 1000 (FirstOnPosition of CamSwitchTimed), the output of the cam will be switched on. It will stay on for 100 ms. The output “level” of the BinaryShift will be decreased by 1.
- When additional positive edges are received outside before the distance of 1000 was moved, the respective actions are queued. This is possible for up to 15 actions.
The actual state of the cam can also be monitored with the output “state”. It will show the cam, not the binary input.
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.
Clear
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Input Clear deletes the already triggered, but not yet executed cam switches.
Mode_Off_On
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Mode_off_on selects if a positive or negative edge will be used as trigger.
ShiftedCamNumber
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | - | - |
Input ShiftedCamNumber selects the number of the cam which has to be triggered, runs from 1..32.
OnCompensation
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 | - | 1…32 | - |
Number of the cam: this number runs from 1..32. 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: CSDCX_REF_TYPE
The 2 elements in_csdc and out_csdc of csdc must be initialized with the beginning address of the input data area and the output data area to facilitate proper function of the cam.