background image

Programming MOBY-ASM on PROFIBUS-DP-V1

B-29

FC 56   

J31069-D0155-U001-A0-7618

Startup of an ASM 452 and RESET sequence on 1st channel

68 0b 0b 68 03 02 5d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 80 00 80 00 00 12

68 0b 0b 68 03 02 7d 80 00 80 00 00 12

68 0b 0b 68 02 03 08 80 00 80 00 00 12

68 0b 0b 68 03 02 5d 80 00 80 00 00 12

68 0b 0b 68 02 03 08 88 00 88 00 00 12

68 0b 0b 68 03 02 7d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 88 00 88 00 00 12

68 0b 0b 68 03 02 5d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 08 00 08 00 00 12

68 0f 0f 68 83 82 5c 33 36 5f 04 68 13 00 00 00 00 58 49 ...

68 05 05 68 83 82 5c 33 36 00 16

68 09 09 68 82 83 08 36 33 5f 04 68 06 00 16

68 0b 0b 68 03 02 7d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 10 00 08 00 00 12

68 0b 0b 68 03 02 7d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 30 00 08 00 00 12

68 0b 0b 68 03 02 7d 00 00 00 00 00 12

68 0b 0b 68 02 03 08 31 00 08 00 00 12

68 09 09 68 83 82 5c 33 36 5e 04 68 06 00 16

E5

68 05 05 68 83 82 5c 33 36 00 16

68 0f 0f 68 82 83 08 36 33 5e 04 68 10 00 00 00 00 58 00 ...

RESET and read command on channel 1 of a MOBY-ASM
(Only the non-cyclic telegrams are recorded.)

68 0f 0f 68 83 82 7c 33 36 5f 04 65 13 00 00 00 00 58 49 ...

68 05 05 68 83 82 7c 33 36 00 16

68 09 09 68 82 83 08 36 33 5f 04 65 06 00 16

68 09 09 68 83 82 5c 33 36 5e 04 65 06 00 16

68 05 05 68 83 82 5c 33 36 00 16

68 0f 0f 68 82 83 08 36 33 5e 04 65 10

68 0f 0f 68 83 82 7c 33 36 5f 04 6f 19 00 00 00 00 52 49 ...

68 05 05 68 83 82 7c 33 36 00 16

68 09 09 68 82 83 08 36 33 5f 04 6f 06 00 16

68 09 09 68 83 82 7c 33 36 5e 04 6f 12 00 16

68 05 05 68 83 82 7c 33 36 00 16

68 1b 1b 68 82 83 08 36 33 5e 04 6f 1A 00 00 00 00 52 00 ...

Startup of ASM

FC sets the startup bit.

ASM sets the command counter to one.

FC resets the startup bit.

RESET telegram to 1st channel

PROFIBUS confirmation of the RESET

Command counter for 1st channel is
incremented to 2.

Acknowledgment counter for 1st channel
is incremented to one.

Optional: Presence is set.

Request of FC for a non-cyclic telegram

Return acknowledgment telegram of the
RESET to the FC

RESET command

Acknowledgment that RESET is being

processed

Request for an acknowledgment from

ASM

RESET acknowledgment

Read command

Acknowledgment that read is in progress

Request for an acknowledgment from

ASM

Acknowledgment for read with the MDS

data

ASM also resets the startup bit.

Содержание MOBY FC 56

Страница 1: ...Applications 5 Entry Exit Check of an MDS in an SLG Field 6 System Configuration 7 Commissioning Guidelines 8 Error Messages and Trouble Shooting 9 Short Description of the ASM Hardware A Programming MOBY ASM on PROFIBUS DP V1 B Published in 02 2003 J31069 D0155 U001 A0 7618 FC 56 Technical Description MOBY ...

Страница 2: ... 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 thei...

Страница 3: ...onnected 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...

Страница 4: ...l 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 ...

Страница 5: ...M 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 proce...

Страница 6: ... FH CMD SET ANT 4 30 4 27 UDT 50 MOBY FH CMD MOVE 4 31 4 28 UDT 50 MOBY FH CMD LOAD 4 32 5 1 Overview table of the UDTs 5 11 5 2 UDT 110 MOBY SLG STATUS 5 12 5 3 UDT 120 MOBY SLG status diag 1 5 13 5 4 UDT 130 MOBY SLG status diag 2 5 13 5 5 UDT 140 MOBY SLG status diag 3 5 14 5 6 UDT 170 MOBY FH STATUS 5 14 6 1 Entry exit checking of an MDS 6 1 9 1 Error classes of the FC 56 9 2 9 2 Error message...

Страница 7: ...in the rack of an ET 200M or ET 200X The ET 200M ET 200X is used on an S7 300 or S7 400 S Since the interface module is a self contained PROFIBUS slave it is linked with the integrated PROFIBUS connection to a SIMATIC S7 300 or S7 400 These configurations can be mixed Different interface modules can also be connected Filehandler The FC 56 uses the filehandler in ASM SLG This offers you the advanta...

Страница 8: ...est edition of this description PROFIBUS configuration A GSD file on the Software MOBY product 6GT2 080 2AA10 is included for the interface modules which can be directly connected to PROFIBUS Technically the FC 56 uses the PROFIBUS DP V1 protocol Important control data are cyclically sent in a data word Actual MOBY data are transmitted in non cyclic telegrams Non SIMATIC applications Applications ...

Страница 9: ...e ASM provides the user in terface A USART module on the ASM produces the serial data stream for the SLG Floppy Gerät The floppy drive converts the data impulses arriving from the PC into a write string for the read write head or vice versa The floppy disk must be po sitioned very exactly over the read write head as this generates only very small magnetic fields A PC controls the floppy drive and ...

Страница 10: ...umber etc The FAT File Allocation Table points to all the blocks belonging to a file The user data area is divided into blocks The number of blocks and the block length de pends on the type of MDS SYSTEM AREA BLOCK INDEX TABLE FAT The directory contains the names of all ex isting files with their corresponding para meters The number of directory entries possible depends on the type of MDS Figure 1...

Страница 11: ...105 90 16 16 05H 85H 8 189 7 154 1 32 32 7 456 6 464 233 202 32 32 06H 86H 32 765 28 658 1 64 64 31 488 27 520 246 215 128 128 1 with ECC operation MOBY I 1 2 3 Check sum To minimise the time it takes the SLG to process an MDS a check sum 2 bytes long is maintained in the system area of the MDS Use of the check sum mechanism is essential in dynamic read and write operations see section 7 1 Each ti...

Страница 12: ...Introduction 1 6 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 13: ...d AR1 AR2 Call Cyclic Table 2 1 Typical runtimes of FC 56 cycle load of AS in msec S7 CPU Idle Pass ASM Centrally in S7 300 ASM Distributed on PROFIBUS Read MDS Write MDS Read MDS Write MDS 315 2 DP 1 9 3 7 n 0 023 3 6 n 0 022 3 4 3 6 318 2 DP 0 13 1 n 0 01 1 3 n 0 007 0 4 0 45 416 2 DP 0 1 0 35 0 38 n Amount in bytes of processed user data per read or write command When a command processes more t...

Страница 14: ... values for filehandler mode in the formula for data throughput Transmission of the data to the MDS and transmission of the data between ASM and FC 56 take place in parallel Usually no further time must be added for data transmission between ASM and FC 56 so that the time tk calculated above represents the total duration of the command However commands may require more time under the following con...

Страница 15: ...s pointer in the parameter Params_DB Params_ADDR Params_ADDR INT 0 300 600 Address pointer in the parameter data block to the start of a UDT 10 These values are examples when only type UDT 10 data structures are used These values change when UDT 10 is followed by the MOBY command UDT 50 Params_DB and Params_ADDR make up a pointer to a data structure This data structure is defined by calling UDT 10...

Страница 16: ...l FC 56 Params_DB Params_ADDR Call 1st SLG Call 2nd SLG Call 3rd SLG Call 4th SLG Figure 2 1 Overview of configuring FC 56 Each call of the FC 56 points to a separate parameter data block Params_DB Params_ADDR which is defined by a UDT 10 UDT 10 contains two variables command_DB_number and command_DB_address These variables point to the MOBY command which is to be executed with the MDS The MOBY co...

Страница 17: ...CP 443 5 Ext Max no of ASMs Max no of SLGs channels Max no of ASMs Max no of SLGs channels Max no of ASMs Max no of SLGs channels ASM 475 central 1 32 64 32 64 ASM 475 distributed via ET 200M 2 64 x 7 896 123 x 7 1722 123 x 7 1722 ASM 473 distributed via ET 200X 3 64 x 7 448 123 x 7 861 123 x 7 861 ASM 452 64 64 123 123 123 123 1 The central layout can contain up to 3 expansion racks A DP connecti...

Страница 18: ...ction line 368 Connection line 368 Connection line 368 IM 1 2 3 4 5 6 7 8 9 10 11 Module rack 3 3 4 5 6 7 8 9 10 11 3 4 5 6 7 8 9 10 11 Slot number 3 4 5 6 7 8 9 10 11 Slot number Slot number Slot number Module rack 2 Module rack 1 Module rack 0 IM IM 256 272 288 304 320 336 352 368 Analog address 384 400 416 432 448 464 480 496 Analog address 512 528 544 560 576 592 608 624 Analog address 640 656...

Страница 19: ...ace over PROFIBUS any addresses can be selected in HW Config for the MOBY ASM HW Config specifies a free address as default Automatic generation of the next free address Input address and output address must be identical Figure 2 3 Example Automatic address generation of a MOBY ASM in ET 200 configuration ...

Страница 20: ...n the data view of the MOBY DB Physical address allocation as specified in HW Config Figure 2 4 Parameterizing the physical address allocation in UDT 10 In addition to the address ASM_address the MOBY channel ASM_channel must also be assigned uniquely When an ASM is used with several channels ASM 475 a separate UDT 10 must be defined for each channel The entry ASM_address remains the same The ASM_...

Страница 21: ...ned during the entire runtime Remember that an init_run must be performed before changes in an INPUT parameter can take effect See chap 5 3 S Control bits The user starts his her commands with these boolean variables S Indications The indications show the user the progress of a command This makes error analysis easy S Internal FC variables These variables can be disregarded by the user They may no...

Страница 22: ...MDS_present BOOL FALSE MDS is present 18 1 ANZ_DIR_change BOOL FALSE MDS with new directory 18 2 ANZ_ECC BOOL FALSE Error correction done 18 3 ANZ_Read_0 BOOL FALSE Warning Read file has length of 0 18 4 LR_bat BOOL FALSE battery of the MDS 507 18 5 battery_low BOOL FALSE battery check has indicated low voltage 18 6 error BOOL FALSE error during command processing has appeared 18 7 ready BOOL FALS...

Страница 23: ...s within command_DB The next MDS command starts at this address Command_DB_number and command_DB_address make up a data pointer to the next command see chapter 2 3 MDS_IO_control MDS_IO_control can be used to control the various incoming outgoing checks of the MDS see section 6 Value 0 1 4 5 MDS Control Next mode NEXT command must be programmed by the user Continuous MDS control With time out An M...

Страница 24: ... 1 Priority R Read W Write D Delete Cf section 4 1 MOBY_mode Setting of the MOBY operating mode 1 Reserved for setting the mode with switches or GSD parameterization Various interfaces without switches automatically select MOBY I mode when MOBY_mode 0 2 The UID parameter in the command can be disregarded 3 The UID parameter in the command must be provided with the correct MDS num ber see section 4...

Страница 25: ... of the following conditions exist S The MDS uses several commands S Command execution must be concluded within a minimum time 00 hex no standby time Default 01 hex 7 msecs standby time 02 hex 14 mecs standby time C8 hex 1400 mecs standby time Remember Scanning_time affects the life of the battery The longer scanning_time is the shorter the life of the battery For precise calculations see the MOBY...

Страница 26: ...ex One or two proximity switches The proximity switches have a logical OR link During the time a proximity switch is activated the field is turned on 02 hex One or two proximity switches The 1st proximity switch turns on the field while the 2nd proximity switch turns off the field When two proximity switches exist and a field_ON_time is parameterized the field is automatically turned off if the 2n...

Страница 27: ... the variables and their relative addresses in UDT 10 reserved02 command_start reserved03 ASM_failure FC56_active ANZ_next ANZ_reset ANZ_MDS_present ANZ_Read_0 ANZ_ECC LR_bat battery_low error ready DBB 18 DBB 19 ANZ_DIR_change 15 14 13 12 11 10 9 8 7 6 5 ÉÉ ÉÉ 4 ÉÉÉ ÉÉÉ 3 2 ÉÉÉ ÉÉÉ 1 0 init_run Relative address in UDT 10 Must be set by the user Essential that user scan Optional scanning bits ÉÉ F...

Страница 28: ... user the PLC assumes the STOP state when an ASM fails FC56_active FC 56 is processing a command This variable is set when the command starts command_start true and remains active until S FC 56 has received the last acknowledgment from ASM S The Cancel bit was set S An error message was reported from the ASM ANZ_next This bit is set when the last command executed was a NEXT command ANZ_reset This ...

Страница 29: ... MDS 507 It indicates that a dialog battery of the MDS 507 is dead With all other MDSs this bit can assume any state battery_low Only with MOBY I with RAM MDS The support battery of the RAM MDS is below the threshold value Although at room temperature it will continue functioning with its remaining capacity for several months we recommend changing the MDS s battery immediately or when its battery ...

Страница 30: ...er a GET command is executed see chapters 4 and 5 7 ANZ_MDS_lost Warning The MDS left the field while being processed MOBY I only number_MDS MOBY U The number of MDSs presently located in the transmission window is indi cated If more than 15 MDSs are located in the field number_MDS is indicated as 0F error_code This error was reported by ASM or FC 56 Some of the ASM errors are also output on the E...

Страница 31: ...a to be processed 1 default 20 0 address_MDS WORD W 16 0 Start address 22 0 DAT_DB_number INT 58 Number of the data block 24 0 DAT_DB_address INT 0 Start address in data block 26 0 QUEUE_DB_number INT 0 Number of the data block only for QUEUE READ 28 0 QUEUE_DB_address INT 0 Start address in the data block only for QUEUE READ 30 0 END_STRUCT The current value of the variables can be adjusted with ...

Страница 32: ...B Delete file from MDS Assign attribute to file D Y D W D I U I U COVER Protect MDS structure C W D I U DIR MDS STATUS END Read MDS directory Request MDS status Conclude communication with MDS G F K R W D R W D R W D I U I U U TRACE Absolute read of MDS T R W D I U MOVE LOAD Place system data DIR FAT check sum in data block Transfer system data to ASM M O R W D R W D I I GET SET ANT ASM SLG STATUS...

Страница 33: ...is command enables individual files to be loaded very quickly onto the data carrier together with their corresponding contents and attributes The individual files to be created consisting of file name attribute file length and data are processed sequentially by the filehandler This means that the filehandler internally first creates a file then writes data to it and assigns it an attribute The nex...

Страница 34: ...e on SLGs with access rights priority D S A delete protected file cannot be deleted Use the ATTRIB command before deletion ATTRIB Assign attributes write or delete protection to file see chapter 4 2 8 S A write or delete protection attribute can be assigned to the specified file This file cannot then be overwritten or deleted S An attribute assigned to a file can be removed sub_command_1 0 The fil...

Страница 35: ...emory are read to DAT_DB_number DAT_DB_address from a physical start address and with a given length Test function MOVE Save system data from the filehandler directory FAT checksum see chapter 4 2 18 Directory FAT checksum of the corresponding SLG station is saved in a data block S After a power failure this information can be transmitted directly to the ASM filehandler using a LOAD command The ch...

Страница 36: ...uted when bit ANZ_presence_change 1 indicates that the configuration of the MDS in the field has changed see chapters 3 3 and 5 7 SET ANT Turn antenna of the SLG on or off see chapter 4 2 17 This command is not needed during normal operation since the antenna is always on after an SLG is turned on The antenna must be turned off when two sensitive SLGs are to be located very close to each other The...

Страница 37: ...minated with the risk of defective data structures on the MDS Caution A RESET command declares the current MDS directory and FAT in the filehandler to be invalid The directory and FAT of the next MDS to be processed must always first be read from the MDS variable ANZ_DIR_change is set If this delay in reading the directory is to be avoided the MDS directory must be transmitted to the filehandler b...

Страница 38: ... for write cycles or ECC offsets are retained The counters are also retained even when the system area is faulty e g ECC error 7 0 sub_command_3 B 16 0 Not used 8 0 Filename TEST MDS MDS name Character and or digit combination in ASCII format 8 characters 20H to 7EH Can be selected as desired as data storage identi fier is assigned to the MDS 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not us...

Страница 39: ... B 16 0 Not used 8 0 Filename FILENAME File name Character and or digit combination in ASCII format 8 characters 20H to 7EH 16 0 length L 1 File length to be reserved The filehandler reserves the file length specified here If a file length of 0 is given the filehandler reserves one block as the default For block sizes see table 1 1 1 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used ...

Страница 40: ... The QUEUE WRITE command overwrites or deletes the file structure The QUEUE WRITE command appends the new file en tries to the existing MDS file structure A check is made to determine whether the file to be created already exists 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1710 Length of the data to be transferred 20 0 address_MD...

Страница 41: ... write commands such as UPDATE WRITE or APPEND Same meaning as 01H 9 0 File_length_M BYTE MSB Actual length of the d d d i h 10 0 File_length_I BYTE g data appended in the following ARRAY and 11 0 File_length_L BYTE LSB least significant byte following ARRAY and the data to be written 12 0 Skip INT Skip specifies how many bytes of the next file entry follow the end of the previous file entry Valid...

Страница 42: ...kip parameter then has the value 0001 in the ac knowledgment With this option the length i e Länge must always be set to 00FFFFFFhex in the file entries All files of the MDS are read In contrast to option 02H the blank files are also read file length 0 This option can be used to read a complete data carrier and then write it to another MDS with QUEUE WRITE 2 6 0 sub_command_2 B 16 0 Not used 7 0 s...

Страница 43: ...for QUEUE READ command1 Address Name Type Commentary 0 0 STRUCT 0 0 File ARRAY 1 15 A maximum of 15 file names can be specified 0 0 STRUCT 0 0 File_name ARRAY 1 8 File name 8 ASCII characters 1 0 CHAR 8 0 File_length DW 16 0 Length in bytes of the data to be read for the specified file 00FFFFFFH 0000xxxxH Read complete file Reserved length of the data in the result DB 12 0 Reserved W 16 0 14 0 END...

Страница 44: ...ess Name Type Commentary 0 0 STRUCT 0 0 File ARRAY 1 15 A maximum of 15 file names can be specified 0 0 STRUCT 0 0 File_name ARRAY 1 8 File name 8 ASCII characters 1 0 CHAR 8 0 File_length DW 16 0 Length in bytes of the data to be read for the specified file 12 0 Skip INT Skip specifies how many bytes of the next file entry follow the end of the previous file entry Skip is set by the filehandler I...

Страница 45: ...ile data are not as long as the old file data the new file has the length of the new file data The memory reserved for this file is retained however 5 0 sub_command_1 B 16 0 Not used 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename FILENAME File name Character and or digit combination in ASCII format 8 characters 20H to 7EH 16 0 length L 1 Length of the data to be w...

Страница 46: ...ENAME File name Character and or digit combination in ASCII format 8 characters 20H to 7EH 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Data DB The read data are written to this DB 24 0 DAT_DB_address 0 Address of the beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowledgment data in the READ co...

Страница 47: ..._1 B 16 0 Not used 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename FILENAME File name Character and or digit combination in ASCII format 8 characters 20H to 7EH 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used 24 0 DAT_DB_address 0 Not used 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowledgment ...

Страница 48: ...y be written with the automatic APPEND function Fixed length The length of the file cannot be changed by write commands such as UPDATE WRITE or APPEND Same meaning as 01H The fixed length attribute is also set 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename FILENAME File name Character and or digit combination in ASCII format 8 characters 20H to 7EH 16 0 length L 1...

Страница 49: ...inst unauthorized access 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename TEST MDS MDS name Character and or digit combination in ASCII format The MDS must be addressed with its MDS name which was specified in FORMAT The MDS name can be obtained with the command MDS STATUS 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used 24 0 ...

Страница 50: ...and G MDS command G Get Directory 5 0 sub_command_1 B 16 0 Not used 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Data DB The directory data are written to this DB 24 0 DAT_DB_address 0 Address of beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not ...

Страница 51: ...0 STRUCT 0 0 MDS_name ARRAY 1 8 Name of the MDS which was transferred for FORMAT 1 0 CHAR 8 0 Checksum WORD Checksum automatically calculated and stored in the system area of the MDS 10 0 Free_space DINT Free memory space remaining on the MDS 14 0 File ARRAY 1 64 One MDS has a maximum of 64 files 0 0 STRUCT 0 0 File_name ARRAY 1 8 File name 8 ASCII characters 1 0 CHAR 8 0 File_length_H BYTE MSB Ab...

Страница 52: ...again until it has left the field and entered it again Processing pause with the MDS Only useful when scan ning_time 0 is parameterized Execution of this com mand optimizes the lifetime of the MDS s battery 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used 24 0 ...

Страница 53: ...and_2 and sub_command_3 parameters do not need to be provided Fetch the physical MDS parameters of the MDS only MOBY U 6 0 sub_command_2 B 16 0 Enter current calendar week Value range from 1 to 53 or 01hex to 35hex 7 0 sub_command_3 B 16 0 Enter current year Value range from 0 to 99 or 00hex to 63hex example 01 2001 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 No...

Страница 54: ...CC 04 05 06 Memory Size 2 kbytes 8 kbytes 32 kbytes With ECC 84 85 86 14 0 MDS_capacity DINT Memory size of the MDS in bytes 18 0 Free_capacity DINT Amount of memory on the MDS in bytes 22 0 Free_directory INT Free directory entries on the MDS 24 0 ANZ_res0 BOOL 24 1 ANZ_res1 BOOL 24 2 Battery_low BOOL Set MDS or RAM battery must be replaced only MOBY I 24 3 LR_bat BOOL Set Communication battery o...

Страница 55: ...rchmode accesses 12 0 ST_date_Week BYTE Date of the last sleep_time change calendar week 1 to 53 13 0 ST_date_Year BYTE Date of the last sleep_time change calendar year example 01 2001 14 0 battery_left INT Remaining battery lifetime in percentage 16 0 ST BYTE Sleep time Value set on the MDS Statistically the tolerance range is equally distributed for each MDS Value 00 01 02 03 04 05 06 07 Sleep T...

Страница 56: ...nd_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Length in bytes of the data to be read 20 0 address_MDS W 16 0 Physical start address of the data on the MDS to be read 22 0 DAT_DB_number 48 Data DB The read data are written to this DB 24 0 DAT_DB_address 0 Address of the beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used ...

Страница 57: ...he status data are written to this DB 24 0 DAT_DB_address 0 Address of the beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowledgment data in the GET command The user data contained in the acknowledgment of the GET command are written to the address parameterized in the command The acknowledgment data are stored in the structure ...

Страница 58: ...EXT MDS 5 0 sub_command_1 B 16 0 Not used 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used 24 0 DAT_DB_address 0 Not used 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowledgment data in the NEXT command The NEXT command does not ge...

Страница 59: ...LG diagnosis III only MOBY U 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Data DB The status data are written to this DB 24 0 DAT_DB_address 0 Address of the beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used ...

Страница 60: ...the antenna 01H 02H Turn on antenna Default after init_run or after ASM is turned on Turn off antenna 6 0 sub_command_2 B 16 0 Not used 7 0 sub_command_3 B 16 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Not used 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Not used 24 0 DAT_DB_address 0 Not used 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowle...

Страница 61: ...beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB_address 0 Not used 30 0 Acknowledgment data in the MOVE command Starting with address DAT_DB_address data block DAT_DB_number contains the requested data The length of the data generated by the MOVE command depends on the formatting of the MDS and is returned in the length parameter in UDT 50 The length parame...

Страница 62: ... 0 Not used 8 0 Filename xxxxxxxx Not used 16 0 length L 1 Length of the data to be transferred Enter the length here which was supplied by the MOVE com mand as the result 20 0 address_MDS W 16 0 Not used 22 0 DAT_DB_number 48 Data DB The LOAD data must be stored in this DB 24 0 DAT_DB_address 0 Address of the beginning of the user data in the data DB 26 0 QUEUE_DB_number 48 Not used 28 0 QUEUE_DB...

Страница 63: ...5 1 FC 56 J31069 D0155 U001 A0 7618 Sample Applications 5 ...

Страница 64: ...clic scan Set command_start start command only if ready 1 ready 1 Y N error 1 Y N Error handling Evaluate error_code Command OK Process data Y N battery_low 1 Message on printer change battery No communica tion with the MDS Command OK ANZ_reset set N Y Set command_start start next command if desired If desired timeout monitoring by the user init_run for timeout Figure 5 1 Flow chart of the FC 56 s...

Страница 65: ...s set Start init_run for 1st SLG memory bit 1 3 is set Start init_run for 2nd SLG memory byte 2 OB1 used as edge triggered memory x01 x02 CALL MOBY FH MT Params_DB 56 Params_ADDR 0 CALL MOBY FH MT Params_DB 56 Params_ADDR 300 A M 1 2 FP M 2 2 S MOBY DB SLG 1 init_run JC x01 AN MOBY DB SLG 1 ready JC x01 A MOBY DB SLG 1 error JC x01 A M 1 0 FP M 2 0 S MOBY DB SLG 1 command_start A M 1 3 FP M 2 3 S ...

Страница 66: ... complete restart Segment 1 set init_run bit for all channels which are projected in DB45 SET S MOBY DB SLG 1 init_run S MOBY DB SLG 2 init_run With a distributed layout of an ASM e g with PROFIBUS the ASM may sometimes be turned off and on again due to the system see chap 5 4 When this happens the ASM reports the power failure to the FC 56 and thus to the user The user must then perform an init_r...

Страница 67: ... PROFIBUS slave fails The user then sets the ASM_failure 1 bit in OB 122 for the failed MOBY channel The following example shows one way to implement OB 122 Block OB122 Segment 1 Reset channel 1 when error occurs x1 L OB122_MEM_ADDR L MOBY DB SLG 1 ASM_address D SRW 1 L 1 D L MOBY DB SLG 1 ASM_channel I SPBN x1 SET S MOBY DB SLG 1 ASM_failure NOP 0 Temporary OB 122 variable Formula OB122_MEM_ADDR ...

Страница 68: ...W 1 L 1 D L MOBY DB SLG 2 ASM_channel I SPBN x2 SET S MOBY DB SLG 2 ASM_failure NOP 0 Formula OB122_MEM_ADDR SLG x ASM_address 2 1 Compare with conf channel Power failure on ASM After the error on the ASM has been corrected and the ASM is ready for operation again the user must send an init_run to the FC 56 The ASM is then ready for operation ...

Страница 69: ... are assigned to different data blocks The declaration view is shown Block DB56 MOBY parameters Address Name Type Starting Value Commentary 0 0 STRUCT 0 0 SLG ARRAY 1 4 300 0 UDT10 1200 0 END_STRUCT Block DB57 4 MDS commands Address Name Type Starting Value Commentary 0 0 STRUCT 0 0 Command ARRAY 1 4 30 0 UDT50 120 0 END_STRUCT Block DB58 MOBY data Address Name Type Starting Value Commentary 0 0 S...

Страница 70: ... ARRAY 1 3 UDT 10 STRUCT Command ARRAY 1 2 UDT 50 END_STRUCT END_STRUCT Declaration view Data view DB 56 MOBY_DB Chan 1 Chan 2 Chan 3 command_start init_run command_DB_number command_DB_address ready error Chan 3 cmd 1 Chan 3 cmd 2 UID command filename DAT_DB_number DAT_DB_address The MOBY control parameters and the commands for each channel are all located in a data block for all MOBY channels Fi...

Страница 71: ... error U E 0 0 UN Flankenmerker_1 S MOBY DB Kanal 1 command_start S Flankenmerker_1 UN E 0 0 R Flankenmerker_1 U MOBY DB Kanal 2 ready 2nd MOBY channel UN MOBY DB Kanal 2 error U E 0 1 UN Flankenmerker_2 S MOBY DB Kanal 2 command_start S Flankenmerker_2 UN E 0 1 R Flankenmerker_2 U MOBY DB Kanal 3 ready 3rd MOBY channel UN MOBY DB Kanal 3 error U E 0 3 UN Flankenmerker_3 S MOBY DB Kanal 3 command_...

Страница 72: ...efehl1 address_MDS Befehl1 length 300 309 Befehl1 command Befehl1 address_MDS Befehl1 length 300 309 Name ASM_address ASM_channel Adr 0 299 Daten 1 Daten 2 Daten 3 Daten 1024 400 401 402 1423 SLG 2 DB57 Befehl1 command Befehl1 address_MDS Befehl1 length 300 309 Befehl1 command Befehl1 address_MDS Befehl1 length 300 309 Befehl1 command Befehl1 address_MDS Befehl1 length 300 309 Befehl1 command Befe...

Страница 73: ...h English German in chap 10 11 Parameter data block 3 50 51 MOBY commands 4 100 101 Result of MDS STATUS sub_command 01 4 2 12 110 111 Result of SLG STATUS sub_command 01 5 6 120 121 Result of SLG diagnosis I sub_command 02 5 6 130 131 Result of SLG diagnosis II sub_command 03 5 6 140 141 Result of SLG diagnosis III sub_command 04 5 6 160 161 Result of MDS STATUS sub_command 00 4 2 12 170 171 Resu...

Страница 74: ...driver 12 0 driver_version WORD W 16 0 Version of driver 14 0 interface BYTE B 16 0 Type of interface RS 232 RS 422 15 0 baud BYTE B 16 0 Baudrate 16 0 reserved1 BYTE B 16 0 Reserved 17 0 reserved2 BYTE B 16 0 Reserved 18 0 reserved3 BYTE B 16 0 Reserved 19 0 distance_limiting_SLG BYTE B 16 0 Distance limiting of SLG 20 0 multitag_SLG BYTE B 16 0 Multitag SLG 21 0 field_ON_control_SLG BYTE B 16 0 ...

Страница 75: ... 33 2 0 function_01_01 BYTE B 16 0 1 3 0 function_01_02 BYTE B 16 0 1 4 0 function_01_03 BYTE B 16 0 1 234 0 END_STRUCT 1 Seven bytes are reserved for each of 33 commands UDT 130 Result of SLG diagnosis II SLG diagnosis II is only for information purposes The results are identical to the same named command of FC 45 normal addressing The interpretation of the results is also described there Table 5...

Страница 76: ...dentified MDS number 4 0 DWORD 98 0 END_STRUCT UDT 170 Result of ASM SLG STATUS sub_command 00 Table 5 6 UDT 170 MOBY FH STATUS Address Name Type Starting Value Commentary 0 0 STRUCT 0 0 FH_Version ARRAY 1 8 0 Filehandler Firmware version 1 0 CHAR 8 0 last_FH_command ARRAY 1 26 B 16 0 Last command executed by the filehandler 1 0 BYTE 34 0 last_FH_acknowledge ARRAY 1 26 B 16 0 Last acknowledgment o...

Страница 77: ...d in the UID parameter Static operation In this mode all MDSs are positioned in the field of the SLG Processing of the MDSs does not begin until then The programming sequence is shown below Process first or next MDS in UDT 200 Wait until all MDSs are posi tioned GET All MDS processed All MDSs No Yes An external signal e g light barrier is used to trigger this All UIDs of the MDSs in the field are ...

Страница 78: ...s automatically reset Only one MDS is processed If there are several MDSs in the field processing is done in the next program loop No END with sub_command 00 Yes No END turns the MDS off If there are more MDSs in the field the ANZ_presence_change bit is al ways set so that the other MDSs can be processed in subsequent program loops After the last MDS leaves the field a branch is made here to No Re...

Страница 79: ...MOBY channels SLGs are processed in one S7 S Large amounts of data are processed on each MOBY channel The example below shows a configuration for the S7 memory required by the FC 56 Twenty SLGs with 1 KB of MDS data each are to be processed Memory Requirements KB Per Channel Total FC 56 required once Parameter data block UDT 10 Command data block UDT 50 DB for MDS data 0 3 0 03 1 9 6 0 6 20 Total ...

Страница 80: ...Sample Applications 5 18 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 81: ...le MDS enters the transmission window of the SLG 1 User program Limit switch or ANZ_MDS_ present bit in BEST Yes but not mandatory Not continuous Operating mode with timeout Command is executed immediately An error message is generated if no MDS is located in the transmission window 4 1 User program Limit switch or ANZ_MDS_ present bit in BEST Yes but not mandatory Not continuous Command intermedi...

Страница 82: ...Old MDS SLG numbers correspond Current MDS All active commands apply to this MDS Next MDS bit Internal status flag in the filehandler The old MDS remains current all commands relate to this MDS until it is closed by a NEXT command All subsequent commands on this SLG refer to the next new MDS This is achieved by having the filehandler set the next MDS bit when it receives a NEXT command If the old ...

Страница 83: ...ted Issuing the NEXT command is always permissible if S the old current MDS is still in the SLG transmission window the old current MDS has already left no MDS in SLG transmission window S new next MDS is in the SLG transmission window the new MDS thus becomes the current one MDS_IO_control 0 allows a continuous monitoring of the MDS flow control If a new MDS enters the SLG transmission window bef...

Страница 84: ...presence of an MDS e g by limit switches Use of the NEXT command is possible but not mandatory The user handles part of the MDS control in his program Note This mode must be set when several MDSs can be in the field multitag 1 6 4 Entry Exit Checking Mode 4 MDS_IO_control 4 In this mode of operation absolutely no checking of MDS entry exit is carried out by the filehandler The MDS control must be ...

Страница 85: ... in the transmission window of the SLG The filehandler then commences the processing of the command When executing commands that do not change the DIR FAT structure i e no change to the checksum the system area is not updated This increases the processing speed in especially time critical applications e g ECC oper ation of EEPROM MDS Write accesses to an EEPROM MDS are reduced Operating with EAKO ...

Страница 86: ... Next MDS bit not set command not present S an MDS old or new is in the MDS field Status 3 is then valid i e old current MDS present Next MDS bit not set command not present Note The Next MDS bit is not set since the filehandler always considers the MDS which is present when the RESET command is issued the old current MDS whether it is new or old and thus resets the Next MDS bit In status 11 the f...

Страница 87: ...he old MDS returns to the transmission window Status 3 is valid S a NEXT command is issued by the FC 56 The filehandler sets the Next MDS bit internally and goes into status 11 waiting for the next new MDS S a command is issued by the FC 56 Since no MDS is present this command will be temporarily stored by the filehandler not with MDS_IO_control 1 Status 17 is valid S a new MDS enters the SLG tran...

Страница 88: ...ommand present has been issued by the FC 56 BD command not present has not yet been issued by the FC 56 BIA command in progress a command is now being executed ND Next MDS bit set in the filehandler NEXT command had been issued by the FC 56 The processing of all subsequent commands takes place only with the next new MDS ND Next MDS bit not set in the filehandler NEXT command has not yet been issue...

Страница 89: ...MDS ARRIVES NEW MDS DEPARTS START COMMAND WRITE SLG NO START COMMAND NEW MDS BECOMES OLD MDS WRITE SLG NO START COMMAND NEW MDS BCOMES OLD MDS MDS DEPARTS EAKO 0 2 3 OLD MDS ARRIVES NEW MDS ARRIVES WITH EAKO 1 4 ACKNOWLEDGE NEXT WRITE SLG NO NEW MDS BECOMES OLD NEW MDS ARRIVES WITH EAKO 0 2 3 COMMAND ARRIVES WITH EAKO 0 2 3 NEXT COMMAND ARRIVES COMMAND ARRIVES WITH EAKO 1 4 NEXT NEW ARRIVES NEW MD...

Страница 90: ...Entry Exit Check of an MDS in an SLG Field 6 10 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 91: ...er to check the incoming and outgoing MDSs Further advantages of this system configuration S Time consuming operations such as FORMAT occur at the i point and not in the production process S Since the same file structure is present on every MDS this can be written to the MDS at the i point S If the file structures on the MDS are structured accordingly the checksum and thus also the directory FAT a...

Страница 92: ... SLG 5 ÓÓ ÓÓ ÓÓ ÓÓ ÓÓ ÓÓ ÓÓ Faulty pallets MDSs Pallets with MDS SLG 1 Piece parts i point process monitoring Finished piece parts ÓÓ ÓÓ Piece part and pallet MDS circulation ÍÍÍ ÍÍÍ SLG 4 ÓÓ At the I point The MDS is formatted File structure is created CREATE Faulty MDSs are rejected Production data are monitored ...

Страница 93: ...an be opened existing files can be deleted MDS can be formatted as required data of completely differing lengths can be written to files MDS enters the SLG transmission window FORMAT CREATE DELETE MDS STATUS ASM SLG STATUS READ WRITE DIR TRACE MDS leaves the SLG transmission window Open additional files as required NEXT The MDS can be formatted as required at any SLG station On first commissioning...

Страница 94: ...System Configuration 7 4 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 95: ...th PROFIBUS and ET 200M ET 200X S ASM 452 Distributed setup with PROFIBUS The following figure shows the placement of the MOBY ASMs in the hardware catalog ASM 475 in central setup Example ASM 475 in distributed setup with ET 200M ASM 452 in distributed setup with PROFIBUS Figure 8 1 Placement of the MOBY ASMs in the hardware catalog When placing the ASMs make sure that the I address and the Q add...

Страница 96: ...S trouble shooting check the PROFIBUS address settings on the ASM against the configuration in HW Config 3rd step Set characteristics of the ASM With the object characteristics of the module only the filehandler MOBY I or U must be on The object characteristics show one of the following screens Drop down menus indicate possible options ASM 473 475 object characteristics ASM 452 object characterist...

Страница 97: ...ktualwert column For simple commissioning of MOBY all you have to do is adjust the parameters ASM_address and ASM_channel to the HW Config addresses General requirement All MOBY channels SLGs use the same command DB 57 and the same data DB 58 These two variables must be adjusted for each channel The pointer to command_DB can retain the default value for initial commissioning The value 1 is correct...

Страница 98: ...xist for the I O A slave has failed and OB 122 is not programmed S Since the default parameterization of the FC 56 is set with MDS_IO_control B 16 1 the presence check on the SLG must already be active now This is indicated by the flickering RxD LED on the ASM If you now place an MDS in the transmission window of an SLG the PRE or ANW LED must go on If the RxD LED does not go on continue with trou...

Страница 99: ... soon as you place an MDS in the transmission window of the SLG This is the same indication as the PRE LED on the ASM You can now use the auxiliary variable Befehl_starten TRUE to start the parameterized MOBY command If there is no MDS in the SLG s transmission window the command remains in processing on the ASM for an indefinite length of time This state is indicated in the modify variable screen...

Страница 100: ...Commissioning Guidelines 8 6 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 101: ...9 1 FC 56 J31069 D0155 U001 A0 7618 Error Messages and Trouble Shooting 9 ...

Страница 102: ...for a channel When this happens the exact cause of the error can be determined with the error_code variables The error_code variable is a double word consisting of 4 ASCII characters The first character is an alphanumeric character identifying the error class Table 9 1 Error classes of the FC 56 Error Class Meaning Axxx Protocol error Bxxx SLG error Cxxx MDS error Dxxx Job related errors Exxx Dire...

Страница 103: ...t with control variable function A0 16 The filehandler is currently processing another command Execution of a RESET command is mandatory A0 17 The data block of the SLG is too long and cannot be transferred with PROFIBUS S The block length parameter for the RESET command is too long FC error or user error S Program sequence error on the SLG S Perform new start of the ASM and start command again A0...

Страница 104: ...ler and MDS driver has malfunctioned AB byte S Perform init_run of the ASM B0 11 Communication error between filehandler and MDS driver The MDS driver reported a RESET termination although the filehandler did not process a RESET S Perform init_run of the ASM B0 12 Unmotivated startup message of MDS driver on the ASM S Perform init_run of the ASM C0 02 Memory error message from MDS The MDS has not ...

Страница 105: ...he MDS or SLG is defective C0 11 See C0 08 C0 12 The MDS cannot carry out the FORMAT command The MDS is defective C0 13 The MDS must be within the SLG transmission window when formatting otherwise a timeout error occurs i e S The MDS is situated right on the edge of the transmission window S The MDS is using too much current defective S An EEPROM type MDS has been given incorrect parameters during...

Страница 106: ... yet been initialized by an init_run S This situation can only be remedied by an init_run D0 05 The FORMAT CREATE WRITE ATTRIB UPDATE COVER QUEUE READ or QUEUE WRITE commands have been issued with incorrect parameters S FORMAT with invalid MDS name or MDS type S CREATE with invalid file name S WRITE UPDATE with length 0 DLNG 0 S Attribute not permissible S QUEUE WRITE or QUEUE READ with invalid op...

Страница 107: ...selected The MDS must be reformatted to correspond to the desired ECC operating mode S The MDS is not a filehandler MDS Format the MDS E0 02 No more directory entries available The file specified in the CREATE command cannot be created see section 1 2 2 E0 03 The file specified with the CREATE command already exists in the directory no dupli cate names E0 05 S A FAT block sequence error has been d...

Страница 108: ... for example a voltage dip on the module rack or a plug contact fault The user must start an init_run to reparameterize the SLG H1 11 This is a pure software or synchronization error that cannot occur during normal opera tion S The read acknowledgment has absolutely nothing to do with a running command S The command identifier of command and acknowledgment do not match H1 16 This is a pure softwar...

Страница 109: ...tarted an init_run while another init_run command was already being executed S Do not set init_run cyclically S The same physical ASM channel is used for two or more UDT 10 structures Check ASM_address and ASM_channel for all UDT 10 structures H1 35 The ASM has failed S Power failure on the MOBY ASM S PROFIBUS plug disconnected or PROFIBUS cable disconnected S ASM_address or ASM_channel does not e...

Страница 110: ...ded H8 42 H8 43 An access error occurred while the system was trying to read a parameter from the I O area of the inputs An access error occurred while the system was trying to write a parameter to the I O area of the outputs H8 44 H8 45 Error during the nth n 1 read attempt after occurrence of an error Error during the nth n 1 write attempt after occurrence of an error H8 7F Internal error in par...

Страница 111: ...module H8 C2 The module is currently processing the maximum possible number of jobs for a CPU H8 C3 Required resources memory etc are currently in use This error is not reported by the FC 56 If this error occurs the FC 56 waits until the system is able to provide resources again H8 C4 Communication error S Parity error S SW ready not set S Error in block length management S Checksum error on CPU s...

Страница 112: ...mand for ASM 473 and ASM 475 Table 9 3 Error indications of the ERR LED Flashing of the ERR LED Filehandler Error Message Meaning 1x 2x 3x 4x 5x 6x 7x 8x 9x 10x 11x 12x 13x 14x 15x 20x D0 01 C0 06 B0 01 C0 02 C0 07 C0 08 C0 09 C0 10 C0 11 C0 12 C0 13 C0 14 C0 15 C0 16 C0 17 Only RESET command permitted ASM startup Presence error Error in connection with the SLG Error on the RAM of the MDS Paramete...

Страница 113: ... This appendix discusses the special features of the individual interface modules which can be addressed with the FC 56 For a detailed hardware description of the interface modules with installation notes see the appropriate MOBY manual on configuring mounting and service A ...

Страница 114: ...e configuration The ASM 475 is integrated in the hardware configuration of the SIMATIC Manager by calling Setup exe in the directory daten S7_OM on the Software MOBY CD The ASM 475 cannot be integrated in a master of another manufacturer at this time SLG connection Prefabricated SLG connection cables are available in various lengths for the ASM 475 The cores at the open end to the ASM are marked w...

Страница 115: ...nable disable presence check 9 0 ECC_mode TRUE FALSE TRUE is only permitted when MOBY_mode is parameterized with 1 9 2 priority_RW TRUE FALSE see chapter 3 1 9 3 priority_RWD TRUE FALSE see chapter 3 1 10 0 MOBY_mode B 16 1 5 6 MOBY I U 11 0 scanning_time B 16 00 FF A value other than 00 is only recom mended when MOBY_mode was parameterized appropriately see chapter 3 1 12 0 SLG_number B 16 0001 F...

Страница 116: ...S E E SLG connection diagram The numbers for the connection refer to plug connector X1 on the top of the housing ASM475 SF DC5 V ACT_1 ERR_1 PRE_1 RxD_1 ACT_2 ERR_2 PRE_2 RxD_2 MOBY SF System fault hardware error on ASM DC 5 V 24 V are connected to ASM and the 5 V on ASM are okay ACT_1 ACT_2 SLG is busy processing a user command ERR_1 ERR_2 A flashing pattern indicates the error which occurred las...

Страница 117: ...hardware configuration of the SIMATIC Manager by calling Setup exe in the directory daten S7_OM on the Software MOBY CD Currently the ASM 473 cannot be integrated in masters of other manufacturers SLG connection An SLG always occupies the two M12 connection sockets X3 and X4 on the ASM 473 A prefabricated cable makes it easy to connect the SLG The standard model of the connection cable is 2 m in l...

Страница 118: ...esence check 9 0 ECC_mode TRUE FALSE TRUE is only permitted when MOBY_mode is parameterized with 1 9 2 priority_RW TRUE FALSE see chapter 3 1 9 3 priority_RWD TRUE FALSE see chapter 3 1 10 0 MOBY_mode B 16 1 5 6 MOBY I U 11 0 scanning_time B 16 00 FF A value other than 00 is only recom mended when MOBY_mode was parameterized appropriately see chapter 3 1 12 0 SLG_number B 16 0001 FFFF The test fun...

Страница 119: ...n MDS ERR Error indication with flashing pattern see chap 9 4 X3 1 2 3 4 5 24 V n c 0 V n c PE X4 The following ASM states are also indicated with the LEDs PRE and ERR Description Causes Remedy Hardware is defective RAM flash Loader is defective can only be fixed at the plant Firmware is being loaded or no firmware detected Load firmware Do not turn off ASM Firmware loading terminated with error N...

Страница 120: ...nal PROFIBUS bus stations AT comp PC 24 V for ASM and SLGs ASM_channel 1 Figure A 5 ASM 452 configurator Hardware configuration The ASM 452 is integrated in the hardware configuration of the SIMATIC Manager or in another PROFIBUS master with the GSD file SIEM80B6 GSD The file is integrated in HW Config of the SIMATIC Manager with the function Extras Neue GSD installieren This file is located in th...

Страница 121: ...0 see chap 3 Table A 4 Input parameters for ASM 452 Address Name Permissible Values Comments 0 0 ASM_address 0 4 8 12 Each ASM 452 occupies 4 bytes of I O in the I O area of the controller 2 0 ASM_channel 1 1 channel per ASM 8 0 MDS_IO_control B 16 0 1 4 5 Enable disable presence check 9 0 ECC_mode TRUE FALSE TRUE is only permitted when MOBY_mode is parameterized with 1 9 2 priority_RW TRUE FALSE ...

Страница 122: ...OFIBUS DP ON On when logic voltage active on ASM is generated from 24 V power supply DC DC 24 V On when 24 V power is connected on ASM Not circuited Pin Assignment SLG Socket X1 X3 X2 X4 24 V DE1 0 V DE0 PE X2 X4 Example PROFIBUS address 120 status on delivery 23 24 25 26 8 16 32 64 120 Example Terminal resistance off status on delivery Normal use ASM 451 compatible Use GSD file siem 804d Not for ...

Страница 123: ...ry interest to programmers of PCs and controllers of other manufacturers to show them how to create their own function block or driver for the MOBY ASM Note Some signals in this appendix have the same meaning as the variables in chapter 3 However to differentiate between them _ has been added to the end of these signals in this chapter e g ANZ_MDS_present_ B ...

Страница 124: ...tate information is exchanged cf appendix B 1 Other field devices MOBYĆASM MOBYĆASM The master may only send new commands to the slave MOBYĆASM when the ASM is ready The MOBYĆASM s readiness is indicated with cyclic state info The same applies to acknowledgments The MOBYĆASM may only fetch new acknowledgments when a new acknowledgment is actually waiting i e has not yet been read This information ...

Страница 125: ...rs the change from one defined state to the next A new DP V1 telegram is not permitted until the next state is reached A DP V1 telegram is either a command to the ASM or an acknowledgment from the ASM For this reason it is important to tell the master whether a new DP V1 telegram can be executed Each state is coded in 2 bits and counted up as shown in the diagram above thus the name state bits or ...

Страница 126: ...nter to tell the user whether a new acknowledgment from the MOBY ASM is waiting User evaluation of the acknowledgment state must always be given highest priority i e when the user wants to send a telegram to the ASM but a telegram from the ASM is waiting to be fetched at the same time the telegram from the ASM must be fetched first Both the command and the acknowledgment state are coded in 2 bits ...

Страница 127: ...up message This bit shows that the MOBYĆASM has performed a startup ANZ_reset_ After reset of init_run_ the MOBYĆASM resets this bit Commands other than a RESET or faulty RESET command are then rejected with an error message init_run_ Startup of the PROFIBUSĆDP master This bit forces the MOBYĆASM to start up Bit 15 is then set on the I O output Command counter lower bit BL Acknowledgment counter h...

Страница 128: ...nized during a startup The ASM sets QZ 0 and BZ 1 The startup can be triggered by both the ASM return of power and the user init_run init_run_ ANZ_reset_ Ready Reset command to ASM Reset acknow from ASM Non cyclic telegram BZ QZ any state BZ 1 QZ 0 defined reset BZ 2 QZ 1 When a command is interrup ted with RESET or init_run_ error message 1F occurs here Ready Finished message in user programm Fig...

Страница 129: ...dgment telegram is a non cyclic DP V1 telegram with DP V1 response Start is only permitted after a change in the command and or acknowledgment counter Change in the command counter New state old state 1 cyclic word Change in the acknowledgment counter New state old state 1 cyclic word No change in the cyclic data ÇÇ ÇÇ ÉÉ ÉÉ DP master MOBY ASM Command Acknowledgment Processing a MOBY command Time ...

Страница 130: ...and results are sent and received with the non cyclic telegram utility of PROFIBUS DP V1 This chapter describes the telegrams General telegram layout filehandler The telegram layout applies to both command telegrams to the MOBY ASM and result telegrams from the MOBY ASM The following diagram shows the general telegram layout ...

Страница 131: ...dual Command index I MOBY I command from ASM xx MOBY I status byte acknowledgement from ASM reserved always 00 1 Command terminated with error the user data contains error information See section 9 3 1 Only with ECC data from the MDS has been corrected and is OK 1 The RAM battery is poor or exhausted always set for EEPROM MDS 1 Aux battery is poor or exhausted only valid for MDS 507 otherwise alwa...

Страница 132: ...llows the DBL parameter in the first command telegram to the filehandler DBN 1 It contains the file name start address and length of the file The file description is omitted from subsequent telegram segments DBN 1 The maximum block length maximum length of a telegram segment can be set using the RESET command The default block length is 128 The maximum block length which can be set is 239 The bloc...

Страница 133: ...gram from ASM to user CC CI 0002 I 0003 3rd or last command telegram from user to ASM CC CI 0003 User data 0003 3rd or last acknowledgement tel from ASM to user CC 0003 Processing of 1st telegram segment by the filehandler on the ASM The user processes the ack nowledgement and issues the 2nd command segment Processing of 2nd telegram segment by the filehandler on the ASM The user processes the ack...

Страница 134: ...0 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 00 0001 00 Acknowledgement CREATE B Set up file on MDS B KK KI ADB DBN DBL xx 00 0000 0001 0C F name Attribute File length of be res 0 1 2 3 4 5 6 7 8 9 10 11 18 19 20 22 I 0001 Command Acknowledgement B KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 00 0001 00 QUEUE WRITE Q Set up complete data medium Q KK KI ADB DBN DBL xx 00 0000 ADB DBL Optio...

Страница 135: ...ta max of 229 bytes In reserve In reserve UPDATE U Write complete file Command Acknowledgement KK KI ADB DBN DBL xx 00 0000 ADB DBL File name Start addr Length Data 0 1 2 3 4 5 6 7 8 9 10 11 18 19 21 22 24 25 239 I 0001 U KK Status ADB DBN DBL 00 xx 0000 ADB 0 1 2 3 4 5 6 7 8 9 10 00 0001 00 U WRITE W Write complete or partial file Command Acknowledgement W KK KI ADB DBN DBL xx 00 0000 ADB DBL Fil...

Страница 136: ...0 0001 0 1 2 3 4 5 6 7 8 9 10 0001 09 I File name 11 18 19 Attribute Y KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 00 00 COVER C Protect MDS structure Command Acknowledgement C KK KI ADB DBN DBL xx 00 0000 Volume User 0 1 2 3 4 5 6 7 8 9 10 11 18 19 I 0001 09 0001 C KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 00 00 DIR G Read directory of MDS Command Ack...

Страница 137: ... ADB DBN DBL 00 xx 0000 0001 10 MDS no 0 1 2 3 4 5 6 7 8 9 10 11 14 16 23 24 25 00 0001 26 P type Diagnosis Battery ST 15 tus Or F xx 00 0000 0001 0001 03 I sub_command CW Year corresponds to sub_command 0 END K Conclude communi cation with the MDS Acknowledgement Command K KK KI ADB DBN DBL xx 00 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 01 I 11 sub_command K KK Status ADB DBN DBL 00 xx 0000 0001 0 1...

Страница 138: ...xx 0000 xxxx DBL 0 1 2 3 4 5 6 7 8 9 10 00 0001 11 12 13 Length DIR FAT Data LOAD L Transfer directory to ASM Command Acknowledgement L KK KI ADB DBN DBL 00 xx 0000 ADB DBL Length 0 1 2 3 4 5 6 7 8 9 10 11 12 13 I 0001 DIR FAT Data L KK Status ADB DBN DBL 00 xx 0000 ADB 00 0 1 2 3 4 5 6 7 8 9 10 00 0001 SET ANT A Turn SLG antenna on or off Command Acknowledgement A KK KI ADB DBN DBL xx 00 0000 000...

Страница 139: ...st acknowl 45 70 Or S xx 00 0000 0001 0001 01 I sub_command Acknowledgement sub_command 01 S KK Status ADB DBN DBL 00 xx 0000 0001 01 SLG status information 0 1 2 3 4 5 6 7 8 9 10 11 12 35 00 0001 19 Acknowledgement sub_command 02 S KK Status ADB DBN DBL 00 xx 0000 0001 02 No of functions 0 1 2 3 4 5 6 7 8 9 10 11 12 00 0001 DBL Acknowledgement sub_command 03 S KK Status ADB DBN DBL 00 xx 0000 000...

Страница 140: ...CC 14 15 Prior Block len 13 17 18 Or X 00 xx 0000 0001 RESET mode EAKO SLG No I 0001 08 ECC Prior Blockl t ABTAST X KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 05 00 11 14 15 Error code ANW Or X 00 xx 0000 0001 RESET mode EAKO SLG No I 0001 0D ECC Prior Blockl Standby dili 0001 fcon ftim 22 20 21 19 23 NEXT N Process next MDS Command Acknowledgement N KK KI ADB DBN DBL xx 00 ...

Страница 141: ...00 0001 04 Acknowledgement Volume 15 22 11 14 UID CREATE B Set up file on MDS B KK KI ADB DBN DBL xx 00 0000 0001 10 F name Attribute File length of be res 0 1 2 3 4 5 6 7 8 9 10 15 22 23 24 26 U 0001 Command Acknowledgement B KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 00 0001 04 UID 11 14 11 14 UID QUEUE WRITE Q Set up complete data medium Q KK KI ADB DBN DBL xx 00 0000 ADB DBL ...

Страница 142: ...UID 11 14 11 14 UID UPDATE U Write complete file Command Acknowledgement KK KI ADB DBN DBL xx 00 0000 ADB DBL File name Start addr Length Data 0 1 2 3 4 5 6 7 8 9 10 15 22 23 25 26 28 29 239 0001 U KK Status ADB DBN DBL 00 xx 0000 ADB 0 1 2 3 4 5 6 7 8 9 10 00 0001 04 U U UID 11 14 11 14 UID WRITE W Write complete or partial file Command Acknowledgement W KK KI ADB DBN DBL xx 00 0000 ADB DBL File ...

Страница 143: ...7 8 9 10 0001 0D U File name 15 22 23 Attribute Y KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 04 00 11 14 UID 11 14 UID COVER C Protect MDS structure Command Acknowledgement C KK KI ADB DBN DBL xx 00 0000 Volume User 0 1 2 3 4 5 6 7 8 9 10 15 22 23 U 0001 0D 0001 C KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 04 00 11 14 UID 11 14 UID DIR G Read directory...

Страница 144: ...UID 15 sub_command 16 CW 17 Year UID 11 14 UID 11 14 END K Conclude communi cation with the MDS Acknowledgement Command K KK KI ADB DBN DBL xx 00 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 05 U 15 sub_command K KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 04 00 11 14 UID 11 14 UID TRACE T Read MDS uncondi tionally Command Acknowledgement T KK KI ADB DBN DBL xx 00 0000 0001 0 1 2 3 ...

Страница 145: ...00 0001 Ver no Last job Connection status 0 1 2 3 4 5 6 7 8 9 10 11 18 19 44 71 00 0001 3DH Last acknowl 45 70 S xx 00 0000 0001 0001 01 U sub_command Acknowledgement sub_command 01 S KK Status ADB DBN DBL 00 xx 0000 0001 01 SLG status information 0 1 2 3 4 5 6 7 8 9 10 11 12 35 00 0001 19 Acknowledgement sub_command 02 S KK Status ADB DBN DBL 00 xx 0000 0001 02 No of functions 0 1 2 3 4 5 6 7 8 9...

Страница 146: ...7 8 9 10 11 12 16 14 15 13 17 18 X KK Status ADB DBN DBL 00 xx 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 05 00 11 14 15 Error code ANW X 00 xx 0000 0001 RESET mode MDS_IO_ SLG No U 0001 0D ECC Prior Blockl Standby dili 0001 fcon ftim 22 20 21 19 23 control NEXT N Process next MDS Command Acknowledgement N KK KI ADB DBN DBL xx 00 0000 0001 0 1 2 3 4 5 6 7 8 9 10 0001 00 U N KK Status ADB DBN DBL 00 xx ...

Страница 147: ...ed cyclically between ASM and function block PEW tells the function block when commands and data may be transferred to the ASM Commands and data are put into data records Com mands Data acknow ledgments Function block ASM_address ASM_channel MDS_IO_control ECC_mode MOBY_mode scanning_time Interface to the user ASM 475 MOBY ASM MDS data DR11x n DR11x 1 DR11x 0 MOBY driver DR11x Data DR10x Parameter...

Страница 148: ... is addressed SD 68H LE x LEr x SD 68H DA 8x SA 8x FC x DSAP 51 33H SSAP 51 33H DU x FCS x ED 16H 0 1 0 1 1 1 1 0 Octet 2 0 Octet 1 0 Function code e g DS_Read req DS Data Record 0 Request response okay 1 Response error frame Slot_Number ASM 452 454 754 854 850 0 ASM 475 473 0 to 7 1 to 7 corresponds to slot in an ET 200M ET 200X Octet 3 0 Index Data record number for channels 1 to 4 see next tabl...

Страница 149: ...473 ASM 475 473 All Reserved diagnosis of power parameters Reserved diagnostic buffer FW update optional Reserved read FW version Reserved SZL list Reserved Data record 10x Each of data records DR 101 and 102 parameterizes one MOBY channel DR 10x must contain a RESET command After the module starts up DR 10x must be sent to each MOBY channel The channel is not ready for operation until this is don...

Страница 150: ...a PROFIBUS Trace The following trace shows all telegrams which were sent on the PROFIBUS interface during an ASM startup or a MOBY read command The trace illustrates appendices B 1 to B 7 It can also be used for orientation or for trouble shooting of customer specific MOBY ASM implementations ...

Страница 151: ... 1 of a MOBY ASM Only the non cyclic telegrams are recorded 68 0f 0f 68 83 82 7c 33 36 5f 04 65 13 00 00 00 00 58 49 68 05 05 68 83 82 7c 33 36 00 16 68 09 09 68 82 83 08 36 33 5f 04 65 06 00 16 68 09 09 68 83 82 5c 33 36 5e 04 65 06 00 16 68 05 05 68 83 82 5c 33 36 00 16 68 0f 0f 68 82 83 08 36 33 5e 04 65 10 68 0f 0f 68 83 82 7c 33 36 5f 04 6f 19 00 00 00 00 52 49 68 05 05 68 83 82 7c 33 36 00 1...

Страница 152: ...Programming MOBY ASM on PROFIBUS DP V1 B 30 FC 56 J31069 D0155 U001 A0 7618 ...

Страница 153: ... _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ City _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Telephone _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Please tick your branch Automotive industry Chemical industry Electrical industry Foodstuffs Process control technology Mechanical engineering Petrochemistry Pharmaceutics industry Plastics processing Paper i...

Страница 154: ... _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Remarks Suggestions Your remarks and suggestions help us to improve the quality of our documentation Please complete this questionnaire as soon as you have...

Отзывы: