• No results found

Configuring the CPU 224XP PLC

In document Micro Application Example (Page 30-34)

Step-by-step instructions for configuring the controller

Table 5-2

No. Instruction Remark

1. Connect a free COM port or a USB port of the development system to port 0 of the S7-200 controller. Use the PC/PPI or USB/PPI cable for the connection. Use the following switch positions for the PC/PPI cable:

PC/PPI or USB/PPI cable

Development system

2. In “PG/PC Interface”, select

Start>Settings>Control Panel” and make

the following settings:

• Access point of the application: Micro/WIN Æ PC/PPI cable(PPI)

• Transmission rate: 19.2kbps

• Local connection: COM or USB (depending on the cable)

• Advanced PPI deactivated Multi-master network deactivated

Instead of using the control panel, the interface can also be selected from STEP 7 Micro/WIN by selecting

SetPG/PC Interface”.

3. Start STEP 7 Micro/WIN and open the mwp project file.

4. If you are using a motor type deviating from table 3-1, you have to adjust the input parameters of the Lin_Init_horizontal block (= rated motor data). The block is located in network 1 of the MicroPOS subprogram.

5. Check whether the values of the

parameters declared in the “USER” data area are compatible with the mechanical system of your wire cutting machine.

The following table provides an explanation of the “USER” data area (Table 5-3).

1 2 3 4 5 6 7 8 0 0 0 0 1 0 0 0

V2.0 16.07.2008 31/54 C opyr ight © Si em ens AG 2 008 Al l r ights r e se rv ed Set0 1_D ocT e ch_ 2d0 _en.d o c

No. Instruction Remark

6. Select “File>Download…”

or use the corresponding icon to transfer the project to the S7-200 controller.

In the transfer dialog box, ensure that the

• program blocks,

• data blocks,

• system data and

• recipes are transferred.

7. Select “PLC>RUN” or the corresponding

icon to set the S7-200 controller to “RUN” mode.

8. • In the operation tree, right-click “Libraries” and open the dialog box for adding/deleting libraries.

• Add the drive blocks for linear positioning to the library. Follow the explanations in the respective window.

It is only necessary to add blocks to the library if you want to add library blocks that have previously not been included in the program code to the user program. In this example, these are, for instance, the “Lin_Init_vertical” or “Lin_MoveAbs” blocks.

Parameters of the wire cutting machine

On the one hand, all technological parameters of the wire cutting machine are declared in the USER data block; on the other hand, they also exist in the “Parameters” status table for commissioning purposes. Before the first commissioning check whether the values – in particular the velocities and torques – are suitable for your mechanical system. The following table explains the parameters.

V2.0 16.07.2008 32/54 C opyr ight © Si em ens AG 2 008 Al l r ights r e se rv ed Set0 1_D ocT e ch_ 2d0 _en.d o c Table 5-3 Parameter Explanations Technological parameters

dist_BERO_cutter: VW32 Distance between proximity switch and cutter (mm). The proximity switch is to be installed between the drive wheels and the cutter.

dist_BERO_cutterhas to be entered as a negative value.

dist_BERO_cutter

Schneidemechanismus (cutter)

induktiver Näherungsschalter

absolute Position + -0

cutter_down_time: VW34 Indicates how long the cutter remains in the cutting position

(value x 10ms).

The cutter knows two logic states:

• Parking position (at top, control with FALSE)

• Cutting position (at bottom, control with TRUE)

cut_delay: VW40 In automatic mode, the feed of the next wire rod is started

only after this delay (value x 10ms).

This is to prevent that the feed starts before the cutter has returned to parking position. The cutter has no end position detection.

Other parameters

coil: VW114 Preset coil (1-4) whose recipe data is used for operation

after a data block transfer to the controller.

minimum: VD76 If the remaining capacity of the coil becomes less than this

limit value(m), a warning is output on the TP.

Velocity parameters

V_Ref: VD1004 Homing velocity (mm/s)

Jog_slow: VD1008 Slow jog mode velocity (mm/s)

V2.0 16.07.2008 33/54 C opyr ight © Si em ens AG 2 008 Al l r ights r e se rv ed Set0 1_D ocT e ch_ 2d0 _en.d o c Parameter Explanations

V_Pos: VD1016 Positioning velocity (mm/s)

Torque parameters3

T_Ref: VD1028 Accelerating/decelerating torque for homing (%) Torque_Jog_slow: VD1032 Accelerating/decelerating torque for slow jog mode (%) Torque_Jog_fast: VD1036 Accelerating/decelerating torque for fast jog mode (%) T_Pos: VD1040 Accelerating/decelerating torque for positioning (%) T_Stop: VD1048 Decelerating torque when stopping by means of stop

button on the TP or hardware stop button during homing or a positioning operation (%).

Parameters for the Lin_Init_horizontal initialization block

Torque_Limit: VD1100 Maximum permissible accelerating/decelerating torque (%). The torque parameter values of the other drive blocks always have to be smaller than/equal to this value. Otherwise, the relevant drive block reports an error. Velocity_Limit: VD1108 Maximum permissible velocity (mm/s). The velocity

parameter values of the other drive blocks always have to be smaller than/equal to this value. Otherwise, the relevant drive block reports an error.

s_per_rev: VD1112 The feed of the wire per motor revolution has to be entered here (mm/rev). For a positioning accuracy < 1mm,

s_per_rev < 40 mm/rev should apply.

Inertia: VD1116 Moment of inertia;

see chapter 4.4

3 The percentage data of the torque refers to the motor’s rated torque that is listed in the motor data sheets and that the MAP Ind blocks calculate from the further motor rating parameterized at the “Lin_Init_horizontal” block. Entries from 0…200% are possible for the torque.

V2.0 16.07.2008 34/54 C opyr ight © Si em ens AG 2 008 Al l r ights r e se rv ed Set0 1_D ocT e ch_ 2d0 _en.d o c

In document Micro Application Example (Page 30-34)

Related documents