Vous êtes sur la page 1sur 17

Handling Panel OP177

OP177

page 01

List of Contents

R IT

Running the Project on the PG/PC .................................................................................. Communication Network as seen via NetPro ................................................................. Preparing the PG/PC Interface to load the OP177 via MPI .............................................. Preparing the OP177 to load Data via MPI ....................................................................... Setting the Properties of the MPI Interface ....................................................................... Verifying the MPI connection between PG/PC and OP177 ............................................... Defaulting the OP177 (WinCC via SIMATIC Manager) ..................................................... Defining the Communicating Partner ................................................................................ Loading the Project to the OP177 (WinCC via SIMATIC Manager) .................................. Running the Drive via OP177 ........................................................................................... Assigning Global Device Variables as Tags ................................................................. Defining Control Inputs and Monitoring Outputs ............................................................... Navigating between Screens via Soft-Keys ...................................................................... Navigating between Screens via OP177 Hardware-Keys (F.. / K..) .................................. Triggering Drive Functions via OP177 Hardware-Keys (F.. / K..) ......................................

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

3 5 7 9 11 13 15 17 19 21 23 25 29 31 33

page 02

Running the Project on the PG/PC

right mouse click > open object

deletes modifications ations only

left mouse click

deletes the he old compilation in fu full

OP177

page 03

Handling the operator panel OP177

8.1 Preparing to load the OP177 via MPI

To gain experience in dealing with steps related to the use of the operating panel OP177, ready to run project SM_LV4 will be used. Open the SIMATIC Manager and delete project SM_LV4 if it should already exist on the harddisk other than in directory C\Temp_Trainee\D445_CFC\0_Training to which you have copied it one of the previous days. Retrieve project SM_LV4.zip from location C\Temp_Trainee\D445_CFC\0_Training into the prompted directory (C\Programme\Siemens\Step7\S7Proj). Select any of the three SM150 drive devices of the project (SIMOTION_CX32, SINAMICS_Integrated, D445) and open SCOUT via: - left mouse click on the drive device in the navigator section and - right mouse click on the drive device in the worksheet section > Open object In SCOUT start the routine Save and Recompile all. For the given project SM_LV4, tab Compile/check output has to read Create procedure successful as final line. Initiate the routine Check consistency; the final message has to read Consistency check successful.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 04

Communication Network as seen via NetPro

OP177

page 05

The PG/PC can be connected to the D445 via PROFIBUS or via ETHERNET. Open NetPro and find out how to connect to SIMOTION D445 without changing the project definitions; take a note of the PROFIBUS-, MPI- and ETHERNET-addresses assigned to the nodes of the hardware used (via right mouse click on node connection > Object Properties): - D445_DP1: - D445_DP2/MPI: - D445_IE1/OP:

- D445_IE2/NET - PG/PC_MPI: - PG/PC_DP:

- PG/PC_Ethernet: - OP177_MPI/DP: - OP177_Ethernet:

R IT

N I A
IP address: IP address: IP address: IP address:

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

...................... ...................... ...................... ...................... ...................... ...................... ...................... ...................... ...................... Subnet mask: . . . . . . . . . . . . . . . . . . . . . . Subnet mask: . . . . . . . . . . . . . . . . . . . . . . Subnet mask: . . . . . . . . . . . . . . . . . . . . . . Subnet mask: . . . . . . . . . . . . . . . . . . . . . .

If necessary, adapt your PG/PC connection and properties to connect to SIMOTION D445 via Profibus as defined in NetPro of project SM_LV4, establish the online connection, download the project, change to operating mode RUN (all faults are acknowledged automatically via the implemented DCC-programming) and test the drives function: DI 2 = off DI 0 = on DI 1 = on AI 1 DI 3 = on/off off: remote control via DIs and AI 1 / on: local control via OP177 Infeed switches on Motor Module switches on defines the speed of the motor acknowledges faults (in operating mode RUN)

page 06

Preparing the PG/PC Interface to load the OP177 via MPI

OP177

page 07

Some base programming to run the drive via OP177 is provided via OP177 within project SM_LV4. The OP177program, however, still has to be loaded from the project to the OP177. To load the OP177 via one of the available interfaces, the interface in question has to be assigned to the PG/PC. In this step of training the MPI interface will be used first. Sine the current interface assignment of the PG/PC reads PROFIBUS, this assignment has to be changed from PROFIBUS to MPI. Since the online connection to the D445 will no longer be maintained in this situation, disconnect the SCOUT project from the target system (go offline). Open NetPro, open the properties of the PG/PC, disconnect the assigned PROFIBUS interface, assign the MPI interface and activate the assigned MPI interface (in consequence the MPI connection of the PG/PC must be highlighted in yellow). As the change of assignment in NetPro will become effective only after NetPro has been Saved and Compiled, carry out this routine. Close message no errors and exit program NetPro by Network > Exit. Back in SCOUT, verify that the PG/PC is defined the only master on the bus (via Options > Set PG/PC interface > Properties).

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 08

Preparing the OP177 to load Data via MPI

temporary for 5 s after power on

OP177

page 09

The selection of the type of interface, the interface settings and the preparation of a data transfer are done in the menu Transfer of the OP177. Connect the OP177 to the PG/PC using the available Profibus cable. Connect the separate 24 VDC power supply to the OP177 and switch the 24 VDC on (MCB to the right of component TM31). After the OP177 has been powered up, the Loader is displayed for a few seconds and then the defined faceplate opens up. Use softbutton Control Panel (possibly via master screen) to access menu Control Panel of the OP177. Scroll down to menu Transfer and double-click on it.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 10

Setting the Properties of the MPI Interface

OP177

page 11

In menu Transfer Settings select MPI/Profibus for Channel 2 and tick on Enable Channel and Remote Control (checkmarks are inserted). Call up the Advanced settings, select MPI and set the Properties as follows: - panel is the only master on the bus - address as defined in NetPro: . . . . . . . . - time out: 10s - baudrate: 187.5 kBaud - highest station address: 31

R IT

N I A

U O

S R

M E

E T A

I R

left mouse click

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 12

Verifying the MPI connection between PG/PC and OP177

OP177

page 13

Close all windows with OK until the Control Panel reappears. Switch off the 24 VDC supply to the OP177 via mcb on the right hand side of component TM31, switch it back on again and push softbutton Transfer within 5 s after menu Loader pops up. Message Connecting to host appears, the OP177 is ready for the data download and waits for the data transfer from the project on PG/PC. Test the MPI connection between PG/PC and OP177 using menu Options > Set PG/PC Interface > Diagnostics either in program SIMATIC Manager or in program SCOUT. Verify that the nodes as specified in NetPro read Station active.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 14

Defaulting the OP177 (WinCC via SIMATIC Manager)

OP177

page 15

Defaulting the OP177 has to be carried out using the tool WinCC flexible. In the navigator-section of the SIMATIC Manager, doubleclick on OP177 and then use a right mouse click on WinCC flexible RT > Open Object to start WinCC flexible. Before starting the Default routine the station address has to be set. Select Project > Transfer > Transfer , assign Mode = MPI/DP, select Overwrite user administration and Overwrite recipe data records, assign the MPI node number of the OP177 and activate this setting via button Apply. Select Project > Transfer > OS Update and start the Default routine via button Update OS in the pop-up menu. After completion of the Default a power on reset has to be executed on the OP177 (MCB next to TM31): and automatically changes to Transfer > Connecting to host. the screen indicates Bootloader, Version, Date an Close menu OS Update.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 16

Defining the Communicating Partner

OP177

page 17

Supplement and adapt the ETHERNET communication sche scheme in NetPro to link the systems mentioned below via Ethernet and assign suitable IP-addresses: - SIMOTION D445, port IE1/OP - OP177, port HMI/IE - PG/PC, Ethernet port new IP-address

Save and Compile NetPro and download SIMOTION D445. The link between OP177 and SIMOTION D445 uses Global Device Variables defined in SIMOTION D445 and assigned to OP177 panel functions via Tags. These Tags are related to a Connection which is to be assigned to a communicating Partner (here: D445) and its node to be used (here: port IE1/OP). To be ready for the communication D445 OP177 via D445-port IE1/OP, change to WinCC flexible, open menu Communication > Connections, assign SIMOTION D445, port IE1/OP and save the project (Project > Save).

T I S

A R

IN

new IP-address new IP-address

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

............................ ............................ ............................

page 18

Loading the Project to the OP177 (WinCC via SIMATIC Manager)

OP177

page 19

8.2 Loading the OP177 via ETHERNET

hysically connect the PG/PC to the OP177 via Ethernet and assign TCP/IP Intel(R)82566, IP-address as set in Physically etPro to the Ethernet port of the PG/PC. NetPro Adapt the Transfer Settings on the OP177 (access via Control Panel > Transfer Settings) to enable the communication with the PG/PC via ETHERNET; when finished, set the OP177 to state Transfer > Connecting to host. Test the Ethernet communication between PG/PC and OP177 by pinging the OP177. In WinCC flexible, select Project > Transfer > Transfer , define Mode = ETHERNET and the IP-Address of the OP177. Select Overwrite user administration and Overwrite recipe data records and start the transfer with the assigned button.

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 20

Running the Drive via OP177

1500 1501

OP177

page 21

Connect the Ethernet cable (D445, IE1/OP OP177) and the Profibus cable (PG/PC D445, DP2/MPI). ake all necessary steps to establish an online connection Take - between PG/PC and D445 via Profibus and - between D445 and OP177 via Ethernet (if successful, the feedback value actual speed reads 0 instead of ####)

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

Select local control via OP177 (switch DI 2 = on) and test the operation of the drive via OP177: ALM is switched on - infeed = on - motor = on motor is switched on - speed command via keypad motor runs at set speed, the actual speed is indicated On closer analysis you will notice that the motor runs at only 50% of the speed command value. Find the reason for this behavior and adapt the wrong setting to make the motor speed match the command speed: ........................................................... - switch off the infeed (keep the motor switched on) the drive trips with fault Drive Infeed operation withdrawn - acknowledge the fault via OP177, softkey acknowledge.

Topics listed beyond this step and the affiliated lab cover engineering issues.
Given time and personal interest they can be dealt with optionally.

page 22

Assigning Global Device Variables as Tags

OP177

page 23

8.3 Engineering a basic OP177-program

top your drive and disconnect from target system to continue by engineering a basic OP177 program of your own. Stop Up to now you have controlled the drive via OP177, screen 1 as part of a ready to run project. In the next step you will engineer similar faceplates and all related signal connections to run the drive via OP177, screens 2 and 3. Define following Global Device Variables (additionally to the already existing) to carry out the data exchange between SIMOTION D445 and OP177: almon BOOL Init = False motoron BOOL Init = False speedset REAL Init = 0.0 speedact REAL Init = 0.0 Save and compile the project. As next step define the same (additional) variables for the OP177 as follows: - OP177 > WinCCflexibleRT > Communication > Tags - right mouse click on Tags > Open object menu Tags opens up, already defined Tags are listed - click on the left column of the next available line to highlight this line - select Add Tag (via right mouse click), write almon as name and scroll to almon in column Symbol (project > SM_LV4_SIMOTION D > D445 > GLOBAL > almon) and click on the checkmark to activate your assignment. - in the bottom section, change the Acquisition Cycle to 500 ms. Follow the same approach to define variables motoron, speedset and speedact as Tags.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 24

Defining Control Inputs and Monitoring Outputs

OP177

page 25

These Tags will now be related to inputs and outputs defined on screens 2 and 3 of the OP177 (e.g. to switches, input keypad, feedback message frames etc.). Open screen 2 as prepared in your project and insert the following by means of drag and drop (pick & paste): 1) switch - with name INFEED via menu Switch_1 at bottom; Label = INFEED - Tag = almon - background color = yellow via Property > Appearance via menu Switch_2; Type = Switch with text 2) switch with text - reading motor is OFF in OFF-state, green color via General > Text, Properties > Backgroundcolor = - reading motor is ON in ON-state, red color green, Animations > Appearance > Tag = motoron > Value = 1 > Backgroundcolor = red, Type = Bit - Tag = motoron

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

L The programming of above definitions requires several submenus. Call up the online help via Tool Tip Text and click on the info-block to read the information.

page 26

Defining Control Inputs and Monitoring Outputs

OP177

page 27

Open screen 3 as prepared and insert an I/O-filed for the speed setpoint with following properties: - IO Field of the type input with blue background - Tag = speedset - decimal 5 digit integer (reading the value in rpm) - name = speed setpoint To read the actual speed, add a horizontal bar by the name actual speed with a range from -1500 rpm to +1500 rpm and a spacing of 100 rpm. Save the current WinCCflexible project and transfer it to the OP177. To access menu Transfer on the OP177 you can switch the 24 VDC supply off and on or you can restart the OP177 via Control Panel > OP > Device > Reboot. Test the OP177 functions you have engineered. Modify chart DCC_1 to run the drive via OP177 with screens 2 and 3 you have engineered instead of using screen 1. Test the operation using the OP177 screens you have engineered.

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 28

Navigating between Screens via Soft-Keys

OP177

page 29

To operate the drive with your OP177-programming you have to navigate via soft-keys: - to start and stop Infeed and Motor via master screen to screen 2 and - to set and monitor the speed value via master screen to screen 3. Supplement your programming to access screen 3 (values) additionally via a yellow Button in screen 2 by name values (via General > Text off = values, Properties > Background color = yellow, Events > Screens > ActivateScreen > Screen_2). Add another yellow Button in screen 3 by name commands to select screen 2 (commands).

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

page 30

Navigating between Screens via OP177 Hardware-Keys (F.. / K..)

in Template

functional assignments of Hardware-keys valid for all screens have to be made in Template

assignment of hardware-keys for individual screens is then blocked in all other screens

OP177

page 31

Assign hardware-key F2 to call up screen 3 out of any screen you are using and assign hardware-key F1 to call up screen 2 out of any screen you are using: - screen Template (assignments in screen Template are valid out of any screen unless exempted individually) - button F1 - in menu Softkey-F1 continue with Events > Press - assign function Screens > ActivateScreen - select Screen_2 Verify that menu Softkey-F1 reads the following in any screen other than in screen Template: - via Events > Press Activate Screen_2 - via General Use global assignment (if checkmark Use global assignment is removed, the assigned button F1 has no function out of this particular screen)

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

Save the current WinCCflexible project, transfer it to the OP177 and test the OP177 functions you have engineered.

page 32

Triggering Drive Functions via OP177 Hardware-Keys (F.. / K..)


definitions / assignment in DCC

definitions on OP177

in Template
if to be valid for all screens

OP177

page 33

Assign hardware-key K18 (out of any screen you are using) to acknowledge fault messages on SIMOTION D445 additionally to soft-key acknowledge provided in screen 1: 1) Steps in SCOUT_DCC - open View > Chart Input/Output for chart DCC_1 - assign variable killfault, type BOOL for Interface > OUT - compile DCC_1 (ignore the warning message) - in chart DCC_1 / A1 connect variable killfault to the already existing variable ack_dump via the OR-gate - again compile DCC_1 (warning message output DCC_1<killfault> is not connected is irrelevant as the connection will be provided via OP177 hardware-key K18). 2) Steps in WinCC flexible - supplement menu Communication > Tags with a Tag by the name killfault and Symbol = killfault - screen Template - button K18 - in menu Softkey-K18 continue with Events > Press - assign function Edit bits > SetBitWhileKeyPressed - select DCC_1.killfault

R IT

N I A

U O

S R

M E

E T A

I R

L A
SITRAIN

Siemens AG 2011 - all rights reserved

Carry out all steps required to have above programming implemented; test the function by creating a fault (e.g. switch the Infeed off while the Motor is still in on-state).

this programming is also available by project SM_LV4F.zip


page 34

Vous aimerez peut-être aussi