Professional Documents
Culture Documents
ASM 410
ASM 410 Interface Module
Technical Description
Release 12.98
6GT2097-3AC00-0DA2
Table of Contents
Page
1.
2.
2.1
2.2
2.3
2.4
3
3
5
6
7
3.
3.1
3.2
3.3
3.4
3.5
3.6
3.6.1
3.6.2
3.6.3
3.7
3.8
3.8.1
3.8.2
Programming
Representation of the ASM 410 in the Process Image
Timing Diagram of Control Signals
Programming Example
Programming of Cold Start and Restart Procedures
Application of SLG ON/OFF" and Presence"
Using the ASM 410 as Decentralized Periphery
Use in the ET 100U
Use in the ET 200
Use with SIMATIC S7 via ET 200U
Processing Mobile Data Carriers
Dialog Operation
How is the MOBYI Dialog Set Up?
How Does the User Work with the MOBYI Dialog?
9
9
12
15
16
16
20
20
22
23
24
26
26
28
4.
30
5.
Error Evaluation
32
6.
Transmission Times
34
7.
Commissioning
35
8.
37
9.
Warnings
38
6GT2002-0BA00
ASM 410
-1-
RD: 12/98
6GT2097-3AC00-0DA2
Simple programming via process image inputs and process image outputs ( PII/PIQ).
No function block required.
Fully compatible with all MOBY-I components: Unrestricted use with all MDS mobile data
carriers, SLG read/write devices and the STG service and test unit
Up to 2 SLG read/write devices can be driven from one ASM 410 in time multiplex mode
Status and error indications clearly displayed on the front panel of the module
(4) J31069D0125U001A07618
-2-
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
LEDs
A1
A2
A3
B1
B2
B3
Fehler
aktiv
ANW
1.SLG
2.SLG
Power
1 2 3
Betriebsart
0
1
2
3
4
5
6
7
6 8 A
4
C
2 0 E
normal
ECC
Testbetr.
Test+ECC
INIT norm
INIT ECC
res.
res.
TEST
8 1.SLG
bzw.
2.SLG
9
res.
F
STG
Anschaltmodul
MOBY - I
6GT2002-0BA00
1
Table 1
No.
Colour
A1
Red
A2
Yellow
A3
Green
Mobile data carrier within range of SLG. The SLG that has detected the MDS is
identified by the LEDs B1 and B2. (The LED is only on when presence detection is
in operation; see chapter 3.1.)
B1
Green
B1 = 1st SLG
is in use
B2
Green
B2 = 2nd SLG
is in use
B3
Green
B3 = Power ON:
6GT2002-0BA00
Description
Error: The last command was terminated with an error
, or the hardware of the
module is defective.
Rapid, irregular flashing indicates that a dialog with the SLG or the mobile data carrier
(MDS) is currently in progress. This LED is on when presence detection is
enabled.
ASM 410
Note:
-3-
RD: 12/98
6GT2097-3AC00-0DA2
Positions 8 to F:
Attention:
Remember to perform a new start or RESET after changing the mode selec
tion switch.
Table 2
Mode of Operation
Switch
Position
Text
on Label Insert
Description
Normal
ECC driver
Read from and write to all types of MDS; the ECC driver
is enabled (see chap. 4).
Test operation
Test + ECC
INIT normal
INIT ECC
6
7
Reserved
9
F
Reserved
(4) J31069D0125U001A07618
-4-
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Galvanic
isolation
5 V DC
MOBY-I
24 V DC
+24 V
Ext. power
supply
S5
+9 V
SI
Clear
+24 V
MOBY-I processor
EPROM, RAM
SYAS processor
+ shift register
Clock
TxD
TxD
Latch
RxD
RxD
GND
+ TxD
- TxD
STG
+ RxD
- RxD
Ident
S0
RS 422
GND
TxD
RxD
Multiplexer
Clamp or crimp
connector for SLG
(depends on bus module)
Interface to
1st SLG
SLG
Interface to
2nd SLG
The ASM 410 is equipped with 2 microprocessors (SYAS and MOBY-I processor) which are galvani
cally isolated by 2 optocouplers. As a result, no external interferences can influence the S5. The SYAS
processor (synchronous / asynchronous processor) services the synchronous interface to the S5. It
stores incoming data from the PIQ (process image output) which it then sends to the MOBY-I proces
sor after a short delay via the asynchronous interface. Error detection and telegram repetition via the
3964R procedure make it impossible to disrupt this interprocessor interface. The following rules of
communication apply to both processes:
The SYAS processor always sends the MOBYI processor a telegram when any bit in the PIQ is
changed by the application programmer.
The MOBYI processor sends the SYAS processor a telegram for changes in presence, acknowledgement of a command, finished message of a command and return of power. These telegrams appear in
the PII for the user.
Caution:
Telegrams between the SYAS and MOBY-I processors can be lost if the handshake
described in chapter 3.2 is not used.
Power supply:
The SYAS processor receives its power from the +9 V supply of the S5 CPU. This means that the SYAS
CPU services the S5 bus as soon as the S5 CPU is switched on regardless of the 24 V supply. The
MOBY-I processor (and all MOBY-I components) receive their power from the external 24 V supply.
During commissioning it is therefore possible to test all MOBY-I components with the STG service and
test unit without having to switch on the S5 CPU (see chapter 7).
6GT2002-0BA00
ASM 410
-5-
RD: 12/98
6GT2097-3AC00-0DA2
Function
1
2
3
4
5
6
7
8
9
Hsg.
Not used
+ Transmit
+ Receive
Not used
- Receive
- Transmit
Ground (0 V)
+24 V
Not used
Cable shield
BUS MODULE
(Left Side)
(Right Side)
9
Bus module with
screw or crimp
connection
Terminal
10
10
Function
+24 V external power supply for MOBY-I (ASM 410, STG and SLG)
2
3
4
5
6
7
8
+ TxD
- TxD
9
10
+ RxD
- RxD
(4) J31069D0125U001A07618
Data cables
to 2nd SLG
-6-
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Max. Number of
ASM 410s per Station
Addressing
S5100U
S595U
4/8
S590U
ET 100U
Any
ET 200U
Any
Remarks
* Slotoriented addressing
S5100U
95U
90U
64
to
71
72
to
79
80
to
87
88
to
95
96
to
103
104
to
111
112
to
119
120
to
127
Slot
number
Address
allocation for ASM 410
Free slots for
additional digital modules
SIEMENS
SIEMENS
Read/write device
SLG
6GT2002-0BA00
ASM 410
-7-
Read/write device
SLG
RD: 12/98
6GT2097-3AC00-0DA2
Mounting rail
B U S MODULE
1
10
Terminal strip
on bus module
Shield
Cable shield
+24 V
+ RxD
- RxD
0V
+ TxD
- TxD
+24 V
From external
power supply
0V
gn
ye
wh
br
pk
gr
1st SLG
+ RxD
- RxD
+ TxD
- TxD
+24 V
0V
gn
ye
wh
br
pk
gr
2nd SLG
The maximum cable length depends on which SLG is connected and the
tolerance of the external 24 V supply. (See chapter 2 of MOBY catalogue.)
Colour coding
gn = green
ye = yellow
wh = white
br = brown
pk = pink
gr = grey
=
=
=
=
=
=
(4) J31069D0125U001A07618
-8-
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
3. Programming
The ASM 410 is programmed directly by the user. Commands are started and data fetched in STEP5 by
setting and scanning just a few control bits in the process image (PIQ/PII). You can program in an FB or
a PB or directly in OB1. A special function block is not required.
3.1 Representation of the ASM 410 in the Process Image
***
The ASM 410 is designed as an analog input/output module and takes up 8 bytes of the
process image. The length of a telegram is therefore 8 bytes.
***
5 bytes of data on the mobile data carrier are always processed for each command.
***
The user sends a telegram to the PIQ and receives a status (or the results) in the PII each
time a new cycle starts.
ASM 410
-9-
RD: 12/98
6GT2097-3AC00-0DA2
PIQ:
Byte:
1
2
3
4
5
6
7
8
Bit: 7
Control byte
Address MSB
Address LSB
1st byte / INIT
2nd byte
3rd byte
4th byte
5th byte
Start address
on MDS
Res.
Res.
for FB
User data:
5 bytes for a
write command
Expanded
RESET4
SLG ON/OFF 5
(presence detection)
Dialog mode6:
PII:
Byte:
1
Status byte
2 Address MSB
3 Address LSB
4 1st byte / error
5
2nd byte
6
3rd byte
4th byte
7
8
5th byte
Bit: 7
Start address
on MDS
0 = Normal operation
1 = Dialog
Ready
00 = Nothing
active1
01 = Read
10 = Write/INIT
11 = Reset
MDS detected
(1 = presence)
Error2
Command:
00 = ACKNOWLEDGE
command
01 = Read
10 = Write/INIT
11 = Reset
0 = SLG no. 1
1 = SLG no. 2
Battery
3
low
User data:
5 bytes for a
read command
0
1
= SLG no. 1
= SLG no. 2
ECC correction:
1 = ECC correction
was performed.
1
2
No command was processed since powering up the system or the MOBY CPU has been restarted (failure of 24 V supply).
The ERROR bit signals the occurrence of an error. The READY bit is also set. Exact error code in byte 4 of the PII. Bytes 5 to 8 do
not contain valid data.
Battery low: This bit can be set by the ASM after each command. It indicates that the battery voltage in the MDS is low. When
Battery low"=1, the MDS will still operate for a certain period of time. To avoid loss of data on the MDS, replace the MDS or the
MDS battery as soon as possible.
It is mandatory that this bit be set if you are using the MDS 507/407E. It has the following effect on the PII:
Expanded RESET = 0 ! Bit 4 in the PII indicates that the RAM backup battery is empty. Bit 4 in the PII is set after each
command for MDS models equipped with EEPROM.
Expanded RESET = 1 ! Bit 4 in the PII indicates that the RAM backup battery is empty or a dialogue battery is empty.
The expanded RESET bit may only be set during the RESET command. This bit must be reset during read/write accesses.
The SLG ON/OFF bit must be set to 0 before switching the MOBY operating mode.
When the dialog bit is set, dialog mode is switched on with the RESET command. The selection mode switch of the ASM 410 must
be set to 0.
Since the VMDS is cleared on the ASM, this bit should be set to 0 again when the RESET command is being used in dialog mode.
Cf. chap. 3.8.
(4) J31069D0125U001A07618
- 10 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Special Commands
PIQ: During initialisation. (Switch setting 4 or 5. See chapter 2.1.)
Bit:
Byte
1
2
3
4
5
6
7
8
Control byte
00
00
MSB LSB
INIT data
00
00
00
00
00
00
00
00
00
MSB
LSB
00
00
08
20
80
02
00
00
Command:
00 = ACKNOWLEDGE
10 = INIT
MDS Type
40
80
00
00
00
F0
C0
10
62 bytes
128 bytes
2
Kbytes
8
Kbytes
32 Kbytes
MOBY E
MOBY F: MDS F4xx
MOBY F: MDS F2xx
1= Expanded RESET
1
2
3
4
5
6
7
8
Bit:
Bit:
MOBY
Command:
11 = RESET
00 = ACKNOWLEDGE
Time value: 00 to 3F
Time factor:
Bit: 7
00
91
92
93
81
1
Control byte
00 =
11 =
10 =
11 =
4
=
=
=
=
=
0.01
0.1
1
10
2 1
1= Expanded RESET
(See bytes 4 and 5 in PIQ).
sec
sec
sec
sec
MOBY I/E
MOBY F: MDS F1xx
MOBY F: MDS F4xx
MOBY F: MDS F2xx
Switch MOBYV operating mode on/off
The tABTAST parameter is only transferred during the reset command when the MDS 55507/407E" bit is set at the same
time.
See the MDS 507/407E description for a detailed description of the handling of tABTAST.
It is strongly recommended that this bit be set when using the MDS 507/407E. It has the following effect on the PII:
Expanded RESET = 0 ! Bit 4 of the PII indicates that a RAM backup battery is empty. Bit 4 of the PII is set
after each command for MDS models equipped with EEPROM.
Expanded RESET = 1 ! Bit 4 of the PII indicates that a RAM backup battery is empty or a dialogue battery is empty.
00
00
00
00
XX
00
0
01 = Read
00 = ACK
1 = Special command
01 = Perform FFT
00
6GT2002-0BA00
ASM 410
- 11 -
RD: 12/98
6GT2097-3AC00-0DA2
a) Activation of a read or write command is initiated by the user setting bit 0 or 1 in the PIQ.
Note : Ready must be set before start of command.
b) The ASM 410 acknowledges the receipt of a new command while the command itself is executed
at the same time. The acknowledgement with ready = 0 does not have to follow in the next cycle;
several cycles may elapse between a and b.
c) User reset of the read/write control bits:
---> Issue acknowledge command.
This action is necessary so that the next command can be processed by the ASM 410. If no
acknowledge command" is issued, all subsequent commands except the reset command
will be ignored.
d) Completion of command by the ASM 410:
The error bit must be interrogated. User data in the PII is valid up to the start of the next command.
With the next cycle, a new MOBY-I command can be initiated in the PIQ.
Extra care...
... must be taken with the programming when the handshake is interrupted by presence mes
sages, RESET commands and SLG switchovers. The user program can hang up if the pro
gramming is wrong.
Frequent causes:
S
The user changes the PII as desired (i.e., in every cycle), and the cycle time in the SIMATIC
is less than 20 msec.
Frequent occurrence of presence massages. The MDS is located on the boundary of the
SLG, and the cycle time in the SIMATIC is relatively long (i.e., > 100 msec).
Read/write commands or RESET commands are sent to the MDS when an MDS is present
(e.g., when the MDS is in the border area).
After a RESET command, the user program does not perform a complete handshake with
acknowledge" and wait for finished message".
(4) J31069D0125U001A07618
- 12 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
The following timing diagram shows the exact representation of the data in the PII/PIQ.
Duration of one cycle
Cycle change:
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Read
Write
Address
QB 2+3
Write data
QB 4 to 8
Ready
Error
Address
IB 2+3
Read data
IB 4 to 8
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
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.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
9
10
= Valid data
6GT2002-0BA00
ASM 410
- 13 -
RD: 12/98
6GT2097-3AC00-0DA2
No Initiated
by
Description
ASM
User
ASM
ASM
READY = 1
Read is completed. The data which was read is located in bytes 4 to 8 of the
input telegram.
After a restart (power on) the ASM 410 comes up with READY.
A RESET must be programmed in the cold start and restart OB.
Start of read command. With the cycle change, the rising READ edge and
the MDS address of QB2 and QB3 are passed to the ASM 410. The address and
READY bit = 0 do not appear in the input telegram of the ASM 410 until the next
cycle change.
The last results remain in the PII until the start of the next command.
User
ASM
ASM
ASM
Command was terminated with an error . The error code is located in byte 4 of
the input telegram.
User
10
(4) J31069D0125U001A07618
- 14 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
64.0
64.1
64.7
64.0
64.1
U
U
U
UN
U
BEB
I
I
I
Q
Q
64.0
64.1
64.7
64.0
64.1
UN
UN
I 64.0
I 64.1
UN
R
R
BEB
I 64.7
Q 64.0
Q 64.1
O
O
BEB
Q 64.0
Q 64.0
U
S
BEB
I 64.6
ERROR
IW 67
.
.
IW 69
.
.
START
Q 64.0
BEB
If
..
..
..
>
********** C O M M A N D E X E C U T E D C O R R E C T L Y *************
U
S
BE
If programming (with OB13) of the SIMATIC is timecontrolled, the MOBY call must be programmed
as follows:
.
.
.
AS
JU
AF
; Process MOBY
; Enable alarms
.
.
.
6GT2002-0BA00
ASM 410
- 15 -
RD: 12/98
6GT2097-3AC00-0DA2
L
T
L
T
L
T
BE
KH0000
QB65
KB30
QB66
KB3
QB64
Of the two SLGs that can be connected, only one can be activated with SLG on/off" at a
time. When the user changes the SLG no." in the PIQ, the new SLG is activated automati
cally. Errors cannot be evaluated by the user when using SLG on/off=1". If the ASM de
tects an error (e.g., as a result of field interference), no presence bit is reported in the PII.
The error message is not sent until a read/write command is sent to the ASM.
(4) J31069D0125U001A07618
- 16 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Function Diagram:
SLG
c
b
b
Hysteresis field for
presence monitoring
a
MDS
Transmission window:
Exchange of data between
MDS and SLG
6GT2002-0BA00
ASM 410
- 17 -
RD: 12/98
6GT2097-3AC00-0DA2
Diagram:
Overall start
Reset pallet counter
Issue MOBY command
Control byte : RESET command
SLG ON/OFF=1
Step pallet
counter
Status 4
Status 1
Wait
for
presence = 1
If command = read,
then forward data
(not for reset)
Send
ACK command
to ASM
Status 3
Wait for
presence = 0
Wait
for
READY=0
*
*
Wait for
end of command
READY=1
Status 2
Start
read
command
A new read command can be started immediately after the data carrier just read has passed out
of range of the SLG.
L KB0
T QB65
L KB0
T QB66
BE
(4) J31069D0125U001A07618
- 18 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
I 64.0
I 64.1
I 64.7
STATUS4
STATUS1
=NXT
Q 64.1
I 64.7
I 64.5
ERROR
I 64.7
I 64.6
ERROR
STATUS1
STATUS2
I 64.1
IB67
IB68
IB69
SEGMENT 2
UN
JC
U
BEB
R
S
R
S
BEA
NXT:***
STATUS2
=NXT
I 64.5
STATUS2
STATUS3
Q 64.1
Q 64.0
FB10
SEGMENT 3
UN
JC=NXT
U
BEB
R
S
R
BEA
NXT:***
STATUS3
I 64.7
STATUS3
STATUS4
Q 64.0
SEGMENT 4
UN
JC
UN
BEB
STATUS4
=NXT
I 64.5
R
S
L
L
+F
T
NXT:BE
Note:
6GT2002-0BA00
STATUS4
STATUS1
PALCNT
KB1
PALCNT
The user can place the program variables anywhere in the flag area.
ASM 410
- 19 -
RD: 12/98
6GT2097-3AC00-0DA2
ET 100U
DI
DQ
DQ
Max. of 32 ET 100Us
The ASM 410 is used in the ET 100 as an analog module. If the module is being parameterised with COM
ET 100 software, it must be specified with 4AX for the corresponding slot. The ASM 410 occupies 8 input
and 8 output bytes (i.e., 16 bytes). Since up to 32 bytes can be used by each ET 100 in the process
image of the central controller, a maximum of 2 modules can be used with each ET 100. If other modules
(in addition to the ASM 410) are to be used in an ET 100, only one MOBY-I module can be installed.
The ASM 410 in the ET 100 can be addressed from every address area of the PLC (P, Q, IM3 and IM4).
General notes:
The ASM 410 interface module cannot replace the ASM 400 module (the S5 modules used for MOBY-I)
used during operation with the ET 100U.
MOBY operation with the ET 100 is not recommended for applications in which large amounts of data
have to be processed, or very fast controller response times are involved.
Bear these points in mind when designing your system.
Special programming notes:
A characteristic of the ETAS308 interface module in the central controller is that it transfers data to
and from the peripherals (ET 100Us) regardless of the cycle change of the S5. The incorrect pro
gramming sequence then causes the 8byte command telegrams to be forwarded to the ASM 410
with incorrect data.
Subject to change without notice!
RD: 12/98
(4) J31069D0125U001A07618
- 20 -
6GT2002-0BA00
ASM 410
Note:
6GT2097-3AC00-0DA2
Bytes 2 to 8 must sent first in the command telegram (e.g., PIQ) and then the start of a com
mand in byte 1 (control byte) with the transfer command. Individual bits in the control byte
cannot be set and reset.
If the MOBY interface module receives an incomplete command (as described above), it will be ignored
until the read or write bit is recognised in the control byte.
Data is transferred from ET 100U to S5 independently of the shift cycle in an ET 100U. This may, however,
cause incomplete response telegrams to be received by the central controller.
Only after an additional delay corresponding to the total data transmission time" of the system, can the
user be sure that all data are available in the PII in the central controller.
Note:
When the READY bit is set in the PII in response to a read command, the user must start a
timer with a time equal to/greater than the total data transmission time" of the system. Only
when this timer has expired can the user be certain that the data is available in the PII for
further processing.
t trans max
t A max
t B max
tC
tC
Transmission distance
I/O bus
Calculation as shown
in manual of ET 100U
+ t B max
+ 8 msec
Therefore: the wait time required by the system in an average configuration is between 10 and 70
msec. This corresponds to between 1 to 5 cycles of the controller.
Diagram of the Read Sequence:
Wait for
Ready = 0
Start read
command
Send
ack. cmd.
to ASM
Wait for
Ready = 1
Process
read data
Wait until
timer expires
6GT2002-0BA00
ASM 410
- 21 -
Start timer
with trans
mission time
RD: 12/98
6GT2097-3AC00-0DA2
Programming Example :
Three (3) bytes are to be written to the data carrier starting at address 5. The data to be written is in
FY 10 to FY 12. The ASM 410 is located in the Parea at address 80.
A new data carrier is to be written each time a rising edge occurs on the start switch".
ON
ON
ON
JC
L
T
M002:
UN
R
UN
UN
BEB
U
JC
L
T
BEA
NXT1: O
O
BEB
U
S
BEB
I 80.0
I 80.1
I 80.7
=M002
KB0
QB64
START
EFSTART
I 80.0
I 80.1
I 80.7
=NXT1
KB0
QB80 *
Q 80.0
Q 80.1
I 80.6
ERROR
UN
BEB
U
BEB
S
L
T
L
T
L
T
L
T
L
T
L
T
BE
*
**
START
> No new command start
EFSTART
EFSTART
KB0
QB81
KB5
QB82
FW10
QB83
FW13
QB85
FY14
QB87
KH0002
QB80 **
Output of ACKNOWLEDGE command" may not be performed with 2 RESET output bit" commands as in the example in chapter 3.
The command start must be the last action (unconditional) when issuing the command.
ET 200U in acc. w. Siemens standard: The ASM 410 module must be parameterised with 095 or
223. The 223 parameterisation is somewhat slower. The 8 bytes of the process image are always
consistent.
ET 200U in acc. w. DP standard: The ASM 410 module must be parameterised with 4AX or 243.
- Up to four ASM 410s can be driven from one ET 200. If DI/DQ or other I/O devices are also driven by
the ET 200, the maximum number of ASM 410s is reduced.
- The response to a read command is available immediately if the ready bit is set. Using a timer to wait
for the read data (see ET 100U) is not necessary here.
Otherwise, the conditions described in chapter 3.6.1 apply.
Subject to change without notice!
RD: 12/98
(4) J31069D0125U001A07618
- 22 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
ASM 410
ET 200U
24 V
PROFIBUS
SLG 1
SLG 2
PROFIBUSDP
Programming Example:
DB 100 is used for indirect addressing as the global data block. System functions SFC 14 and SFC 15
must be programmed for the data transmission to and from the ASM 410. These functions must be called
cyclically.
The write data are stored starting at DBB 22.
The read data are available starting at DBB 33.
SLG switchover is handled here via I 0.7.
Input 0.1 is programmed as the start command.
AUF DB 100
CALL DPWR_DAT
LADDR :=W#16#80
RECORD :=P#DB100.DBX 20.0 BYTE 8
RET_VAL:=DB100.DBW10
CALL DPRD_DAT
LADDR :=W#16#80
RET_VAL:=DB100.DBW11
RECORD :=P#DB100.DBX 30.0 BYTE 8
U
DBX
30.0
U
DBX
30.1
U
DBX
30.7
R
DBX
20.0
R
DBX
20.1
UN DBX
30.0
UN DBX
30.1
BEB
UN DBX
30.7
R
DBX
20.0
R
DBX
20.1
BEB
O
DBX
20.0
O
DBX
20.1
BEB
U
DBX
30.6
S
A
8.0
BEB
U
E
0.1
=
DBX
20.0
U
E
0.7
=
DBX
20.2
BE
6GT2002-0BA00
ASM 410
- 23 -
RD: 12/98
6GT2097-3AC00-0DA2
(4) J31069D0125U001A07618
- 24 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Addressing of the data carriers is linear from address 0000 to the end address. The ASM determines the
amount of memory on the MDS automatically. The user receives an error message if an address beyond
the end of the MDS is specified.
Addressing
KH
Normal
KY
with ECC
Normal
KF
with ECC
Normal
with ECC
0000
003D
0000
0029
00,00
00,61
0,0
0,41
+0
+ 61
+0
+ 41
+0
+ 127
+0
+ 111
+0
+ 2044
+0
+ 1777
+0
+ 8188
+0
+ 7153
+0
+ 32764
+0
+ 28657
0000
007F
0000
006F
00,00
00,127
00,00
0,111
0000
07FC
0000
06F1
00,00
07,252
00,00
06,241
0000
1FFC
0000
1BF1
00,00
31,252
00,00
27,241
0000
7FFC
0000
6FF1
00,00
127,252
00,00
111,241
Length
0004
0,0
2,239
0,0
2,145
+0
+ 751
+0
+ 657
31,240
0,4
8176
4
+0
+4
0,16
0,31
+ 16
+ 31
0,0
0,4
+0
+4
0000
0004
0,0
0,4
End address
001F
Length
0004
End address
00FF
Length
0004
6GT2002-0BA00
ASM 410
0,64
0,255
+ 64
+ 255
0,0
0,4
+0
+4
- 25 -
RD: 12/98
6GT2097-3AC00-0DA2
Station_N
Station_D
MOBY-I interface
in normal operation
(e.g., ASM 400 in SIMATIC S5)
MOBY-I interface
in dialog operation
(e.g., ASM 410 in SIMATIC S5)
VMDS
Read or write
the VMDS with FB 250
SLG_N
(4) J31069D0125U001A07618
SLG_D
- 26 -
Read/write/
initialize the VMDS
with
FB 41 or via PIQ
(Cf. chap. 3.1.)
6GT2002-0BA00
ASM 410
Designation
6GT2097-3AC00-0DA2
Explanation
Station_N
Normal ASM from MOBY I (i.e., ASM 400, ASM 410, ASM 420, ASM 440,
ASM 450, ASM 470 and SIM4x). The user operates station_N in the usual
way (i.e., as if the user wanted to exchange data with an MDS).
SLG_N
An SLG (i.e., SLG 41, SLG 42, SLG 43 and SLG 44) which is connected to
station_N.
Station_D
Dialog ASM from MOBY I (i.e., ASM 400, ASM 410, ASM 450 and ASM 470).
While being turned on, station_D is parameterized with a user command as
dialog ASM. During parameterization, a 16Kbyte memory area is defined
on station_D. This memory area is called VMDS
(i.e., virtual MDS). It is used as communications memory. Processing of
station_D by the user is the same as with the program on station_N.
Station_D uses the same tools as station_N (e.g., FB 47).
SLG_D
An SLG (i.e., SLG 41, SLG 42, SLG 43 and SLG 44) which is connected to
station_D.
VMDS
6GT2002-0BA00
ASM 410
- 27 -
RD: 12/98
6GT2097-3AC00-0DA2
3.8.2 How Does the User Work with the MOBYI Dialog?
Example
The user program on station_D issues a write command containing the data to be transferred. The com
mand is executed immediately. The data are now available in the VMDS. This concludes the job of
station_D. The user program on station_N issues a read command. At this time, SLG_N and SLG_D
may not yet be facing each other in the transmission window. As soon as SLG_D enters the transmis
sion window of SLG_N, the desired data are read. The data are read from the VMDS and transferred to
the user on station_N. The green ANW LED on each ASM indicates the presence of a dialog SLG/ASM.
Communication time during dialog
The same times apply to the configuration of the communication time as described in the MOBY catalog.
SLG_D
Sg
Sa
Direction of movement from
SLG_D to SLG_N
SLG_N
View of side
View of top
Working distance
Limit distance
Length of the transmission window
Width of the transmission window
(4) J31069D0125U001A07618
Positioning of SLG_D
Transmission window
- 28 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
All Specifications
in mm
SLG 41SLG 41
SLG 42SLG 42
SLG 43SLG 43
SLG 44SLG 44
Length of the
transmission
window (L)
60
230
600
3000
30
80
280
1300
0 to 15
0 to 70
20 to 250
200 to 1000
Working
distance (Sa)
Limit distance (Sg)
Distance from
SLG to SLG (D)
30
130
450
2500
> 200
> 800
> 2000
> 10000
6GT2002-0BA00
ASM 410
- 29 -
RD: 12/98
6GT2097-3AC00-0DA2
Use:
The ECC driver provides additional assurance of accurate data on the MDS. Manufacturers of MDS
models equipped with EEPROMs guarantee up to 10,000 write operations only. If the ECC driver is
used, you can continue to use the MDS until the actual end of its life and still be assured of accurate
data.
The ECC driver can also be used for the MDS models equipped with RAMs in situations in which
extremely high levels of interference are likely to disrupt communications.
Call:
When installing the system, all the programmer has to do is make sure the mode selection switch is set
correctly.
1 ! Read and write MDS with ECC
3 ! Read and write with stricter error checking (with ECC)
5 ! Initialise MDS with ECC
All other parameters, such as
-
(4) J31069D0125U001A07618
- 30 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
Example:
Data structure of a 62byte MDS. This table is for clarification purposes only and can be ignored by
the programmer/user).
Address on MDS
0
1
0
1
13
13
14
15
14
15
16
17
27
29
30
31
28
29
32
33
41
45
46
47
48
61
Meaning
1st block
ECC
ECC
14 bytes of user data
2nd block
ECC
ECC
14 bytes of user data
3rd block
ECC
ECC
An incomplete block at the end of MDS
memory cannot be used for user data.
Please note:
- More time is needed to access MDS data (less data can be processed in dynamic mode).
- The net capacity of the MDS is reduced (see chapter 3.7).
- The results of a data correction may be delayed by up to one second.
- A normal" MDS must be initialised before being commissioned with an active ECC driver
(e.g., with an STG).
6GT2002-0BA00
ASM 410
- 31 -
RD: 12/98
6GT2097-3AC00-0DA2
5. Error Evaluation
An error detected by the interface module is indicated as follows :
- - Red LED: Flashing pattern corresponds to the error number.
The flashing pattern will continue until the 24 V supply of the ASM 410 is turned off.
- - Error bit set in bit 6 of the status byte of the PII
The SLG number addressed is also stored in the bit 2 of byte 1 of the PII.
The exact error code is always located in byte 4 of the PII.
The error bit and error code remain stored in the PII until a new command is started (or the PLC is turned
off).
A reset command is not required after an error occurs. Instead, you can start a new read or write com
mand immediately after error evaluation.
ASM errors:
General:
7
Error indication
PII, Byte 4
Flashing
Pattern of
Red LED
Description
Once
00000011
(03)
3 times
Error in the connection to the SLG. The SLG does not answer.
-> Cable between ASM and SLG is wired incorrectly, or cable break.
-> 24 V supply voltage is not connected or is not turned on.
-> Hardware defective: ASM 410 or SLG
00000100
(04)
4 times
00000101
(05)
5 times
Unknown command
The user has issued a command to the MDS which it cannot interpret.
-> Access to address greater than address area of the MDS
-> The ASM 410 was started in switch position 4 or 5 (i.e., initialisation)
with a read command. Only write accesses are permitted during
initialisation.
Meaning for MOBY-F
-> Read/write area is protected by password.
-> FFT command with presence monitoring
-> Operating mode is not suitable for the command (e.g., MOBY-I with
FFT command).
-> Switch position 4 (INIT) with read/write command
00000110
(06)
6 times
______
(4) J31069D0125U001A07618
- 32 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
PII, Byte 4
Flashing
Pattern of
Red LED
Description
00000111
(07)
7 times
00001000
(08)
8 times
00001001
(09)
9 times
00001010
(0A)
10 times
00001011
(0B)
11 times
00001100
(0C)
12 times
00001101
(0D)
13 times
Address error
Address area of MDS was exceeded.
-> Start address in bytes 2 and 3 of PIQ was specified incorrectly.
-> MDS is not the right model.
00001110
(0E)
14 times
00001111
(0F)
15 times
00011011
(1B)
27 times
6GT2002-0BA00
ASM 410
- 33 -
RD: 12/98
6GT2097-3AC00-0DA2
6. Transmission Times
The following time diagram shows a MOBY command sequence from command start" to command
ready".
S5
SYAS
MOBY
User pro
gram incl.
ASM 410
program
ming and
scanning
the
ASM 410
b)
20
20
20
20
msec
msec
msec
msec
80 msec
When a RAMMDS is used, the time required for communication with the MDS is approxi
mately 20 msec. This time is not included when transmission time is calculated.
The following rule of thumb applies if larger data blocks are to be processed on the MDS.
(4) J31069D0125U001A07618
- 34 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
7. Commissioning
a) Insert the module in one of the free slots (0 to 7) and secure in place.
Note: Turn the coding pin" on the bus module to position 6" before installing the module.
Otherwise, the module cannot be inserted.
b) Connect the external power supply and the SLG to the screw or crimp terminal on the bus mo
dule.
-> Make sure wiring of 0 V and 24 V, and cable shield are correct.
c) Turn on the 24 V supply voltage.
LED B3 on the front panel must go on. Now use the STG to check that the MOBY components are
functioning properly and the wiring is correct (mode selection switch in position 8; the PLC can
remain off).
d) Set the desired command type on mode selection switch (positions 0 to 5).
(Operation with the S5 will now be tested.)
e) Program a reset command in the cold start and restart OB (chapter 3.4).
f) After the PLC is turned on, you can monitor the process image of the ASM on the PG with
FORCE VAR".
In this example, the ASM 410 has address 64.
PIQ:
QB64
0000 0011
QB65
00
QB66
00
QB67
00
QB68
QB69
00
QB70
00
QB71
00
00
IB64
1000 0011
IB65
00
IB66
00
IB67
00
IB68
IB69
00
IB70
00
IB71
00
00
If the ready bit" in the control byte is not set, check the following:
" Mode selection switch: 0 to 5
" LED B3 is on (24 V is present).
g) Now go to QB64, QB65 and QB66 in the PIQ on the monitor screen. Modify the process image
before you proceed with the next item and start a read or write command.
PIQ:
QB64
QB65
QB66
QB67
QB68
QB69
QB70
QB71
6GT2002-0BA00
ASM 410
0000 0000
00
05
00
00
00
Unchanged
00
00
- 35 -
RD: 12/98
6GT2097-3AC00-0DA2
h) Now start the issued command by setting bit 0 (or bit 1) in the control byte.
PIQ:
QB64
0000 0001
QB65
00
QB66
05
QB67
00
QB68
QB69
00
QB70
00
QB71
00
No change
00
IB64
0000 0001
IB65
00
IB66
05
IB67
00
IB68
IB69
00
IB70
00
IB71
00
00
LEDs B1" and A2" must light up on the ASM 410: SLG no. 1 is active.
Error:
If an error occurs in this or one of the following steps and the ready bit" and
the error bit" are set in the status byte of the PII, continue error evaluation as
described in chapter 5.
QB64
0000 0000
QB65
00
QB66
05
QB67
00
QB68
QB69
00
QB70
00
QB71
00
No change
00
If you move the data carrier into the range of the SLG before outputting the
ACKNOWLEDGE command" in the PIQ, you will not receive a com
pleted" signal. The PII does not change until you have performed step i).
You will then receive the result immediately (without wait time).
k) Now place a data carrier in the SLG field. Execution of the command will be reported back in the
PII approximately 50 msec later. LEDs B1" and A2" go off.
PII:
IB64
1000 0001
IB65
00
IB66
05
IB67
xx
IB68
IB69
xx
IB70
xx
IB71
xx
xx
You can now continue with step g) and issue the next command (e.g., read with SLG no. 2).
l) Step k (or step c with the STG) completes commissioning. You can now load and test your ap
plication program.
Subject to change without notice!
RD: 12/98
(4) J31069D0125U001A07618
- 36 -
6GT2002-0BA00
ASM 410
6GT2097-3AC00-0DA2
0.25 kg
Storage temperature
-25 C to +70 C
Ambient temperature
SIMATIC installed horizontally
SIMATIC installed vertically
0 C to + 60 C
0 C to + 40 C
15% to 95%
Current consumption
+9 V from S5:
Average
20 to 60 mA
(20 mA = long cycle time)
(60 mA = short cycle time)
110 mA (S5 in STOP)
Maximum
+24 V external: All SLGs off
SLG 40 in operation
SLG 41 in operation
SLG 42 in operation
SLG 43 in operation
SLG 44 in operation
90 mA
180 mA
180 mA
270 mA
340 mA
170 mA
Power consumption
Average (without SLG)
2.5 W
Cooling
Convection cooling
Transfer rate to S5
125 Kbaud
In 5bit blocks; with a 90 msec
time gap between two blocks
9600 baud
- MDS model
- ECC operation (See chapter 2 of
catalogue.)
(16 + n x 0.8) msec
Average
Programming
Isolation group
Protection rating
Mechanical stress
IEC 68-2-27
Dimensions (W x H x D)
45 x 135 x 100 mm
6GT2002-0BA00
ASM 410
- 37 -
RD: 12/98
6GT2097-3AC00-0DA2
9. Warnings
(4) J31069D0125U001A07618
- 38 -
6GT2002-0BA00
ASM 410
Siemens AG
Automation and Drives
Systems Engineering
PO Box 2355, 90713 Fuerth
Siemens Aktiengesellschaft