Académique Documents
Professionnel Documents
Culture Documents
1.CNC programming using word format. 2.Example problems with different geometries for CNC codes.
Solution
Solution
Advanced Features
With the progress in controller capabilities, several advanced features are becoming available on NC machines. Among these are the following: 1. Ability to take a portion of the program and execute it in a rotated or mirrored position. 2. Ability to scale the program and produce larger or smaller features than those programmed. 3. Capabilities such as three dimensional circular interpolation, helical interpolation, parabolic and cubic interpolation for producing free form designs. 4. Ability to execute part of the program more than once.
Logical Controllers
PLCs are used widely used in manufacturing as a means of implementing logical control of manufacturing systems. Control actions are taken by making decisions depending on the values associated with various inputs or variables and the control logic in the program. If a particular decision can be made by answering yes or no, go or nogo or 0 and 1 (binary system) they are referred to as decision by attributes. These may include the following: 1. Is the machine turned on? 2. Is the gate to the work cell open? 3. Has the AGV arrived at the docking station? Etc. If a particular decision cannot be made by answering yes or no to a question, it is referred to as decision by variables. Generally these types of decisions are based on values that can vary widely. Examples include: How deep is the hole? What is the cutting speed? What is the required surface finish? How many parts are to be made?
1. 2. 3. 4.
Logical Control
Attribute type questions can generally be considered as candidates for automation using logical control, whereas variable type questions would be less amenable to logical control.
A variable type question can be made suitable for logical automation, however, it can be broken down into a series of elementary attribute type questions. An attribute type question (having a yeas/no kind of answer) can always be expressed as a logical variable and relationships between such variables constitute a logical expression and they are governed by the laws of Boolean algebra. Three basic logical operator exist and these are the AND, OR and NOT as described in the table below as a relationship between variables X and Y. Relationship X AND Y X OR Y NOT X Meaning Both variables are true Either one of the variable is true The specified variable is not true
Logical Control
The logical relationships can be expressed in a diagram form called a logic network diagram whose symbols are expressed below. The devices implementing the various logical relationships are what we refer to as logic devices. These logic devices are used in constructing PLC Although the logic network diagrams could be used to represent the logic in a PLC control program, another logic diagramming technique is known as ladder logic diagram.
These are more widely used in the industries and they were retained as PLCs got introduced from a convenience point of view of the technicians who were involved in wiring the various systems that were being controlled.
Solved Example
A robot is to be used to unload finished parts from a machine onto an AGV and to load raw parts from the AGV to the machine. Assume that there are sensors at the AGVs docking station to indicate the arrival of the vehicle and onboard sensors on the vehicle to indicate whether the vehicle has actually brought some raw parts to be machined and whether the AGV has space to carry away a finished part. Also, assume that there are sensors on the machine to indicate whether the machine is loaded with a part and also a signal for the completion of part processing. The robot is required to unload a processed part from the machine onto the AGV, pick up a new part for processing from the AGV, and load it onto the machine. The AGV is to be dispatched after the completion of the cycle. Construct a ladder logic diagram.
Solution
I/O 01 Meaning/ Associated Action AGV has arrived
02
03 04 20 21
22
Solution
1. The first rung states that if inputs 01, 03, and 04 are all true, then output 20 is true. This is interpreted as meaning that if AGV has space to store a processed part, and the machine has a finished part to be unloaded, then the robot should unload the old part from the machine onto the AGV. 2. The second rung states that if (input 20 is true AND input 02 is true), OR (input 01 is true, and input 04 is not true, and input 02 is true), then output 21 is true. This rung thus illustrates the use of OR in a ladder logic diagram. The rung is interpreted as meaning that if the machine has been unloaded, and the AGV is carrying a new part to be processed, then the robot should load the new part from the AGV onto the machine. In this case there are two scenarios in which the same output may be obtained. Note in particular that output 20 from the previous rung is being used as an input on the current rung.
3. The third rung contains the logic for dispatching the AGV after it arrives at the docking station
Example Problem
During the powder metallurgy process, a punch is used to press blended metal powder into a compact inside a die. A push button is used to start the process. Whn the start button is pressed, the die is filled with powder. The punch is then advanced and it applies pressure to the powder for a duration of 10s, after which it is retracted. The pressed compact is then ejected from the die and the cycle repeats itself. The cycle can be interrupted by pressing the stop button. If the stop button is pressed the punch is required to retract (if it had been advanced) before the process is stopped. We are required to construct a ladder logic diagram.
Solution
I/O 01 02 T1 30 31 32 34 35 Meaning Start Button Stop Button Timer (with a limit of 10s) Fill die Advance punch Retract punch Eject part (i.e., compact) Stop cycle
Solution
When the start button is pushed to initiate the process, or if a part has been ejected successfully from the die, and if the stop button has not been pushed, the die is filled with predetermined amount of powder. After the die is filled, the punch is advanced to start applying pressure on the powder. The pressing time is to last for 10s, after which the timer resets itself. After the 10s, or any time the stop button is pressed, the punch retracts. After the punch retracts and provided the stop button has not been pressed, the part is ejected. After the part is ejected, the cycle repeats from the beginning. When ever the stop button is pressed the punch gets retracted and the cycle is stopped.