ASM450 FC44 FB240 e
ASM450 FC44 FB240 e
1
MOBY
General Features
Identification System
Hardware Description of 2
ASM 450
FC 44 3
Specifications of the FC 44
Function for ASM 450
With Supplements for FB 240 4
BEDB Command Data Block
5
Sample Applications
Technical Description
MDS Control, Presence Check 6
and Digital Inputs/Outputs
Commissioning the 7
ASM 450 with FC 44
Indicator Elements and 8
Trouble-Shooting
Programming the ASM 450 on
PROFIBUS-DP
A
Using the ASM 450 in a
SIMATIC S5
B
Warnings
C
6GT2 097-3AC30-0DA2
Release 10.2001
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
Danger
! indicates that death, severe personal injury or substantial property damage will result if proper precautions
are not taken.
Warning
! indicates that death, severe personal injury or substantial property damage can result if proper precau-
tions are not taken.
Caution
! indicates that minor personal injury or 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
The device/system may only be set up and operated in conjunction with this manual.
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and sys-
tems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
! This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers which
have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed cor-
rectly, and operated and maintained as recommended.
Trademarks
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 1998, 1999, 2000, 2001 All rights reserved Disclaimer of Liability
The reproduction, transmission or use of this document or its We have checked the contents of this manual for agreement with the
contents is not permitted without express written authority. hardware and software described. Since deviations cannot be pre-
Offenders will be liable for damages. All rights, including rights cluded entirely, we cannot guarantee full agreement. However, the
created by patent grant or registration of a utility model or design, are data in this manual are reviewed regularly and any necessary cor-
reserved. rections included in subsequent editions. Suggestions for improve-
ment are welcomed.
Siemens AG
Automation and Drives
Systems Engineering Siemens AG 1998
P.O. Box 2355, D-90713 Fuerth Technical data subject to change. FC 44
Index-2 Function for ASM 450
Siemens Aktiengesellschaft Order No. 6GT2 097-3AC30-0DA2
Bild: 1
Kapitel: Inhaltsverzeichnis
Seite: 1
Tabelle: 1
Seitennummernfolge: i
Contents
1 General Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
2 Hardware Description of ASM 450 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
2.1 PROFIBUS Address and Terminal Resistance . . . . . . . . . . . . . . . . . . . . . . . 2-2
2.2 Wiring the Plug Connectors for the Voltage Supply and PROFIBUS-DP . 2-4
2.3 SLG Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
3 Specifications of the FC 44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.1 Technical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.2 Communication between ASM 450 and FC 44 . . . . . . . . . . . . . . . . . . . . . . . 3-2
3.3 Engineering Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.4 How Many ASM 450 Slaves Can Be Connected . . . . . . . . . . . . . . . . . . . . . 3-7
4 BEDB Command Data Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.1 BEDB-General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.2 BEDB-Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.2.1 BEST Command and Status Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2.2 DATDB / DATDW Data Field Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
4.2.3 ANZ Error Indication Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.2.4 Table of MOBY Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.2.5 Setting the Parameters of the Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.2.6 Using the ECC Driver (All MDS Models) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
4.3 Starting the Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
5 Sample Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.1 Flowchart: Scanning the FC 44 by the User . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.2 Processing the Data Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.3 Initialising the Data Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
5.4 Calling FC 44 Cyclically (e.g., in OB 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6
5.5 Presetting the BEDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5.6 Programming New Starts and Restarts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
One or 2 SLGs from the MOBY family can be connected. When 2 SLGs are
used, these are addressed in multiplex operation.
These SLGs can be MOBY type I, E, F or V. If 2 SLGs are connected, these
must be of the same type. The MOBY type is switched with the RESET
command.
Function FC 44 is available for the SIMATIC S7.
Function block FB 240 is available for the SIMATIC S5.
FB 240 has the same call interface as FC 44. The S5 user can use both the
FB 240 description and this FC 44 description. Cf. appendix B.3.
FC 44 and FB 240 have the same user interface. See section 5 for differences
in the parameterization.
See the appendix A for a description of the programmer interface for
non-SIMATIC users.
The ASM 450 can be equipped with 2 digital inputs and 2 digital outputs as an
option. These can be used for MDS control (see section 6) or as desired by the
user. These inputs/outputs are updated via the DI/DQ command.
PROFIBUS configuration
File SIEM804C.GSD must be used. The file is included together with FC 44 on the
“MOBY Software” product (6GT2 080-2AA10). The GSD file can also be
downloaded from the Internet.
Compatibility
When used with MOBY-I, the ASM 450 module is command-compatible with the
ASM 440 module. Only the new GSD file (i.e., SIEM804C) must be linked for the
ASM 450.
28,25
53,5
110
Ø 5,5
120 90
134
PROFIBUS adress
The PROFIBUS address is used to specify the address under which the ASM 450
interface module will be addressed by the DP master of PROFIBUS-DP.
The 7 DIP switches on the basic module are used to set a PROFIBUS address
from 1 to 125.
How to proceed
The plug connector plate of the ASM 450 must be removed before the PROFIBUS
address can be set and the terminal resistance connected. The plug connector
plate covers the DIP switches. The following figure shows the location of the DIP
switches on the ASM 450 and gives an example of the setting of each.
on
off
In reserve
ON
1 2 3 4 5 6 7 8
Figure 2-3 Setting the PROFIBUS address and connecting the terminal
resistance
Note
The PROFIBUS address on the ASM 450 must always correspond to the
PROFIBUS address specified by the configuration software for this ASM 450.
To ensure that the terminal resistance functions correctly, always set both DIP
switches of the terminal resistance to “on” or “off.”
2.2 Wiring the Plug Connectors for the Voltage Supply and
PROFIBUS-DP
Possible connections
The voltage supply must be connected to each ASM 450 separately (on X13). The
plug connectors for PROFIBUS and the voltage supply are not included. You can
order them from Siemens under order number 6ES7 194-1AA00-0XA0.
B (red) A (green)
1 4
Shield(PE) 2 5 L+* (black)
3 6
PE (green-yellow)* M* (blue)
Figure 2-4 Pin assignment of the plug connector for wiring PROFIBUS-DP
Note
When baud rates of 3 Mbaud, 6 Mbaud and 12 Mbaud are used, the cable
between two bus stations must be at least 1 m.
PE PE
1 4
L+ 2 5 L+
3 6
M M
Figure 2-5 Pin assignment of the plug connector for connection of the
voltage supply
Caution
! Wiring the plug connector incorrectly can destroy all or part of the device.
Note
To ensure protection rating IP65, IP66 or IP67, all 3 plug connectors must always
be connected to the ASM 450 regardless of whether they are wired or not.
22,5
2m
White
X1/2 6
18,5
Brown
X1/3 1
X1 X2 Green
X1/1 4
Yellow
X1/4 5
Gray
X2/3 3
X2/1 Pink
2
X1/5
X2/5
PG 11 screw connection; 5
max. cable diameter = 6.5 mm 6
(Do not tighten screws until plug 1 S
connector is assembled.) 2 S
3
48 4
Table 3-1 Typical Run Times of FC 44 (PLC cycle load specified in msec)
Note
If the FC 44 is used with a CPU 414-2 DP, version > 2.1 of the MOBY 450 block
must be used.
ADR:
Parameterized start address of the input/output areas of the ASM 450 slave in the
I/O area of the SIMATIC S7. This parameterization must match that of the
PROFIBUS configuration.
Note
The start address of the input/output areas must always be an even number.
The start address of both the input areas and the output areas is identical. The
input and output area is specified with ADR.
BEDB:
Command data block for internal FC 44 use. (See also chapter 4)
The user must set up one BEDB for each ASM 450 slave. A BEDB must have at
least 17 words (DBW 0 to DBW 32). Starting at DBW 34, the BEDB can be used
as desired (e.g., for DATDB with the user data).
MOBY:
Setting of the MOBY operating mode
0 = MOBY I/E (without MDS 507)
1 = Reserved
2 = MOBY I with MDS 507
3 = Reserved
4 = MOBY V
5 = MOBY F with MDS F1xx
6 = MOBY F with MDS F4xx
7 = MOBY F with MDS F2xx
8, 9 = Reserved
ANW:
Setting of MDS control (Cf. chapter 6)
0 = Without MDS control and ANW check via firmware
1 = Without MDS control and with ANW check via firmware
2 = With MDS control and with ANW check via firmware
4 = With MDS control and with ANW check via DI0 and DI1
6 = With MDS control and with ANW check via DI0
Note
When setting 2, 4, or 6 is used, only one SLG may be used on the ASM 450.
ABTA:
This parameter only applies to MOBY I and MOBY V operation with the MDS 507.
All other users must set this parameter to 00.
Parameterisation of the scanning time for MDS 507 operating mode. FC 44 does
not evaluate this parameter unless MOBY = 2 was specified.
The MDS 507 was designed for long-distance read and write accesses. It is
equipped with a battery for communication with the SLG 44. This means that, to
prevent the battery from being discharged too quickly, the MDS 507 should only be
processed when data communication is actually to take place. If no command has
been issued for the MDS, its presence in the field of the SLG 44 is scanned at the
parameterised scanning interval ABTA (i.e., low load on the MDS battery). If,
however, a command has been issued for the MDS, this is always processed
immediately regardless of the ABTA.
The following table shows the scanning time ABTA. (See also configuring manual
for SLG 44/MDS 507/MDS 407E.)
Bit 7 6 5 4 3 2 1 0
Time value: 00 to 3F
Time Factor:
00 = 0.01 sec
01 = 0.1 sec
10 = 1 sec
11 = 10 sec
Example:
OPT:
Setting the options on the ASM 450
In normal operating mode, OPT can be set to 00HEX. The options are described
in appendix A.2 (OPT).
OPT is binary–coded, e.g. 01 HEX = A MOBY error generates a system
diagnosis (Cf. chap. 8.1).
02 HEX = Clear error LED
10 HEX = The DQs can be used as desired.
The OPT parameter is transferred to the ASM after every RESET.
Note
Remember the following when using the DQs as desired.
After the ASM 450 is turned on, an error code is indicated on DQ0. Actuators
connected to DQ0 may be switched uncontrollably. Do not use DQ0 to control a
signal affecting safety.
OPT2:
Reserved for expansions
OPT2 must currently be preset to 0000HEX.
Starting with version V2.1 of FC 44
A value of 2 or 3 must be entered here for CPU 414-2 DP to ensure data
consistency. The value specifies the number of wait cycles until the data become
valid.
Table 3-3 Size of the input/output areas and lengths of the user data
Note
If the user data length is parameterized for a write command longer than that
specified in table 3–3, the PLC will assume STOP status with QVZ or the telegram
data will be sent to a wrong address.
4.2 BEDB-Layout
DBW 30 DBW 30
DBW 32 DBW 32 Reserved
Note
BEDB must be at least 17 data words or 34 data bytes long (DBW 0 to
DBW 32).
Data words DBW 0 to DBW 8 in BEDB are available to the user. Single
commands can be sent to the ASM 450 or messages for the user indicated by
writing, reading or setting the parameters of these data words.
DBW 0 = BEST
BEST is valid at all times. It can be scanned by the user at all times.
DBB 0 DBB 1
ÂÂÂ
15
ÂÂ 14 13 12 11 10 9 8 7 6 5 4
ÍÍÍÍÍ
3
ÍÍÍ 2 1 0
ÂÂÂÂÂ ÍÍÍÍÍÍÍÍ
ÂÂÂÂÂ ÍÍÍÍÍÍÍÍ
RESET
Start command
Reserved Reserved
NEXT
New start (RESET)
RESET, NEXT,
New start active/was last command
FC 44 active
ÂÂ
by the user.
ÂÂ
BATT 1 battery monitoring These bits must be scanned
Error (exact error shown in ANZ) by the user.
Note:
The BEST parameter must be preset to W#16#0008 in the applicable OB (see
catalogue) for new start and restart.
– OB 100 for new start
– OB 101 for manual restart
BEST bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Set: F F F F F F F F F F F F U U U F/U
Reset: F F F F F F F F F F F F F F F F
BIT 0
RESET
Reset a read or write command. Perform a reset after initial commissioning and
each time the ADR, BEDB, MOBY, ANW, ABTA, OPT and OPT2 parameters are
changed. This reset is necessary so that the parameters are checked and the
commands in BEDB restructured.
BIT 1
Start command
Start signal for FC 44. Execution of the parameterised command. The FC resets
this bit after starting execution of the commands.
BIT 2
NEXT command
Start NEXT command. The command following the NEXT command refers to the
next MDS. This permits you to start a command immediately even though the old
MDS is still in the field. Some operating modes require that the NEXT command
be used. (See chapter 6).
BIT 3
New start
Set by the user after a new start and after return of power. Its functions are the
same as those of reset except that the bit is also scanned while the command is
being executed.
BITs 4 and 5
Reserved
BIT 6
RESET, NEXT, New start active/was last command
This bit is set after a RESET, NEXT or new start command was started. It
indicates that one of these commands is active or was last executed.
BIT 7
FC 44 active
The FC is active (i.e., busy with the execution of a command).
If BIT 7 is set, then BIT 15 is reset.
BIT 8
Presence (ANW bit)
This bit is not set unless MDS control was set on the ASM 450.
(See also chapter 6)
0 = No MDS in the field of the SLG
1 = MDS is now in the field SLG
BITs 9 and 10
Reserved
BIT 11
ECC correction
This bit is not set unless the ECC driver has performed an EEC correction. The
command was concluded correctly. The data are correct.
BIT 12
BATT 2
Status of battery 2 on the MDS. If there is no battery 2 on the MDS, this bit can
assume any state.
BIT 13
BATT 1
Battery monitoring of the MDS has been triggered (only for MDS models equipped
with RAM). Although the remaining capacity of the battery will still allow the MDS
to operate at room temperature for a few more months, we recommend replacing
the battery of the MDS immediately (or replacing the MDS if it does not have a
replaceable battery).
BIT 14
Error
FC 44 sets this bit when a command is concluded with errors. The exact cause of
the error is located in data word ANZ (i.e., DBW 4). Starting a new command
resets the error bit.
BIT 15
READY
– The last command is finished.
– The user may now start a new command.
Remember: The start of a RESET command does not require that READY be set.
The entire command set of the FC 44 can be divided into so-called “read” and
“write” commands. When a read command is started (e.g., read without ECC), the
arriving data to be read must be stored in a data block (DATDB). When a write
command is started (e.g., write without ECC), the data to be written to the MDS
are also taken from a data block. This means that, when starting a command, the
user must specify a DATDB (i.e., generate it in the PLC beforehand) indicating to
what locations the user data are to be transferred back and forth. The DATDW
specifies the start address of the data stored in the DATDB.
Note
DATDB can also be BEDB if DATDW > DBW 34.
The start of a read or write command requires that a DATDB/DATDW be
specified in DBW 2 of BEDB.
The DATDB can have a total length of up to 256 words (DBW 0 to DBW 510).
(See position of the DATDW pointer.)
DBW0
DBW2 10 (12) 4 (160)
ÏÏÏÏÏ
DATDB=DB10
ÏÏÏÏÏ
DBW0
DBW2
DBW4
ÏÏÏÏÏ
DBW6
DBW8
ÏÏÏÏÏ
DBW10
.
ÏÏÏÏÏ
.
.
ÏÏÏÏÏ
.
.
DATDB=DB12
ÏÏÏÏÏ
DBW0
.
ÏÏÏÏÏ
DBW160
DBW162
ÏÏÏÏÏ
DBW164
DBW166
.
DBW 4 = ANZ
ANZ is valid when the READY bit is set in BEST or when the READY bit and the
error bit are set in BEST. The error is indicated in hexadecimal format.
DBB 4 DBB 5
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
01 → Presence error: MDS out of field when command active 1 → FC 44 parameter wrong
02 → Presence error: MDS passed by SLG without command 2 → Command code or parameter wrong
03 → Error in connection to the SLG 3 → Only RESET command permitted
04 → Error in MDS memory (not initialised) 4 → Synchronisation error
05 → Unknown command from ASM 450 5 → Startup message of the ASM 450
06 → Field disturbance on SLG or PROFIBUS-DP error
07 → To many send errors 6 → Command code and
08 → CRC send error acknowledgement code not equal
09 → INIT: CRC error 7 → Length of acknowledgement illegal
0A → INIT: MDS cannot be initialised 8 → User data lengths not equal
0B → INIT: Timeout during initialisation 9 → Read user data length too long
0C → INIT: Write error during initialisation
0D → Address error
0E → ECC mode: Data on MDS are not correct. 1 → Any command permitted as next command
10 → NEXT command not permitted 2 → Only RESET command permitted as next
11 → Short circuit or DQ overload command
12 → ASM 450-internal communication error
14 → ASM 450-internal error
15 → ASM 450 parameters set incorrectly
16 → ASM 450 parameters are not suitable for this FC 44 command.
17 → Handshake error between ASM 450 and FC 44
18 → Only RESET command permitted.
19 → Previous command is active.
1A → PROFIBUS-DP error
1E → Error while processing function block FC 44
1F → Current command was aborted by RESET.
Applicable to ANZ
Set: FB
Reset: FB
Scan: User
To be able to start the commands listed here, you must first preset the command
parameters (i.e., DBW 6 and DBW 8). The READY bit (i.e., bit 15 in BEST)
must be set before parameters can be set and the commands started.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The user data area (DATDB) is not changed.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The read data are located in DATDB starting at “address” DATDW.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The user data area (DATDB) is not changed.
ASM Status
Status
Bit: 7 6 5 4 3 2 1 0
0 0 0 0 0 0
* Since DBW 0 also contains the ANW bit, the status command for the ANW information is not absolutely necessary.
** These bytes do not have to be prespecified for the command start.
The started command gives the user the set READY bit (i.e., bit 15 of BEST). The user
data area of the user (DATDB) is not changed. The status of the ASM is indicated in
DBW 6 and DBW 8.
Byte 1 Byte 2
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0/1 0 0 0 DI1 DI0 DQ1*)DQ0*) 0/1 0 0 0 0 0 0 SLG
0 = SLG 1
1 = SLG 2
Control bits for the corresponding byte
Functionally, byte 1 and byte 2 can be handled separately.
0 = Control: Set or reset DQ unconditionally. The binary value entered for DQ0 and DQ1 (byte 1) is output on the
ASM 450 after the command is started.
1 = Scan: OR-link DQ (i.e., set outputs on the ASM 450 selectively or leave unchanged). A binary “1”
(OR-link of a DQ with 1) would set a DQ. A binary “0” (OR-link of a DQ with 0) would leave a DQ unchanged or
read in the current, binary signal status of the DQ on the ASM 450.
*) Remember:
DQ0 and DQ1 are available to the user for use as desired if both of the following condi-
tions are met.
The ANW parameter was parameterized with 0 or 1. Cf. chapter 3.3.
The OPT parameter was preset with 10HEX. Cf. chapter 3.3 or appendix A.2.
CAUTION for free use of the DQs
After the ASM 450 has been switched on, an error code is indicated for DQ0. Actuators
connected to DQ0 may be switched uncontrollably. Do not use DQ0 to control a signal
affecting safety.
DIs are always read. The user may use this information or evaluate it. DIs must be preset
with binary 0 before command start.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The user data area (DATDB) is not changed.
Note
The DI/DQ are updated exclusively via this command and not via the process
image.
RESET
Resetting a read or write command
A RESET must be performed after initial commissioning, after some error
messages (see chapter 4.2.3) or after any change in the ADR, BEDB, MOBY,
ANW, ABTA, OPT and OPT2 parameters. This reset is necessary so that the
parameters are checked and the commands in BEDB restructured. The
connection between FC 44 and ASM 450 is also initialised and synchronised
again.
The RESET command is started by setting bit 0 in BEST (DBW 0). As the
result of the started command, the user receives the READY bit (bit 15 in
BEST) set. The user data area (DATDB) is not changed.
NEXT
The command following the NEXT command refers to the next MDS. This permits
the user to start a command immediately even if the old MDS is still in the field of
the SLG. Do not use the NEXT command unless MDS control on the ASM 450
has been parameterized. The NEXT command switches over the DQs during
MDS control (see chapter 6).
The NEXT command is started by setting bit 2 in BEST (DBW 0). As the
result of the started command, the user receives the READY bit (bit 15 in
BEST) set. The user data area (DATDB) is not changed.
New start
Set by the user after new start or after return of power
Functions same as RESET except that the bit is also scanned while commands
are being processed.
The NEXT command is started by setting bit 3 in BEST (DBW 0). As the
result of the started command, the user receives the READY bit (bit 15 in
BEST) set. The user data area (DATDB) is not changed.
The ECC (error correction code) driver can be switched on via command code.
Use
The ECC driver provides additional assurance of data integrity on the MDS. MDS
models equipped with EEPROMs are only guaranteed by the manufacturer for
10,000 write accesses. If the ECC driver is used, you can use the MDS until the
end of its actual life and still be assured of equal data integrity.
The ECC driver can also be used with RAM-MDS models to assure data integrity
in situations where extremely intensive interference could affect communication.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The user data area (DATDB) is not changed.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The read data are located in DATDB starting at address DATDW.
As the result of the started command, the user receives the READY bit (bit 15 in BEST)
set. The user data area (DATDB) is not changed.
Correction of data
Should an MDS lose one bit of data at some point (e.g., when an EEPROM-MDS
has been write-accessed very frequently), the ECC driver is able to reconstruct the
data bit that was lost. Data integrity is guaranteed. A status bit (bit 11) in BEST is
available to the user for scanning and evaluating the data correction (e.g., to
initiate replacement of the “worn out” MDS as soon as possible).
Function
The ECC driver divides MDS memory into 16-byte blocks of which 14 bytes are
user data and 2 bytes ECC information. Each time the MDS is accessed, at least
one block is read or written (even if the user only programmed 1 byte). This
increases access time to MDS data (see table in the catalogue). If an ECC-MDS
is read without an ECC driver (e.g., with command code 02HEX), the ECC bytes
are shown between the user data. If, however, an ECC-MDS is written without an
ECC driver, the data structure of the MDS is destroyed. The MDS (or the
destroyed block) can no longer be read with the ECC driver.
Example
The data structure of a 62-byte MDS is shown below. It does not concern either
programmer or user and is shown for clarification purposes only.
Note
– Access time to MDS data is increased (i.e., less data can be processed
during dynamic operation).
– Net MDS capacity is reduced (see chapter 5.2)
– A data correction may be delayed by up to one second.
– Before being commissioned, a “normal” MDS must first be initialised with
the ECC driver switched on (e.g., with STG).
READY = 1
Yes ? No
Error = 1
Yes ? No
Possible timeout
RESET or NEXT monitoring by the
was last command = 1
user
No ? Yes
RESET at timeout
BATT = 1
Yes ? No
Message
on printer
“Change
battery.”
No communication
with the MDS takes
Error routines Command OKAY
place here.
Command OKAY
Evaluate Process
ANZ data
Addressing
The data memories are addressed linearly from address 0000 to the end address.
The ASM 450 automatically recognizes the size of the MDS memory. The user
receives an error message if the end address of the MDS is exceeded.
The following table shows the address areas of the individual MDS models:
Function
The entire data memory is written with the INIT pattern (see the initialisation
command).
Required when:
– A new data memory has just been installed and has never been
write-accessed.
– After battery failure or replacement
– Data memory is to be operated in ECC mode (read/write with ECC).
The error “error in RAM of data memory” (04HEX) is deleted. Initialisation is
started with the initialisation command (with or without ECC).
The initialisation command is not needed during normal operation.
BE
Time Required for Initialisation after MDS Is Located in the SLG’s Field
OB1
The following program shows an example of calling the FC 44. A command is
sarted when flag 0.0 is set.
AUF C DB 100 CALL FBDB USED
RESET: DBW 0.0
START READ/WRITE DBW 0.1
RESPONSE MESSAGE:
FINISHED DBW 0.15
ERROR DBW 0.14
DATDB/DATDW DBW 2
TYPE OF ERROR/ANZ DBW 4
CALL FC 44
ADR : = 256
BEDB : = 100
MOBY :=0
ANW :=1
ABTA : = B#16#00
OPT : = B#16#00
OPT2 : = W#16#0000
L DBW 0 LOAD BEST
T FW 250 AND STORE INTERMEDIATELY
AN F 250.7 READY ?
BEC CALL FC 44 AGAIN
AN F 0.0
S F 251.1 START MOBY COMMAND AGAIN IN BEST
R F 0.0 MOBY COMMAND STARTED
BE
DB 10
DBW 0 W#16#0000
DBW 2 W#16#0000
DBW 4 W#16#0000
DBW 6 W#16#0000
DBW 8 ‘MOBY I’
‘SIEMENS’
‘HERE ARE THE DATA’
OB 101
C DB 100 open BEDB
L W#16#0008 new start bit
T DBW 0 to best
L W#16#0A00 DATDB=10 and DATDW=0 or preset directly in BEDB
T DBW 2 see also Chapters 4.2.2 and 4.2.4
Precence Check
The presence check is a logic routine in the firmware of the ASM 450 which
recognizes whether a mobile data memory is currently located in the vicinity of the
SLG. The presence check can be controlled in three ways. Selection is made via
the ANW parameter.
a) With 2 DIs (ANW = 4):
DI0 gives ASM 450 a pulse when the data memory moves into the vicinity of
the SLG.
DI1 gives ASM 450 a pulse when the data memory moves out of the field.
b) With field scanning (ANW = 1, 2):
The firmware of the ASM 450 scans the area around the magnetic field
continuously for the presence of a mobile data memory. A hysteresis during
field sampling prevents (to the extent possible) presence identification from
changing back and forth when a mobile data memory stops on the edge of the
field.
c) With 1 DI (ANW = 6):
DI1 tells the ASM 450 that an MDS has left the field. The ASM 450 is ready for
the next MDS. The presence of an MDS is determined by field scanning.
Presence
A mobile data memory is currently located in the vicinity of the SLG. The presence
bit (ANW bit, bit 8 in BEST) is set. The presence of an MDS can also be
recognized by the state of digital outputs DQ0 and DQ1 when ANW = 2,4 or 6.
MDS control
MDS control is switched on when ANW = 2, 4 or 6 is set. MDS control is an option
of the ASM firmware. It permits the MDS to run with the flow of material
synchronously with the user program. An error message is output when
asynchronization occurs.
Use of MDS control forces the NEXT command to be used in the application.
Note
Scanning the DIs with the DI/DQ command is also possible if you are working
with a).
NEXT command
The NEXT command is used to switch the ASM 450 controller to the next mobile
data memory. The NEXT command must always be used if you are working
with MDS control (ANW = 2, 4, 6). The NEXT command causes the ASM 450 to
switch the digital outputs (cf diagrams on the next few pages).
A read/write job for the next MDS can be sent to the SLG as soon as the NEXT
command is acknowledged by the ASM 450. This new command remains in the
ASM 450 until the old MDS has left the field and a new MDS arrives.
This means that an ASM 450 command can be executed as soon as an MDS
enters the field of the SLG.
Note
Do not use the NEXT command when operating the ASM 450 without
MDS control (ASM 450 error message: 10HEX).
Note
The NEXT command cannot be used with the ASM 450 without MDS control
(ASM 450 error message: 10HEX).
SLG
L
c b
b
h Hysteresis field for
MDS control
a
Transmission window:
MDS MDS and SLG exchange
data.
h = 0.1 - 15 mm
h: Hysteresis: Area in which an ANW bit that has been set
once remains set (depends on MDS model)
a: Point at which the mobile data memory is recognized by the SLG. Starting at
this point, the queued MOBY command is executed with the MDS. The
presence bit remains set.
b: Execution of the MOBY command must be completed by this time since the
data memory is now leaving the transmission window. The presence bit still
remains set.
c: Reset of the presence bit in the status byte. The MDS has left the vicinity of
the SLG. A command which is not yet finished is aborted, and ASM 450 error
01HEX is output.
DI0, DI1: You can use all four digital inputs as desired. The inputs can be
scanned with the DI/DQ command.
DQ0, DQ1: These two digital outputs are set by the ASM 450 as shown in the
time diagram below. Do not set/reset these outputs with the DI/DQ
command.
Time Diagram
READY
DBW0; bit 15
NEXT
DBW0; bit 2
RESET
DBW0; bit 0
DQ0
DQ1
0.5 sec
ANW bit
DBW0; bit 8
Apply sup- RESET command MDS enters SLG executes ASM 450 has MDS Command 0.5 sec after
ply voltage after startup mes- SLG’s field. read/write com- received a leaves for a new the trans-
to the sage of ASM 450 mands. NEXT com- SLG’s MDS can mission win-
ASM 450 (no MDS present) mand. The field. now be sent dow is ex-
DQs are by FC 44. ited, DQ1
switched ac- switches
cordingly.* back to ON.
* The DQs switch over even when the MDS leaves the SLG’s hysteresis field without a NEXT command.
These edges must be controlled by the user.
Note
– The ASM 450 cannot tell whether an MDS has passed through the entire
field, or whether the MDS only entered the field very briefly and then backed
out of it again.
– When working with field scanning, it is essential that the distance between
two SLGs be maintained as specified in the planning guidelines.
(See manual on configuration, installation and service.)
Setup
a b
Direction of
movement of SLG
MDS
the MDS
ÏÏ ÏÏ
ÏÏ ÏÏ
Proximity PROFIBUS-DP
ÏÏ Proximity
switch on PROFIBUS-DP X1/2 switch on
DI0 DI1
X4
ASM 450
Time Diagram
DI1
DQ0
DQ1
ANW bit
Apply sup- RESET com- MDS enters ASM 450 exe- ASM 450 has MDS leaves Command for a
ply voltage mand after SLG’s area. cutes read/ received a the SLG’s new MDS can
to ASM 450 startup mes- The ANW bit is write com- NEXT com- area. The now be sent by
sage of ASM set by a pulse mands. mand. DIs ANW bit is FC 44.
450 (no MDS on DI0. are switched reset by a
present) accordingly.* pulse on
DI1.
* The DQs switch over even when the MDS leaves the SLG’s area without a NEXT command (pulse on DI1).
Setup
Direction of SLG
MDS movement
ÏÏ
of the MDS
ÏÏ
PROFIBUS-DP Proximity
PROFIBUS-DP X1/2 switch on DI1
X4
ASM 450
Field scanning is used to detect the MDS (see chapter 6.3). The DQs switch over
when the SLG detects an MDS. The MDS then remains “present” (bit 8 in BEST)
until a pulse occurs on DI1.
a: Distance to be configured from the middle of the SLG to the output
proximity switch: 20 cm < a < 50 cm.
The maximum value of “a” can also be greater. Remember, however, that
two MDSs cannot be positioned between start of the SLG field and output
proximity switch at the same time. Also be sure to maintain the minimum
distances from MDS to MDS.
DI1: Receives a pulse when the MDS leaves the area of the SLG. The
DI1 switch does not have to correspond to the field boundary of the SLG.
If DI1 is behind the field boundary, the MDS can leave and reenter the
SLG’s field as often as desired while a command is active. Execution of
the ASM 450 command must be finished before the DI1 switch is reached.
DI0: You can use this digital input as desired. The input can be scanned with
the DI/DQ command.
DQ0, DQ1: These two digital outputs are set by the ASM 450 as shown in the
following time diagram. Do not set/reset these outputs with the
DI/DQ command.
Time Diagram
< 2 sec
DQ0
DQ1
ANW bit
Apply RESET command MDS enters ASM 450 ASM 450 has
MDS Command for
supply after startup mes- SLG’s field executes received a
leaves the a new MDS
voltage to sage of ASM 450 read/write NEXT com-
SLG’s can now be
ASM 450 (no MDS present) commands. mand. The
area. The sent by
DQs are ANW bit is FC 44.
switched ac-
reset by a
cordingly.*
pulse on
DI1.
* The DQs switch over even when the MDS leaves the SLG’s area without a NEXT command (pulse on DI1).
Error Messages
Error 01: A pulse occurs on DI1 while the ASM 450 is processing a command
with the MDS. The command is aborted. The read data are invalid.
When a write command is involved, the data on MDS may contain
errors.
Error 02: A second DI1 pulse is registered by the ASM 450 (after T > 2 sec has
expired). During this time, the ASM 450 did not receive a data
memory command (including the NEXT command) from FC 44, or
command processing was not concluded with NEXT. The error is
reported with the next FC 44 command.
Caution
! When the supply voltage of the ASM 450 is switched on or off, spikes (i.e., short
pulses) in the msec range may occur on all DQs.
– Voltage on Yes
RESET ?
The ASM 450 and, with it, the presence check are no longer functional under the
following circumstances: the PROFIBUS-DP is in STOP, BUS-FAULT or
IM-FAULT status; the PROFIBUS-DP master does not address the station
number set on the ASM 450.
After the first RESET command, the ASM 450 exhibits the following behavior
under the following conditions:
a) No MDS is present.
The ASM 450 waits for an MDS or a read/write command.
b) An MDS is present.
The ASM 450 waits for a read/write command before the MDS leaves the field
of the SLG. A NEXT command causes the next read/write command to be
executed on the next MDS entering the field, and not on the MDS currently in
the field.
Note
Do not plug in/unplug connections when the power is on.
Loading the FC 44
– Load the FC 44 in the user program.
Note
When operating several SLGs in one PLC, BEST must be preset in each BEDB.
10XXX000 01000000
1: RESET or NEXT was executed last.
0: Command other than RESET or NEXT was the
last command.
READY (new command possible)
Execute a RESET command if the status of the two parameters is different than
that shown above. If the contents of the two parameters are still different, proceed
as shown in chapter 8 (error description).
Command Issued
FC active
No longer READY
The status of the two parameters remains the same until an MDS enters the
vicinity of the SLG and the command was executed correctly with the MDS.
Command Executed
The values of BEST and ANZ have the same states for read and write.
After execution of the command, BEST returns to the basic setting.
If an error is detected and one of the parameters is different than shown above,
proceed as shown in chapter 8 (error description).
System diagnosis
The ASM 450 offers device-related diagnostic capability (i.e., external diagnostic
data). These data can be evaluated as required. This is indicated by bit 3 of
octet 1. The data consist of a total of 3 bytes and are added after the first 6 bytes
of the system diagnosis. Their layout is shown below.
7 6 5 4 3 2 1 0 Bit
Octet 1* 0
Diag. station does not exist.
Slave is not ready for data communication.
Configuration data are wrong.
Slave has external diagnostic data.
Slave does not support requested funct.
Wrong parameterization (ID number, etc.)
Slave parameterized by another master
Octet 2* 0 1
Slave must be parameterized again.
Static diagnosis
Trigger monitoring active
Freeze command received
Sync command received
Diag. deactivated
Octet 3* 0 0 0 0 0 0 0
Ext. diag. overflow
Octet 4*
Master address in acc. w. parameterization
Octet 5* 80 HEX
ID number
Octet 6* 4C HEX
Octet 7 03 Header
Only valid when ”external diag-
nosis is switched on via OPT
Octet 8 MOBY error code
(Cf. chap. 3.3 and
Octet 9 Counter appendix A.2.)
Note
The SIMATIC S7 always goes into STOP status when PROFIBUS requests a
system diagnosis. If this STOP status is to be bypassed, an OB 86 (i.e., ignore
diagnosis) or SFC 13 (i.e., read diagnosis) must be programmed for the S7. Cf.
SIMATIC S7 manual.
Note
Flashing of the ERR-LED during normal operation is of secondary importance to
the user as long as the system continues running correctly. The programmer can
evaluate some of these errors in his/her program and provide a reaction.
This error LED is a particular help during commissioning or servicing work.
RxD: Rapid irregular flashing indicates that diaglog is taking place with the SLG or
the mobile data memory (MDS). This LED is always on when the presence
check is selected.
ANW: This LED has only one function when the user has parameterized a type of
presence check. The LED indicates the presence of an MDS in the field of
the SLG.
OFF = No data memory is present or MDS control is not on.
ON = An MDS is currently located in the field of influence of an SLG.
Error indicators
Errors are indicated by the ERR-LED.
Hardware errors on the ASM 450:
The ASM 450 cannot be addressed after a hardware error occurs. The error is not
sent via the bus. The ASM 450 must be replaced.
– Permanently ON (bright)
The PROM of the ASM 450 is defective.
– Permanently ON (dim)
The CPU of the ASM 450 is defective.
– Rapid flashing
Approx. 4 Hertz: External RAM of the ASM 450 is defective.
Approx. 8 Hertz: Dual port RAM (PLC) of the ASM 450 is defective.
Flashing pattern:
All other errors are indicated by an easy-to-identify flashing patterns. To identify
the pattern, count the pulses between two long pulse pauses. The number of
pulses corresponds to the ASM error message last output.
The ERR-LED does not flash for error messages of the FC 44. DBB 5 is in
hexadecimal format (i.e., HEX) and is specified as a fixed point number (i.e., DEC).
ANZ Description
(Right Byte)
02HEX/ Illegal command code or command parameter was entered.
02DEC → Set parameters of the data words in BEDB correctly (see command description).
06HEX/ The command code and the acknowledgement code received are not identical.
06DEC → Length of the ASM 450 input and output area is too short.
→ Set parameters of PROFIBUS master correctly.
07HEX/ The acknowledgement received is too long.
07DEC → Length of the ASM 450 input and output area is too short.
Cf. table 3-3.
→ Read command. The specified length of the data to be read is too long.
→ Set parameters of PROFIBUS master correctly.
08HEX/ The parameterized user data length in BEDB of the read/write command and the user
08DEC data length of the acknowledgment received are not identical.
→ Length of the ASM 450 input and output area is too short.
→ Set parameters of PROFIBUS master correctly.
09HEX/ The user data received are too long.
09DEC → Length of the ASM 450 input and output area is too short (not 32 bytes).
Cf. table 3-3.
→ Read command. The specified length of the data to be read is too long.
→ Set parameters of PROFIBUS master correctly.
11HEX/ The formal operands of FC 44 were set incorrectly, or the parameters of the PROFIBUS
17DEC master are wrong.
→ Set parameters of FC 44 correctly.
→ Set parameters of PROFIBUS master correctly. Check ADR parameter in particular.
→ Then start RESET command.
13HEX/ FC 44 reports that the next command must be a RESET.
19DEC → RESET was not performed after a startup message by the ASM 450.
→ RESET was not performed after an error message requiring a RESET as
the next command.
→ Then start RESET command.
ANZ Description
(Right Byte)
14HEX/ Synchronisation error between ASM 450 and FC 44
20DEC → The handshake between command and acknowledgement telegrams is out
of step. There may be a problem with the contacts, or the supply voltage
is not steady.
→ Then start RESET command.
15HEX/ ASM 450 has performed a startup, or a PROFIBUS-DP error has occurred.
21DEC → Supply voltage of the ASM 450 is not steady.
→ See ASM 450 error message 1AHEX in chapter 8.2.2
→ Then start RESET command.
The ERR-LED flashes for error messages of the ASM 450. DBB 4 is in
hexadecimal format (i.e., HEX) and is specified as a fixed point number (i.e., DEC).
If this error message is also to be reported as an external diagnosis via
PROFIBUS, the OPT parameter must be assigned with 01. Cf. chap. 3.3 or
appendix A.2.
The indicator circuits shown here can also be installed in an on-site distributor box
for permanent indication of this ASM 450 function. This provides the user with a
visual means of monitoring ASM 450 functions.
Note
If the master module is not functioning correctly or the ASM 450 is not
parameterized correctly (i.e., wrong station address), MDS control will not function
either.
ÎÎÎÎÎ
Byte 0
ÎÎÎÎÎ
ÎÎÎÎÎ
Byte 1
ÎÎÎÎÎ
Byte 2
ÎÎÎÎÎ
Telegram length
ÎÎÎÎÎ
ÎÎÎÎÎ
Length of data block
configured by the
master
Invalid data
transferred
along with
the valid data
When there is no change in the data from one cycle to the next, the previous data
blocks are transferred. The presence bit in the command byte always contains the
current status. This is always the case even there is no previous command.
Telegram Layout
The telegram layout is applicable both to command telegrams to the ASM 450 and
for result telegrams from the interface module.
Byte: 0 1 2 .............. n
Command +
AB Handshake Status Data related to the command
Battery voltage on the MDS has dropped below the threshold value.
This bit is always set for MDS models with EEPROM memory.
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0 0 S1 S0 ANW Q1 Q0
Not used
RESET 0 HEX The result telegram al-
Write w/o ECC 1 HEX ways contains the
Read w/o ECC 2 HEX command code used
INIT w/o ECC 3 HEX in the command tele-
Write w. ECC 4 HEX gram by the user.
Read w. ECC 5 HEX
INIT w. ECC 6 HEX
Status scan 7 HEX
DI/DQ command 8 HEX
NEXT 9 HEX
Startup indication
This bit indicates that the ASM 450 has per-
formed a startup (e.g., after return of power).
It is not a handshake signal. This bit arrives
completely asynchronously (1 = startup).
Handshake lines Q0 and Q1 always assume
a defined state.
Q0 and Q1 = “1”
Table of Commands
Command Description
Code
0 RESET The ASM is reset. The active command is terminated.
(If an MDS command was interrupted with a RESET command, the
reset acknowledgment contains the error 1F.) When the presence
check is being used, DQ0 and DQ1 switch to their initial states (i.e.,
status after a startup reset).
The ASM can be switched to different operating modes with the
RESET command.
7 Status scan Returns the status byte, the selected SLG and the ANW bit as the
result. This command checks to determine whether an SLG is
connected to the ASM and is ready for operation. An appropriate
error is reported.
MOBY F: The status command is used to perform the FFT. No MDS
may be located in the field of the SLG.
8 DI/DQ command Two digital output bits can be addressed directly. The result telegram
contains the value of the two digital input bits.
9 NEXT The command(s) following should refer to the next MDS. You can
use the NEXT command to start a command immediately even when
the old MDS is still located in the field. The NEXT command can only
be programmed when an ANW check has been parameterized.
When the NEXT command is used, the DQs are switched during the
presence check. (See section 6.) A NEXT command must always
be issued between 2 MDSs to prevent an error message from being
generated. Conclusion of the passage of an MDS with a NEXT
command remains valid even when the MDS has already left the field
or the next MDS is already located in the field.
A SET-ANT Only for MOBY F:
The SET-ANT command switches the SLG’s antenna on or off. Du-
ring normal operation, this command is not needed since once an
SLG is turned on, the antenna is always on.
The antennas must be turned off when two sensitive SLGs are to be
positioned very close together. The application software must then
ensure that only one antenna is on at a time.
Warning
! Before an MDS 507 can be processed, an extended RESET command with the
parameter tABTAST > 0 must be transferred to the module.
0
02 x0 00 02 x0 Stat
(RESET)
Reset message after startup. It is
output continuously until the first
–– –– –– 02 x0 0F
RESET command.
RESET with
parameter 05 x0 00 tABTAST1 OPT1 OPT2 02 x0 Stat
transfer
Bit: 7 6 5 4 3 2 1 0
Scan (ABTAST) interval
(See description of the MDS 507)
Bit: 7 6 5 4 3 2 1 0 Enable ext. diagnosis
0 = The ”slave has diagnos-
tic data” bit is not set in the
system diagnosis (default).
00 = Continuous scan during ANW check with
1 = PROFIBUS system
field scan (default)
diagnosis = 9 bytes.
Time value: 01 to 3F (is multiplied with the
SIMATIC S7:
time basis)
The SF LED is set for errors.
Time basis: 00 = Time value times 10 msec RESET error LED
01 = Time value times 100 msec 1 = RESET blinking
10 = Time value times 1 sec Timeout
11 = Time value times 10 sec 1 = ASM will respond with an error
code, if no MDS is present
TST_ON (only for MOBY I/V)
1 = ASM will respond with an error, if there
are electromagnetic interferences near
the SLG
Asssign digital pitput:
0: DQ have the function Error and ANW bit 4
1: DQ0 and DQ1 are user available 5
Bit: 7 6 5 4 3 2 1 0
MOBY mode: 6
0 = Default 2
MDS control and presence check (cf. chap. 6) 1 = MOBY I/E
000 (0) = No ANW check 2 = Reserved for MOBY L
001 (1) = No MDS control. ANW check via 4 = MOBY I with MDS 507
firmware (default) 8 = Reserved for MOBY I dialog
010 (2) = MDS control and check via firmware 9 = MOBY V
100 (4) = MDS control and check via DI0/1 A = MOBY F: MDS 1xx
110 (6) = MDS control and check via DI0 and firmware B = MOBY F: MDS 4xx
C = MOBY F: MDS 2xx
Command
Code Command Telegram to the ASM 450 Result Telegram from the ASM 450
(Hex)
7
(Status) 02 x7 00 05 x7 Status Version 8
Bit: 7 6 5 4 3 2 1 0
0 0 0 0 0 0
8 DI/ SLG
(DI/DQ) 04 x8 00 DQ SLG 04 x8 Stat
DQ select
Bit: 7 6 5 4 3 2 1 0
SLG selection
0/1 0 0 0 DI1 DI0 DQ1 DQ0 00h = SLG 1
01h = SLG 2
0 Set or reset DQ unconditionally 80h = SLG selection not changed
1 OR-link DQ or leave unchanged
(only scan DI/DQ). ERR-LED 7
ANW-LED 7
Note:
The DQs can only be controlled with the DI/DQ command, when
they were assigned priorly with the RESET command (OPT2 bit 4).
9 02 x9 00 02 x9 Stat
(NEXT)
A 03 xA 00 Mode 02 xA Stat
(SET-ANT)
01 = Turn on antenna.
02 = Turn off antenna.
Table of Commands
Command Description
Code
Command Command Telegramm to the ASM 450 Result Telegram from the ASM 450 *
Code
Meaning of: D1 to Dn User data (maximum length is specified in the bus configuration)
LNG Length of the data block (D1 to Dn)
Note: Address + LNG must be less than the
end address of the MDS
Data Correction
If the MDS memory should lose a bit of data at some time (e.g., when an
EEPROM-MDS has been write-accessed very frequently), the ECC driver is able
to reconstruct the data bit which was lost. The user is assured of correct data.
Using the status byte in the result telegram, you can scan and evaluate the data
correction (e.g., to initiate replacement of the MDS at the earliest possible date).
Table of Commands
Command Description
Code
Command Command Telegram to the ASM 450 Result Telegram from the ASM 450 *
Code
4
AB x4 00 Address LNG D1 to Dn 02 x4 00**
MSB LSB ((40,C0)
, )
5
05 x5 00 Address LNG AB x5 00** Address LNG D1 to Dn
MSB LSB (40,C0) MSB LSB
Meaning of: D1 to Dn User data (maximum length is specified in the bus configuration)
LNG Length of the data block (D1 to Dn)
Note: Address + LNG must be less than the
end address of the MDS.
02 Command Error
* The layout of the result telegram when an error occurs is
shown below.
The AB byte (02) can also assume a value > 2 during the read
command. If this happens, the data are only partially correct and
must be rejected.
** The status byte in the result telegram depends on the type of MDS (battery states).
Function
The ECC driver divides the MDS memory into blocks of 16 bytes each. These 16
bytes contain 14 bytes of user data and 2 bytes of ECC information. Each time the
MDS is read-accessed, at least one block is read or written even when the user
has only programmed 1 byte. This increases access time to MDS data. (See
table in the catalog.) When an ECC MDS is read-accessed without ECC driver
(e.g., with the STG or with command code 2), the ECC bytes can be seen between
the user data. When an ECC MDS is write-accessed without ECC driver, the data
structure of the MDS is destroyed. The MDS or the destroyed data block can no
longer be read-accessed with the ECC driver.
Application
The ECC driver increases the reliability of data validity on the MDS.
Manufacturers of MDS models with EEPROM only guarantee 10,000
write-accesses. When the ECC driver is used, you can use the MDS until the
actual end of its life and still be assured of the same data reliability.
The ECC driver can also be used with MDS models with RAM memory to increase
data reliability when an extremely high degree of interference might affect the
contents of the MDS memory.
Example
Data format of a 62-byte MDS. The following figure is only shown for explanatory
purposes since it is not visible to the programmer or user.
Note
– Access times to MDS data are increased. During dynamic operation, less
data can be processed.
– The net capacity of the MDS is decreased.
– When data correction is performed, the result can be delayed by up to
1 second.
– A “normal” MDS must be initialized (e.g., with the STG) before
commissioning with the ECC driver activated.
MDS SLG
User Master
PROFIBUS-DP
The cycles shown above operate separately from one another, and the cycle time
varies from case to case. Since these conditions prevent total coordination of the
points of data transfer, a handshake procedure must be used to ensure data
consistency.
To be able to terminate a command with a RESET command an additional
handshake must be provided for the RESET command.
The PROFIBUS-DP master addresses the slaves cyclically. The last telegram is
always output when the ASM does not have new data because no new command
has been started or because execution of a command has not yet been completed.
Exception: The current status of the presence bit in the command byte is always
transferred. This is performed even when there is no previous command.
The following diagram shows the principal flow of the handshake procedure for
control of the command and acknowledgment transfer between user and ASM 450.
S0/1
Q0/1
a b c d
a) The user prepares the command. Bit S01/1 in byte 1 is then set (byte 1 = command byte). The
ASM 450 uses the set bit S0/1 to recognize that a command telegram has been transferred comple-
tely and is valid.
Note: Q0/1 must be set by the ASM 450 prior to the start of the command.
CAUTION: The following procedure is important for assurance of data consistency.
1. Start command-related data after the AB byte.
2. Write command type with handshake bits in the transfer buffer last.
b) The ASM 450 acknowledges receipt of the command by resetting READY bit Q0/1. At the same
time, the ASM 450 starts the command.
Note: The acknowledgment telegram is usually transferred during the next bus cycle
after the command has been transferred.
c) When the user detects that Q0/1 is 0, the user also sets bit S0/1 to 0 to signal the ASM 450 that the
user is ready to receive the result telegram.
d) The ASM 450 has finished executing the command and transfers the result telegram to the bus.
The ASM 450 waits one bus cycle and then sets Q0/1. This ensures complete transmission of
the telegram when the user recognizes that Q0/1 has been set.
Before processing the result telegram further, the user must then check the status byte (byte 2)
of the acknowledgment for errors.
Note: The result telegram (set Q0/1) is not returned by the ASM until the bus cycle after
next (at the earliest) after S0/1 is cancelled. When an MDS processing command has
been started but no MDS is present, processing continues until an MDS arrives in the
transmission field and the command can be concluded.
05 AB 02
The user sends the com- command byte
12 30
mand telegram with 00 00
handshake bit S0 set. 00 High address xx
18 Low address xx
01 Length of the xx
xx data to be xx
xx read xx
Command handshake
In our example S1 is
always 0 and Q1 is always 1.
S1=“0”
Q1=“1”
S0
Q0
Next
command
1 2 3 4 5
S1
Q1
In our example S0 is
always 0 and Q0 is always 1.
S0 “0”
Q0 “1”
1 2 3 4 5
1 The user issues the command and sets S0 or S1 for the RESET command.
2 The ASM cancels the Q0 or Q1 bit.
3 The user acknowledges status 2 by cancelling bit S0 or S1.
4 The ASM has finished executing the command and sets acknowledgment signal Q0 or Q1.
5 The user evaluates the data. The ASM is ready for the next command. See also appendix A.5.1
A command which has been started can always be terminated with a RESET
command. The following diagrams show the procedure and the various states
which can occur while a RESET command is being started.
Note
A running RESET command cannot be terminated by a new RESET command. If
this happens anyway, the RESET command is rejected as long as Q1 is still 0
from the viewpoint of the ASM.
S0
Q0=1
S1
Q1
If the user transfers both S0 and S1 set during the same bus cycle, only the RESET command is considered.
S0 has no effect between the setting of S1 and the setting of Q1 (from the viewpoint of the ASM). The time at which
S0 is reset must be specified by the user. Further processing is the same as shown in the preceding diagrams.
S0
Q0
S1
Q1
A set S0 has already been transferred to the ASM, and a RESET command is started with S1 one or more bus cycles
later. The started command is terminated. Q0 remains 0, and becomes 1 together with Q1 when the RESET command
has been concluded. Only the result telegram of the RESET command is returned. S0 can be reset at any time.
FB 240
MOBY: 450
ADR
BEDB
MOBY
ANW
ABTA
OPT
OPT2
S7 S5
DBW 6 DW 3 Command Parameter Command code and command parameter (see chap. 4.2.4)
DBW 12 DW 6 Reserved
Reserved for FB 240
(Do not change.)
DBW 30 DW 15
DBW 32 DW 16 Reserved
Caution!
The minimum length of BEDB is 17 data words (DW 0 to DW 16).
:SPA FB240
NAME :MOBY:450 CALL FC 44
ADR : KY 128,128 ADR : = W#16#8080
BEDB : KF+100 BEDB : = 100
MOBY : KF+0 MOBY :=0
ANW : KF+1 ANW :=1
ABTA : KH 0000 ABTA : = B#16#00
OPT : KH 0000 OPT : = B#16#00
OPT2 : KH 0000 OPT2 : = W#16#0000
:L DW 0 L DBW 0
:T MW 250 T MW 250
:
:UN M 250.7 UN M 250.7
:BEB BEB
:
:U M 250.6 U M 250.6
:BEB BEB
:
:U M 0.0 U M 0.0
:BEB BEB
:
:L KY 10,0 L W#16#0A00
:T DW 1 T DBW 2
:L KY 1,20 L W#16#0114
:T DW 3 T DBW 6
:L KH 4711 L W#16#4711
:T DW 4 T DBW 8
:
:
:UN M 0.0 UN M 0.0
:S M 251.1 S M 251.1
:S M 0.0 R M 0.0
:
:
:L MW 250 L MW 250
:T DW 0 T DBW 0
:
:BE BE
! Warning ! Warnung
Hazardous voltages are present in this equipment during Beim Betrieb elektrischer Geräte stehen zwangsläufig be-
operation. stimmte Teile dieser Geräte unter gefährlicher Spannung.
To ensure safe operation of the equipment, maintenance Sicherer Betrieb der Geräte setzt voraus, daß diese von
shall only be performed by qualified personnel in accor- qualifiziertem Personal sachgemäß unter Beachtung der im
dance with the instructions in the MOBY catalog1 and tech- MOBY-Katalog1 und der technischen Beschreibung enthal-
nical description. tenen Hinweise eingesetzt werden.
Failure to observe these instructions can result in death, se- Bei Nichtbeachtung können Tod, schwere Körperverletzung
vere personal injury or substantial damage to property. oder erheblicher Sachschaden die Folge sein.
The following instructions and those on all product labels Beachten Sie daher auch bei Instandhaltungsmaßnahmen
must be followed when carrying out any maintenance work. an diesem Gerät alle hier und auf dem Produkt selbst aufge-
Always disconnect and earth the equipment before führten Hinweise.
starting any maintenance. Vor Beginn jeglicher Arbeiten ist das Gerät vom Netz
Use only spare parts authorized by the manufacturer. zu trennen und zu erden.
Es dürfen nur vom Hersteller zugelassene Ersatzteile
The servicing intervals as well as the instructions for verwendet werden.
repair and replacement shall be duly observed. Die vorgeschriebenen Wartungsintervalle sowie die
A lithium battery is contained in mobile data memories Anweisungen für Reparatur und Austausch sind
with RAM. The following instructions must be unbedingt einzuhalten.
observed: Bei einem mobilen Datenspeicher mit RAM ist eine
To avoid the risk of fire, explosion and severe burns, Lithiumbatterie integriert, hierzu sind folgende
the battery should not be recharged, dismantled, Hinweise zu beachten:
exposed to heat over 100 degrees Celsius, ignited, or Vermeiden Sie das Risiko von Feuer, Explosionen und
brought into contact with water. schweren Verbrennungen. Die Batterie darf nicht
nachgeladen, auseinandergebaut, über 100° Celsius
The special instructions must be followed when using heat- erwärmt, entzündet oder ihr Inhalt mit Wasser in
resistant data storage media. Berührung gebracht werden.
1 Should you not be in possession of the MOBY catalog, it can Beim hitzefesten Datenträger sind die besonderen Hinweise
be obtained through your local Siemens office. zu berücksichtigen.
1 Sollten Sie nicht im Besitz des MOBY-Katalogs sein, so kann
er über jede örtliche SIEMENS-Niederlassung bestellt werden.
Français Italiano
! Attention ! Pericolo
Le fonctionnement d’un équipement électrique implique nécessairement la Durante il funzionamento di apparecchi elettrici, determinate parti di tali appa-
présence de tensions dangereuses sur certaines de ses parties. recchi si trovano inevitabilmente sotto tensione pericolosa.
L’exploitation sûre de cet équipement implique qu’il soit mis en oeuvre de Per un funzionamento sicuro di questi apparecchi è necessario che essi ven-
façon adéquate par des personnes qualifiées, en respectant les consignes gano adoperati, nel modo opportuno, solo da personale qualificato, che os-
de sécurité figurant au catalogue MOBY1 et aux descriptions techniques. servi le indicazioni contenute nel catalogo1 per gli apparecchi MOBY e nella
Le non-respect des consignes de sécurité peut conduire à la mort, à des descrizione tecnica.
lésions corporelles graves ou à un dommage matériel important. In caso di non osservanza si possono verificare la morte, gravi lesioni alle per-
Ne procéder à l’entretien que dans le plus grand respect des règles de sécu- sone o notevoli vanni alle cose.
rité énoncées ici ou figurant sur le produit. Per questo motivo è necessario che le avvertenze riportate qui e sul prodotto
stesso vengano rispettate anche nel caso di misure di manutenzione degli ap-
N’utiliser que des pièces de rechange autorisées. Prima di iniziare qualsiasi lavoro è necessario staccare l’apparecchio
dalla rete ed effettuare una messa a terra.
Respecter la périodicité d’entretien et les instructions de réparation et
de remplacement. Possono essere utilizzati solo pezzi di ricambio prodotti dal
costruttore.
Les mémoires embarquées (RAM) sont équipées d’une pile au
lithium.
E’assolutamente necessario rispettare i tempi di manutenzione
previsti e le indicazioni riguardanti il ricambio e la riparazione.
Ne pas exposer la pile au feu, danger d’explosion et de lésions
graves. La pile ne doit pas être rechargée, ouverte exposée à des
In una memoria dati mobile dotata di RAM è integrata una batteria al
litio; in questo caso è necessario osservare le seguenti indicazioni:
températures supérieures à 100° C ou exposée au feu. Son contenu
ne doit pas entrer en contact avec de l’eau. evitare il pericolo di incendio, di esplosioni e di gravi ustioni. E’vietato
En ce qui concerne les supports de données résistants à la chaleur, respecter ricaricare, smontare, riscaldare oltre i 100° C o incendiare la batteria,
les consignes spécifiques. oppure mettere il suo contenuto a contatto con acqua.
1 Si vous ne disposez pas ou du catalogue MOBY, ce peuvent être commandés Nel caso di un supporto dati resistente al calore è necessario osservare le in-
auprès de votre agence SIEMENS. dicazioni speciali al riguardo.
1 Se non doveste essere in possesso del catalogo MOBY, potete ordinarlo presso
qualsiasi filiale SIEMENS di zona.
Español Svensk
! Precaución ! Varning
Durante el funcionamiento de los equipos eléctricos hay partes de los mis- Vid drift av elektrisk utrustning ligger det alltid en farlig spänning på vissa delar
mos que se encuentran forzosamente bajo tensión peligrosa. av utrustningen.
Un funcionamiento seguro de los equipos presupone que han sido instalados Säker drift av utrustningen förutsätter att den utförs av kvalificerad personal
correctamente por personal calificado observando las indicaciones conteni- med uppmärksamhet på anvisningarna i MOBY-katalogen1 samt de anvisnin-
das en el Catálogo1 de los equipos MOBY y la Descripción técnica. garsom ges i den tekniska beskrivningen.
La no observación de dichas indicaciones puede provocar la muerte, lesio- Om dessa anvisningar ej beaktas kan följden bli dödsfall, svår kroppskada el-
nes corporales graves o daños materiales considerables. ler avsevärda materielskador.
Por este motivo es preciso observar también durante las operaciones de Uppmärksamma vid underhållsarbete också anvisningar som ges här och på
mantenimiento y reparación en dicho equipo todas las indicaciones que figu- själva produkten.
ran aquí y en el producto.
Före allt arbete skall utrustningen skiljas fran nätet och jordas.
Antes de comenzar cualquier trabajo es preciso seccionar de la red
Bara reservdelar som godkänts av tillverkaren får användas.
el equipo y ponerlo a tierra.
lakttag alltid föreskrivna underhållsintervall samt de anvisningar som
Solo deben utilizarse repuestos homologados por el fabricante.
givits rörande reparation och utbyte.
Es imprescindible observar los intervalos de mantenimiento
Det mobila dataminnet med RAM innehåller et litiumbatteri. För detta
especificados asi como las instrucciones de reparación y reemplazo.
gäller följande anvisningar:
Las memorias de datos móviles con RAM tienen integrada una Undvik risk för öppen låga, explosioner och förbränning. Batteriet får
batería de litio; al respecto es preciso observar las indicaciones
inte efterladdas, tas isär, värmas upp över 100° C eller tändas på.,
siguientes:
och dess innehåll får ej komma i beröring med vatten.
Evite riesgos de fuego, explosiones y quemaduras graves. La batería
no debe ser recargada, desmontada, calentada a mas de 100 grados För värmebeständiga datamedier gäller speciella anvisningar, som måste be-
centígrados, inflamada: su contenido no deberá ponerse en contacto aktas.
con agua. 1 Om Ni inte har ett exemplar av MOBY-katalogen så kan den bestållas från när-
En los soportes de datos con protección térmica es preciso observar las indi- maste SIEMENS-kontor.
caciones particulares respectivas.
1 Si no dispone del catálogo MOBY, estos pueden pedirse a través de cualquier
sucursal local de SIEMENS.
FROM:
Your name: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Your title: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Your company: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Street: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
City: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Telephone:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _