• No results found

as parameter for the CarrierID in the opened dialog window.

In document CIROS Production Handout_EN (Page 111-119)

2 2 Production Supervision

Enter 1 as parameter for the CarrierID in the opened dialog window.

This solution may differ from your solution. Especially on creation of a

production line the positions of the stations can be different. But if your solution satisfy the task sufficiently it is correct too. Here you see just one correct solution.

Production Simulation must not be closed under any circumstances as long

as Production Supervision is running!

The same model as used in Production Supervision must be loaded in

Production Simulation!

Changes on the production line in Production Simulation should never be made during production mode in Production Supervision. Else severe errors will occur!

On closing of Production Simulation you will be asked whether to save the production line. It is recommended to decline this since at this time there are parts loaded in the warehouse. This would be fatal for future

Festo Didactic GmbH & Co. KG

Afterwards put the baseplate s raw material on the stopped carrier by clicking on Process Task -> MovToTrans in the context menu of the stock. In the dialog window enter 42010 for PartNumber and leave OrderNumber at the default of 0 . Now the raw material has to be

transported to the CNC station therefore use the command to_MillAndTurn in the context menu of the CNC station under

Process Task. The dialog window then

asks for a CarrierID enter the 1 since you reserved this ID before.

Click with the right mouse button on the CNC machine and select

Process Task -> MovFromTrans and enter the part number

42010 . With the macro process task the raw material is moved from the transport on a buffer position of the CNC station. Before continuing the stopper at the CNC machine should be released to guarantee a continuous material flow. Use the command RELEASE in the context menu of the CNC machine. Now the raw material can be manufactured in the CNC machine. Click with the right mouse button on the CNC machine and select

Process Task -> ProdBaseplate. The function needs the parameter TargetPartNumber so enter 42143 since that baseplate is to be

produced.

After the baseplate is produced it is taken back to stock but for this a carrier is necessary. With Process Task -> REQUIRE in the context menu of the CNC machine a carrier is reserved. Since the previously reserved carrier is freed again you can use 1 as ID again.

To place the penholder on the carrier use the macro process task

MovToTrans in the context menu of the CNC machine. For part

number use 42143 because the produced baseplate is to be moved.

Click with the right mouse button on the stock station and select Process Task -> to_StockSingle. The carrier will then be moved to stock and stops there.

Another right click on stock and the command MovFromTrans stores the penholder in the stock. Enter 42143 as part number.

Festo Didactic GmbH & Co. KG

- 113 -

Click on Generate process plan in the menu Extras -> ProjectStudio to generate the process plan. As name use either Prod_User1, Prod_User2 or Prod_User3 to be able to start the process plan in the visualization window directly. Enter Prod_User1 and confirm that an existing process plan should be replaced.

Start production mode of Production Supervision with the command Production in the menu Project or use the button .

You can start the created process plan in the visualization window by clicking on the button User 1. If you used Prod_User2 or Prod_User3 as name then click on the appropriate button.

Festo Didactic GmbH & Co. KG

3. 1. 8 Solution 2.4: Replacing the macro ProdBaseplate with ExecProg tasks

Note

Attention

Solution

Ensure that Production Supervision

ProjectStudio and Production Simulation have

been started.

Open in both programs the same production line and ensure that it contains a milling CNC machine, a Station Mill is recommended. Also a transport system and a stock station are required.

Open in the Project window the user-defined process plan for producing a baseplate which was created with macro process tasks. If there is no such process plan create a new one. See the appropriate chapter for that.

This solution may differ from your solution. Especially on creation of a

production line the positions of the stations can be different. But if your solution satisfy the task sufficiently it is correct too. Here you see just one correct solution.

Production Simulation must not be closed under any circumstances as long

as Production Supervision is running!

The same model as used in Production Supervision must be loaded in

Production Simulation!

Changes on the production line in Production Simulation should never be made during production mode in Production Supervision. Else severe errors will occur!

On closing of Production Simulation you will be asked whether to save the production line. It is recommended to decline this since at this time there are parts loaded in the warehouse. This would be fatal for future simulations.

Festo Didactic GmbH & Co. KG

- 115 -

Scroll down in the process plan until you find the line in which the process task ProdBaseplate is used. Highlight that line by clicking on the grey column on the left. Delete the highlighted line with the Del key or right click on the line and use the command Delete.

Then insert an empty line with the key combination Ctrl + Return or right click on the line and select

Insert empty line.

Open the tasktool with the F3 key or use the command Tasktool in the menu View.

Now select the component Mill55Robot, if there is a Mill55 station in the production line. Is a different mill station connected so select its appropriate robot station.

Select ExecProg in the list box which is move to the input field. Delete the contents inside the brackets. Inside the brackets ExecProg awaits 4 parameters. First parameter is the robot program which should be executed. The following 3 parameters are then transmitted to the robot program.

For loading the CNC machine with raw material, the robot program LMILL exists which needs 2 parameters. First parameter is the source position of the raw material and second parameters tells what kind of part it is. Enter the following in the input field of the tasktool:

ExecProg( LMILL ,1,1)

The command calls the program LMILL and

indicates that raw material is on buffer position 1 . The second parameter indicates that a baseplate is loaded.

Festo Didactic GmbH & Co. KG

Click left on the column Line in the empty line of the process plan. Enter a line number which is higher by 1 than the previous line. Then click on Insert to insert the process task in the empty line. The columns Device and Process Task are filled with information from the tastool.

Click in the next line and add a new line again. Enter a line number higher by 1 as well.

Since the raw material is now in the CNC machine the appropriate CNC program has to be started. Select the component Mill55CNC if there is a different mill station in the production line then select its appropriate CNC component.

Choose ExecProg in the list box and enter the following in the input field of the task tool:

ExecProg(143)

The CNC machine only needs one parameter and that is what CNC program should be started. More is not necessary. The CNC program is determined by the last 3 digits of the part number. However it is important that the target part number is used since the appropriate part is to be produced.

One click on Insert takes over the process task from tasktool to the process plan

Festo Didactic GmbH & Co. KG

- 117 -

The baseplate is now manufactured. The next step is to move it back on the pallet. For this the robot program ULMILL is used. It needs 2 parameters like LMILL and the first one indicates the target buffer position while the second one tells if a penholder or baseplate is used.

Therefore click in the next line and add a new line again. Enter a line number higher by 1 as well. Select component Mill55Robot in the tasktool again and choose ExecProg in the list box. Enter then in the input field the following process task:

ExecProg( ULMILL ,1,1)

The command calls the program ULMILL and indicates that the produced baseplate is to be put on buffer position 1 . The second parameter indicates that a baseplate is used. Add the process task in the empty line by clicking on Insert.

The modification in the process plan is now finished. The three inserted process tasks replace the macro process task ProdBaseplate. Save the process plan with the command Save all in the menu File or use the button .

Close the process plan. To see if the user-defined process plan has no syntax errors right click on it in the project window and select the option Check. The message window shows occurred errors or warnings. A double click on an error or warning opens the process plan automatically and focuses the problematic line.

Festo Didactic GmbH & Co. KG

Before the process plan can be executed Production Supervision has to be in production mode. Click therefore on Production in the menu Project or use the button .

As soon as the window for starting production is closed automatically switch to Production Supervision.

Right click on the process plan and the command Start executes it.

If the process plan is saved as a user-defined process plan you can also use the User buttons in the visualization window.

Observe the process in Production Simulation and in the visualization window.

Festo Didactic GmbH & Co. KG

- 119 -

In document CIROS Production Handout_EN (Page 111-119)

Related documents