seth350
Member
Hello all,
I have been trying to come up with a solution for the following application and I am drawing a blank.
Compactlogix v20
I am using a MOV-EQU sequencer.
I have six different main steps of which each main step consists of 10 sub-steps. These six main steps with their sub-steps are located in a recipe array. Which is called by the operator.
I am monitoring which main step is in process and at what step the sub-step is at. I also monitor when each main step is complete.
I have an output for each step that tells me it is complete.
i.e, "Sub-Step = 10 --> Main Step Complete"
I need to use the "Step Complete" from each step to reset the machine back its beginning cycle. The problem is that not all of the steps are used for each recipe. Some recipes require all six others may only require two or three. It will vary based on which recipe is running.
This can be done in some lengthy ladder...but was hoping for a more classy approach.
Step1 Complete--] [--Step2 Complete--] [--Recipe Steps=2--Current Recipe Done(OTE)
I have the number of steps required stored in an active recipe array as a DINT.
I have the current step stored in an DINT.
I have the Step Complete outputs addressed to bits of a DINT.
Step_Complete.0,Step_Complete.1,Step_Complete.2, etc.
So, when trying to compare the "number of steps required DINT" to the "steps completed DINT", I get a value of 6 in the required DINT and 63 in the Completed DINT (if all six steps are complete). This is natural, but I would like to be able to say that 6 equals 63 by some means.
I have been trying to come up with a solution for the following application and I am drawing a blank.
Compactlogix v20
I am using a MOV-EQU sequencer.
I have six different main steps of which each main step consists of 10 sub-steps. These six main steps with their sub-steps are located in a recipe array. Which is called by the operator.
I am monitoring which main step is in process and at what step the sub-step is at. I also monitor when each main step is complete.
I have an output for each step that tells me it is complete.
i.e, "Sub-Step = 10 --> Main Step Complete"
I need to use the "Step Complete" from each step to reset the machine back its beginning cycle. The problem is that not all of the steps are used for each recipe. Some recipes require all six others may only require two or three. It will vary based on which recipe is running.
This can be done in some lengthy ladder...but was hoping for a more classy approach.
Step1 Complete--] [--Step2 Complete--] [--Recipe Steps=2--Current Recipe Done(OTE)
I have the number of steps required stored in an active recipe array as a DINT.
I have the current step stored in an DINT.
I have the Step Complete outputs addressed to bits of a DINT.
Step_Complete.0,Step_Complete.1,Step_Complete.2, etc.
So, when trying to compare the "number of steps required DINT" to the "steps completed DINT", I get a value of 6 in the required DINT and 63 in the Completed DINT (if all six steps are complete). This is natural, but I would like to be able to say that 6 equals 63 by some means.