• 沒有找到結果。

3 Special functions of a CPU 41x

4.7 Web server

4.7.5 Web pages

4.7.5.4 Module state

Module state

The status of a station is displayed on the "Module state" page using symbols and comments.

Note

"Report system error"

• Duration of display: Depending on the plant configuration, the display "Report system error" may take some time to create the startup evaluation of the state of all the configured I/O modules and I/O systems. There is no concrete display of the status on the "Module state" page during this time. A "?" is displayed in the "Error" column.

• Dynamic response: "Report system error" must be called cyclically at least every 100 ms.

The call may either take place in OB 1, or if the cycle time is more than 100 ms in the cyclic interrupt OB 3x (≤ 100 ms) and in the restart OB 100.

• Deactivated stations: Activating and deactivating stations does not result in an update of the module state.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

Figure 4-12 Module state

Meaning of symbols

Symbol Color Meaning green Component OK

black Component not available/ unable to determine state

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

Navigation to other module levels

The state of individual modules is displayed when you navigate to further module levels:

● Go to the next higher module level using the link in the title line

● Go to the next lower module level using the link in the name







 



Figure 4-13 Module state

Requirement

The Web server is activated, languages are set, and the project is compiled and downloaded in STEP 7.

Note

State of the AS-i slaves

The state of AS-i slaves is not displayed on the "Module state" page. Only the state of the AS-i link is displayed.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

① "Module state"

The table contains information about the rack, the nodes, the DP master system and the individual modules of the station relating to the selected level.

The requirement for this is that the function "Report system errors" has been configured for the CPU or the station and that the modules generated have been loaded in the CPU.

② "Title line"

The link in the title line takes you to the "module state" of the next higher module level.

③ "Details"

The "Details" link provides you with information on the selected module in the "Status" and

"Identification" tabs.

④ "Status" tab

The tab contains information on the status of the selected module:

⑤ "Identification" tab

The tab contains data on the identification of the selected module.

⑥ "Filter"

You can sort the table by certain criteria.

Use the pulldown list to view only the entries of the selected parameter. Enter the value of the selected parameter in the input box and then click "Filter".

1. Select, for example, the parameter "Symbol" in the pulldown list.

2. Click "Filter".

The filter criteria are also retained when you update a page.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server 4.7.5.5 Alarms

Messages

The browser displays the content of the message buffer on the Messages Web page.

The messages cannot be acknowledged on the web server.







Figure 4-14 Messages

Requirements

The message texts were configured in the user-specific languages. For information about the configuration of message texts, refer to STEP 7 and to the Internet address

http://support.automation.siemens.com/WW/view/en/23872245

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

① Filter

This functionality allows you to select specific information from this page.

Use the corresponding list to view only the entries of the selected parameter. Enter the value of the selected parameter in the input box and then click "Filter".

To view all alarms with "incoming" status, for example:

1. Select the "Status" parameter from the list.

2. Enter the "incoming" text in the input box.

3. Click "Filter".

The filter criteria are also retained when you update a page.

② Messages

CPU messages are displayed in chronological order, including the date and time.

The message text parameter is an entry which contains the message texts configured for the corresponding fault definitions.

Sorting

You can also view the parameters in ascending or descending order. Click in the column header of one of the parameters.

● Message number

● Date

● Time

● Message Text

● State

● Acknowledgment

The messages are returned in chronological order when you click the "Date" entry. Incoming and outgoing events are output at the Status parameter.

③ Message number details

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

4.7.5.6 PROFINET

"Parameters" tab

The"Parameters" tab ① of this Web page contain a summary of information about the integrated PROFINET interface of the CPU.



 



Figure 4-15 Parameters of the integrated PROFINET interface

② Network connection

This page displays information for the identification of the integrated PROFINET interface of the corresponding CPU.

③ IP parameters

Information about the configured IP address and number of the subnet in which the corresponding CPU is networked.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

④ Physical properties

You can find the following information in the "Physical properties" field:

● Port number

● Link status

● Settings

● Mode Note

Updating data

The data you see in the HTML browser are only automatically updated if you activated automatic update in HW Config. Otherwise, you can view the current data by updating the view in the HTML browser at regular intervals (Update button).

"Statistics" tab

Information about the quality of data transfers is available in the ① "Statistics" tab.





长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

② Data packets since

This shows the time at which the first data packet was sent or received.

③ "Total statistics - Data packets sent"

The quality of the data transmission on the transmission line can be determined from the key figures in this info box.

④ "Total statistics - Data packets received"

The quality of the data transmission on the reception line can be determined from the key figures in this info box.

⑤ "Statistics Port 1/Port 2 - Data packets sent"

The quality of the data transmission on the transmission line can be determined from the key figures in this info box.

⑤ "Statistics Port 1/Port 2 - Data packets received"

The quality of the data transmission on the reception line can be determined from the key figures in this info box.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

4.7.5.7 Topology

Topology of the PROFINET nodes

The configured and non-configured but available PROFINET nodes of a station are displayed on the "Topology" page in a graphical and tabular view.

Both views can be printed out. Use your browser's print preview function before printing and correct the format if necessary.

 



长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

① Configured, available PROFINET nodes

The "Topology" page displays via which ports the configured and available PROFINET nodes of a station are connected.

② Non-configured and available PROFINET devices

Non-configured and directly available PROFINET devices ("adjacent stations") are displayed on the right.

③, ④ Configured, but unavailable PROFINET nodes

③ The configured, but unavailable PROFINET nodes are displayed in pink.

④ Nodes for which it is not possible to determine a neighbor relationship, e.g. also switches or PROFINET devices which do not support LLDP.

The PROFINET nodes can be identified by the device numbers in HW Config.

Topology - Tabular view

Figure 4-18 Topology - tabular representation

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

Meaning of symbols

Symbol Meaning

Configured and available PROFINET nodes Non-configured and available PROFINET nodes Configured, but unavailable PROFINET nodes

Nodes for which a neighbor relationship cannot be determined.

4.7.5.8 Variable status

Variable status

The browser outputs the variable status on the Web page of the same name. You can monitor the status of up to 50 variables.

  

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

① Address

Enter the address of the operand of which you want to monitor the response in the "Address"

text box. Invalid addresses entered are displayed in red font.

To retain these entries, save the variable status Web page in the Favorites list of your browser.

② Display format

Select the display format of a variable using the drop-down list. The program indicates the variable in hex code if it does not support the selected display format.

③ Value

Outputs the value of the corresponding operand in the selected format.

Special features when changing languages

You can change the language, for example, from German to English, by clicking the object in the upper right corner. The German mnemonics differ compared to other languages. The syntax of operands you enter may be invalid for this reason when you change languages.

For example, ABxy instead of QBxy. The browser outputs a faulty syntax in red font.

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server 4.7.5.9 Variable tables

Variable tables

The browser displays the content of the variable tables on the Web page of the same name.

You can monitor up to 50 variable tables with a of maximum 200 variables.



   

Figure 4-20 Variable tables

长沙工控帮教育科技有限公司整理

Communication 4.7 Web server

④ Value

This column shows the values in the corresponding display format.

⑤ Comment

The program outputs the comment you configured in order to highlight the meaning of an operand.

Creating a variable table for the Web server

1. Generate a variable table in STEP 7.

2. Open the properties dialog of the variable table and activate the "Web server" check box.

As an alternative, you can enter the ID "VATtoWEB" in the "Family" field.

3. Save and compile the project and download the configuration data to the CPU.

长沙工控帮教育科技有限公司整理

PROFIBUS DP 5

5.1 CPU 41x as DP master / DP slave

5.1.1 Overview

Introduction

This section describes the properties and technical specifications that you will need when you use a CPU 41x as a DP master or DP slave and configure it for direct data exchange.

Declaration: The DP master / DP slave behavior is the same for all CPUs therefore the CPUs described below will be named CPU 41x.

Further Information

For information on the hardware and software configuration of a PROFIBUS subnet and on diagnostic functions within the PROFIBUS subnet, refer to the STEP 7 Online Help.

长沙工控帮教育科技有限公司整理

PROFIBUS DP

5.1 CPU 41x as DP master / DP slave

5.1.2 DP address areas of 41x CPUs

Address Areas of 41x CPUs

Table 5- 1 41x CPUs (MPI/DP interface as PROFIBUS DP)

Address area 412-1 412-2 414-2 416-2

MPI interface as PROFIBUS DP, both inputs and outputs

(bytes) 2048 2048 2048 2048

DP interface as PROFIBUS DP, both inputs and outputs

(bytes) - 4096 6144 8192

Table 5- 2 41x CPUs (MPI/DP interface and DP module as PROFIBUS DP)

Address area 414-3 416-3 417-4

MPI interface as PROFIBUS DP, both inputs and outputs (bytes) 2048 2048 2048 DP interface as PROFIBUS DP, both inputs and outputs (bytes) 6144 8192 8192 DP module as PROFIBUS DP, both inputs and outputs (bytes) 6144 8192 8192

You can add all inputs and outputs to the process image of the CPU.

DP diagnostics addresses

In the input address area, the DP diagnostic addresses occupy at least 1 byte for the DP master and each DP slave. The DP standard diagnostics for each node can be called at these addresses, for example (LADDR parameter of SFC13). You specify the DP diagnostic addresses during project engineering. If you do not specify DP diagnostic addresses, STEP 7 assigns the addresses as DP diagnostic addresses in descending order starting at the highest byte address.

In the DPV1 master mode, the slaves are usually assigned two diagnostic addresses.

长沙工控帮教育科技有限公司整理

PROFIBUS DP 5.1 CPU 41x as DP master / DP slave

5.1.3 CPU 41x as PROFIBUS DP master

Introduction

This section describes the properties and technical specifications of the CPU if you operate it as a PROFIBUS DP master.

Reference

You can find the features and technical specifications of the 41x CPUs as of in this manual in Technical specifications.

Requirement

You will need to configure the relevant CPU interface for use as a DP master. This means that you do the following in STEP 7:

1. Configure the CPU as a DP master 2. Assign a PROFIBUS address.

3. Select an operating mode (S7-compatible or DPV1).

4. Assign a diagnostic address.

5. Connect DP slaves to the DP master system.

Note

Is one of the PROFIBUS DP slaves a CPU 31x or CPU 41x?

If yes, you will find it in the PROFIBUS DP catalog as a "preconfigured station". Assign this DP slave CPU a slave diagnostic address in the DP master. Interconnect the DP master with the DP slave CPU, and define the address areas for data exchange with the DP slave CPU.

From EN 50170 to DPV1

The standard concerning distributed I/O (EN 50170) has been further developed. The results were incorporated into IEC 61158 / IEC 61784-1:2002 Ed1 CP 3/1. The SIMATIC

documentation refers to this as DPV1.

长沙工控帮教育科技有限公司整理

PROFIBUS DP

5.1 CPU 41x as DP master / DP slave

DPV1 and EN 50170 compatibility

You can continue to use all existing slaves after the system conversion to DPV1. These do not, however, support the enhanced function of DPV1.

DPV1 slaves can be used in systems that are not converted to DPV1. In this case, their behavior corresponds with that of conventional slaves. SIEMENS DPV1 slaves can be operated in S7-compatible mode. For the DPV1 slaves of other manufacturers, you need a GSD file < Rev. 3 file to EN 50170.

Additional information

Information on migrating from EN 50170 to DPV1 is available on the Internet, on the FAQ pages "Changing from EN 50170 to DPV1", FAQ ID 7027576, on the Customer Support website.

http://www.siemens.com/automation/service&support

Status/modify, programming via PROFIBUS

As an alternative to the MPI interface, you can use the PROFIBUS DP interface to program the CPU or execute the status and modify functions of the programming device.

Note

The execution of programming and status and modify functions via PROFIBUS DP interface prolongs the DP cycle.

Constant bus cycle time

This is a property of PROFIBUS DP that ensures same length bus cycles. The "Constant bus cycle time" function ensures that the DP master always starts the DP bus cycle within a constant interval. From the perspective of the slaves, this means that they receive their data from the master at constant time intervals.

The constant cycle time (isochrone) PROFIBUS is the basis for "isochrone mode".

Isochrone mode

S7-400 CPUs support the mechanism of isochronous reading and outputting of I/O signals.

This allows the user program to synchronize with the I/O processing. Input data is then recorded at a set time and output data takes effect at a set time.

Full "terminal-to-terminal" support of isochrone mode is only possible if all components within the sequence support the "isochrone mode" system property.

The "Isochrone Mode manual contains a full overview of this system property.

长沙工控帮教育科技有限公司整理

PROFIBUS DP 5.1 CPU 41x as DP master / DP slave

Isochronous updating of process image partitions

SFC126 "SYNC_PI" is used to isochronously update a process input image partition. A user program which is linked to a DP cycle can use the SFC to update the input data in the process input image partition consistently and synchronously with these intervals. SFC126 accepts interrupt control and can only be called in OBs 61, 62, 63 and 64.

SFC 127 "SYNC_PO" is used to isochronously update the process output image partition. An application program which is linked to a DP cycle can use the SFC to transfer the computed output data from a process output image partition to the I/O consistently and synchronously with these intervals. SFC127 accepts interrupt control and can only be called in

OBs 61, 62, 63 and 64.

To allow isochronous updates of process image partitions, all input or output addresses of a slave must be assigned to the same process image partition.

To ensure consistency of data in a process image partition, the following conditions must be satisfied on the various CPUs:

● CPU 412: Number of slaves + number of bytes / 100 < 16

● CPU 414: Number of slaves + number of bytes / 100 < 26

● CPU 416: Number of slaves + number of bytes / 100 < 40

● CPU 417: Number of slaves + number of bytes / 100 < 44

SFCs 126 and 127 are described in the corresponding Online Help and in the System and Standard Functions manual.

Consistent user data

Data that belongs together in terms of its content and describes a process state at a specific point in time is known as consistent data. To maintain consistency, the data should not be changed or updated during processing or transmission.

For a description, please refer to the section Consistent Data (Page 155).

Sync/Freeze

The SYNC control command is used to set sync mode on the DP slaves of selected groups.

In other words, the DP master transfers current output data and instructs the relevant DP slaves to freeze their outputs. The DP slaves writes the output data of the next output frames

长沙工控帮教育科技有限公司整理

PROFIBUS DP

5.1 CPU 41x as DP master / DP slave

The DP master receives the current state of the inputs cyclically, again not until you have sent the UNFREEZE control command with SFC11 "DPSYC_FR".

For information on SFC11, refer to the corresponding online help and to the System and Standard Functions manual

Startup of the DP master system

Use the following parameters to set startup monitoring of the DP master:

● Transfer of the parameters to modules

● "Ready" message from the module

That is, the DP slaves must start up within the set time and be configured by the CPU (as DP master).

PROFIBUS address of the DP master

All PROFIBUS addresses are allowed.

See also

System and Standard Functions

(http://support.automation.siemens.com/WW/view/en/1214574)

Isochrone mode (http://support.automation.siemens.com/WW/view/en/15218045)

长沙工控帮教育科技有限公司整理

PROFIBUS DP 5.1 CPU 41x as DP master / DP slave

5.1.4 Diagnostics of the CPU 41x as DP master

Diagnostics using LEDs

The following table explains the meaning of the BUSF LED. The BUSF LED assigned to the interface configured as the PROFIBUS DP interface will always light up or flash.

Table 5- 3 Meaning of the "BUSF" LED of the CPU 41x as DP master

BUSF Meaning Remedy

Off Configuration correct;

All configured slaves can be addressed

Lit Bus fault (hardware fault)

DP interface fault

Different transmission rates in multi-DP master mode

Check for short-circuit or interruption of the bus

Check for short-circuit or interruption of the bus