Table of Contents MOBY I FB 250 Function Block for the ASM 400 Technical Description Overview 1 Block Specifications 2 Command Chain 3 Application Example 4 Control and Inquiry for "Data Storage MDSs in the Field" 5 Commissioning the ASM 400 with FB 250 6 The ECC Driver 7 Error searching with the ASM 400 and FB 250 8 Contents of the FB 250 Project Provided 9 Warnings 6GT2 097-3AA00-0DA2 Published in September 2002 10 Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety, as well to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows 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 precautions are not taken. Caution ! indicates that minor personal injury or property damage can result if proper precautions are not taken. Caution indicates that property damage can result if proper precautions are not taken. Note draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation. Qualified Personnel 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 systems 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 technical description, and only in connection with devices or components from other manufactorers which have been approved or recommended by Siemens. This product can only function correctly and savely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended. Trademarks SIMATIC and MOBY are registered trademarks of SIEMENS AG. Some of the other designations used in these documents are also registered trademarks; the owner's rights may be violated if they are used by third parties for their own purposes. Copyright Siemens AG 1995, 2002 All rights reserved Disclaimer of Liability 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. We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG Automation & Drives (A&D) Systems Engineering (A&D SE) P.O. Box 23 55, D-90713 Fuerth Siemens AG 2002 Technical data subject to change. Siemens Aktiengesellschaft Order No. 6GT2 097-3AA00-0DA2 FB 250 Description 6GT2097-3AA00-0DA2 Contents Page 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.4 2.5 2.6 Block Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User Interface (Parameterization) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB 250 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Instruction and Status Word "BEST" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flag Word "ANZ" (see chapter 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Address Reference List (DW 6 = ZUW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Indicator Lamps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 5 5 6 7 9 10 11 16 16 16 3 3.1 3.2 3.3 3.4 3.5 Command Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MOBY Command Construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table of Possible MOBY Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Maximum Chain Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of a Command Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 17 18 18 19 22 4 4.1 4.2 4.3 4.4 4.5 4.6 4.6.1 4.6.2 4.7 4.7.1 4.7.2 Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flow Chart: FB 250 Request by the User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Processing the MDS Data Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Initializing the MDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cyclic Call of FB 250 (e.g., in OB1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming from New Start and Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration of a Reference List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User Data, Commands and Control Data in One DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Different DBs for FBDB, ZUWDB and DATDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setup of a Dialog Transmission with ASM 400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How Is the MOBY I Dialog Set Up ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How does the User Work with MOBY I Dialog? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 25 26 28 29 30 32 32 33 35 35 37 5 Control and Inquiry for "Data Storage MDSs in the Field" . . . . . . . . . . . . . . . . . . . . . . 39 6 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.7.1 6.7.2 6.7.3 Commissioning the ASM 400 with FB 250 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Loading FB 250 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Presetting the Organization Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Up the Data Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calling FB 250 in the Application Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program processing running: No command is being processed. . . . . . . . . . . . . . . . . . . . . Command Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Command Executed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 41 41 41 41 41 41 42 42 42 42 7 The ECC Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 8 Error Searching with the ASM 400 and FB 250 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 9 Contents of the FB 250 Project Provided . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 10 Warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 6GT2080-2AA10 "MOBY Software" -1- Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 1 FB 250 Description Overview This description of the function block concerns the data transfer between the STEP-5 program and the ASM 400 interface module. The FB 250 can be installed in the following programmable logic controllers without modification: 115U/941/942/943/944/945/115F 135U-R/S/CPU928B 155U/155H FB 250 can be used equally for all MOBY systems (MOBY I/E/F/V/L/U). This is possible when the FB 250 does not use any system commands. All data storage memories can also be processed with FB 250. Essential functions of the FB 250 are: - Conditioning of the data structure from the user parameters to an ASM data structure - Complete data communication with ASM using commands and data exchange - Error handling: Repetition of commands: conditioning of errors for the user Chaining of several part commands into a complete command: - Read and write are possible with one user command. - Any number of address areas of an MDS can be processed with one command. - Control of the PLC cycle load by the user Data transfer between the FB and the MDS can be divided into three parts: - Provision of the interface card with the necessary command and the parameters or data - Transfer of the data between the interface and the data memory - Provision of the S5 with the data and parameters from the interface card An additional function block with the designation FB 252 has been added to the "MOBY Software" CD. As seen by the user, the FB 252 works with the same interface as the FB 250. The only difference between the two FBs is the addressing of the ASM 400 MOBY interface module in the SIMATIC. FB 250: P-area; Max of 32 channels or 8 interface modules FB 252: Q-area; Max of 64 channels or 16 interface modules This increases the maximum number of channels from 32 to 96. The ASM 400 can also be parameterized as a dialog station so that data can be transferred from one SLG to another. Caution: The Q-area is only available in PLCs S5-135U, S5-155U, and S5-115U with CPU 945. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 -2- 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 Program Schematic MDS Electromagnetic induction field SLG Serial interface ASM 400 VMDS (only set up for dialogue) EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEE "KAN" "ADR" "FBDB" FBDB FB 250 ZUWDB "ZUW" DATDB BEST ANZ ZUW User Program SIMATIC S5 6GT2080-2AA10 "MOBY Software" -3- Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 2 Block Specifications 2.1 Technical Data Block number: (Can be changed by the user) Block name: Library number: Block length: Blocks called: Data blocks used: Flags used: Counters used: System commands used: Call: FB 250 Description For P-Area For Q-Area FB 250 FB 252 MOBY:KET MOBY:250 E88530-B6082-B-5 E88530-B6082-B-5 895 words None FBDB through parameterization 25 data words FY 240 to 255 None None Cyclic call Typical FB 250 Run Times (PLC Cycle Load in msec) Programming ASM Waiting for MDS Fetch Result from ASM 0.89 8.55 + n*0.81 1.54 5.84 115U- 942B 0.89 8.55 + n*0.81 1.54 5.84 115U- 943B 0.3 8.55 + n*0.45 0.9 2.5 115U- 944B 0.06 0.7 + n*0.05 0.4 0.4 115U- 945 0.02 0.4 + n*0.04 0.02 0.26 135U - 922 0.9 8.1 + n*0.5 1.2 5.7 135U - 928 0.52 4.7 + n*0.37 0.7 3.2 135U - 928B 0.04 0.6 + n*0.05 0.06 0.34 155U/155H- 946/947 0.074 0.7 + n*0.05 0.10 0.43 155U/155H- 948 0.03 0.4 + n*0.04 0.05 0.23 115U- 941B 0.89 8.63 1.54 8.75 + n*0.85 115U- 942B 0.89 8.63 1.54 8.75 + n*0.85 115U- 943B 0.3 5 0.9 5 + n*0.5 115U- 944B 0.06 0.7 0.4 0.55 + n*0.05 115U- 945 0.02 0.4 0.02 0.4 + n*0.04 135U - 922 0.9 7.3 1.2 8.0 + n*0.6 135U - 928 0.52 4.5 0.7 4.8 + n*0.42 135U - 928B 0.04 0.58 0.06 0.6 + n*0.05 155U/155H- 946/947 0.074 0.7 0.10 0.66 + n*0.05 155U/155H- 948 0.03 0.4 0.05 0.4 + n*0.04 WRITE TO MDS 115U- 941B READ FROM MDS Idle Cycle PLC-CPU n = Quantity of user data to be processed (per command or part command) With command chains the values in the "programming" column and "result" column are to be added and used for each part command. Note: The data exchange times for the ASM and the data memories are described in the catalogue. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 -4- 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 2.2 User Interface (Parameterization) 2.2.1 System Overview FB 250 MOBY:250 ADR KAN TYP FBDB ANW AG Explanation of the Input and Output Parameters Parameter Name Description Kind Type Permissable Values/Characters Note ADR Peripheral address D KF 128, 144 .... 240** Only FB 250 See chapter 2.5. QADR Address in expanded I/O area D KF 0, 16, 32, ... 240 Only FB 250 KAN Channel no. D KF 1, 2, 3, 4** Starting with release -B-5 of the FB TYP Command type D KF 3, 5, 6 * FBDB Process data B ANW Availability D KF 0, 1 See chapter 5. AG PLC type D KF 0 .... 20 See table on next page. DB 1 to 255 25 DW * Earlier method of parameterization for the initialisation with 0 and 1 can still be used. ** FB parameterization after release -B-4 of the FB can still be used. 6GT2080-2AA10 "MOBY Software" -5- Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 2.2.2 FB 250 Description FB 250 Parameters ADR / QADR / KAN Physical addressing of interface module. See chapter 2.5. TYP Command type: 3 = Special commands (See chapter 3.5.) Set MDS 507/407E operation MDS initialization Switch on MOBY I dialog operation Set MOBY F/U operation 5 = Process any data storage memory ECC* driver is switched on (see chapter 7). (MOBY I only.) 6 = Read and write any data storage memory * Error Correction Code (see chapter 7). FBDB Data block for internal FB use The FBDB must be set up for every channel by the user. Length: 25 words. Starting at DW 25 free for the user: (e.g., ZUW list and/or user data) DW 4 Command or status word (BEST) DW 5 Error and flag word (ANZ) DW 6 Reference list address (ZUW) ANW Test for availability (proximity) of an MDS in the SLG area (See chapter 5.) 0 = Availability will not be checked. 1 = Availability of an MDS in the SLG field is checked and stored in BEST bit 12. AG Parameterization of the type of PLC. This value is required for an internal FB timeout times. A value that is too small may cause a timeout error. A value that is too large will put the PLC into STOP when an error occurs. PLC type Value from PLC Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 115U 941B/942B/943B 115U 115U 135U 135U 944B 945 922 928 4 5 -6- 20 1 1 135U 928B 5 6GT2080-2AA10 155U/H 155U/H 946/947 948 5 10 "MOBY Software" FB 250 Description 2.2.3 6GT2097-3AA00-0DA2 Instruction and Status Word BEST" BEST is also found in FW 254 when you exit the FB. DW 4 = BEST = FW 254* BEST is always valid and can always be accessed by the user. FY 254* 15 14 13 12 11 FY 255* 10 9 8 7 6 5 4 3 2 1 0 RESET**) Start command New start (RESET)**) In reserve RESET active/ready Command active/ready STG active; ASM Test FB 250 active In reserve Availability Battery check Error (exact error is found in ANZ) READY for next command NOTE: The BEST parameters in the cold and warm start modes are to be preset with 0004H in the respective OB (see catalogue). The following are valid for the S5-150U: - OB 20 for new start - OB 21 for manual restart - OB 22 for automatic restart * The BEST parameter is only valid in FW 254 as long as the scratchpad flag is not overwritten by the user or a second FB 250 call. ** When MOBY U is used, it may take up to 20 seconds to execute this command. The delay of the command is indicated with BEST bit 6 = 1. 6GT2080-2AA10 "MOBY Software" -7- Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Permitted Modifications of Control Bits in the BEST BEST Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 F F F F 0 0 0 F F F F F U U U F/U F/U F/U F F 0 0 0 U F F F F F F F F F/U F/U F/U F/U 0 0 0 F F/U F/U U U F/U F/U F/U F/U Set Reset Inquiry U = User F = FB 0 = Always 0 Description of the Control Bits in BEST: BIT 0 RESET Reset of a read or write command After the first commissioning and every subsequent change to the ADR, KAN, TYP, FBDB and ANW parameters, the user should initiate a RESET so that a parameter check, and construction of the command in FBDB, can be carried out new. BIT 1 Read/write start Start signal for the FB: Execution of the command in the reference list. After starting the execution of the command the bit will be reset by the FB. BIT 2 New start Set by the user after new start and after return of power.The function is the same as RESET. The bit is also accessed during the processing of the command. BIT 4 RESET active/ready Positive acknowledgment of the RESET command (BIT 0) This bit is set when a command from the ASM is processed by the STG. BIT 5 Command active/ready Positive acknowledgment of read/write (BIT 1) BIT 6 STG active ASM test When this bit is set by the FB this delays the execution of a MOBY command for a short period. This bit can be set for several reasons. a) The ASM has received a command from the STG (service and test device) and is just carrying it out. b) After switching on the SIMATIC S5 the ASM 400 carries out an extensive self-test. During this time (about 3 seconds) the module cannot be accessed. The bit is automatically reset after the self-test. The module reports with READY in BEST. c) A RESET/new start is active on the ASM (MOBY U). BIT 7 FB active The FB is active with the execution of a command. When bit 7 is set, bit 15 is reset. BIT 8 to11 In reserve BIT 12 Availability This bit is only set when the "ANW" parameter is set at "1" during the parameterization of the FB call (see chapter 5). 0 = No MDS is in the SLG field. 1 = MDS is now in the SLG field. BIT 13 BATT The MDS battery check has been triggered (only for RAM MDSs). The remaining battery capacity can only hold for a few months at room temperature. It is recommended to immediately change the battery anyway - or the MDS if it is not a battery-replaceable MDS. BIT 14 Error "ERROR" is set by the FB when a problem occurs with the reset, read or write commands. The exact cause of the error is located in data word "ANZ" (= DW 5). A RESET is required after an error. The start of a read/ write command resets the ERROR bit. BIT 15 READY - The last command (reset, read, write) has ended. - The user can start a new (reset, read, write) command. Note: READY does not need to be set to start a new RESET command. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 -8- 6GT2080-2AA10 "MOBY Software" FB 250 Description 2.2.4 6GT2097-3AA00-0DA2 Flag Word "ANZ" (see chapter 8) DW 5 = ANZ ANZ is always valid when the READY bit is set in BEST or when the READY and ERROR bit are set. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 In reserve Synchronisation error Synch (no error) 1 -> The FB is initialized. In reserve ASM ERROR Parameter error ASM error Timing error Repeat error 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 14 15 18 19 1B 1C 1D -> Error in the connection to the SLG -> Error in the MDS memory (not initialized) -> Command from ASM not interpretable -> Field disturbance in the SLG -> Too many send errors -> CRC send error -> INIT: CRC error -> INIT: MDS cannot be initialized. -> INIT: Timeout when initializing -> INIT: Write error when initializing -> Address error -> ECC mode: Data on the MDS are wrong. -> ASM unclear -> Firmware error -> Parameterization error -> RESET/new start required -> Previous command is active. -> Checksum error -> Antenna is off. -> Not enough RAM is available on the ASM. More than 1 MDS in the field. 1E -> Error when processing the function block 1F -> Running command terminated ECC-correction was executed (the data in DATDB is OK). The bit is used for internal FB purposes during command processing (READY = 0). Only for MDS 507/407E: Status of the MDS dialog battery. 1 = battery under threshold value. The bit may be 0 or 1 with other MDSs. Battery voltage of the MDS lower than required (same meaning as DW 4, bit 13) Generally the following is valid for ANZ: Setting: Resetting: Request: 6GT2080-2AA10 FB FB USER "MOBY Software" -9- Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 2.2.5 FB 250 Description Address Reference List (DW 6 = ZUW) The ZUW" parameter shows the next command to be carried out. 15 14 13 12 11 10 9 8 ZUWDB 7 6 5 4 3 2 1 0 ZUWDW Number of the ZUWDBs (1 to 255) Start address of the command in ZUWDB: 3 to 253 If ZUWDB and FBDB are identical: start address = 25 to 253 The ZUW" pointer can only be modified by the user if the FB is not processing a command (i.e., READY must be set in BEST). Generally the following is valid for ZUW : Setting: USER Request: FB Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 10 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 2.3 6GT2097-3AA00-0DA2 Data Organization FB 250 works with 3 data blocks. Name Description: FBDB: Includes the requirements of FB 250 The user must set up an FBDB with a minimum of 25 DWs for each channel module of an ASM 400. The FBDB is determined during parameterization of FB 250. (See also chapter 2.2.2 for parameters to be supplied.) ZUWDB: This data block includes the command(s) with which an MDS will be processed. Several FBDBs can work with the same commands in one ZUWDB. Minimum length of the DB for a command = 6 DATDB: Data block with user data for reading and writing Several commands in ZUWDB can refer to the same DATDB. Minimum length for a data byte = 4 Note: The first data byte from each command is left justified in the data word (DL). If several single byte commands are chained the data is still left justified. The right data word is not affected. FBDB, ZUWDB and DATDB can be combined through appropriate configuration in a data block (see chapter 4.6.1). Note: ZUWDB and DATDB in a combined data block may not be used by another FBDB. 6GT2080-2AA10 "MOBY Software" - 11 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Principal Construction of the DBs FBDB DW0 DW4 BEST See chapter 2.2.3. DW5 ANZ See chapter 2.2.4. DW6 ZUWDB . . . ZUWDW See chapter 2.2.5. . . . DW24 ZUWDB DW0 FB-internal Command See chapter 3. Length DW3 Command Length Start address on the MDS DW4 DW5 DATDB 1st command DATDW DW6 DW7 2nd command DW8 . . . . . . Data block size in bytes = 1 - 250 Start addr. Start address on the data storage unit End address of MDS ("start address + length") may not be exceeded. See chap. 4.2. DATDB: Ref. to data block in the S5 with which the command will be processed DATDW: Start of the user data in DATDB DW255 Note: The first 3 data words in ZUWDB (DW 0 to 2) are reserved for internal FB operations. DATDB DW0 FB-internal DW3 1st data byte 2nd data byte DW4 3rd data byte 4th data byte . . . . . . . .. . . . .. . DW255 Note: The first 3 data words in DATDB (DW 0 to 2) are reserved for internal FB operations. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 12 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 Branching of the FBDB, ZUWDB and DATDB Data Blocks (Example) FBDB = DB250 DW 6 ZUWDB=250 ZUWDW=25 ZUWDB=DB250 DW25 DW26 DW27 Command Length Address DATDB=250 1st command DATDW=50 Further MOBY commands DATDB=DB250 DW50 DW51 .. .. .. .. .. 6GT2080-2AA10 "MOBY Software" User data - 13 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Representation of Different Data Structures Separate Data Blocks for Function Blocks, Commands and Data FBDB1 FBDB2 FBDB3 FBDB4 DATDB1 ZUWDB DATBD2 DATBD3 Each MOBY station (channel) has its own exclusive combined data block. FBDB1 FBDB2 FBDB3 ZUWDB1 ZUWDB2 ZUWDB3 DATDB1 DATDB2 DATDB3 Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 14 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 Each SLG station is allocated to a data block (FBDB + DATDB) while the commands are located in a common ZUWDB. FBDB1 FBDB2 FBDB3 DATDB1 DATDB2 DATDB3 ZUWDB Note: FB 250 works at the same speed for every implemented data structure. It is up to the user which data structure he prefers. Example of a Non-Permissable Data Structure: FBDB1 FBDB2 FBDB3 ZUWDB DATDB 6GT2080-2AA10 "MOBY Software" - 15 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 2.4 FB 250 Description Start Up Special steps are needed to correctly start up the ASM and FB when performing a new start or restart. The FB 250 must be supplied with the "new start = 1" parameter in the new start and restart OB (see chapter 4.5). Special features of startup of high-speed SIMATIC CPUs: When MOBY is used in an S5-115U/CPU 945 or S5-155U/CPU 948, the presence check (ANW = 1) to be enabled may not be accepted by the ASM 400. Use the following programming strategy for new start and restart. Wait for READY after the RESET command is started (call FB 250). Then wait at least another 10 msec before starting FB 250 with a MOBY command. 2.5 Addressing the Module ADR and KAN parameters are used to set the physical address of the modules. One ASM 400 occupies 16 peripheral bytes in the address area between 128 and 255. The P-area or Q-area setting must be performed in the expansion device interface in the SIMATIC S5. These are the relevant allocations. ASM 400 Switch Setting FB 250 Parameterization FB 252 Parameterization Start Address of the ASM Switch S3 4321 21 0 0000 01 16 0001 32 0010 48 0011 64 0100 80 0101 96 0110 112 0111 128 1000 144 1001 144 160 1010 160 176 1011 176 192 1100 192 192 208 1101 208 208 224 1110 224 224 240 1111 240 240 * Switch S4 ADR KAN* QADR 0 16 This S4 switch it h sett ting must aly be ways used d when h the module is to be operated d iin standard mode. 32 48 Not available KAN* 1-4 (Corresponds to channel h l module 1 - 4) 64 80 96 112 128 1-4 128 (Corresponds to channel h l module 1 to 4) 144 160 176 Parameterization of KAN and ADR can still be used for older releases of the function blocks. 1 = Switch to ON Other combinations of switch 3 and ADR are not permitted ! Note: 2.6 One ASM 400 always uses 16 peripheral bytes (i.e., if not all the ASM 400 channel modules are occupied, the unused address area is still NOT available for other modules). Indicator Lamps For the explanation see the ASM 400 Hardware Description. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 16 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 3 6GT2097-3AA00-0DA2 Command Chain General Performance Notes: - One data storage operation consisting of several commands can be combined into a command with several part commands. - The user can read and write to an MDS with one command. - Any number of address areas of an MDS can be processed with a chained command. - The data transfer of a chained command can be programmed by the user and distributed over several cycles. 3.1 MOBY Command Construction Command in ZUWDB Bit: 7 Chain 6 0 5 0 4 0 3 2 Pause WR 1 RD 0 0 Command is to read. Command is to write. Change cycle after data transfer Write: Change cycle after command transfer to the ASM. No cycle change occurs when status data is received. Read: No cycle change after command transfer to the ASM. Cycle change after the take over of the result telegram with the read data 1 The next ZUWDB command follows. 0 Single MOBY command or last command in a chain of commands 6GT2080-2AA10 "MOBY Software" - 17 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 3.2 FB 250 Description Table of Possible MOBY Commands Command Code KH(hex.) Description KY(dec.) 02 2 Read or last read command in a command chain 04 4 Write or last write command in a command chain 0A 10 Read with cycle change or last read command in a command chain with cycle change 0C 12 Write with cycle change or last write command in a command chain with cycle change 82 130 Read; a further ZUWDB command follows. 84 132 Write; a further ZUWDB command follows. 8A 138 Read; a further command follows; change cycle after fetching the results 8C 140 Write; a further command follows; change cycle after outputting the command Other command codes will be rejected by the FB with a parameterization error. 3.3 Maximum Chain Parameters The chaining of commands is limited through: a) Max. number of commands in a ZUWDB b) The available RAM on the ASM c) Cycle time to a) Since the first 3 data words are reserved in ZUWDB, up to 253 data words are available to the user for his commands. This means that a maximum of 84 commands (= 253/3) are available. to b) 12 Kbytes of RAM on the ASM are available to the user. A byte quantity of "data length + 8" is needed on the ASM for each chained part command. Error "1D" is reported if the RAM area on the ASM is too small. Example: 8453 bytes (i.e., 8189+33x8) are reserved on the ASM for read-accessing an entire 8-K MDS with a chained command. 33 commands each are stored in ZUWDB for read and write-accesses to the MDS. to c) In order not to exceed a given cycle load by the FB 250 the user can program one or several cycle changes in one chained command (see table in chapter 2.1). Note: When reading: A programmed cycle change will only be carried out in the results phase. When writing: The programmed cycle change will only be carried out during the command transfer phase. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 18 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 3.4 6GT2097-3AA00-0DA2 Example of a Command Chain ZUWDB: w/o = without 82 80 XX XX 1st part command Read 128 bytes w/o cycle change 82 80 XX XX 2nd part command Read 128 bytes w/o cycle change 8A 80 XX XX 3rd part command Read 128 bytes with cycle change 82 80 XX XX 4th part command Read 128 bytes w/o cycle change 84 80 XX XX 5th part command Write 128 bytes w/o cycle change 8C 80 XX XX 6th part command Write 128 bytes with cycle change 84 80 XX XX 7th part command Write 128 bytes w/o cycle change 04 80 XX XX 8th part command Write 128 bytes w/o cycle change The processing of this command in the PLC is shown on the next page. 6GT2080-2AA10 "MOBY Software" - 19 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Processing the Chaining of MOBY Commands in the PLC EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE 1 cycle Time axis Command transfer ' ' *) ' Result of the 4 read commands Status of the 4 write commands EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE RD: 09/02 (4)J31069-D0120-U001-A2-7618 Cycle change 0,074 Idle time of the FB 0.074 Start of a MOBY command User sets Bit 1 in BEST 0.7 Command transfer of 1st,2nd,3rd,4th Part com. 5th,6th Part com. 0.7 0.7 4 read commands 2 write commands with 128 data bytes each 0.7 0.7+128x0.05 0.7+128x0.05 17.00 Command transfer of 7th,8th Part command 2 write commands with 128 data bytes each 0.7+128x0.05 0.7+128x0.05 14.20 0.1 Wait for data 0.1 ' EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE EEE Subject to change without notice! Cycle Loading in PLC e.g. 155U (see chapter 2.1) Total time Time for each per cycle Part command 0.7+128x0.05 Fetch result for 1st,2nd,3rd part command 3 read commands with 128 data bytes each 0.7+128x0.05 0.7+128x0.05 21.30 Result for 4th part command Read command with 128 data bytes 5th,6th,7th,8th part command Acknowledgements the 4 write commands 0.7+128x0.05 0.43 0.43 0.43 0.43 8.82 READY in BEST is set. 0.07 Idle time (until the start of the next command) - 20 - msec 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 KEY: EEEE * Cycle change in PLC Run time of FB 250 in PLC (cycle load by the FB) Run time of the other user program in the PLC The actual distribution of the cycles in the result phase can differ from the programmed distribution. The ASM processes the part commands in order in which they were transferred. The ASM provides the first partial result as soon as the first part command is processed. The PLC fetches the queued results from the ASM during the next cycle but never later than the programmed cycle change. This means: The user programmed maximum cycle load is never exceeded. Note: The processing of single part commands by the ASM to MDS occurs exactly in the sequence in which the part commands are programmed in the ZUWDB. 6GT2080-2AA10 "MOBY Software" - 21 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 3.5 FB 250 Description Special Commands Special commands are used to parameterize new MDS types correctly. A special command is called when FB 250 is called with the following parameterization. TYP = 3 FB 250 must be switched back to normal operation (typ = 5, 6) after a special command has been processed. It is absolutely necessary that a reset be performed after the switchover. Processing of a special command is divided into several stages. Parameterize FB 250 call with TYP=3. Start RESET command. Start special command(s). Parameterize FB 250 call with TYP=5, 6. Start RESET command. FB 205 is ready for normal commands. Data Organization for Special Commands (See chapter 2.3.) ZUWDB DW0 For internal FB use DW3 Code Length DW4 DW5 04 = Data transfer to ASM 02 = Reserved (data transfer from ASM) 1st command Subcode DATDB Code: DATDW DW6 2nd command DW7 DW8 DATDB DW0 For internal FB use DW3 1st data byte 2nd data byte DW4 3rd data byte 4th data byte Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 22 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 The following special commands are available. Command Code Length Subcode Data (DATDB) MDS 507/407E operation 04 01 0000 1st data byte: (tABTAST*) Bit: 7 6 5 4 3 2 1 0 Time value: 00-3F Time factor: 00 01 10 11 MDS or VMDS initialization Normal 04 04 0001 With ECC 04 04 0002 1st 2nd Data The MDS is written with this value. Switch on MOBY I dialog operation on the ASM 400 * 04 01 0003 1st data byte: 3rd = = = = 0.01 0.1 1 10 sec sec sec sec 4th data byte End address +1 00 00 40 00 00 80 00 08 00 00 20 00 00 40 00 00 80 00 00 02 F0 00 00 10 00 00 C0 62 bytes 128 bytes 2 Kbytes (MOBY I/U) 8 Kbytes 16 Kbytes 32 Kbytes (MOBY I/U) MOBY E MOBY F MDS F2xx MOBY F MDS F4xx Initialize VMDS (virtual mobile data carrier) 01 = Switch on dialog operation A 16-Kbyte VMDS (virtual mobile data memory) is set up on the ASM. The VMDS is used for communication memory during dialog operation. When dialog is switched on, the VMDS is automatically cleared to 00. Dialog operation must be switched on again each time power is turned on. When the SIMATIC is switched off, the data on the VMDS are lost. Note: Dialog operation may only be switched on on one side of the communicating ASMs. The other side operates in normal mode. ECC operation is not possible with the VMDS. Dialog operation can only be switched off by switching off the SIMATIC. ANW (presence) can be switched on or off. If on, the ANW bit in DW 5 indicates the presence of another SLG. See the MDS 507/407E description for a detailed description and handling of t ABTAST. 6GT2080-2AA10 "MOBY Software" - 23 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 Command Set MOBY driver 1 Code FB 250 Description Length Subcode Data (DATDB) 04 01 0004 1st data byte: 04 0C 0004 Set MOBY U: 3 1st 2nd 3rd 4th 5th 6th 7th 8th/9th10th11th 12th data byte 95 00 00 = MOBY I default 91 = MOBY F MDS F1xx 92 = MOBY F MDS F4xx 93 = MOBY F MDS F2xx 05 00 0001 00 field_ON_time_ 00 hex = without prox. switches 01 hex to FF hex = 1 to 255 sec. switch on time for the SLG field field_ON_control_ Prox. switch mode 00 hex = without prox. switches 01 hex = field_ON_time_ switches the field off 02 hex = 1st prox. switch turns on the field; 2nd prox. switch turns off the field. distance_limiting_ Range limitation 05; 0A; 0F; 14; 19; 1E; 23 hex = 0.5; 1.0; 1.5; 2.0; 2.5; 3.0; 3.5 m scanning_time_; Standby time for the MDS 00 hex = No standby operation 01 hex to C8 hex = 7 msec to 1400 msec standby time Baudrate to SLG: 01 = 19.2 Kbaud; 03 = 57.6 Kbaud FFT command for MOBY F 2 04 Antenna on/off 4 04 01 0005 1st data byte: 01 = Perform FFT (EMC interference suppression filters are recalculated by the firmware of the SLG) 04 0006 1st 2nd 3rd 03 0A 00 4th data byte Mode 01 = Turn on antenna 02 = Standby; turn off antenna 1 2 3 4 The presence check must be disabled before switching to MOBY F. The FFT command can only be used when the presence check is disabled. It may take up to 20 seconds to execute this command. This command only applies to MOBY U. Remember: When the FB 250 call changes from TYP = 3 to TYP = 5, 6, a RESET is performed on the ASM/SLG and the antenna is turned on again automatically. This is the reason the FB 250 call must remain TYP = 3 until the antenna is to be turned on again. Caution: MDS 507/407E processing: An MDS 507/407E must be switched on with command code 04, subcode 0000 before it can be processed. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 24 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 4 Application Example 4.1 Flow Chart: FB 250 Request by the User New start: Set "BEST" BIT 2 OB20, OB21, OB22 (for 155U/H) Cyclical request Set "BEST" BIT 1 Start command (only when ready = 1) READY = 1 ? Y N Error = 1 STG 4F active ? Y N Y Start active = 1 ? Y N ? N Status report on printer BATT = 1 ? Y N Report on printer "Change battery" Error handling "ANZ" evaluation Command OK Process data RESET or new start was carried out. Command not correctly ended Possible timeout monitoring by the user RESET when timeout Set "BEST" BIT 1 Start next command if required 6GT2080-2AA10 "MOBY Software" - 25 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 4.2 FB 250 Description Processing the MDS Data Storage Mobile MDSs with various memories are available for the user. The following types are available: - 62 (42)* Byte RAM (e.g., MDS 115) - 128 (112)* Byte EEPROM (e.g., MDS 213E) - 2 (1.7)* Kbyte RAM (e.g., MDS 302) - 8 (7)* Kbyte EEPROM (e.g., MDS 413E) - 16 Kbyte RAM (VMDS = virtual MDS for dialog) - 32 (28)* Kbyte RAM (e.g., MDS 505) - 752 Byte EEPROM (MOBY E) - 40 Bit Fixed code (MOBY F MDS 1xx) - 16 Byte EEPROM (MOBY F MDS 2xx) - 192 Byte EEPROM (MOBY F MDS 4xx) - 2 KByte RAM (MOBY U MDS U313) 16 Byte OTP - 32 KByte RAM (MOBY U MDS U524) 16 Byte OTP * Net capacity with ECC mode The data memory addressing occurs linearly from the start address to the final address. The ASM automatically recognizes the memory capacity on the MDS. If the final address is exceeded the user receives an error message. The following table shows the address areas of the individual MDS models. Adress KH Normal KY With ECC Normal KF With ECC Normal With ECC MOBY I: 62 Byte MDS (RAM) Start address End address 0000 003D 0000 0029 00.00 00.61 0.0 0.41 +0 + 61 +0 + 41 +0 + 127 +0 + 111 +0 + 2044 +0 + 1777 +0 + 8188 +0 + 7153 +0 + 16383 - - MOBY I: 128 Byte MDS (EEPROM) Start address End address 0000 007F 0000 006F 00.00 00.127 00.00 0.111 MOBY I: 2 KByte MDS (RAM) Start address End address 0000 07FC 0000 06F1 00.00 07.252 00.00 06.241 MOBY I: 8 KByte MDS (EEPROM/FRAM) Start address End address 0000 1FFC 0000 1BF1 00.00 31.252 00.00 27.241 MOBY I: 16 KByte VMDS for dialog Start address End address 0000 3FFF Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - - 00.00 63.255 - 26 - - - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 Adress KH Normal KY With ECC Normal KF With ECC Normal With ECC MOBY I/V: 32 KByte MDS (RAM) Start address End address 0000 7FFC 0000 6FF1 00.00 127.252 00.00 111.241 +0 + 32764 +0 + 28657 MOBY E: 752 Byte MDS with EEPROM Start address 0000 0000 End address 02EF 0291 Read ID no. (can only be read completely)* Start address 1FF0 - Length 4 - 0.0 2.239 0.0 2.145 +0 + 751 +0 + 657 31.240 0.4 - - 8176 4 - - - - +0 +4 - - 0.16 0.31 - - + 16 + 31 - - 0.0 0.4 - - +0 +4 - - MOBY F: MDS F1xx (5 Byte) Start address End address 0000 0004 - - 0.0 0.4 MOBY F: MDS F2xx (16 Byte) Start address 0010 - End address 001F - Read ID no. (can only be read completely) Start address 0000 - Length 4 - MOBY F: MDS F4xx (192 Byte) Start address 0040 - End address 00FF - Read ID no. (can only be read completely) Start address 0000 - Length 4 - 0.64 0.255 - - + 64 + 255 - - 0.0 0.4 - - +0 +4 - - MOBY U: 2 KByte data memory *** Start address 0000 - End address 07FF - Read OTP memory (can only be written once)** Start address FFF0 - Length 10 - 0.0 7.255 - - +0 + 2047 - - 255.240 0.16 - - - 16 + 16 - - MOBY U: 32 KByte data memory *** Start address 0000 - End address 7FFF - Read OTP memory (can only be written once)** Start address FFF0 - Length 10 - 0.0 127.255 - - +0 + 32767 - - 255.240 0.16 - - - 16 + 16 - - * Applies in the data presentation in DATDB: DLx = MSB, DRx+1 = LSB ** The OTP memory of MOBY U can only be processed in one piece. This means that the start address must always be FFF0 and the length must always be 10 hex. *** The ID no. of a MOBY U-MDS cannot be read with FB 250. 6GT2080-2AA10 "MOBY Software" - 27 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 4.3 FB 250 Description Initializing the MDS Function: The total MDS memory is written with "00." Required: - When a new MDS which has never been write accessed is used - After battery exchange or failure - When an MDS is to be used in ECC mode The "MDS RAM error in memory" (04hex) information is deleted.The initialization cannot be executed with a "normal" write command to the MDS since a different protocol is required. The initialization command is not required during normal operation. The initialization is set by a different type of command during parameterization to avoid incorrect operator inputs. Parameter Example: ***** E X A M P L E: Call of FB 250 and Parameterization for Initialization ******* 0000 0002 0004 0006 0008 000A 000C 000E 0010 0012 0014 0016 0018 001A 001C 001E 0020 0022 0024 0026 0028 002A NAME ADR KAN TYP FBDB ANW AG :A DB250 :UN -HILF :S D 4.0 :S -HILF : : :JU FB250 :MOBY:KET : KF+128 : KF+1 : KF+3 : DB250 : KF+0 : KF+1 : : :U D 4.15 :UN D 4.14 :U -START :S D 4.1 : :BE FBDB call If the pointer is not yet set... ...then a reset... ...must be executed Module address 3 = MDS initialization* If command = READY and no error and no start input then start the initialization Time Duration for Initialization Once the MDS Is in the SLG Field: Type = 1 (Without ECC) [s] 62 128 2K 8K 32K 752 192 2K 32K Byte Byte Byte Byte Byte Byte Byte Byte Byte MDS MDS MDS MDS MDS MDS MDS MDS MDS (RAM) (EEPROM) (RAM) (EEPROM) (RAM/FRAM) (MOBY E) (MOBY F) (MOBY U) (MOBY U) : : : : : : : : : Approx. 0.1 Approx. 6 Approx. 0.3 Approx. 25 Approx. 2 Approx. 0.8 Approx. 2.2 Approx. 1 Approx. 1.5 Type = 2 (With ECC) [s] 0.2 12 4 50 53 - - - - An error message occurs if the MDS cannot be initialized. * Earlier method of parameterization for the initialization with type 0 and 1 can still be used. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 28 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 4.4 6GT2097-3AA00-0DA2 Cyclic Call of FB 250 (e.g., in OB1) OB1 SPRM-A SEGMENT 1 ********** **** E X A M P L E: CALL OF FB If the flag is set to 0.0, the command will without errors. ERROR ALREADY PROCESSED. 0000 :A DB250 0002 : 0004 : 0006 : 0008 : 000A : 000C : 000E : 0010 : 0012 : 0014 : 0016 : 0018 : 001A : 001C :JU FB250 001E NAME :MOBY:KET 0020 ADR : KF+128 0022 KAN : KF+1 0024 TYP : KF+6 0026 FBDB : DB250 0028 ANW : KF+0 002A AG : KF+5 002C : 002E : 0030 :L DW4 0032 :T FW254 0034 : 0036 : 0038 : 003A :UN F 254.7 003C :BEB 003E : 0040 :U F 254.6 0042 :BEB 0044 : 0046 : 0048 :UN F 0.0 004A :BEB 004C : 004E :S F 255.1 0050 :L FW254 0052 :T DW4 0054 :BE 6GT2080-2AA10 "MOBY Software" LEN=48 ABS Page 1 250 and PARAMETERIZATION ************* always be started again if it was processed Call relevant FBDB RESET: Start: read/write DW 4.1 Report: Ready Ready DW 4.0 DW 4.15 DW 4.14 DW 5 Error type Command list address DB 250, DW 25 Command: DL 25 2 = Read, 4 = Write Quantity: DR 25 DW 6 Module address (128 - 248) Channel 1 (1 OR 2) Read/write the MDS FBDB = 250 (DW 0 - DW 24) 0 = Without availability check 1 = S5 115U-944-7UB11 (for example) BEST is also stored in FW 254 These two commands can .. ..be left out if the user ..has not altered FW 254 since ..the MOBY FB call Ready ? --> NO: Wait for MDS Inquiry whether error occurred No automatic start of the command occurs when there is an error Start a new MOBY command? --> NO Start the new MOBY command ..and put the start bit ..back in the FBDB - 29 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 4.5 FB 250 Description Programming from New Start and Restart OB20 SPRM-A Segment 1 Cold start OB LEN=10 ABS Page 1 ========================================================================= Example: Cold Start Operation Block ========================================================================= This is not necessary for PLC type S5-115U! 0000 0002 0006 0008 :A DB250 :L KH0004 :T DW4 :BE Call FBDB "New start" set bit .. in BEST OB21 SPRM-A Segment 1 Manual warm start LEN=10 ABS Page 1 ========================================================================= EXAMPLE: OPERATION BLOCK FOR MANUAL RESTART ========================================================================= REQUIRED FOR ALL PLC TYPES !! 0000 0002 0006 0008 :A DB250 :L KH0004 :T DW4 :BE Select FBDB Set new start bit .. in BEST OB22 SPRM-A Segment 1 Automatic restart LEN=10 ABS Page 1 ========================================================================= EXAMPLE: OPERATION BLOCK AFTER AUTOMATIC WARM START ========================================================================= This block is run after "power on" and is valid for all PLC types 0000 0002 0006 0008 :A DB250 :L KH0004 :T DW4 :BE Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 Select FBDB Set "new start" bit in BEST - 30 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 Example of programming for S5-115U/CPU 945 or S5-115U/CPU 948 with ANW=1 OB20/21/22 0000 0002 0004 0006 0008 000A 000C 000E :A :L :T : :UN :S : :BE DB250 KH0004 DW4 FBDB Prepare RESET in command and status word F220.0 F220.0 Auxiliary flag 1 for startup of high-speed SIMATIC CPUs OB1 Segment 1 0000 0002 0004 NAME 0006 0008 000A 000C 000E 0010 0012 0014 0016 0018 001A 001C 001E 0020 0022 0024 :U F220.0 :JC FB10 :MOBYRE :U F220.0 :BEB : :U F220.1 :L KT001.0 :SI T1 :UN F220.0 := F220.1 : :U F220.1 :U T1 :BEB : : :A DB250 :JU FB250 Auxiliary flag 1 for RESET call for RESET function If RESET not concluded, stop here If auxiliary flag 2 is set, start time for 10 milliseconds If auxiliary flag 1 is reset for RESET, set auxiliary flag 2 Wait till startup timer has expired Normal MOBY processing with presence of MDS PLC type for SIMATIC S5-115U/CPU 945 or SIMATIC S5-115/135U/CPU 948 FB10 0000 0002 0004 0006 0008 000A 000C 000E 0010 0012 0014 0016 0018 001A 001C 001E 0020 0022 NAME ADR KAN TYP FBDB ANW AG :JU FB250 :MOBY:KET : KF+128 : KF+1 : KF+6 : DB250 : KF+1 : KF+5 :UN M254.7 :BEB : :U M254.6 :BEB : :R M220.0 : : :BE 6GT2080-2AA10 "MOBY Software" With presence of MDS PLC type for SIMATIC S5 Modul address (128 - 248) channel 1 (1 or 2) Read / write MDS FBDB = 250 (DW0 - DW24) 0 = No presence check 1 = Example: S5 115U-944-7UB11 If RESET concluded, reset auxiliary flag 1 - 31 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description 4.6 Configuration of a Reference List 4.6.1 User Data, Commands and Control Data in One DB DB250 SPRM-A ABS Page 1 ========================================================================== FBDB, ZUWDB and DATDB are combined in one data block. ========================================================================== DW4 BEST: RESET BIT IS SET so that the parameterization is checked on the first run through DW5 ANZ: Error evaluation; need not be preset DW6 ZUW: Pointer to reference DB : Here: FBDB = ZUWDB; START ADDR. of the reference list = 25 DW25..27 1st command in ZUWDB: WRITE 64 BYTES From ADDR. 0000 on the MDS DW28..30 2nd command in ZUWDB: READ 6 BYTES (ADDR. 0000 to 0005) from the MDS DW31..36 3rd command in ZUWDB: DW31-33 1st part command read 6 BYTES (ADR13-18) : DW34-36 2nd part command write 1 BYTE (ADR50) on DW37..45 4th command in ZUWDB: DW37-39 1st part command write 10 BYTES on MDS DW40-42 2nd part command write 10 BYTES on MDS DW43-45 3rd part command write 10 BYTES on MDS The fourth command is a write command of 30 bytes from address the MDS. It is made up of 3 part commands in order to keep the load on the PLC below 1/3 of the normal duration. DW50 DW51 : DW83 from MDS the MDS 0 on cycle 1st + 2nd DATA BYTE IN DATDB 3rd + 4th DATA BYTE IN DATDB LAST DATA BYTE IN DATDB 0: KH= 0000; 1: KH= 0000; 2: KH= 0000; 3: KH= 0000; 4: KM= 0000000000000001; 5: KM= 0000000000000000; 6: KY= 250,025; 7: KH= 0000; : 24: KH= 0000; 25: KY= 004,064; 26: KF= +00000; 27: KY= 250,050; 28: KY= 002,006; 29: KF= +00000; 30: KY= 250,050; 31: KH= 8206; 32: KF= +00013; 33: KY= 250,115; 34: KH= 0401; 35: KF= +00050; 36: KY= 250,050; 37: KH= 8C0A; 38: KF= +000000; 39: KY= 250,050; 40: KH= 8C0A; 41: KF= +000010; 42: KY= 250,055; 43: KH= 040A; 44: KF= +000020; 45: KY= 250,060; : 50: KS= MOBY I - The System From 77: KS= a Single Supplier 123 Subject to change without notice! RD: 09/02 LEN=88 (4)J31069-D0120-U001-A2-7618 - 32 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 4.6.2 6GT2097-3AA00-0DA2 Different DBs for FBDB, ZUWDB and DATDB DB210 SPRM-A ABS Page 1 ========================================================================= EXAMPLE: FBDB (ZUWDB AND DATDB ARE SEPARATE DATA BLOCKS) ========================================================================= DW4 BEST: DW5 DW6 ANZ: ZUW: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 6GT2080-2AA10 LEN=30 RESET BIT IS SET so that the parameterization will be checked on the first run through Does not need to be preset by the user Pointer on ZUWDB (here DB 220 and data word DW 3) KH= KH= KH= KH= KM= KM= KY= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= KH= 0000; 0000; 0000; 0000; 0000000000000001; 0000000000000000; 220,003; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; 0000; "MOBY Software" - 33 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 DB220 FB 250 Description SPRM-A ABS Page 1 ========================================================================= EXAMPLE: ZUWDB (Reference Data Block) ========================================================================= DW0..2 To be kept free for internal FB use DW3..5 1st reference list command: Write 64 bytes from address 0 on the MDS DW6..8 2nd reference list command: Read 10 bytes from address 15 from MDS DW9..14 3rd reference list command: 1st part command Write 12 bytes from address 50 on MDS 2nd part command Read 1 byte from address 0 on MDS 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: DB230 KH= KH= KH= KY= KY= KY= KY= KY= KY= KH= KF= KY= KH= KF= KY= LEN=20 0000; 0000; 0000; 004,064; 000,000; 230,010; 002,010; 000,015; 230,030; 840C; +00050; 230,010; 0201; +00000; 230,003; SPRM-A ABS Page 1 ========================================================================= EXAMPLE: DATDB (Data Block with User Data) ========================================================================= DW0..2 To be kept free for internal FB use DW3 1st + 2nd DATA WORD : The first byte is always in the left data byte (= DL) : DW42 LAST DATA BYTE 0: 1: 2: 3: 9: 10: 37: KH= KH= KH= KS= C = KS= KS= Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 LEN=48 0000; 0000; 0000; MOBY I - The System From a Single Supplier 123 - 34 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 4.7 6GT2097-3AA00-0DA2 Setup of a Dialog Transmission with ASM 400 The dialog function of MOBY I can be used to transfer data from one interface module to another interface module. To activate dialog operation on the ASM 400, the user must send a special command to the ASM (cf. chapter 3.5), and then switch to normal operation again. Note: An activated dialog operation can only be reset by switching off the module. 4.7.1 How Is the MOBY I Dialog Set Up ? The following figure shows the setup of dialog communication for MOBY I. Station_D Station_N MOBYIinterface in dialog operation (e.g., ASM 400 in SIMATIC S5) MOBYIinterface in normal operation e.g., ASM 400 in SIMATIC S5) AACCCCCCCCC CCCCCCCCC ACCCCCCCCC ACCCCCCCCC ACCCCCCCCC EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE VMDS Read or write the VMDS with FB 250 SLG_N Read/write/ Initialize the VMDS with FB 250 SLG_D Station_N reads/writes the VMDS over clearance in air. 6GT2080-2AA10 "MOBY Software" - 35 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Term Explanation Station_N Normal ASM of MOBY I (ASM 400, ASM 410, ASM 420, ASM 440, ASM 470, SIM4x) The user operates station_N as usual (i.e., as if he/she wanted to exchange data with an MDS). SLG_N An SLG (SLG 41, SLG 42, SLG 43, SLG 44) which is connected to station_N Station_D Dialog ASM of MOBY I (ASM 400, ASM 410, ASM 470) When turned on, station_D is parameterized as dialog ASM with a user command. A 16-Kbyte memory area is defined in station_D during parameter assignment. This memory area is called VMDS (i.e., virtual MDS). It is used as communication memory. Processing of station_D by the user is identical to the program in station_N. Station_D uses the same tools as station_N (e.g., FB 47). SLG_D An SLG (SLG 41, SLG 42, SLG 43, SLG 44) which is connected to station_D VMDS Virtual mobile data memory. The VMDS is a 16-Kbyte area of memory on station_D. This VMDS is defined and cleared when station_D is turned on and parameterized. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 36 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 4.7.2 6GT2097-3AA00-0DA2 How does the User Work with MOBY I Dialog? Example The user program in station_D issues a write command with the data to be transferred. The command is executed immediately. The data are now located in the VMDS. This concludes work in station_D. The user program in station_N issues a read command. SLG_N and SLG_D do not yet have to be positioned opposite each other in the transmission window. Reading of the desired data starts as soon as SLG_D moves into the transmission window of SLG_N. The data are read from the VMDS and transferred to the user on station_N. Communication time during dialog The same times as described in the MOBY catalog apply for configuration of the communication time. tk = 16 msec + 0,8 ms * nBytes Transmission window during dialog The transmission window from SLG_D to SLG_N has a polarization direction (i.e., SLG_D and SLG_N must be directed toward each other at a certain angle). The following figure shows the transmission window during dialog. SLG_D Sg Sa Direction of movement of SLG_D to SLG_N SLG_N Side view L View of top B Enlarged view of the transmission win dow when SLG_D and SLG_N are opera ting with minimum working distance Sa = Working distance Sg = Limit distance L = Length of transmission window B = Width of transmission window 6GT2080-2AA10 "MOBY Software" Positioning of SLG_D Transmission window - 37 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Field data during dialog operation The following table shows the field data during dialog operation. Dimensions are specified in mm. all dimensions in mm SLG 41SLG 41 SLG 42SLG 42 SLG 43SLG 43 SLG 44SLG 44 Length of the transmission window (L) 60 230 600 3000 Width of the transmission window (B) 30 80 280 1300 0 to 15 0 to 70 20 to 250 200 to 1000 30 130 450 2500 > 200 > 800 > 2000 > 10000 Working distance (Sa) Limit distance (Sg) Distance from SLG to SLG (D) Dialog with ECC ECC operation must always be deactivated during dialog operation. New start of an ASM 400 as station_D When dialog operation is activated, the ASM 400 checks to determine whether the SLG is connected correctly and supplied with power. If not, the red LED on the channel module continuously indicates a triple flashing pattern. FB 250 does not give the user an error message. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 38 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 5 6GT2097-3AA00-0DA2 Control and Inquiry for "Data Storage MDSs in the Field" The "ANW" parameter can be set to 2 operating modes of the SLG using FB 250. ANW = 0 The magnetic field of the SLG is only switched on when a valid command is started. After recognizing the MDS and the completion of a command, the SLG is turned off again. In this way projects can be implemented in which the specified distance between SLGs can be passed below as desired. The prerequisite is that the SLGs that are close to each other are addressed in multiplexer mode. This can be necessary when large amounts of data need to be dynamically transferred. You can avoid stopping the transport conveyor by dividing up the data and distributing it over several consecutive SLGs. ANW = 1 After a new start or restart of the PLC, or after a new start or RESET command of the FB 250, the SLG is switched on and remains active until the PLC is switched off. The ASM scans continually to see if an MDS is in the field of the SLG. When the ASM recognizes an MDS, the user receives "availability bit" = 1 (= BEST bit 12) with the next FB call. Similarly, BEST bit = 0 when the MDS leaves the SLG field. If the MDS stays exactly on the edge of the SLG field, the system ensures that there is no constant switching of this bit. The processor on the ASM handles this hysteresis function. Read/write commands can be sent completely transparently to FB 250 for the "availability" check. Similarly, the "availability bit" retains its unrestricted validity after the start of a command. Note: When working with ANW = 1, it is absolutely essential that the distance between two SLGs specified in the configuration guidelines be adhered to. Remark: The FB 250 cycle load will not be altered by the setting of the "ANW" parameter. The values in the table in chapter 2.1 are applicable in every case. 6GT2080-2AA10 "MOBY Software" - 39 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Switching "Availability" Monitoring On and Off This occurs with the switching on and off of the PLC. By calling the FB 250 with different parameters and carrying out a RESET command, the "availability" monitor can also be switched. EXAMPLE: The availability control can be controlled with the input bit I 0.0. NAME ADR KAN TYP FBDB ANW AG NAME ADR KAN TYP FBDB ANW AG U I 0.0 U F 0.0 O( UN I 0.0 UN F 0.0 ) BEB A DB250 S -RESET U I 0.0 = F 0.0 JC FB250 :MOBY:KET : : : : : : UN I 0.0 JC FB250 : MOBY:KET : : : : : : Should the availability ... ...monitor be ... ...switched ? --> No ; no switching --> Yes ; select FBDB ... and give a reset command KF+128 KF+1 KF+6 DB250 KF+1 KF+5 KF+128 KF+1 KF+6 DB250 KF+0 KF+5 Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 (Pointer for availability switch) --> I 0.0 = 1: carry out reset, ... ... in this way the availability... ... monitor is switched on (ANW = 1) --> I 0.0 = 0: carry out reset, ... ... in this way the availability... ... monitor is switched off (ANW = 0) - 40 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 6 Commissioning the ASM 400 with FB 250 6.1 Module Ports - Set free address in the SIMATIC S5 on the S3 address switch (see chapter 2.5). - Plug in the module. Note: 6.2 Plugging in or extracting the module or a channel module may only occur when the power has been switched off. Loading FB 250 - Load the FB into the user program. 6.3 Presetting the Organization Blocks - Preset the "BEST" parameters in the OB for new start and restart as follows: For restart 0004hex For new start 0004hex Tip: The corresponding OBs are to be found in the relevant SIMATIC catalogue (see also chapter 4.5). Example: Note: 6.4 S5-155U OB20 for new start OB21 and OB22 for restart The "BEST" must be preset in every FBDB if several SLGs are to be used with one PLC. Setting Up the Data Block - Set up data block for FBDB parameter (minimum length: 25 DW). A separate FBDB must be set up for each channel. - Set up data block for "ZUW" parameter (see chapter 2.2.5). - Set up the DATDB specified in the ZUWDB. 6.5 Calling FB 250 in the Application Program - The FB 250 must always be called absolutely. - The parameters - "ADR," "KAN," "TYP," "FBDB" and "ANW" are to be established (see parameterization in chapter 2.2). 6.6 Program Processing - Call the user program (e.g., in OB1, cyclic call). 6GT2080-2AA10 "MOBY Software" - 41 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 6.7 FB 250 Description Function Monitoring With the help of the "BEST" and "ANZ" (= DW4 and DW5 in FBDB), a function monitor can be carried out. 6.7.1 Program processing running: No command is being processed. "BEST": 10000000 00010000 "BEST": 10000000 00100000 "ANZ": 00000000 00000100 or RESET was last processed. Read or write command was last processed. READY (New command is possible.) Synchro: (general communication possible) A reset command is required if the above parameter states are not kept. If both parameters still have other values, continue with the error description. 6.7.2 Command Input "BEST": 00000000 00000010 (with Control VAR on the PG) and: "BEST": 00000000 10100000 "ANZ" : 00100000 00000100 Command in ZUWDB to be processed (read/write) Command (read or write) is active. FB is running. Synchro (general communication possible) (Reserved) The states of these two parameters are retained until an MDS enters the field of the SLG and the command is correctly processed with the MDS. 6.7.3 Command Executed "BEST": 10000000 00100000 "ANZ" : 00000000 00000100 Read/write finished No error with the command execution READY Synchro The "BEST" and "ANZ" values have the same states for read and write. After carrying out the commands both parameters go back to their basic state (6.7.1) (and a read or write ready message). If an error is detected and one of the parameters deviates from the above figure, continue with the error description. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 42 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 7 6GT2097-3AA00-0DA2 The ECC Driver The ECC driver (Error Correction Code) can be started using an option in the ASM 400 firmware. The operating mode is switched on with the "typ" parameter during parameterization. The ECC driver can only be used by MOBY I. Application: The ECC driver provides extra security for the correct data being on the MDS. For EEPROM MDSs, only a write frequency of 10,000 operations is guaranteed by the manufacturer. Using the ECC driver provides the same data security right up to the actual end of the chip's life. The ECC driver can also be used for security reasons with RAM MDSs for instance where extreme disturbance fields can affect communication. Call Up: The programmer must only consider the correct "TYP" parameter when installing the system. TYP = 3 Initialize the MDS with ECC (subcode 0002) TYP = 5 Write and read the MDS with ECC All other parameters such as, for example, - - - Construction of the MDS data structure Start address and length in the command Construction of ZUWDB or DATDB do not need to be altered. Chapters 1 to 6 of this description also apply when the ECC driver is switched on. Function: The ECC driver divides the MDS memory into 16-byte blocks. 14 bytes are for user information and 2 bytes for ECC information. With every access to the MDS at least one block is read or written to (even when the programmer has only programmed 1 byte in ZUWDB). Therefore, the access time is lengthened to the MDS data (see the table in the catalog). When an ECC MDS is read without the ECC driver (e.g., with "TYP" = 6 or with the STG), the ECC bytes can be distinguished from among the user data. When an ECC MDS is overwritten without the ECC driver, the MDS's data structure is destroyed. The MDS (or the destroyed data block) can no longer be read with the ECC driver. Data Correction: If one bit of data in the MDS's memory is lost at some time (e.g., EEPROM MDS which has been write accessed very frequently), the ECC driver is able to reconstruct the lost bit. The user is guaranteed to get his correct data back. The user can use a status bit in the indication word (ANZ Bit 13) to request and evaluate the corrected data (e.g., to decide whether the MDS should be replaced soon). 6GT2080-2AA10 "MOBY Software" - 43 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Example: Data structure of a 62-byte MDS. (The figure below is for explanatory purposes only. The programmer or user is not aware of this process and does not need to take it into consideration.) MDS Address from User's Viewpoint 0 1 Meaning Address on MDS 0 1 14 bytes of user data 13 13 14 15 14 15 16 17 27 29 30 31 28 29 32 33 41 45 46 47 1st block ECC ECC 14 bytes of user data 2nd block ECC ECC 14 bytes of user data 3rd block ECC ECC 48 An incomplete block at the end of the MDS memory is not available for user data. 61 Please Note: - The access times on the MDS are lengthened since less data can be processed in dynamic mode. - The net capacity of the MDS is smaller (see chapter 4.2). - The result can be delayed by up to one second when data correction takes place. - A "normal" MDS must be initialized with the ECC driver switched on (e.g., with the STG) before being commissioned. - During dialog mode, the VMDS cannot operate with ECC. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 44 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 8 6GT2097-3AA00-0DA2 Error Searching with the ASM 400 and FB 250 Error: The program does not run after new start or restart. Cause: -> The organization block for new start and restart was not preset according to the relevant FB description. -> The synchro bit in ANZ (DW 5) has been reset. Error : Cause: The PLC goes into STOP status after the MOBY blocks are loaded. The parameterized FBDB is not available or is too short. - Error: Exact error analysis in the ISTACK output of the programming unit The PLC goes into STOP status after starting or carrying out a command. Cause: - ZUWDB or DATDB is not available in the PLC. - The accessed data word in ZUWDB or DATDB is not available (ZUWDB or DATDB are set up too small). After loading the FBDB, no reset was carried out. The ZUW parameter (= DW6 in FBDB) was not supplied. Too much data was transferred between the ASM and the FB with a chained command so that the maximum cycle time of the PLC was exceeded. (The ISTACK of the PLC indicates "ZYK" as the cause.) Remedy: Program a chained command with a cycle change (see chapter 3.2). The user program has changed the data in the FBDB (particularly DW 0/1). - - - - If FB 250 does not work correctly, further errors can be analysed by checking the "ANZ" parameter. "ANZ" contains the following contents when no command is active. "ANZ" 00000000 00000100 1 = Synchronization error 0 = The FB is not operating (output RESET). 1 = Parameterization error 1 = ASM error 1 = Timing error 1 = Repeat error ASM status byte The left byte in the "ANZ" parameter contains the ASM status. Evaluation with the bit pattern is described on pages 40 and 41. 6GT2080-2AA10 "MOBY Software" - 45 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 Bit 1: FB 250 Description = "1": Synchronization error Cause: - - Bit 2: The FB 250 receives a result for a command that is not in the ZUWDB (not at this location). Possibly the pointer (ZUW) to ZUWDB was altered while the command was active. EMC conditions caused the ASM to process another command than the one programmed by the user. Check the entire SIMATIC system. Check grounding concept. = "1": FB 250 is synchronized (SYNCH). General communications possibility with an ASM 400 channel module. This bit is set after a positive check of the FB parameterization. This happens with the first RESET right after initial loading of the programs and data blocks. If the RESET command does not work this bit is not set or reset. Cause: Bit 4: ASM 400 cannot be addressed by the FB. - Wrong address set on the ASM 400 - ASM 400 defective The RESET should always be carried out after a reset synchro bit. = "1": Parameterization error Cause: Bit 5: - - - - - The "ADR" parameter does not contain the values specified in chapter 2.5. The "KAN" parameter is specified incorrectly (permissible values: 1 or 2). The "TYP" parameter was specified incorrectly (permissible values: 0, 1, 3, 5, 6). The "ANW" parameter is not "0" or "1". The command in ZUWDB is not allowed. = "1": ASM error Cause: Bit 6: - The exact ASM error is located in bits 8 to 15 of ANZ. If bits 8 to 15 = 0: - The FB did not get an acknowledgment in time from the ASM after transfer of a command. - After start of a command, the user did not call the FB 250 within 4 seconds (no cyclic call of the FB). - The user has modified data in the FBDB (DW 0 to DW 24) (particularly DW 0/1). = "1": Time error Cause: Loop counter monitor in FB 250 was triggered. - The command data could not wholly or in part be transferred to the ASM 400. - The ASM 400 cannot be accessed by the FB. Possibly the "ADR" parameter does not correlate with switch S3 on the ASM 400 (see chapter 2.5). - A write command contains length = 0. - The PLC parameter is set wrong (see chapter 2.2.2). - The user has modified data in the FBDB (particularly DW 0/1). --> ASM 400 hardware, addresses, parameters and user program should be checked. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 46 - 6GT2080-2AA10 "MOBY Software" FB 250 Description Bit 7: Cause: 6GT2097-3AA00-0DA2 = "1": Repeat error The command to the ASM 400 was repeated. - Error in BEST = 0: The command was concluded correctly after a repeated command (no error) - Error in BEST = 1: Communication between ASM and FB 250 is interrupted. Despite repetition of the command the command could not be correctly executed. A complete hardware check is required if the repetition bit is set sporadically. Special attention should be paid to the grounding concept. Bit 13: = "1": ECC correction was performed. Bit 14: = "1": Dialog battery (of MDS 507/407E) under threshold value Bit 15: = "1": RAM battery under threshold value 6GT2080-2AA10 "MOBY Software" - 47 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description ASM-Status: Meaning, Causes and Remedies (Bits 8 to 12) XXX00000 (00) No error, standard value when all is OK XXX00011 (03) Error in connection to SLG. The SLG does not answer. -> Cable between SLG and ASM wired wrong or broken -> 24 V supply voltage is not connected or switched off. -> Fuse on the ASM 400 is blown. -> Hardware defective: channel module or SLG -> Another SLG is in the vicinity and is switched active. XXX00100 (04) Error in the MDS's memory The MDS has never been written to or due to voltage failure the memory has been lost (not possible with a 128-byte EEPROM MDS). -> Replace MDS (if the battery bit is set). -> Initialize the MDS with the STG. -> Initialize the MDS with FB 250 via the SIMATIC S5 (see chapter 4.3). XXX00101 (05) Unknown command The FB has given an uninterpretable command to the ASM 400. -> The FBDB was overwritten by the user. -> Parameterization of parameter "TYP" is not 0, 1, 3, 5 or 6. -> The MDS reported an address error. The MDS is defective. MOBY F: -> Read/write area has password protection. -> FFT command with presence check -> Operating mode does not match command (MOBY I with FFT command). -> Switch setting 4 (init) with read/write command (ASM 410) XXX00110 (06) Field disturbance - SLG The SLG received disturbing impulses from the environment. -> External disturbance: The field of interference can be located with the "inductive field indicator" of the STG. -> The distance between two SLGs is too small and does not meet configuration guidelines. -> The connecting cable to the SLG is disturbed, is too long or does not meet specifications. XXX00111 (07) Too many send errors The MDS could not correctly receive the command or write-data from the ASM after several attempts. -> The MDS is right on the edge of the transfer window. -> The data transfer to the MDS is affected by a large external disturbance. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 48 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 XXX01000 (08) CRC send error - The receiving monitor has recognized an error during sending. This can only happen when the X20 jumper is inserted on the channel module. -> Cause same as for error XXX00110 - The MDS reports CRC errors very frequently. -> The MDS is located at the edge of the SLG. -> The MDS and/or the SLG have/has a hardware defect. XXX01001 (09) Only during initialization: CRC error during receipt of acknowledgment from MDS -> Cause same as for error XXX00110 MOBY F: -> wrong MDS type with special commands (type 3) XXX01010 (0A) Only during initialization: MDS cannot carry out the INIT command. -> Defective MDS XXX01011 (0B) Only during initialization: Timeout during initialization -> The MDS is right on the edge of the transfer window. -> The MDS uses too much power (defective). -> Only for MDS 507/407E: MDS 507/407E operation was not switched on with the special command (see chapter 3.5). XXX01100 (0C) Memory of the MDS cannot be write accessed. -> MDS memory is defective. -> EEPROM MDS: Write accessed too often and has reached end of life XXX01101 (0D) Address error The address area of the MDS was exceeded. -> The start address or the data length was set wrong in ZUWDB. -> Wrong type of MDS -> An incorrect end address was parameterized in DATDB for the INIT command. XXX01110 (0E) ECC error The data could not be read by the MDS. -> Data lost on the MDS (MDS defective) -> The MDS was not initialized with the ECC driver. -> Initialize MDS. -> EEPROM MDS is at end of its life and the data are lost. -> Replace MDS. -> The MDS was moved out of the field while being write-accessed. -> The MDS is not positioned correctly. 6GT2080-2AA10 "MOBY Software" - 49 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description XXX01111 (0F) ASM unclear ANZ contains the value 0F04, and bit 4 is set in BEST. -> The channel module has received a hardware RESET. -> EMC interference on the SLG or the SLG cable caused a hardware RESET to be executed on the channel module. -> Check surroundings (e.g., frequency converter, clock-pulsed drives, and so on). -> Check cable routing. The SLG cable must be installed in a cable duct separate from the power cables. MOBY F: Driver error -> Internal error -> FFT error with MDS F1xx in the field XXX10100 (14) MOBY U: Firmware error XXX10101 (15) MOBY U: Parameterization error XXX11000 (18) MOBY U: An error has occurred which must be acknowledged by a RESET. XXX11001 (19) Previous command is active. The user has sent the ASM a new command although the last command is still active. -> Active command can only be interrupted with RESET. -> The READY bit must = 1 before the start of a new command. -> A ZUWDB or DATDB combined with an FBDB has been called by another FBDB. -> Two FB 250 calls were parameterized with the same "ADR" and "KAN" parameters. -> Two FB 250 calls work with the same FBDB. XXX11010 (1A) Wrong MDS type (Reported by the RESET command if processed by the ANW monitor and the parameter type is wrong) XXX11011 (1B) MOBY F: Checksum error -> CRC check in data telegram not okay -> Data distortion -> Interface defective XXX11100 (1C) MOBY U: Antenna is off. Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 - 50 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 6GT2097-3AA00-0DA2 XXX11101 (1D) Too little RAM on the ASM available -> Divide chained MOBY command into several commands. MOBY U: There is more than 1 MDS in the field of the SLG. XXX11110 (1E) Error in the processing of the function block -> The data in an FBDB are incorrect. Execute a RESET command. -> Parameterization error. The "TYP" parameter is not 1 or 6. -> Parameterization error: The command is not set up correctly (e.g., length = 0). -> ASM hardware defective. The channel module receives the wrong data during RESET. XXX11111 (1F) MOBY U: Running command terminated by RESET/new start Pure Hardware Errors If the ASM is not working correctly and there is no error to analyse - the following points should be checked. - Power supply (especially if the power supply also supplies an expansion rack) 5 V under load 24 V under load - Wiring for ground See catalogue. Check cabling. (See installation guidelines catalogue.) Otherwise the SIMATIC S5 wiring guidelines apply. - Shielding Apply on both sides. - Cable (See MOBY manual for configuration, installation and service.) Use correct cable to the SLG. Check the cable length (see cable configuration). - Cable installation SLG and ASM plugs correct? Are distribution sockets built into the connection? - Site Metalfree rooms are required (see installation guidelines in the catalogue). Maintain working distances (see technical data in catalogue). Maintain minimum distances MDS <--> MDS SLG <--> SLG (See technical data in catalogue.) Is MDS guidance mechanism within the specified data transfer window? 6GT2080-2AA10 "MOBY Software" - 51 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 9 FB 250 Description Contents of the FB 250 Project Provided The project is located on the "Software MOBY" CD. LIST OF BLOCKS Block Type Number DB DB DB DB DV DV DV DV FB FB OB OB OB OB Symbol 210 220 230 250 210 220 230 250 250 252 1 20 21 22 OBDO.022 OBDO.021 OBDO.020 DBDO.220 DBDO.230 DBDO.250 DBDO.210 READ_ME OK OK OK OK Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 Length 30 20 48 88 16 24 16 60 895 895 47 10 10 10 290 233 199 746 566 1986 501 826 Library Number E88530-B6082-B-5 E88530-B6082-B-5 1 20 21 22 - 52 - 6GT2080-2AA10 "MOBY Software" FB 250 Description 10 6GT2097-3AA00-0DA2 Warnings English ! Deutsch ! Warning Warnung Hazardous voltages are present in this equipment during operation. Beim Betrieb elektrischer Gerate stehen zwangslaufig bestimmte Teile dieser Gerate unter gefahrlicher Spannung. To ensure safe operation of the equipment, maintenance shall only be performed by qualified personnel in accordance with the instructions in the MOBY catalog1 and technical description. Failure to observe these instructions can result in death, severe personal injury or substantial damage to property. Sicherer Betrieb der Gerate setzt voraus, dass diese von qualifiziertem Personal sachgema unter Beachtung der im MOBY-Katalog1 und der technischen Beschreibung enthaltenen Hinweise eingesetzt werden. Bei Nichtbeachtung konnen Tod, schwere Korperverletzung oder erheblicher Sachschaden die Folge sein. The following instructions and those on all product labels must be followed when carrying out any maintenance work. Beachten Sie daher auch bei Instandhaltungsmanahmen an diesem Gerat alle hier und auf dem Produkt selbst aufgefuhrten Hinweise. Always disconnect and earth the equipment before starting any maintenance. Use only spare parts authorized by the manufacturer. The servicing intervals as well as the instructions for repair and replacement shall be duly observed. A lithium battery is contained in mobile data memories with RAM. The following instructions must be observed: To avoid the risk of fire, explosion and severe burns, the battery should not be recharged, dismantled, exposed to heat over 100 degrees Celsius, ignited, or brought into contact with water. The special instructions must be followed when using heat-resistant data storage media. 1 Should you not be in possession of the MOBY catalog, it can be obtained through your local Siemens office. 6GT2080-2AA10 "MOBY Software" Vor Beginn jeglicher Arbeiten ist das Gerat vom Netz zu trennen und zu erden. Es durfen nur vom Hersteller zugelassene Ersatzteile verwendet werden. Die vorgeschriebenen Wartungsintervalle sowie die Anweisungen fur Reparatur und Austausch sind unbedingt einzuhalten. Bei einem mobilen Datenspeicher mit RAM ist eine Lithiumbatterie integriert, hierzu sind folgende Hinweise zu beachten: Vermeiden Sie das Risiko von Feuer, Explosionen und schweren Verbrennungen. Die Batterie darf nicht nachgeladen, auseinandergebaut, uber 100 Celsius erwarmt, entzundet oder ihr Inhalt mit Wasser in Beruhrung gebracht werden. Beim hitzefesten Datentrager sind die besonderen Hinweise zu berucksichtigen. 1 Sollten Sie nicht im Besitz des MOBY-Katalogs sein, so kann er uber jede ortliche SIEMENS-Niederlassung bestellt werden. - 53 - Subject to change without notice! (4)J31069-D0120-U001-A2-7618 RD: 09/02 6GT2097-3AA00-0DA2 FB 250 Description Francais ! Italiano ! Attention Pericolo Le fonctionnement d'un equipement electrique implique necessairement la Durante il funzionamento di apparecchi elettrici, determinate parti di tali presence de tensions dangereuses sur certaines de ses parties. apparecchi si trovano inevitabilmente sotto tensione pericolosa. L'exploitation sure de cet equipement implique qu'il soit mis en oeuvre de facon adequate par des personnes qualifiees, en respectant les consignes de securite figurant au catalogue MOBY1 et aux descriptions techniques. Per un funzionamento sicuro di questi apparecchi e necessario che essi vengano adoperati, nel modo opportuno, solo da personale qualificato, che osservi le indicazioni contenute nel catalogo1 per gli apparecchi Le non-respect des consignes de securite peut conduire a la mort, a des MOBY e nella descrizione tecnica. lesions corporelles graves ou a un dommage materiel important. In caso di non osservanza si possono verificare la morte, gravi lesioni alle Ne proceder a l'entretien que dans le plus grand respect des regles de secu- persone o notevoli vanni alle cose. rite enoncees ici ou figurant sur le produit. Per questo motivo e necessario che le avvertenze riportate qui e sul prodotto stesso vengano rispettate anche nel caso di misure di manutenzione degli apparecchi. Avant toute intervention, mettre l'appareil hors tension et a la terre. N'utiliser que des pieces de rechange autorisees. Respecter la periodicite d'entretien et les instructions de reparation et de remplacement. Les memoires embarquees (RAM) sont equipees d'une pile au lithium. Ne pas exposer la pile au feu, danger d'explosion et de lesions graves. La pile ne doit pas etre rechargee, ouverte exposee a des temperatures superieures a 100 C ou exposee au feu. Son contenu ne doit pas entrer en contact avec de l'eau. Possono essere utilizzati solo pezzi di ricambio prodotti dal costruttore. E'assolutamente necessario rispettare i tempi di manutenzione previsti e le indicazioni riguardanti il ricambio e la riparazione. In una memoria dati mobile dotata di RAM e integrata una batteria al litio; in questo caso e necessario osservare le seguenti indicazioni: evitare il pericolo di incendio, di esplosioni e di gravi ustioni. E'vietato ricaricare, smontare, riscaldare oltre i 100 C o incendiare la batteria, oppure mettere il suo contenuto a contatto con acqua. En ce qui concerne les supports de donnees resistants a la chaleur, respecter les consignes specifiques. 1 Si vous ne disposez pas ou du catalogue MOBY, ce peuvent etre commandes aupres de votre agence SIEMENS. Nel caso di un supporto dati resistente al calore e necessario osservare le indicazioni speciali al riguardo. 1 Se non doveste essere in possesso del catalogo MOBY, potete ordinarlo presso qualsiasi filiale SIEMENS di zona. Espanol ! Prima di iniziare qualsiasi lavoro e necessario staccare l'apparecchio dalla rete ed effettuare una messa a terra. Svensk ! Precaucion Varning Durante el funcionamiento de los equipos electricos hay partes de los mismos que se encuentran forzosamente bajo tension peligrosa. Vid drift av elektrisk utrustning ligger det alltid en farlig spanning pa vissa delar av utrustningen. Un funcionamiento seguro de los equipos presupone que han sido instalados correctamente por personal calificado observando las indicaciones contenidas en el Catalogo1 de los equipos MOBY y la Descripcion tecnica. Saker drift av utrustningen forutsatter att den utfors av kvalificerad personal med uppmarksamhet pa anvisningarna i MOBY-katalogen 1 samt de anvisningarsom ges i den tekniska beskrivningen. La no observacion de dichas indicaciones puede provocar la muerte, lesiones corporales graves o danos materiales considerables. Por este motivo es preciso observar tambien durante las operaciones de mantenimiento y reparacion en dicho equipo todas las indicaciones que figuran aqui y en el producto. Om dessa anvisningar ej beaktas kan foljden bli dodsfall, svar kroppskada eller avsevarda materielskador. Uppmarksamma vid underhallsarbete ocksa anvisningar som ges har och pa sjalva produkten. Antes de comenzar cualquier trabajo es preciso seccionar de la red el equipo y ponerlo a tierra. Solo deben utilizarse repuestos homologados por el fabricante. Es imprescindible observar los intervalos de mantenimiento especificados asi como las instrucciones de reparacion y reemplazo. Las memorias de datos moviles con RAM tienen integrada una bateria de litio; al respecto es preciso observar las indicaciones siguientes: Subject to change without notice! RD: 09/02 (4)J31069-D0120-U001-A2-7618 Bara reservdelar som godkants av tillverkaren far anvandas. lakttag alltid foreskrivna underhallsintervall samt de anvisningar som givits rorande reparation och utbyte. Det mobila dataminnet med RAM innehaller et litiumbatteri. For detta galler foljande anvisningar: Undvik risk for oppen laga, explosioner och forbranning. Batteriet far inte efterladdas, tas isar, varmas upp over 100 C eller tandas pa., och dess innehall far ej komma i beroring med vatten. Evite riesgos de fuego, explosiones y quemaduras graves. La bateria no debe ser recargada, desmontada, calentada a mas de 100 grados centigrados, inflamada: su contenido no debera ponerse en contacto con agua. En los soportes de datos con proteccion termica es preciso observar las indicaciones particulares respectivas. 1 Si no dispone del catalogo MOBY, estos pueden pedirse a traves de cualquier sucursal local de SIEMENS. Fore allt arbete skall utrustningen skiljas fran natet och jordas. For varmebestandiga datamedier galler speciella anvisningar, som maste beaktas. 1 Om Ni inte har ett exemplar av MOBY-katalogen sa kan den bestallas fran narmaste SIEMENS-kontor. - 54 - 6GT2080-2AA10 "MOBY Software"