Thread Content
Five tanks are fed material into them one after another in sequence; it is required that the next step be carried out once one of the conditions is met. The order of feeding can be changed arbitrarily, for example, from ABCDE to EBDCA. The change only needs to be made on the upper-level computer screen, without altering the configuration – this is just to outline the approach.
What conditions need to be met to proceed to the next step?
We have many such cases here: discharge takes priority, and discharge is interlocked with feeding. Then ABCD queue up in an interlocked manner for feeding; feeding can proceed once the conditions are met.
Are there any specific requirements? It is impossible to achieve this without modifying the program.
It’s just about sorting, and different software uses different methods for that
Specific issues of this kind need to be handled on a case-by-case basis. The following ideas are provided for reference only: 1) In the program of the lower-level device, create 5 functional blocks; each block contains the feeding program corresponding to tank A through E. The execution of each program is initiated based on the value assigned to the pointer variable step – for example, when step1 is set to ON, tank A starts operating, and when step5 is set to ON, tank E starts operating. 2) The host computer sets the pointer variables to ON using assignment commands; for example, when the “Feed Tank A” button on the host computer’s interface is clicked, the values assigned are: step1=ON, step2=OFF, step3=OFF, step4=OFF, step5=OFF. This method is the simplest. Automated control of a single reactor can be achieved by clicking on the screen. If one wants to perform automated operations on 5 reactors simultaneously with a single click, it is necessary to consider various combinations of scenarios, which makes the process cumbersome; moreover, the amount of work required for writing the lower-level machine program is enormous. Not recommended.
The general control logic is configured and programmed on the lower-level controller, while the display screen is used only for showing information and monitoring.