D0155_A0_en_Link.pdf

(1387 KB) Pobierz
Table of Contents
1
Introduction
MOBY
2
Block Specifications
3
FC 56
The Parameter Data Block
4
MOBY Commands
5
Technical Description
Sample Applications
6
Entry/Exit Check of an MDS
in an SLG Field
7
System Configuration
8
Commissioning Guidelines
9
Error Messages and
Trouble-Shooting
A
Short Description of the ASM
Hardware
B
Programming MOBY-ASM on
PROFIBUS-DP-V1
J31069-D0155-U001-A0-7618
Published in 02.2003
812780419.038.png 812780419.039.png 812780419.040.png 812780419.041.png 812780419.001.png 812780419.002.png 812780419.003.png 812780419.004.png 812780419.005.png 812780419.006.png 812780419.007.png 812780419.008.png 812780419.009.png 812780419.010.png 812780419.011.png 812780419.012.png
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
Danger
indicates that death, severe personal injury or substantial property damage will result if proper precautions
are not taken.
!
Warning
indicates that death, severe personal injury or substantial property damage can result if proper precau-
tions are not taken.
!
Caution
with warning triangle, indicates that minor personal injury or property damage can result if proper precau-
tions are not taken.
!
Caution
without warning triangle, indicates that property damage can result if proper precautions are not taken.
Attention
indicates that an undesired result or state may occur if the note is not adhered to.
Note
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
The device/system may only be set up and operated in conjunction with this manual.
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and sys-
tems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers which
have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed cor-
rectly, and operated and maintained as recommended.
!
Trademarks
MOBY is a registered trademark of SIEMENS AG.
Some of the other designations used in these documentsare also registered trademarks; the owner’s
rights may be violated if they are used by third parties for their own purposes.
Copyright
Siemens AG 2003 All rights reserved
The reproduction, transmission or use of this document or its
contents is not permitted without express written authority.
Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or design, are
reserved.
Siemens AG
Automation and Drives (A&D)
Systems Engineering
P.O. Box 2355, D-90713 Fuerth
Disclaimer of Liability
We have checked the contents of this manual for agreement with the
hardware and software described. Since deviations cannot be pre-
cluded entirely, we cannot guarantee full agreement. However, the
data in this manual are reviewed regularly and any necessary cor-
rections included in subsequent editions. Suggestions for improve-
ment are welcomed.
Siemens AG 2003
Technical data subject to change.
Siemens Aktiengesellschaft
Order No. J31069-D0155-U001-A0-7618
812780419.013.png 812780419.014.png 812780419.015.png 812780419.016.png 812780419.017.png 812780419.018.png 812780419.019.png 812780419.020.png 812780419.021.png 812780419.022.png 812780419.023.png 812780419.024.png 812780419.025.png 812780419.026.png 812780419.027.png 812780419.028.png 812780419.029.png 812780419.030.png 812780419.031.png
 
Table of Contents
1
Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
1.1
Basic Information about the “Filehandler”
. . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3
1.2
MDS Memory Structure
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4
1.2.1
Logical Structure of MDS Memory
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4
1.2.2
Configurable memory sizes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5
1.2.3
Check sum
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5
2
Block Specifications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
2.1
Technical Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
2.2
Configuration Overview
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3
2.3
Data Structures of the FC 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4
2.4
Number of MOBY Channels Which Can Be Connected
. . . . . . . . . . . . . . .
2-5
2.5
Addressing of the MOBY Channels
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6
3
The Parameter Data Block
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1
3.1
INPUT Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3
3.2
Command and Status Word “BEST”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-7
3.3
Other Indications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-10
4
MOBY Commands
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
4.1
Command Set
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2
4.2
Parameterizing the Commands
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-8
4.2.1
FORMAT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-8
4.2.2
CREATE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-9
4.2.3
QUEUE-WRITE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-10
4.2.4
QUEUE-READ
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-12
4.2.5
WRITE/UPDATE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-15
4.2.6
READ
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-16
4.2.7
DELETE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-17
4.2.8
ATTRIB
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-18
4.2.9
COVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-19
4.2.10
DIR
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-20
4.2.11
END
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-22
4.2.12
MDS-STATUS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-23
4.2.13
TRACE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-26
4.2.14
GET
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-27
4.2.15
NEXT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-28
4.2.16
ASM/SLG-STATUS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-29
4.2.17
SET-ANT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-30
4.2.18
MOVE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-31
4.2.19
LOAD
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-32
FC 56
J31069-D0155-U001-A0-7618
i
812780419.032.png 812780419.033.png
Table of Contents
5
Sample Applications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
5.1
Scanning the FC 56 by the User
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
5.2
Calling the FC 56 Cyclically (e.g., in OB 1)
. . . . . . . . . . . . . . . . . . . . . . . . . .
5-3
5.3
Programming of New Start and Restart
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4
5.4
Programming Module Failure
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5
5.5
Specifying the Data Structure
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7
5.6
The UDTs of FC 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11
5.7
Using the GET Command
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15
5.8
Determining the Memory Requirements on the SIMATIC
. . . . . . . . . . . . . .
5-17
6
Entry/Exit Check of an MDS in an SLG Field
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1
6.1
Definition of Terms
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2
6.2
Entry/Exit Checking Mode 0 (MDS_IO_control 0)
. . . . . . . . . . . . . . . . . . . .
6-3
6.3
Entry/Exit Checking Mode 1 (MDS_IO_control 1)
. . . . . . . . . . . . . . . . . . . .
6-4
6.4
Entry/Exit Checking Mode 4 (MDS_IO_control 4)
. . . . . . . . . . . . . . . . . . . .
6-4
6.5
Entry/Exit Checking Mode 5 (MDS_IO_control 5)
. . . . . . . . . . . . . . . . . . . .
6-5
6.6
Diagram showing possible MDS states on an SLG
. . . . . . . . . . . . . . . . . . .
6-6
7
System Configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-1
7.1
Example of a Fixed File Structure in a Manufacturing Process
. . . . . . . . .
7-1
7.2
Example of a Variable File Structure in a Production Process
. . . . . . . . . .
7-3
8
Commissioning Guidelines
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1
9
Error Messages and Trouble-Shooting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-1
9.1
General Errors
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-2
9.2
Error Classes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-2
9.3
error_code
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-3
9.4
Error Indication on the ERR-LED
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-12
A
Short Description of the ASM Hardware
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-1
A.1
ASM 475
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-2
A.2
ASM 473
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-5
A.3
ASM 452
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-8
B
Programming MOBY-ASM on PROFIBUS-DP-V1
. . . . . . . . . . . . . . . . . . . . . . . . . .
B-1
B.1
Cyclic Control Word between Master and MOBY-ASM
. . . . . . . . . . . . . . . .
B-5
B.2
Working with the ASM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-7
B.3
Command and Acknowledgment Telegrams
. . . . . . . . . . . . . . . . . . . . . . . . .
B-8
B.4
Blocking of Long Data Sequences
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-10
B.5
The Filehandler Commands – Without Multitag
. . . . . . . . . . . . . . . . . . . . . .
B-12
B.6
The Filehandler Commands – With Multitag
. . . . . . . . . . . . . . . . . . . . . . . . .
B-19
B.7
PROFIBUS Implementation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-25
B.8
Example of a PROFIBUS Trace
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-28
FC 56
J31069-D0155-U001-A0-7618
ii
812780419.034.png 812780419.035.png
Table of Contents
Figures
1-1
Interface modules for the FC 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
1-2
MDS memory
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4
2-1
Overview of configuring FC 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4
2-2
Slots on the S7-300 and analog addresses for ASM 475
. . . . . . . . . . . . . .
2-6
2-3
Example: Automatic address generation of a MOBY-ASM in
ET 200 configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-7
2-4
Parameterizing the physical address allocation in UDT 10
. . . . . . . . . . . . .
2-8
3-1
Command and status word BEST with names of variables
. . . . . . . . . . . .
3-7
5-1
Flow chart of the FC 56 scan
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
5-2
Example of several MOBY commands assigned to one channel
. . . . . . .
5-8
5-3
Example of a separate data block assigned to each MOBY channel
. . . .
5-10
8-1
Placement of the MOBY ASMs in the hardware catalog
. . . . . . . . . . . . . . .
8-1
8-2
Example of a hardware configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-2
8-3
Parameterizing the object characteristics
. . . . . . . . . . . . . . . . . . . . . . . . . . .
8-2
8-4
Editing DB 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-3
8-5
Variables for function check – VAT1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-4
A-1
Configuration for ASM 475 (centralized layout)
. . . . . . . . . . . . . . . . . . . . . .
A-2
A-2
Interfaces and indicators of the ASM 475
. . . . . . . . . . . . . . . . . . . . . . . . . . .
A-4
A-3
Maximum configuration of ASM 473 on an ET 200X with
sample addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-5
A-4
Interfaces and indicators of the ASM 473
. . . . . . . . . . . . . . . . . . . . . . . . . . .
A-7
A-5
ASM 452 configurator
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-8
A-6
Switch settings, interfaces and indicators of the ASM452
. . . . . . . . . . . . .
A-10
B-1
States of command and acknowledgment counter
. . . . . . . . . . . . . . . . . . .
B-3
B-2
Layout of the cyclic control word
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-5
B-3
Startup timing initiated by user
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-6
B-4
Startup timing by ASM initiated by power failure
. . . . . . . . . . . . . . . . . . . . .
B-6
B-5
Command processing: command by command
. . . . . . . . . . . . . . . . . . . . . .
B-7
B-6
General telegram layout
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-9
Tables
1-1
Memory sizes which can be formatted
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5
2-1
Typical runtimes of FC 56 (cycle load of AS in msec)
. . . . . . . . . . . . . . . . .
2-1
2-2
Overview of MOBY FC 56 configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3
2-3
Number of MOBY channels
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5
3-1
UDT 10 “MOBY Param”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2
3-2
INPUT-Parameter
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3
3-3
Variables in BEST
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-8
3-4
Indications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-10
4-1
UDT 50 “MOBY FH CMD”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
4-2
Command set
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2
4-3
UDT 50 “MOBY FH CMD” – FORMAT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-8
4-4
UDT 50 “MOBY FH CMD” – CREATE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-9
4-5
UDT 50 “MOBY FH CMD” – QUEUE-WRITE
. . . . . . . . . . . . . . . . . . . . . . . .
4-10
4-6
Sample UDT for QUEUE-WRITE command
. . . . . . . . . . . . . . . . . . . . . . . . .
4-11
4-7
UDT 50 “MOBY FH CMD” – QUEUE-READ
. . . . . . . . . . . . . . . . . . . . . . . . .
4-12
4-8
Sample UDT for QUEUE-READ command
. . . . . . . . . . . . . . . . . . . . . . . . . .
4-13
4-9
Sample UDT for acknowledgment of QUEUE-READ
. . . . . . . . . . . . . . . . .
4-14
4-10
UDT 50 “MOBY FH CMD” – WRITE/UPDATE
. . . . . . . . . . . . . . . . . . . . . . .
4-15
4-11
UDT 50 “MOBY FH CMD” – READ
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-16
FC 56
J31069-D0155-U001-A0-7618
iii
812780419.036.png 812780419.037.png
Zgłoś jeśli naruszono regulamin