Input Description¶
MCX_CamLogic_dc provides the possibility to add some logical (boolean) interconnection to a cam result. Usually, the binary output is switched on when the cam is switched on. Several cams could be configured to use the same binary output. This will result in an OR-connection of the cam-states to switch on the binary output. The cam state will correspond to the binary output. When other logic operations are necessary, the MCX_CamLogic_dc could be used. It will allow to:
- Switch on/off the output corresponding to the cam state
- Switch on/off the output corresponding to the inverted cam state
- Switch on/off the output corresponding to a positve/negative edge of the cam state
- Directly set or reset the logic. This will subsequently set or reset of the binary output.
Up to 16 MCX_CamLogic_dc are available. It is not necessary to have a configuration to use them, but just to use the number 1..16 to select the respective logic. The logic is connected to the cam by the input CoCamNumber.
The boolean operation which is executed matches the following diagram:
- ON=TRUE will directly set the output
- OFF=TRUE will directly reset the output
- With V0=TRUE, the cam state is enabled to set the output
- With S0=TRUE, the positive state will set the output
- With S0=FALSE, the negative state will set the output
- With V1=TRUE, the cam edge is enabled to set the output
- With S1=TRUE, the positive edge will set the output
- With S0=FALSE, the negative edge will set the output
- The reset part works accordingly
- When set and reset are active, the reset dominates
When several cams are configured to use the same output, they either all of them should have a logic block or none of them should. In case they all have a logic block, all SET-results will be connected by boolean OR and all RESET results will be connected by boolean OR. Afterwards, the operation will be executed with the OR results.
The inputs V0, V1, V2, V3, ON and OFF are transferred immediately and will be effective immediately, while the S0, S1, S2 and S3 are transferred multiplexed with other parameters (from other Function Block).
The actual state of the logic can also be monitored with the output “state”. It will show the logics result, not the binary output.
ON
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Input ON activates the set path of MCX_CamLogic_dc and set the binary output subsequently.
S0, S1, S2, S3 (select)
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Inputs V0, V1, V2, V3 select the condition to enable the respective path.
V0, V1, V2, V3 (select)
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Inputs S0, S1, S2, S3 select positive (TRUE) or negative (FALSE) signal for the respective path.
OFF
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Input OFF activates the reset path of MCX_CamLogic_dc and reset the binary output subsequently.
CoCamNumber
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.
LogicNumber
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | 1…16 | - |
Number of the logic block: Each number should just be used once. An additional configuration is not required.
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.