Manual FB45 PDF
Manual FB45 PDF
Manual FB45 PDF
Description 2
Parameterizing 3
SIMATIC Sensors
Commissioning 4
RFID systems Error messages and
FB 45 troubleshooting 5
Examples/applications 6
Function Manual
Brief description of ASM
hardware A
Programming the MOBY-
ASM on PROFIBUS B
10/2009
J31069-D0166-U001-A3-7618
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation for the specific task, in particular its warning notices and
safety instructions. Qualified personnel are those who, based on their training and experience, are capable of
identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be adhered to. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
1 Introduction................................................................................................................................................ 5
1.1 Overview ........................................................................................................................................5
1.2 Preface...........................................................................................................................................8
1.3 Navigating in the Function Manual ................................................................................................9
2 Description............................................................................................................................................... 11
2.1 Block specification .......................................................................................................................11
2.2 Configuration scheme ..................................................................................................................13
2.3 Data structures of FB 45 ..............................................................................................................14
2.4 Number of MOBY channels which can be connected .................................................................15
2.5 Addressing of MOBY channels ....................................................................................................16
3 Parameterizing ........................................................................................................................................ 19
3.1 Parameter data block...................................................................................................................19
3.1.1 INPUT parameters .......................................................................................................................21
3.1.2 Command and status word ..........................................................................................................27
3.1.3 Further displays ...........................................................................................................................30
3.2 MOBY commands........................................................................................................................31
3.2.1 Command parameters .................................................................................................................32
3.2.2 Command chaining ......................................................................................................................36
3.2.3 Command repetition.....................................................................................................................38
3.3 Presence check and MDS control................................................................................................41
3.3.1 No MDS Control, No Presence Check: MDS_control = 0............................................................42
3.3.2 No MDS Control, Presence Control with Field Scanning: MDS_control=1..................................42
3.3.3 Field Scanning as MDS Control: MDS_control = 2......................................................................43
4 Commissioning ........................................................................................................................................ 47
5 Error messages and troubleshooting ....................................................................................................... 55
5.1 General errors ..............................................................................................................................55
5.2 Error messages............................................................................................................................56
6 Examples/applications ............................................................................................................................. 67
6.1 FB 45 scanning by user ...............................................................................................................67
6.2 Processing of data memories/transponders ................................................................................68
6.3 Cyclic calling of FB 45 (e.g. in OB 1) ...........................................................................................75
6.4 Programming a cold and warm restart.........................................................................................76
6.5 Programming a module failure.....................................................................................................77
6.6 Data structure definition ...............................................................................................................79
6.7 UDTs of FB 45 / FC 45 ................................................................................................................83
6.7.1 UDT 230: Result of MDS status (mode 3, RF300) ......................................................................86
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 3
Table of contents
FB 45
4 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Introduction 1
1.1 Overview
FB 45 is a STEP7 function for RFID technology. It can be used with both the SIMATIC S7-
300 and S7-400 for various RFID interface modules.
Section "Brief description of ASM hardware" illustrates configurations with the various
interface modules. FB 45 can be operated in various different configurations:
● The interface module is operated directly in a SIMATIC S7-300.
● The interface module is located in the rack of an ET 200M, ET 200X or ET 200pro. The
ET 200M/ET 200X/ET 200pro is used on an S7-300 or S7-400.
● The interface module is a self-contained PROFIBUS slave and is connected to the
integrated PROFIBUS port of a SIMATIC S7-300 or S7-400.
● The interface module can be operated on PROFIBUS or PROFINET.
● The interface module is operated on PROFINET via an IE/PB Link.
These configurations can be mixed. Different interface modules can also be connected.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 5
Introduction
1.1 Overview
Compatibility notice
The FB 45 block is a successor to FC 45. FB 45 is almost completely compatible with FC 45.
Users can run FC 45 application programs with FB 45 without modification. Unlike FC 45, a
separate instance DB has to be parameterized for each FB 45 call. UDT 10 has been
shortened from 300 bytes to 50 bytes as a result. The application-related variables of UDT
10 are the same.
Performance features of FB 45
● All MOBY systems (write/read devices and MDSs) can be used with the FB 45.
● The user can process a complete MDS with one command (up to 64KB).
● The user can chain several commands together. This means that many small data areas
of an MDS can be processed with one command start.
● The data structures are set up conveniently via user-defined data types (UDTs). The
UDTs are available with English (UDT 10, 20), German (UDT 11, 21) and Spanish (UDT
14, 24) commentary. In this description, the UDTs are always referred to by their English
designation (UDT 10, 20).
● Transmission of the data to and from the ASM and execution of the commands on the
ASM take place in parallel. This means optimal data throughput.
● The use of symbolic names enhances the clarity in the user program, even where
complex configurations are involved.
PROFIBUS configuration
A GSD file on the CD RFID Systems Software & Documentation (6GT2 080-2AA10) is
included for the interface modules which can be connected directly to PROFIBUS.
PROFINET configuration
A GSDML file on the CD "RFID Systems Software & Documentation" (6GT2080-2AA10) is
included for the communications modules which can be connected directly to PROFINET.
FB 45
6 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Introduction
1.1 Overview
Non-SIMATIC applications
Applications programmed on third-party PLCs cannot use FB 45. The PROFIBUS interface
for such applications is described in Section "Programming the MOBY-ASM on PROFIBUS
DP-V1". Programmers of a third-party PLC can use this interface to develop their own MOBY
function. The same or similar data structures as in FB 45 can be reproduced on a third-party
PLC in conjunction with the FB 45 description and the UDTs.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 7
Introduction
1.2 Preface
1.2 Preface
Conventions
The following terms/abbreviations are used synonymously in this document:
● Reader, read/write device, write/read device
● Transponder, mobile data memory, MDS
● Communication module, interface module (ASM)
History
Previous edition(s) of these operating instructions:
Edition Note
10/2009 Parameterizing the RF620R/RF630 reader.
RF300 and ISO transponders
03/2006 Inclusion of the RF170C communication module
05/2005 First Edition
FB 45
8 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Introduction
1.3 Navigating in the Function Manual
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 9
Introduction
1.3 Navigating in the Function Manual
FB 45
10 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Description 2
2.1 Block specification
Block number: FB 45
Block name: FB 45
Symbolic name: "MOBY FB"
Family: –
Work memory requirement: 8668 bytes
Local data: 106 bytes
Version: 1.1
Called blocks: SFB 52, SFB 53, SFC 20, SFC 21, SFC 1
Data block resources: MOBY Param = 50 bytes per channel
(defined via UDT 10)
Instance DB for FB 45 = 458 bytes per
channel
Bit memories used: None
Counters used: None
Registers used: AR1, AR2
Call: cyclic
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 11
Description
2.1 Block specification
Transmission of the data to the MDS and transmission of the data between ASM and FB 45
take place in parallel. Usually no further time must be added for data transmission between
ASM and FB 45 so that the time tk calculated above represents the total duration of the
command.
However, commands may require more time under the following conditions.
● A very large number of MOBY channels are processed in parallel.
● Very few (or only one) system resources are available for non-cyclic telegrams.
● Slow transmission speeds are used on PROFIBUS.
● Other applications are running on the S7 which require the non-cyclic telegram services
(SFB 52/53) of the SIMATIC very frequently.
● High-speed identification systems are used (e.g. RF300).
Note
A throughput calculation tool is available for various different communication modules.
You can find this on the CD "RFID Systems Software & Documentation" (6GT2080-
2AA10).
FB 45
12 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Description
2.2 Configuration scheme
Params_ADDR
*) These values are exemplary whenever only data structures of the UDT 10 type are arranged in succession.
These values change if UDT 10 is followed by the MOBY command (UDT 20).
Params_DB and Params_ADDR form a pointer to a data structure. This data structure is
defined by calling UDT 10 (English) or UDT 11 (German). A separate data structure must be
defined for each MOBY channel (ASM or write/read device).
See also
Data structures of FB 45 (Page 14)
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 13
Description
2.3 Data structures of FB 45
02%<B'%
&KDQQHO
&KDQQHO
8'7 &KDQQHO
&KDQQHO
FRPPDQGB
'%BQXPEHU
8VHUBGDWD
FRPPDQGB
'%BDGGUHVV
7KHXVHU
GHILQHVWKH
02%<BFRPPDQGV VL]HDQG
GDWDW\SHVLQ
'$7B'%BQXPEHU KLVRZQGDWD
8'7
'$7B'%BDGGUHVV
6LQJOHFRPPDQGXSWR
.%FDQEH
SURFHVVHGRUFKDLQHG
FRPPDQG
FB 45
14 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Description
2.4 Number of MOBY channels which can be connected
S7 CPU type5 315-2 DP 316-2 DP; 318-2 DP 416; 417; CP 443-5 Ext
Max. no. of Max. no. of Max. no. of Max. no. of Max. no. of Max. no.
ASMs write/read ASMs write/read ASMs of
devices devices write/read
(channels) (channels) devices
(channels)
ASM 475 (centralized)2 32 64 32 64 – –
ASM 475 (distributed via 64 x 8 1024 123 x 8 1968 123 x 8 1968
ET 200M) 3
RF170C (distributed via 64 x 9 1152 123 x 9 2214 123 x 9 2214
ET 200pro) 6
ASM 473 (distributed via 64 x 7 448 123 x 7 861 123 x 7 861
ET 200X) 4
ASM 452 64 64/128 1 123 123/246 1 123 123/246 1
ASM 456 64 128 123 246 123 246
ASM 454, 854 64 256 123 492 123 492
ASM 754 64 64/256 1 123 123/492 1 123 123/492 1
1) No. of channels in multiplex mode (only static operation possible)
2) The centralized configuration can contain up to three expansion racks. A DP connection is not necessary in this variant.
3) In the distributed configuration, up to eight MOBY modules (ASM 475) can be installed in each ET 200M.
4) Up to seven ASM 473 modules can be installed in a distributed ET 200X I/O.
5) The CPU types specified here may be incomplete, as the range of CPUs and associated functions is expanded
continuously.
6) Up to 9 RF170Cs can be installed in a distributed ET 200pro
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 15
Description
2.5 Addressing of MOBY channels
6XEUDFN
6ORWQXPEHU
,0
$QDORJDGGUHVV
&RQQHFWLQJFDEOH
6XEUDFN
6ORWQXPEHU ,0
$QDORJDGGUHVV
&RQQHFWLQJFDEOH
6XEUDFN
6ORWQXPEHU ,0
$QDORJDGGUHVV
&RQQHFWLQJFDEOH
6XEUDFN
6ORWQXPEHU
$QDORJDGGUHVV
Figure 2-2 Slots for S7-300 and analog addresses for ASM 475
FB 45
16 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Description
2.5 Addressing of MOBY channels
$XWRPDWLFJHQHUDWLRQRIWKHQH[WIUHH
DGGUHVV7KH,DGGUHVVDQG4DGGUHVV
PXVWEHLGHQWLFDO
Figure 2-3 Example: Automatic address generation for a MOBY PROFIBUS slave
$XWRPDWLFJHQHUDWLRQRIWKHQH[WIUHH
DGGUHVV7KH,DGGUHVVDQG4DGGUHVV
PXVWEHLGHQWLFDO
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 17
Description
2.5 Addressing of MOBY channels
Assignment of addresses in FB 45
The unique I/O addresses of the interface module of HW Config must be saved in the
parameter data block (UDT 10).
3K\VLFDODGGUHVVDVVLJQPHQW
DVGHILQHGLQ+:&RQILJ
6WDUWDGGUHVVHV
RI8'7LQ
GDWDYLHZRI
02%<'%
The MOBY channel (ASM_channel) must be assigned uniquely in addition to the address
(ASM_address). When an ASM is used with several channels (RF170C, ASM 475, 456, 452,
454, 754, 854), a separate UDT 10 must be defined for each channel. The "ASM_address"
entry is the same. The "ASM_channel" is changed from 1 to 4.
FB 45
18 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing 3
3.1 Parameter data block
Each MOBY channel (reader) needs its own parameters. These are predefined in a data
structure as UDT 10 (with commentary in English) or UDT 11 (with commentary in German)
or UDT 14 (with commentary in Spanish). That UDT must be called in a data block for each
MOBY channel. Various variables are defined in UDT 10:
● INPUT parameters: These variables must be entered by the user once during
configuration (exception: command_DB_number/command_DB_address). Throughout the
run time it is not necessary to change or scan these parameters.
Please note that you need to execute an init_run after changing an INPUT parameter
before the new setting is activated (see Section "Programming a cold and warm restart").
● Control bits: The user starts his commands with these Boolean variables.
● Displays: The displays indicate the command progress to the user. Error analyses can be
performed easily.
● FB-internal variables: These variables are not relevant for the user. They must not be
changed by the application. Malfunctions and data corruption would otherwise ensue.
The following table shows the complete UDT 10. For programmers who prefer to address
using absolute values, the first column specifies the relative addresses.
Special information on UDT 10 for the RF620R/RF630R readers can be found in the
"Configuration Manual RF620R/RF630R".
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 19
Parameterizing
3.1 Parameter data block
FB 45
20 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.1 Parameter data block
Variable Description
ASM_address Logical base address of the ASM. This address must match the "start address" of the ASM in HW
Config of the SIMATIC Manager. Remember that this address has nothing to do with the PROFIBUS
address which is set on the ASM or the ET200M.
ASM_channel Number of the MOBY channel which is to be used
ASM type Value range
ASM 475, 452, 456; RF170C, RF180C 1, 2
ASM 454, 754, 854 1, 2, 3, 4
ASM 473, 850 1
command_DB_ These INPUT parameters can
Number of the data block in which the MDS command is specified
number be changed whenever
command_DB_ Address within the "command_DB". The next MDS command ready = 1. An init_run does not
address starts at this address. "command_DB_number" and need to be executed after
"command_DB_address" form a data pointer to the next command changing these parameters.
(see Section "Configuration scheme").
Note:
The input parameters command_DB_number and command_DB_address can be changed only
when ready = 1. An init_run does not need to be executed after changing these parameters.
MDS_control MDS_control turns on/off the presence check or the MDS control on the ASM* (see Section
"Presence check and MDS control").
Value MDS control ASM type
0 Presence check is off. The variable ANZ_MSD_present doesn't all
indicate a valid value.
1 Presence check is on. MDS control is off. The variable all
ANZ_MDS_present indicates an MDS is the transmission window of a
write/read device.
2 Presence check is on. MDS control is on, and control takes place with 454
the presence check of the MDS. The NEXT command must be sent to
the ASM each time an MDS is processed.
*) ASM/SLG (e.g. RF300)
ECC_mode Turns ECC mode on (true) or off (false). Remember that ECC mode can only be used with MOBY I.
RESET_long The init_run command transfers all INPUT parameters to the ASM. This bit must be set to TRUE
when MOBY U/D or RF300 are used (MOBY_mode = 5).
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 21
Parameterizing
3.1 Parameter data block
Variable Description
MOBY_mode Setting of the MOBY operating mode
Value Operating mode ASM type
0 Default Reserved for setting the operating
mode with switch or GSD
parameterization. Various interfaces
without switches interpret MOBY
mode = 0 as MOBY I mode.
1 MOBY I or MOBY E all
(without MDS 507)
4 MOBY I with MDS 507 452; 454; 456
5 MOBY U/D or RF300 - without multitag handling 475; 473; 452; 456; RF170C,
RF180C
6 Res. for MOBY U - with multitag handling (FB 55) –
7 Res. for MOBY D or RF300 - with multitag handling Available soon with:
(FB 55) 475, 473, 452, 456, RF170C,
RF180C
8 MOBY I dialog 454; 452; 456
9 MOBY V 452
A MOBY F with MDS F1xx 475; 473: 452; 854; 850
B MOBY F with MDS F4xx 475; 473: 452; 854; 850
C MOBY F (res. for MDS F2xx) –
Please note:
MOBY_mode may only be changed after an ASM is turned on.
scanning_time MOBY I/V:
Scanning_time is the scanning time for the MDS 507 of MOBY I and MOBY V. A value of 00 can be
used here for all other types of MDS. The scan time setting (ABTA) is shown below (see also
configuration manual of write/read device 44/MDS 507).
%LW
7LPHYDOXH)
7LPHIDFWRU
V
V
V
V
Example: A scanning time of 1 second results in ABTA = 81 hex for the parameter.
FB 45
22 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.1 Parameter data block
Variable Description
MOBY U:
Scanning_time describes the standby time for the MDS. If the MDS receives an additional command
before scanning_time has expired, this command can be executed immediately. If the MDS receives
a command after scanning_time has expired, command execution is delayed by sleep_time of the
MDS.
Scanning_time should only be set when both of the following conditions exist.
• The MDS uses several commands and
• command execution must be concluded within a minimum time.
%LW
7KHIODVKLQJRIWKH(55/('LVUHVHWE\DQ
LQLWBUXQ
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 23
Parameterizing
3.1 Parameter data block
Variable Description
RF300
With this parameter, a change to the output power can only be made for the RF380R (MLFB
6GT2801-3AB10). In doing this, you must take into consideration that the change to the output
power will affect both the upper and lower limit range, as well as the minimum distance that is to be
maintained between adjacent RF380Rs. See the RF300 System Manual, field data, Chapter 4.2
The following settings are possible:
Value
02 0.,5 W
03 0.75 W
04 1.0 W
05 1.25 W
06 1.5 W
07 1.75 W
08 2.0 W
Settings outside of the specified values mean that the default value of 1.25 W is set and no error
message occurs for compatibility reasons!
multitag MOBY U/D or RF300:Maximum number of MDSs being processed in parallel in the field.
Permissible values: 1
field_ON_control MOBY U: BERO mode; automatic activation/deactivation of antenna field. The "Antenna ON/OFF"
command is superimposed by the BERO mode.
00 hex = without BEROs; no write/read device synchronization
01 hex = one or two BEROs
The BEROs are combined according to logic OR. The field is ON during
actuation of a BERO.
02 hex = One or two BEROs
The 1st BERO switches the field on and the 2nd BERO switches the field
off.
If two BEROs exist and a field_ON_time is configured, the field is
automatically deactivated if the 2nd BERO does not switch within that
BERO time.
If no field_ON_time is configured, the field remains on until the 2nd BERO is
actuated.
03 hex = Activate write/read device synchronization via cable connection (see
manual for configuring, mounting and service for MOBY U)
MOBY D or RF300: 00 hex (reserved)
FB 45
24 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.1 Parameter data block
Variable Description
field_ON_time (ftim) MOBY U: Time for BERO mode (field_ON_control = 02)
00 hex = Timeout monitoring is deactivated. The 2nd BERO is needed in order to
switch the field off.
01 hex ... FF hex = 1 ... 255s turn on time for the write/read device field.
MOBY D: MDS type
Binary value: = MDS type
0 ... 255
00 hex = I-Code 1 (e.g. MDS D139)
01 hex = ISO transponder
02 hex = I-Code 1 and ISO transponder
03 hex = ISO-my-D (with SLG D10S only; the value 01 hex is parameterized for ISO-
my-D with SLG D11S / D12S)
04 hex = ISO-FRAM (with SLG D11S/D12S only; the value 01 hex is parameterized
for ISO-FRAM with SLG D10S) *
RF300:
With the aid of the "ftim" parameter, a decision is made whether the reader is operated in RF300
mode or in ISO 15693 mode (mixed operation is not provided for).
Specifying the value 00 switches the reader into RF300 mode with the command "init_run"(RESET).
Values in the range 01 to 07 activate ISO15693 mode.
The value 01 activates the "general ISO mode" with rudimentary ISO commands (see note No. 4).
The performance is usually lower with this setting, but operation is normally possible with any ISO-
compatible tag.
The transponder chip types of the tags that are specified in Section 7.1 of the SIMATIC RF300
System Manual support these commands. By selecting the values 03 to 07, chip-specific commands
will be used wherever possible that permit faster data transfer.
The following values can be set:
Value ISO RF300
01 Any ISO tag To be assigned the value 0
03 ISO my-d (Infineon SRF 55V10P)
04 ISO (Fujitsu MB89R118)
05 ISO I-Code SLI (NXP SL2 ICS20)
06 ISO Tag-it HFI (Texas Instruments)
07 ISO (ST LRI2K)
Notes
1. The following special functions are not supported:
– AFI (Application Family Identifier)
– DSFID (Data Storage Format Identifier)
– Chip-specific added functions such as EAS, Kill commands, etc.
2. If a previously unknown tag cannot be identified based on the parameters above, an error
message occurs (error_MOBY "0D"[hex]).
3. Impermissible parameters are rejected with an error message (error_MOBY "15"[hex]).).
4. RF300 for "ftim" = 01: performance may be reduced.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 25
Parameterizing
3.1 Parameter data block
Variable Description
counter_customer: Setting for S7 cycles per command execution. Default value is 02.
00 hex = FB requires 6 S7 cycles per command
01 hex = Depending on the ASM type and the overall configuration, the number of S7
cycles can be reduced to 3
02 hex = Depending on the ASM type and the overall configuration, the number of S7
cycles can be reduced to 2 per command
Note:
If an optimally short cycle time is required in the PLC, "counter_customer" must be set to "0". Larger
values can lengthen the cycle time in the PLC.
The permissible values of the INPUT parameters are listed in the hardware specifications.
FB 45
26 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.1 Parameter data block
'%:
'%% '%%൸UHODWLYHDGGUHVVLQ8'7
FDQFHO
FRPPDQGBVWDUW
UHSHDWBFRPPDQG
LQLWBUXQ
$60BIDLOXUH
)&BDFWLYH
$1=BQH[W
$1=BUHVHW
$1=B0'6BSUHVHQW
$1=BFDQFHO
7REHVHWE\WKHXVHUWKHVHFRQWUROELWVDUH
$1=B(&& UHVHWDXWRPDWLFDOO\E\)%H[FHSWIRU
UHSHDWBFRPPDQG
UHVHUYHG
0XVWEHFKHFNHGE\
/5BEDW WKHXVHU
EDWWHU\BORZ 2SWLRQDOVFDQQLQJELWV
(UURU
UHDG\
Figure 3-1 Assignment of the command and status word (DBW 18) with variable names
Special information on the command and status word "BEST" for the RF620R/RF630R
readers can be found in the "Configuration Manual RF620R/RF630R".
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 27
Parameterizing
3.1 Parameter data block
Variable Description
cancel True = Interrupts a running command or a command chain. FB 45 then sets the "ready"
variable.
False = FB 45 performs an automatic reset.
MOBY U/D or RF300: The cancel variable is not available. A command termination must be
executed via the init_run variable.
command_start True = Starts a command or a command chain
False = FB 45 performs an automatic reset.
repeat_command True = Command repetition: The last command or command chain stored on the interface
module is processed again with the next MDS. Command processing for the MDS is not
started until the MDS, which has already been processed, has left the transmission window
(ANZ_MDS_present = 0) and a new MDS has entered the transmission window of the
write/read device (ANZ_MDS_present: 0 → 1).
In the case of RFID systems with unique tag IDs (UID) (e.g. RF300, MOBY U), the next tag
entering the field must have a different UID from the previous one for the command to be
repeated.
False = No command repetition or command repetition is stopped after the command started
with the repeat command has been processed. Remember that this bit must be reset by the
user to stop command repetition. The result of command repetition is fetched when
command_start is set by the user.
repeat_command is not automatically reset by the FB 45 after command processing.
The init_run and cancel commands reset the repeat_command variable. This also interrupts a
command repetition on the ASM. repeat_command can be set again by the application with
the next command_start.
Handling of command repetition is described in Section "Command repetition".*
init_run True = Restart interface module FB 45 is reset and the interface module is initialized. All data
and commands on the ASM are lost. This bit must be set in the restart OB (OB 100) for each
MOBY channel or interface module.
After a MOBY-ASM failure, error_MOBY=0F is signaled to the user. The user must then
perform an init_run.
False = FB 45 performs an automatic reset.
Note:
• The init_run bit is initialized with TRUE when a parameter data block is downloaded from
the programming device to SIMATIC. This causes an automatic new start for the ASM.
• The execution time of init_run is normally in the millisecond range. In the event of an error,
the time may be up to 15s.
ASM_failure True = The ASM has failed. This bit is set by the user in OB 122 (see Section "Programming
a module failure"). FB 45 signals an error to the user (error_FC = 09) and interrupts a
command in progress. If OB 122 is not programmed by the user, the PLC switches to the
STOP state on an interface module failure.
False = FB 45 performs an automatic reset.
FB45_active FB 45 is currently executing a command. This variable is set when the command is started
(command_start=True) and remains active until
• FB 45 has received the last acknowledgment from ASM.
• the init_run bit has been set
• The Cancel bit was set.
• An error message was reported from the ASM.
ANZ_next This bit is set when the last command executed was a NEXT command.
FB 45
28 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.1 Parameter data block
Variable Description
ANZ_reset This bit indicates that the last command to be executed was a RESET. The RESET command
was started by the user with "init_run."
ANZ_MDS_present Indicates the presence of an MDS in the transmission window of the read/write MDS.
ANZ_MDS_present is only indicated when the INPUT parameter MDS_control (see Section
"INPUT parameters") was set by the user.
Remember that when an init_run is being executed, the ANZ_MDS_present indication
disappears briefly even when an MDS is permanently located in the transmission window.
ANZ_cancel The last command executed was a command interruption (cancel). The bit is set when the
ASM indicates a cancel acknowledgment with the cyclic word (see Section "Cyclic control
word between master and MOBY-ASM"). The bit is reset automatically when a new command
is started.
ANZ_ECC MOBY I only:
When the ECC driver is on (INPUT parameter "ECC mode" = TRUE), the bit indicates that the
data read by the MDS have been corrected. ANZ_ECC is not an error message since the
data are okay. ANZ_ECC is an indication that the MDS memory just processed may soon fail
completely.
reserved Not used at this time
LR_bat This bit only applies when MDS 507 is used with MOBY I. It indicates that a dialog battery of
the MDS 507 is dead. With all other MDSs, this bit can assume any state.
battery_low For MOBY I/V with RAM-MDS only:
The capacity of the backup battery of the RAM-MDS is below the threshold. Although, at
room temperature, it will continue functioning with its remaining capacity for several months,
we recommend changing the MDS's battery immediately or, when its battery cannot be
changed, replacing the entire MDS.
error FB 45 sets this bit if a command is terminated abnormally. The error bit is the checksum error
bit for all errors which occur. The exact cause of the error is stored in variable error_ MOBY,
error_FB or error_BUS (see Section "Further displays" and Section "Error messages and
troubleshooting"). The error bit is reset when a command is restarted.
ready Ready message: error bit = FALSE must be checked after ready = TRUE is signaled. This
ensures that the command was executed normally.
Please note:
The ready bit does not need to be set in order to start init_run or cancel.
*) You will find notes on the repeat_command in the system manual for the respective MOBY/RFID system.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 29
Parameterizing
3.1 Parameter data block
Table 3- 4 Displays
Variable Description
ASM_busy This bit is set when the ASM is processing a command. "ASM_busy" is normally inverse to
"ready". The interface module signals ASM_busy via the cyclic word (see Section "Cyclic
control word between master and MOBY-ASM" under "ASM_busy_"). When the
repeat_command automatic command start is used, this bit shows the processing of a new
MDS with the command to be executed.
MOBY U/D or RF300: No meaning. This variable is always false.
command_rep_active The ASM is processing a command repetition. The bit is set as a response to the control
variable repeat_command. After an init_run, command_rep_active is first reset by FB 45 and
then set again after a delay following the transfer of the MOBY commands to the ASM by FB
45.
number_MDS MOBY U/D or RF300:
The number of MDSs presently located in the transmission window is indicated.
If more than 15 MDSs are located in the field, number_MDS is indicated as 0F hex.
error_MOBY This error was reported by the ASM. The error is usually displayed on the ERR LED of the
ASM channel display (see Section "Error messages and troubleshooting").
error_FB Error messages from FB 45 (see Section "Error messages and troubleshooting")
error_BUS The transmission path between FB 45 and ASM reports an error. It is usually a PROFIBUS
error. (see Section "Error messages and troubleshooting" ). This error is signaled by system
functions SFC 58/59.
version_MOBY Indicates the firmware version of the MOBY-ASM. The value entered here is updated each
time the ASM starts up. It is ASCII-coded.
All other variables of UDT 10 are for FB-internal use. They must never be changed by the
user.
FB 45
30 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.2 MOBY commands
Note
This chapter provides a description of all commands which can by processed by FB 45. The
commands, which can actually be processed by the interface module you are using, are
described in section Brief description of ASM hardware (Page 89).
Before you can start a MOBY command with command_start, you need to define the
command. UDT 20 (commentary in English), UDT 21 (commentary in German) or UDT 24
(Spanish commentary) is available for the simple definition of a command.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 31
Parameterizing
3.2 MOBY commands
Overview of commands
Special information on parameterizing the commands for the RF620R/RF630R readers can
be found in the "Configuration Manual RF620R/RF630R".
Write
**) Please refer to section Processing of data memories/transponders (Page 68) for addressing individual transponder
types.
FB 45
32 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.2 MOBY commands
Read
Initialization
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 33
Parameterizing
3.2 MOBY commands
SLG status
RF300
1) You will find the UDT description in Section "UDTs of FB45".
NEXT
Table 3- 11 NEXT
END
01 = Processing pause
with MDS1 ANZ_MDS_present
remains set.
1) MOBY U:
This command is recommended when scanning_time parameter is greater than 0 (standby time). Use of this command
optimizes the life of the MDS battery. An additional MDS command must now wait for sleep_time of the MDS to expire
again.
FB 45
34 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.2 MOBY commands
Antenna on/off
MDS status
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 35
Parameterizing
3.2 MOBY commands
Example:
An MDS is to process 4 data records. The command structure is stored in DB 47. The MDS
data are stored consecutively in DB 48.
Execution steps:
1. Define structure
FB 45
36 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.2 MOBY commands
See also
Command parameters (Page 32)
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 37
Parameterizing
3.2 MOBY commands
Operating principle
After a new start (or init_run) of the ASM, the FB 45 transmits the command (or command
chain) once to the ASM. Command transmission is automatic with the first command_start.
This command (or the last command or the command chain) always remains intermediately
stored in the ASM. If command repetition is started now, the intermediately stored command
on the ASM is executed again, and the result(s) transferred to the FB 45.
FB 45
38 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.2 MOBY commands
Programming
There are two programming methods.
● Reading (processing) each MDS which comes by. After the ASM is programmed with a
command, repeat_command is set and remains set. The following diagram shows the
primary states.
UHDG\
FRPPDQGBVWDUW
UHSHDWBFRPPDQG
$60BEXV\
$1=B0'6BSUHVHQW
Figure 3-2 Continuous reading of each passing MDS/transponder (repeat_command remains set)
When permanent command repetition is used, data may be transferred to the FB 45 slower
than new MDSs are being processed (fast MDS sequence, slow data transmission). In such
cases, the results are intermediately stored on the ASM. The ASM has a number of buffers
for this intermediate storage. When the buffers are full and the FB 45 has not fetched data
and additional MDSs arrive, these MDSs are no longer processed.
ASM type No. of buffers per channel Max. user data which can be
processed with command
repetition
RF170C 150 34950 bytes
ASM 475/473 70 16310 bytes
ASM 454 39 9087 bytes
ASM 754 9 2097 bytes
ASM 854 39 9087 bytes
ASM 452 3 699 bytes
ASM 456 150 34950 bytes
SLG U92* 150 34950 bytes
SLG D10S 100 23300 bytes
SLG D11S/D12S 1 233 bytes
RF300 246 57318 bytes
*) The number of buffers described here can always be used by MOBY U regardless of
the ASM type.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 39
Parameterizing
3.2 MOBY commands
UHDG\
FRPPDQGBVWDUW
UHSHDWBFRPPDQG
$60BEXV\
$1=B0'6BSUHVHQW
7KHIROORZLQJVHTXHQFHPXVWEHSURJUDPPHGE\WKHXVHU
Ⴠ 7KHXVHUVHWVFRPPDQGBVWDUWDQGUHSHDWBFRPPDQGVLPXOWDQHRXVO\DWWKHVWDUWRIWKHFRPPDQG
Ⴠ 7KHXVHUZDLWVIRU$60BEXV\ DQGWKHQUHVHWVUHSHDWBFRPPDQG
Ⴠ 7KHFRPPDQGKDVEHHQSURFHVVHGDIWHUUHDG\ LVUHSRUWHGE\WKH)&
1RIXUWKHUWUDQVSRQGHUVDUHSURFHVVHGDXWRPDWLFDOO\E\WKHFRPPXQLFDWLRQPRGXOH
Note
In the case of RFID systems with unique tag IDs (UID) (e.g. RF300, MOBY U), the stored
command is only repeated when the next tag entering the read field has a different UID
from the previous one. If the same tag (identical UID) enters the field again and again, the
tag will not be processed again.
FB 45
40 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.3 Presence check and MDS control
Presence check
The presence check is a piece of logic in the MOBY-ASM's firmware which recognizes
whether a mobile data memory is in the transmission window of the write/read device. It can
be controlled with various mechanisms. The selection is performed with parameter
MDS_control. A mechanism is currently available.
Field scanning (MDS_control = 1, 2):
The ASM/SLG's firmware continuously scans its surroundings via the magnetic field to
determine whether a mobile data memory is present. A hysteresis during field scanning
suppresses most of the switching back and forth of ANZ_MDS_present when a mobile data
memory stops on the border of the field.
Presence
A mobile data memory is located in the field of the write/read device. The presence bit
(ANZ_MDS_present in command and status word) is set (see Section "Command and status
word). The presence display is usually implemented via the PRE LED on the front of the
ASM (see Section "Brief description of ASM hardware").
MDS control
MDS control is turned on when "MDS_control = 2" is set. MDS control is an option of the
firmware of the ASM/SLG. It synchronizes the MDSs in the material flow with the user
program. It supplies an error message when synchronization is lost.
The following are considered asynchronous.
● MDS whose command was not fully processed by the ASM leaves the transmission
window.
● MDS which is moving through the transmissionn window but is not processed by the user
program.
An enabled MDS conrtol forces use of the NEXT command in the application.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 41
Parameterizing
3.3 Presence check and MDS control
NEXT command
The Next command switches ASM control to the next mobile data memory. The Next
command must always be programmed when MDS control is used (MDS_control = 2).
After the ASM acknowledges the Next command, a write/read job for the next MDS can be
sent immediately to the write/read device. The new command waits on the ASM until the old
MDS has left the field and a new one has entered.
This type of programming makes it possible to execute an ASM command as soon as an
MDS enters the field of the write/read device.
It can be very advantageous to add the NEXT command at the end of a command chain
(see Section "Command chaining").
Note
The NEXT command cannot be used when the MOBY-ASM is run with MDS_control = 0. If
NEXT is started anyway, the error message error_MOBY = 10 hex is generated.
Note
The NEXT command cannot be used when the MOBY-ASM is run without MDS control. If
NEXT is started anyway, the error message error_MOBY = 10 hex is generated.
FB 45
42 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.3 Presence check and MDS control
:ULWHUHDG
GHYLFH K PP
GHSHQGVRQ0'6W\SH
F E
/
+\VWHUHVLVILHOGIRU
K
0'6FRQWURO
D
7UDQVPLVVLRQZLQGRZ
'LUHFWLRQRIPRWLRQRI
0'6 'DWDH[FKDQJHEHWZHHQ
0'6
0'6DQGZULWHUHDGGHYLFH
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 43
Parameterizing
3.3 Presence check and MDS control
Time diagram
UHDG\
$GGLWLRQDOFRPPDQGVRSWLRQDO
FRPPDQGBVWDUW
5($'
FRPPDQGBVWDUW
1(;7
LQLWBUXQ
$1=B0'6BSUHVHQW
൹7KHVHHGJHVPXVWEHFRQWUROOHGE\WKHXVHU
Error 01 hex: The MDS leaves the write/read device's field while a command is being
processed with this MDS. The command is aborted. The read data are
invalid. With a write command, the data on the MDS may be inconsistent.
Error 02 hex: No command is active on the ASM. During this time, an MDS passes
through the write/read device's field shown above or command processing
of the MDS is not concluded with NEXT. The error is reported during the
next FB 45 command.
NOTICE
• The ASM is unable to determine whether an MDS passed through the complete field or
whether the MDS moved into the field briefly and then backed out again.
• When using field scanning, it is essential to maintain the distance between two SLGs
specified in the configuration guidelines (see manual on configuration, installation and
service).
FB 45
44 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Parameterizing
3.3 Presence check and MDS control
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 45
Parameterizing
3.3 Presence check and MDS control
FB 45
46 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Commissioning 4
Special information on commissioning the hardware and software for the RF620R/RF630R
readers can be found in the "Commissioning" section of the "Configuration Manual
RF620R/RF630R".
NOTICE
The "S7-compatible" setting results in addressing errors!
When using the ASM 452, 454, 456, 754, 850, 854 in conjunction with the GSD file,
the DP interface of the DP master must be set to "DP-V1".
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 47
Commissioning
FB 45
48 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Commissioning
When configuring the ASMs, make sure that the I address and the Q address have the same
values. The value in the I address field must be copied later on into the ASM_address
variable in the STEP 7 project. If a MOBY-ASM has more than one channel (e.g. ASM 475 =
2 channels; ASM 454 = 4 channels), the same I address must be used for every channel.
The following figure shows an example of a hardware configuration:
If the project is downloaded onto the hardware in this state (without the user program), the
SIMATIC CPU and the PROFIBUS should switch to the RUN state. If they don't, continue
with PROFIBUS trouble-shooting (check the PROFIBUS address settings on the ASM
against the configuration in HW Config).
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 49
Commissioning
$60REMHFWSURSHUWLHV $60REMHFWSURSHUWLHVDUH
VWRUHGLQWKH*6'ILOH
FB 45
50 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Commissioning
7KHVHWZRYDULDEOHV :KHQFRPPLVVLRQLQJ02%<,(
PXVWEHPRGLILHGIRU WKHYDOXHLVFRUUHFWKHUH
HDFKFKDQQHO 2WKHUZLVHWKLVYDOXHPXVWEH
DGMXVWHG
7KHSRLQWHUWRFRPPDQGB'%FDQUHWDLQ
WKHGHIDXOWYDOXHRQLQLWLDOFRPPLVVLRQLQJ
● Edit OB 1 and program a cyclic FB 45 call for each channel; declare a bit memory for the
command start for each MOBY channel.
● Set the variable "init_run" in the parameter DB in OB 100 for each MOBY channel.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 51
Commissioning
The variables ready = TRUE and error = FALSE should now be indicated for each channel.
If ready = FALSE:
● This channel is not called in OB 100.
● This channel is not processed cyclically by an FB 45 call in OB 1.
FB 45
52 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Commissioning
If error = TRUE:
● The exact cause of the error is stored in variable error_MOBY, error_FB or error_BUS.
The error causes and their remedy are described in Section "Error messages and
troubleshooting".
The variable ANZ_MDS_present now indicates the presence of an MDS as soon as you
place an MDS in the transmission window of the write/read device. This is the same
indication as the PRE LED on the ASM.
You can now start the configured MOBY command via the auxiliary variable
"command_start" = TRUE. If there is no MDS in the write/read device's transmission
window, the command remains in processing on the ASM for an indefinite length of time.
This status is indicated by "ready" = FALSE in the "Modify variable" window. Now place
an MDS in the transmission window. As soon as the MDS has been processed, the result
is transferred to FB 45 and "ready" = TRUE is indicated.
● Commissioning of the MOBY components is thus complete. You can now program your
own MOBY application based on the sample program.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 53
Commissioning
FB 45
54 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting 5
5.1 General errors
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 55
Error messages and troubleshooting
5.2 Error messages
NOTICE
When several error occur with chained commands, the "error variable" always indicates the
first error detected.
FB 45
56 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting
5.2 Error messages
error_MOBY
The ERR LED flashes when the ASM reports error messages.
Special information on error and flash codes for the RF620R/RF630R readers can be found
in the section "Error messages and troubleshooting" of the "Configuration Manual
RF620R/RF630R".
00 – No error
Default value if everything is ok.
1x No error
ASM has executed a start-up and is waiting for an init_run.
01 2x Presence error: The MDS has moved out of the write/read device's
transmission window. The MOBY command was executed only
partially.
Read command: No data are transmitted to FB 45.
Write command: The MDS which just left the field contains an
incomplete data record.
• Distance between write/read device and MDS not adhered to
• Configuration error: The data record to be processed is too large (in
dynamic mode)
The next command is automatically executed on the next MDS. A
read, write or NEXT command is possible.
• With timeout: No MDS in field
02 2x Presence error: An MDS has passed by a write/read device without
being processed by a MOBY command.
Processing error: Command processing of an MDS (read and/or write)
was not concluded with NEXT.
This error message is not reported immediately. Instead, the ASM
waits for the next command (read, write, NEXT). This command is
immediately replied to with this error. This means that a read or write
command is not processed. The next command is executed normally
by the ASM again.
An init_run from the FB 45 also resets this error state.
Bit2 is set in parameter option_1 and no MDS is in the transmission
window.
03 3x Error in the connection to the write/read device. Write/read device does
not answer.
• Cable between MOBY-ASM and write/read device is wired
incorrectly or cable break.
• The 24 V supply voltage is not connected or is not on or has failed
briefly.
• Automatic fuse on the ASM has blown.
• Hardware defect
• Another write/read device is in the vicinity or is active.
• Interference on DI/DO, write/read device or PROFIBUS line
• Execute init_run after error correction
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 57
Error messages and troubleshooting
5.2 Error messages
FB 45
58 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting
5.2 Error messages
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 59
Error messages and troubleshooting
5.2 Error messages
FB 45
60 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting
5.2 Error messages
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 61
Error messages and troubleshooting
5.2 Error messages
FB 45
62 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting
5.2 Error messages
error_FB
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 63
Error messages and troubleshooting
5.2 Error messages
FB 45
64 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Error messages and troubleshooting
5.2 Error messages
error_BUS
Note
The following table of bus errors does not claim to be complete. If you receive any messages
that are not documented here, follow the instructions in the help file for SFB 52/53 in
SIMATIC Manager.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 65
Error messages and troubleshooting
5.2 Error messages
FB 45
66 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications 6
6.1 FB 45 scanning by user
Scanning of FB 45 takes place in accordance with the structogram in the following figure.
5HVWDUW6HWLQLWBUXQ
ൺ2%
&\FOLFVFDQQLQJ6HWFRPPDQGBVWDUW
ൺVWDUWFRPPDQGRQO\LIUHDG\
UHDG\
"
< 1
HUURU
" 3RVVLEOHWLPHRXW
< 1 PRQLWRULQJE\XVHUൺ
LQLWBUXQRU
$1=BUHVHWRU FDQFHORQWLPHRXW
$1=BFDQFHOVHW
"
1 <
EDWWHU\BORZ
"
< 1
ಯ&KDQJHEDWWHU\ರ
PHVVDJHRQ +HUHQR
SULQWHU FRPPXQLFDWLRQ
WRRNSODFHZLWK
(UURUKDQGOLQJ WUDQVSRQGHU
ൺHYDOXWLRQRI &RPPDQG2.
HUURUB02%<
HUURUB)&
DQG &RPPDQG2.
HUURUB%86 ൺSURFHVVGDWD
6HWFRPPDQGBVWDUW
ൺVWDUWQH[WFRPPDQGLIGHVLUHG
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 67
Examples/applications
6.2 Processing of data memories/transponders
Addressing
The data memories are addressed linearly from address 0000 (or the specified start
address) to the end address. The ASM or write/read device automatically recognizes the
size of the memory on the MDS. When the end address on the MDS is exceeded, the user
receives an error message in error_MOBY.
The next table shows the address space of the individual MDS versions. The variables
address_MDS and length (see Table "UDT 20 MOBY CMD" in Section "MOBY commands")
must be configured according to this address space.
FB 45
68 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.2 Processing of data memories/transponders
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 69
Examples/applications
6.2 Processing of data memories/transponders
FB 45
70 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.2 Processing of data memories/transponders
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 71
Examples/applications
6.2 Processing of data memories/transponders
NOTICE
OTP writing/locking should only be used in static operation.
NOTICE
Use of the OTP area is not reversible.
If you use the OPT area, you cannot undo it, because the OPT area can only be written to
once.
FB 45
72 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.2 Processing of data memories/transponders
FF01 1 .. 19
FF02 1 .. 18
FF03 1 .. 17
FF04 1 .. 16 FF84 4,8,12,16
FF05 1 .. 15
FF06 1 .. 14
FF07 1 .. 13
FF08 1 .. 12 FF88 4,8,12
FF09 1 .. 11
FF0A 1 .. 10
FF0B 1 .. 9
FF0C 1 .. 8 FF8C 4,8
FF0D 1 .. 7
FF0E 1 .. 6
FF0F 1 .. 5
FF10 1 .. 4 FF90 4
FF11 1 .. 3
FF12 1 .. 2
FF13 1
NOTICE
Write access to addresses starting at FF80 to FF93 activates the write protection (OTP
function) on the EEPROM user memory. This operation is not reversible. Switching on write
protection must always take place in ascending order without gaps, starting at address
FF80.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 73
Examples/applications
6.2 Processing of data memories/transponders
NOTICE
Write access to addresses starting at FF80 to FF8F activates the write protection (OTP
function) on the EEPROM user memory. This operation is not reversible.
FB 45
74 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.3 Cyclic calling of FB 45 (e.g. in OB 1)
UN "MOBY DB".SLG[1].ready
SPB x01
U "MOBY DB".SLG[1].error
SPB x01
AN "MOBY DB".SLG[2].ready
SPB x02
A "MOBY DB".SLG[2].error
SPB x02
x02: NOP 0
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 75
Examples/applications
6.4 Programming a cold and warm restart
Network: 1 set init_run bit for all channels which are configured in DB45
SET
S "MOBY DB".SLG[1].init_run
S "MOBY DB".SLG[2].init_run
In a distributed configuration of an ASM (e.g. via PROFIBUS), the ASM may be switched off
and on again due to system conditions (see Section "Programming a module failure"). When
this happens, the ASM reports the power failure to the FB 45 (and thus to the user). The
user must then perform an init_run for this ASM before a MOBY command can be started
again.
Note:
The "init_run" variable is set to TRUE in the project supplied with the system. This
automatically triggers an "init_run" whenever the parameter data block is downloaded onto
the PLC (see Table "INPUT parameters" in Section "INPUT parameters").
FB 45
76 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.5 Programming a module failure
Block: OB122
x1: NOP 0
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 77
Examples/applications
6.5 Programming a module failure
L #OB122_MEM_ADDR
L
"MOBY DB".SLG[2].ASM_address
-D
SRW 1 // Formula:
L 1 // (#OB122_MEM_ADDR -
+D write/read
device[x].ASM_address) / 2 + 1
x2: NOP 0
OB 86 must also be available on the automation system in addition to OB 122 to prevent the
system from switching to STOP if a PROFIBUS slave fails. No code needs to be
programmed in OB 86 for the correct operation of FB 45.
After the error on the ASM has been corrected and the ASM is ready for operation again, the
user must send an init_run to the FB 45. The ASM is then ready for operation.
FB 45
78 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.6 Data structure definition
1st example
Four SLGs are parameterized. One command is assigned to each write/read device. MOBY
parameters (DB 45), MDS commands (DB 47), and data (DB 48) are assigned to different
data blocks. The declaration view is shown.
When the data blocks have been defined, the "actual value" of the data must be edited using
the "View → Data view" menu.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 79
Examples/applications
6.6 Data structure definition
2nd example
2 commands are assigned directly to each MOBY channel. The MOBY parameters and the
MOBY commands of all write/read devices are stored in a "MOBY DB". A nested structure is
used in the declaration.
'% 02%<B'%
6758&7 &KDQQHO>@
FKDQQHO$55$<>@
8'7 &KDQQHO>@
6758&7
FRPPDQG$55$<>@
8'7 &KDQQHO>@
(1'B6758&7
(1'B6758&7
FRPPDQGBVWDUW
LQLWBUXQ
FRPPDQGB'%BQXPEHU 7KH02%<FRQWURO
FRPPDQGB'%BDGGUHVV SDUDPHWHUVDQGWKH
FRPPDQGVDVVRFLDWHG
UHDG\ ZLWKHDFKFKDQQHODUHDOO
HUURU DYDLODEOHLQDGDWDEORFN
IRUDOO02%<FKDQQHOV
&KDQQHO>@
&RPPDQG>@
&KDQQHO>@
&RPPDQG>@
FRPPDQG
DGGUHVVB0'6
OHQJWK
'$7B'%BQXPEHU
'$7B'%BDGGUHVV
FB 45
80 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.6 Data structure definition
The following shows an extract from a STEP 7 user program. It shows how a large number
of MOBY channels can be handled easily using symbolic names. A command is started via
each of the inputs 0.0, 0.1 and 0.3. An edge trigger flag is used to prevent the command
from being started several times:
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 81
Examples/applications
6.6 Data structure definition
3rd example
A separate data block is assigned to each MOBY channel. It contains the parameters,
commands and data for a channel. Space for 10 MOBY channels should be reserved on
each channel.
'%5HDGHU
5HDGHU'%
8'7
6758&7
FRPPDQG$55$<>@ $GG 5HDGHU'%
8'7
(1'B6758&7
$GG
GDWD$55$<>@ 5HDGHU'%
%<7(
(QG6758&7
$GG 1DPH
$60BDGGUHVV
$60BFKDQQHO
'%5HDGHU
8'7
6758&7
FRPPDQG$55$<>@
8'7
(1'B6758&7
GDWD$55$<>@
%<7(
(QG6758&7
&RPPDQGFRPPDQG
&RPPDQGDGGUHVVB
'%5HDGHU 0'6
&RPPDQGOHQJWK
8'7
6758&7
FRPPDQG$55$<>@
8'7
(1'B6758&7
GDWD$55$<>@
%<7(
(QG6758&7 'DWD>@
'DWD>@
'DWD>@
'DWD>@
Figure 6-3 Example of a separate data block assigned to each MOBY channel
FB 45
82 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.7 UDTs of FB 45 / FC 45
6.7 UDTs of FB 45 / FC 45
The "MDS status" and "SLG status" commands supply a variety of data. The UDTs
described in the following section can be used for clear presentation and easy definition of
the data blocks for the result.
Special information on the UDTs for the RF620R/RF630R readers can be found in the
"Configuration Manual RF620R/RF630R".
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 83
Examples/applications
6.7 UDTs of FB 45 / FC 45
FB 45
84 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.7 UDTs of FB 45 / FC 45
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 85
Examples/applications
6.7 UDTs of FB 45 / FC 45
QRWXVHG
%ORFN))))
%ORFN))&)))
%ORFN))))%
%ORFN))))
%ORFN))))
:ULWHSURWHFWLRQVWDWXV
EORFNQRWSURWHFWHGUZ
EORFNSURWHFWHGUR
FB 45
86 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Examples/applications
6.7 UDTs of FB 45 / FC 45
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 87
Examples/applications
6.8 Determing the memory requirement in the SIMATIC
FB 45
88 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware A
This appendix discusses the special features of the individual interface modules which can
be addressed with the FB 45.
For a detailed hardware description of the interface modules with installation notes, see the
appropriate MOBY manual on configuring, mounting and service.
A.1 RF170C
Area of application
The RF170C communication module is a SIMATIC S7 module. It can be plugged into the
ET 200pro distributed I/O station. The ET 200pro is operated by the user over
PROFIBUS DP V1 or PROFINET IO. An S7-300 or S7-400 with integrated
PROFIBUS/PROFINET connection can be used as the controller.
352),%86'3
PDVWHUPRGXOH
HJ6&38
0'6
352),%86FDEOHWR
5HDGHUZULWHUHDGGHYLFH
DOO
352),%86VODYHV ,QWHUIDFHPRGXOH
RIWKH(7SUR 5)&
9IRU5)&
DQGUHDGHUZULWHUHDGGHYLFH
P
VWDQGDUGFDEOHOHQJWK
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 89
Brief description of ASM hardware
A.1 RF170C
Hardware configuration
The RF170C is integrated into the hardware configuration of the SIMATIC Manager
preferably via the Object Manager. The object manager can be found on the CD RFID
Systems Software & Documentation from Edition 03/2006 (6GT2080-2AA10) as SETUP.exe.
The object manager provides the functions for PROFIBUS DP and PROFINET IO.
Integration into the PROFIBUS master is carried out by means of a GSD file:
● SIEM8118.GSD for ET 200pro with IM 154-1
● SIEM8119.GSD for ET 200pro with IM 154-2 High Feature
The GSD file can be optionally incorporated into HW Config of the SIMATIC Manager using
the function Tools > Install new GSD … . You will find the file under Support and ET 200pro.
For full functionality (e.g. firmware update), support for GSD revision 5 or higher is required.
Integration into other PROFINET IO controllers is carried out by means of a GSDML file:
● GSDML-V1.0-SIEMENS-ET200pro-"Date in format yyyymmdd".xml for ET 200pro with
IM 154- PN High Feature
FB 45
90 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.1 RF170C
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 91
Brief description of ASM hardware
A.1 RF170C
FB 45
92 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.1 RF170C
LEDs Meaning*
SF Group error
ACT_1, ACT_2 The corresponding reader / write/read device is active in processing a user
command.
ERR_1, ERR_2 * A flashing pattern indicates the last error to occur.
PRE_1, PRE_2 ** Indicates the presence of a transponder/MDS.
RxD_1, RxD_2 Indicates live communication with the reader / SLG. May also indicate
malfunctions on the reader / SLG.
* The meaning of the individual flashing patterns is described in the relevant FB and FC
documentation. The associated error descriptions are also to be found there.
** In multitag operation, this LED uses a flash interval to indicate the number of data carriers
currently within the range
of the reader / write/read device.
After start-up or updating the firmware, the LEDs SF, PRE, ERR and ACT indicate the
operating status or faults of the RF170C:
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 93
Brief description of ASM hardware
A.1 RF170C
Off-the-shelf reader / write/read device connection cables are available for the RF170C.
The appropriate cable and M12 connectors are available for users who want to make their
own cables.
FB 45
94 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.2 RF180C
A.2 RF180C
Area of application
The RF180C communication module is a SIMATIC S7 module. The RF180C communication
module is a module for operating RFID components via PROFINET IO on any controller. Up
to two readers / SLGs can be operated on the RF180C at the same time. The user can issue
a command to 2 readers / SLGs simultaneously (FB 45 when operating on a SIMATIC S7).
6WHXHUXQJ
]%6&38
5)&
;
352),1(7,2/HLWXQJ
;
9I¾U5)&XQG5HDGHU6/*
]XZHLWHUHQ
352),1(7,27HLOQHKPHUQ
5HDGHU 5HDGHU
7UDQVSRQGHU
Hardware configuration
The RF180C is integrated into the hardware configuration by means of a GSDML file. The
RF180C can then be configured using HW Config of the SIMATIC manager or another
PROFINET tool. The GSDML file can be found on the "RFID Systems Software &
Documentation" CD or on the Internet (see section Service & Support (Page 167)).
● GSDML-V1.0-SIEMENS-RF180C-"Date in yyyymmdd".xml
● The RF180C must have a valid IO device name. The default device name is RF180C
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 95
Brief description of ASM hardware
A.2 RF180C
FB 45
96 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.2 RF180C
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 97
Brief description of ASM hardware
A.2 RF180C
FB 45
98 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.2 RF180C
5HDGHU6/*
6,0$7,&5)&
6,0$7,&5)&
$&7B 35(B
;
5['B (55B
;
5HDGHU6/*
$&7B 35(B
5['B (55B ;
;
*7-' *7-'
6) %) 21 '&9
[ [
/LQN 5;7;
[ [
[ [
[ [
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 99
Brief description of ASM hardware
A.2 RF180C
LEDs Meaning*
ON Lights up when the RF180C has completed start-up without errors.
24 V DC Lights up when the 24 V supply voltage is connected to the RF180C.
ACT_1, ACT_2 The corresponding reader/SLG is active in processing a user command.
ERR_1, ERR_2 * A flashing pattern indicates the last error to occur.
PRE_1, PRE_2 ** Indicates the presence of a tag/MDS.
RxD_1, RxD_2 Indicates live communication with the reader / SLG. May also indicate malfunctions on the
reader / SLG.
*) The meaning of the individual flash patterns and the associated fault descriptions can be found in the relevant FB
documentation.
**) In multitag mode, this LED uses a flash interval to indicate the number of data media currently within the range of
influence of the reader/SLG.
FB 45
100 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.2 RF180C
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 101
Brief description of ASM hardware
A.3 ASM 456
Area of application
The ASM 456 interface modules are slave modules for operating MOBY components via the
PROFIBUS DP/DP-V1 on any control systems.
352),%86'3
0DVWHUPRGXOH
HJ6&38
$60b
;
352),%86&DEOH
;
P
9IRU$60DQG6/*V
WRRWKHU
352),%86EXVQRGHV
QG6/* VW6/*
0'6 0'6
6WDQGDUGFDEOHOHQJWK
FB 45
102 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.3 ASM 456
Design
The ASM 456 has the same housing as the distributed I/O station ET 200eco.
The ASM has a connection block for connecting up to the PROFIBUS DP which is available
as an option and the ECOFAST version or M12, 7/8".
The following figure shows the basic design of the ASM 456.
02%<$60
&RQQHFWRUVRFNHWIRUVWZULWHUHDGGHYLFH
; 6WDWXV/('VIRURSHUDWLRQ
RIVWZULWHUHDGGHYLFH
&RQQHFWRUVRFNHWIRUQGZULWHUHDGGHYLFH
; 6WDWXV/('VIRURSHUDWLRQRIWKH
QGZULWHUHDGGHYLFH
6WDWXV/('VIRULQWHUIDFHPRGXOH
*7('
6SDFHIRUFRQQHFWLRQEORFN
3URWHFWLYH(DUWK
Hardware configuration
The ASM 456 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM8114.GSD. The file is
incorporated into HW Config of the SIMATIC Manager using the function "Tools > Install new
GSD ...". You will find the file on the CD RFID Systems Software & Documentation in the
directory daten\PROFI_GSD\ASM456.
For full functionality (diagnostics texts, firmware update), support for GSD revision 5 or
higher is required.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 103
Brief description of ASM hardware
A.3 ASM 456
FB 45
104 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.3 ASM 456
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 105
Brief description of ASM hardware
A.3 ASM 456
FB 45
106 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.3 ASM 456
02%<$60
$&7B 35(B
6/*
5['B (55B
;
$&7B 35(B
6/*
5['B (55B
;
*7(' 352),%86
6) %) 21 '&9
LEDs Meaning*
ON Lights up when there is logic voltage at the ASM (is generated by the 24 V
supply voltage.)
24 V DC Lights up when the 24 V supply voltage is connected to the ASM.
ACT_1, ACT_2 The corresponding SLG is active in processing a user command.
ERR_1, ERR_2 * A flashing pattern indicates the last error to occur.
PRE_1, PRE_2 ** Indicates the presence of an MDS.
RxD_1, RxD_2 Indicates live communication with the write/read device. May also indicate
malfunctions on the write/read device.
*) The meaning of the individual flash patterns and the associated fault descriptions can be
found in the relevant FB and FC documentation.
**) In multitag mode, this LED uses a flash interval to indicate the number of data carriers currently
within the range of the write/read device.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 107
Brief description of ASM hardware
A.3 ASM 456
FB 45
108 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.3 ASM 456
Pin assignment
*) You will find the assembly instructions in the packaging of the Han Brid Cu cable connector
and/or Han Brid Cu cable socket.
Thread Shield
6LJQDO%UHG
/RRSWKURXJK %XVFDEOH
FRQQHFWLRQ'3 FRUHVKLHOGHG
6LJQDO$JUHHQ
6KLHOG
6LJQDO%UHG
*) Can only be used for the M12 terminating resistor. Looping the voltage through to the
next connector via a 5-core cable is not permitted.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 109
Brief description of ASM hardware
A.3 ASM 456
/RRSWKURXJK
FRQQHFWLRQ; FRUHFDEOH
/
/
FB 45
110 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.4 ASM 475
$60b 2WKHUPRGXOHVIURP
WKH6UDQJH
LQFOXGLQJ$60
$60BFKDQQHO
:ULWHUHDGGHYLFH
:ULWHUHDGGHYLFH :ULWHUHDGGHYLFH DQG0'6IURPWKH
02%<(),8'
IDPLO\
0'6 0'6
Hardware configuration
The ASM 475 is integrated in the hardware configuration of the SIMATIC Manager by calling
Setup.exe in the directory daten\S7_OM on the RFID Systems Software & Documentation
CD. Currently, the ASM 475 cannot be integrated in masters of other manufacturers.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 111
Brief description of ASM hardware
A.4 ASM 475
FB 45
112 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.4 ASM 475
Command repetition:
Command repetition as described in Section "Command repetition" is available on ASM 475
with MLFB 6GT2 002-0GA10.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 113
Brief description of ASM hardware
A.4 ASM 475
02%<
$60
6)
'&9
$&7B
(55B 7
:ULWHUHDGGHYLFHb
35(B 7
5['B
5
5
:ULWHUHDGGHYLFHb
7
$&7B 7
(55B 5
35(B 5
5['B
*7*$
6WDWXVDQGHUURULQGLFDWRUV 5HDGHUFRQQHFWLRQ
GLDJUDP7KHQXPEHUV
IRUWKHFRQQHFWLRQUHIHU
WRSOXJFRQQHFWRU;RQ
WKHWRSRIWKHKRXVLQJ
FB 45
114 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.4 ASM 475
The following ASM states are indicated with the LEDs PRE, ERR and SF.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 115
Brief description of ASM hardware
A.5 ASM 473
0D[RI$60VFDQEH
RSHUDWHGLQRQH(7;
$60BFKDQQHO
Figure A-9 Maximum configuration of ASM 473 on an ET 200X with sample addressing
Depending on the PROFIBUS master, up to 126 ET 200X modules can be run on one
PROFIBUS branch.
Hardware configuration
The ASM 473 is integrated in the hardware configuration of the SIMATIC Manager by calling
Setup.exe in the directory daten\S7_OM on the RFID Systems Software & Documentation
CD. Currently, the ASM 473 cannot be integrated in masters of other manufacturers.
FB 45
116 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.5 ASM 473
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 117
Brief description of ASM hardware
A.5 ASM 473
FB 45
118 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.5 ASM 473
The following ASM states are also indicated with the LEDs "PRE" and "ERR".
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 119
Brief description of ASM hardware
A.6 ASM 452
$7FRPS3&
352),%86'3
PDVWHUPRGXOH
HJ6&38
352),%86OLQH
$60BFKDQQHO
9
IRU$60DQG
ZULWHUHDGGHYLFH
WRRWKHU
352),%86
EXVQRGHV
QGZULWHUHDGGHYLFH
ವ1RWZLWK02%<,GLDORJ
ವ1RWZLWK02%<8'5)b
Hardware configuration
The ASM 452 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM80B6.GSD. The file is
incorporated in the hardware configuration of the SIMATIC Manager using the function
"Tools > Install new GSD ...". This file is located in the directory daten\PROFI_GSD\ASM452
of the RFID Systems Software & Documentation CD.
FB 45
120 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.6 ASM 452
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 121
Brief description of ASM hardware
A.6 ASM 452
([DPSOH7HUPLQDOUHVLVWDQFHRIIFRQGLWLRQRQGHOLYHU\
21
2))
([DPSOH352),%86DGGUHVVFRQGLWLRQRQGHOLYHU\
21 1RUPDOXVH
$60FRPSDWLEOH
XVH*6'ILOH
VLHPG
FB 45
122 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.6 ASM 452
6)
%)
21 /('VIRU
&RQQHFWLRQV ; '&9 352),%86'3
IRU352),%86 3RZHULQGLFDWRU
; ;
6/*
;
5['
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 123
Brief description of ASM hardware
A.6 ASM 452
Interface assignments
Interface
Connection for PROFIBUS Pin Assignment
X 11 and X 12 1 Signal B (red)
2 PE
3 PE (not wired)
4 Signal A (green)
5 L+ (not wired)
6 M (not wired)
Connection for power supply Pin Assignment
X 13 1 PE
2 L+
3 M
4 PE
5 L+
6 M
Connection for write/read device Pin Assignment
X1/X3 1 +RxD
2 +TxD
3 -TxD
4 -RxD
5 PE
X2/X4 Pin X2 X4
1 +24 V +24 V
2 PRE/ERR2 res. (DE1)
3 0V 0V
4 PRE/ERR1 res. (DE0)
5 PE PE
FB 45
124 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.6 ASM 452
PROFIBUS Diagnosis
"ON" LED is not on or is flashing
If the "ON" LED is not on, this means that either no supply voltage or too low voltage is
available to the ASM452. Possible causes include a bad fuse or missing/too low supply
voltage. Flashing or absence of this LED may mean that the module is defective.
Diagnosis with LEDs
The following table lists possible error indications with their meanings and provides
remedies.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 125
Brief description of ASM hardware
A.6 ASM 452
FB 45
126 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.7 ASM 454
352),%86PDVWHU
9
6)&)% '& a
6)&)% 9
352),%86 02%<SRZHU
2WKHUPDVWHU '39 SDFNRURWKHU9
WKLUGSDUW\)&)% FRQQHFWLRQ
$60BFKDQQHO
:ULWHUHDG
:ULWHUHDG :ULWHUHDG :ULWHUHDG :ULWHUHDG GHYLFHDQG0'6
GHYLFH GHYLFH GHYLFH GHYLFH IURP
02%<,(9
UDQJH
Hardware configuration
The ASM 454 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM809F.GSD. The file is
incorporated in the hardware configuration of the SIMATIC Manager using the function
"Tools > Install new GSD ...". You will find the file on the CDRFID Systems Software &
Documentation in the directory daten\PROFI_GSD\ASM454-754-85x.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 127
Brief description of ASM hardware
A.7 ASM 454
FB 45
128 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.7 ASM 454
,QWHUIDFHV
Interfaces Meaning
6)%)
PROFIBUS PROFIBUS DP interface
21 $&7
SERIAL RS 232/RS 422 interface
21 (only relevant for firmware
download)
DC 24 V Power supply for
ASM 454
QRWDVVLJQHG
6(5,$/LQWHUIDFH
2156
2))56
RQO\UHOHYDQWIRUILUPZDUHGRZQORDG
6HW352),%86DGGUHVV
21
21
21
([DPSOH
352),%86DGGUHVV
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 129
Brief description of ASM hardware
A.8 ASM 754
352),%86PDVWHU
9
6)&)% '& a
6)&)% 352),%86 9 02%<SRZHU
2WKHUPDVWHU '39 SDFNRURWKHU
WKLUGSDUW\)&)% 9FRQQHFWLRQ
$60BFKDQQHO
02%<(
6/$ 6/$ 6/$ 6/$ 6/$[DQG
0'6([[
Hardware configuration
The ASM 754 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM809F.GSD. The file is
incorporated in the hardware configuration of the SIMATIC Manager using the function
"Tools > Install new GSD ...". Sie finden die Datei auf der CD RFID Systems Software &
Documentation in the directory daten\PROFI_GSD\ASM454-754-85x.
FB 45
130 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.8 ASM 754
SLA per ASM Time to Read 752 Byte Time to Write 752 Byte
Single Command Chained
Command
1 3.3 s 2.5 s
2 6.6 s 5s
3 9.8 s 7.5 s
4 13 s 10 s
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 131
Brief description of ASM hardware
A.8 ASM 754
FB 45
132 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.9 ASM 854
352),%86PDVWHU
9
6)&)% '& a
6)&)% 9 02%<SRZHU
2WKHUPDVWHU 352),%86
SDFNRURWKHU
WKLUGSDUW\)&)% '39
9FRQQHFWLRQ
$60BFKDQQHO
02%<)
6/$ 6/$ 6/$ 6/$ 6/$[DQG
0'6)[[[
Hardware configuration
The ASM 854 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM809F.GSD. The file is
incorporated in the hardware configuration of the SIMATIC Manager using the function
"Tools > Install new GSD ...". Sie finden die Datei auf der CD RFID Systems Software &
Documentation in the directory daten\PROFI_GSD\ASM454-754-85x.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 133
Brief description of ASM hardware
A.9 ASM 854
The command table is valid for the FB 45. No commands are transferred to the ASM when
fixed-code MDSs are processed with the process image.
FB 45
134 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.9 ASM 854
Note
Process image mode does not use the FB 45. This section describes how to handle and
program the process image mode. Only fixed-code MDSs of type "MDS F1xx" can be read in
this mode.
Process image mode is parameterized in HW Config by selecting the appropriate entry from
the GSD file. Process image mode does not offer functions for the application.
2QO\RQH6/$LVXVHGRQ
WKH$60
$60BFKDQQHO
$OOIRXUFKDQQHOVRQWKH
$60DUHLQXVH
Figure A-15 Selecting process image mode for ASM 854/850 based on the number of channels
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 135
Brief description of ASM hardware
A.9 ASM 854
Network: 1
The data of 9 MOBY F channels are read consistently to DB 20. The 9
channels are distributed over 3 ASM 854s.
FB 45
136 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.9 ASM 854
&KDQQHO
6WDWXV>@
'DWD &KDQQHO
'DWD 6WDWXV>@
'DWD 'DWD &KDQQHO
'DWD 'DWD 6WDWXV>@
'DWD 'DWD &KDQQHO
'DWD
'DWD 'DWD 6WDWXV>@
'DWD 'DWD 'DWD 06%RIGDWD
'DWD 'DWD
'DWD 'DWD
'DWD
'DWD /6%RIWKHGDWD
5HODWLYHDGGUHVV
LQ'%RULQ
SURFHVVLPDJH
%LW
(UURU &K &K &K +5 35( = =
7ZRELWFRXQWHU7KLVFRXQWHULVDOZD\V
LQFUHPHQWHGE\RQHZKHQDQHZ0'6LVUHDG
$IWHUDFKDQJHLQWKHFRXQWHUGDWDWR
FRQWDLQDQHZ0'6QXPEHU
3UHVHQFHLQGLFDWHVWKHSUHVHQFHRIDQ0'6LQWKH
WUDQVPLVVLRQZLQGRZRIDQ6/$
+LVWRULFDOUHDGLQIRELW$VHWELWLQGLFDWHVWKDWWKH0'6PRYHG
DFURVVWKHILHOGDWPD[LPXPSRVVLEOHVSHHG7KHGDWDFRXOGRQO\EH
UHDGRQFHIURPWKH0'6
,QIRUPDWLRQRQFKDQQHODOORFDWLRQRIWKHGDWD
&KDQQHO
&KDQQHO
&KDQQHO
&KDQQHO
(UURUPHVVDJHLIHUURU 7KHGDWDDUHLQYDOLG'DWDE\WHFRQWDLQVDQHUURUFRGH
7KHIROORZLQJHUURUFRGHVDUHSRVVLEOH
KH[ WKH0'6GDWDKDYHFKDQJHGZLWKRXWDSUHVHQFHFKDQJH
)KH[ $60SRZHUXSWKHFRXQWHUV=KDYHEHHQUHVHWWR
KH[ LQWHUQDOUXQWLPHHUURURQ$60
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 137
Brief description of ASM hardware
A.9 ASM 854
(UURU
=
=
35(
FB 45
138 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Brief description of ASM hardware
A.10 ASM 850
352),%86PDVWHU
9
'& a
6)&)%
6)&)% 9
352),%86 02%<SRZHU
2WKHUPDVWHU '39 SDFNRURWKHU
WKLUGSDUW\)&)% 9FRQQHFWLRQ
$60BFKDQQHO
02%<)
6/$ 6/$[DQG
0'6)[[[
0'6
Hardware configuration
The ASM 850 is integrated into the hardware configuration of the SIMATIC Manager or into
another PROFIBUS Master by means of the GSD file SIEM809F.GSD. The file is
incorporated in the hardware configuration of the SIMATIC Manager using the function
"Tools > Install new GSD ...". Sie finden die Datei auf der CD RFID Systems Software &
Documentation in the directory daten\PROFI_GSD\ASM454-754-85x.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 139
Brief description of ASM hardware
A.10 ASM 850
The command table is valid for the FB 45. No commands are transferred to the ASM when
fixed-code MDSs are processed with the process image.
FB 45
140 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS B
B.1 Programming the MOBY-ASM on PROFIBUS DP-V1
Note
Some signals in this appendix have the same meaning as the variables in Section
"Parameter data block". In order to distinguish between them, an underscore "_" is appended
to the relevant signals (e.g. ANZ_MDS_present_).
352),%86'3
PDVWHUZLWK 352),%86'39
'39IXQFWLRQ
2WKHUILHOG
02%<$60 GHYLFHV
02%<$60
&\FOLFFRPPXQLFDWLRQYLD $F\FOLFFRPPXQLFDWLRQYLD
352),%86'36WDWXVLQIRUPDWLRQLV 352),%86'39&RPPDQGVDQG
H[FKDQJHGVHH6HFWLRQ&\FOLFFRQWUROZRUG DFNQRZOHGJHPHQWVDUHH[FKDQJHG
EHWZHHQPDVWHUDQG02%<$60 VHH6HFWLRQ&RPPDQGDQG
DFNQRZOHGJHPHQWWHOHJUDPV
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 141
Programming the MOBY-ASM on PROFIBUS
B.1 Programming the MOBY-ASM on PROFIBUS DP-V1
The master may only send new commands to the slave (MOBY-ASM) when the ASM is
ready. Status information is used to indicate that the MOBY-ASM is ready. The same applies
to acknowledgments. The MOBY-ASM may only fetch new acknowledgments when a new
acknowledgment is actually waiting (i.e. has not yet been read). This information is also
indicated by a state info.
Two indications are defined in the state info. The PROFIBUS DP master uses these two
indications to decide whether a DP-V1 telegram can be executed to or from the MOBY-ASM.
&RPPDQGFRXQWHU $FNQRZOHGJHPHQWFRXQWHU
'3
9
02 WH
P OHJ
DF %< UD UDP
WLYH $6 OHJ
0 WH
9 &R D QG
'3 UHD PPD PP
G\ QG &R G \
UH D
02%<$60 JUDP
'39WHOHJUDP WHOH
DFWLYH '39
0
$6
2 %<
0 LYH '39WHOHJUDP &R
W UDP
DF WHOHJ UHD PPD
02 '39 G\ QG
DF %< PDQ
G
UDP WLYH $6 &RP '3
HOHJ 0 UHDG
\ 9
W WH
OHJ
' 39 UDP
6WDWXVRIFRXQWHUVDIWHU$60SRZHUXSRUDIWHUDQLQLWBUXQB
As you can see from the diagram above, a DP-V1 telegram triggers the change from one
defined state to the next. A new DP-V1 telegram is not permitted until the next state is
reached. A DP-V1 telegram is either a command to the ASM or an acknowledgment from the
ASM.
For this reason, it is important to tell the master whether a new DP-V1 telegram can be
executed. Each state is coded in 2 bits and counted up (as shown in the diagram above)-
hence the name state bits or state counters.
The state bits are transmitted cyclically to the master via PROFIBUS DP. The user must
evaluate the bits in his program. When the state bit changes, a new state (new state = old
state + 1) is created. Only now can the next DP-V1 telegram be sent.
FB 45
142 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.1 Programming the MOBY-ASM on PROFIBUS DP-V1
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 143
Programming the MOBY-ASM on PROFIBUS
B.2 Cyclic Control Word between Master and MOBY-ASM
&\FOLFZRUGWR02%<$60
3HULSKHUDORXWSXW
UHSHDWBFRPPDQGB
5HVHUYHG RSWLRQDO
LQLWBUXQB
6WDUWXSRI352),%86'3PDVWHU
7KLVELWIRUFHVD02%<$60VWDUWXS FDQFHOB
%LWLVVXEVHTXHQWO\VHWLQWKHSHULSKHUDO FRPPDQGWHUPLQDWLRQ 5HVHUYHGIRU'2
LQSXW
&\FOLFZRUGIURP02%<$60
3HULSKHUDOLQSXW
QXPEHUB0'6B
$1=B0'6B 02%<8RQO\
SUHVHQWB
5HDGHUBHUURU02%<8RQO\
SUHVHQFH
$60BEXV\B
0'6BSUHVHQFHB 2SHUDWLRQZLWKUHSHDWBFRPPDQGB
FKDQJHGB $1=BFDQFHOB $FRPPDQGLVFXUUHQWO\EHLQJ
IRU)&)% &DQFHO SURFHVVHGE\WKH0'6
XQXVHG DFNQRZOHGJH 7KHELWLVVHWDVVRRQDVDQ0'6
5HVHUYHG PHQW HQWHUVWKHILHOGRIWKHUHDGHUZKLOHWKH
UHSHDWBFRPPDQGELWLVVHW7KHELWLV
&RPPDQGFRXQWHUORZHUELW%/ UHVHWZKHQWKH0'6FRPPXQLFDWLRQ
&RPPDQGFRXQWHUKLJKHUELW%+ LVFRPSOHWH7KHUHVXOWVPD\QRW
KDYHEHHQWUDQVPLWWHGWRWKH$60
KRZHYHU
$FNQRZOHGJHPHQWFRXQWHUORZHUELW4/
2SHUDWLRQZLWKRXWUHSHDWBFRPPDQGB
$FNQRZOHGJHPHQWFRXQWHUKLJKHUELW4+
%LWLVDFWLYHDVVRRQDVWKH$60LV
6WDUWXSPHVVDJH SURFHVVLQJDFRPPDQG
7KLVELWLQGLFDWHVWKDWWKH02%<$60KDVVWDUWHGXS
$1=BUHVHWB FRPPDQGBUHSHDWBDFWLYHB
:KHQLQLWBUXQBLVUHVHWWKH02%<$60FDQFHOVWKLV 7KLVELWLVWKHFRQILUPDWLRQPLUURULQJRI
ELWDJDLQ2WKHUFRPPDQGVH[FHSWIRU5(6(7RUDQ
UHSHDWBFRPPDQGB,WLVXVHGIRULQIRUPDWLRQ
LQYDOLG5(6(7FRPPDQGDUHWKHQGHQLHGZLWKDQHUURU DQGHUURUDQDO\VLV7KHFRPPDQGUHSHWLWLRQ
PHVVDJH ZDVVWDUWHGRQWKH$60EHWZHHQVHWWLQJRI
UHSHDWBFRPPDQGBDQGUHDGRXWRIWKHHQDEOHG
FRPPDQGBUHSHDWBDFWLYHELW
FB 45
144 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.2 Cyclic Control Word between Master and MOBY-ASM
After start-up, the cyclic word of MOBY-ASM takes on the following states (bits 8 to 15 are
shown).
%HIRUH $IWHU %HIRUHDFNQRZO %HIRUH %HIRUHDFNQRZO
FRPPDQG FRPPDQG HGJHPHQW FRPPDQG HGJHPHQW
3RZHUXS &RPPDQG &RPPDQG &RPPDQG
5(6(7
LQLWBUXQB ณณ
ณณ
$1=BUHVHWB
$F\FOLF ณณ 5(6(7FRPPDQG 5(6(7FRPPDQG
WHOHJUDP WR$60 IURP$60
UHDG\ ณณ
%= %= %= 4=
UHDG\ UHDG\PHVVDJHLQXVHUSURJUDP
LQLWBUXQB
$1=BUHVHWB
$F\FOLF 5(6(7FRPPDQG 5(6(7FRPPDQG
WHOHJUDP WR$60 IURP$60
UHDG\
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 145
Programming the MOBY-ASM on PROFIBUS
B.2 Cyclic Control Word between Master and MOBY-ASM
FDQFHOB ณณ
$1=BFDQFHOB ณณ
$F\FOLF
WHOHJUDP ณณ $FNQRZOHGJHPHQWZLWK
HUURU)
ณณ
UHDG\
&DQFHOLIQRFRPPDQG 4= 4=
DFWLYDWHG
&DQFHOLI$60FXUUHQWO\SURFHVVLQJDFRPPDQG
RQO\RQHHUURUDFNQRZOHGJHPHQWLVPDGHLIVHYHUDOFRPPDQGVFRPPDQGFKDLQVDUHFDQFHOHG
WKHLQFUHPHQWDWLRQRI4=DQGZLWKGUDZDORI$Q]BFDQFHOBFDQEHLQGLFDWHGVLPXOWDQHRXVO\WRWKHXVHU
UHDG\ UHDG\PHVVDJHLQXVHUSURJUDP
FB 45
146 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.3 Methods of operation with the ASM
02%<FRPPDQGH[HFXWLRQ
'3PDVWHU 02%<$60
([HFXWLRQRI ([HFXWLRQRI
VWFRPPDQG QGFRPPDQG
7KHFRPPDQGDQGDFNQRZOHGJHPHQWWHOHJUDPLVDQDF\FOLF'39WHOHJUDPZLWK'39UHVSRQVH
$VWDUWLVRQO\DOORZHGDIWHUFKDQJLQJWKHFRPPDQGDQGRUDFNQRZOHGJHPHQWFRXQWHU
&KDQJHFRPPDQGFRXQWHU1HZVWDWXV ROGVWDWXVF\FOLFZRUG
1RFKDQJHWRF\FOLFGDWD
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 147
Programming the MOBY-ASM on PROFIBUS
B.3 Methods of operation with the ASM
7LPHD[LV
VW QG UG
FRPPDQG FRPPDQG FRPPDQG
'3PDVWHU 02%<$60
7KHFRPPDQGDQGDFNQRZOHGJHPHQWWHOHJUDPLVDQDF\FOLF'39WHOHJUDPZLWK'39UHVSRQVH
$VWDUWLVRQO\DOORZHGDIWHUFKDQJLQJWKHFRPPDQGDQGRUDFNQRZOHGJHPHQWFRXQWHU
The following general conditions apply to the procedures shown in the diagram above.
● It is obvious that data transmission and execution of the commands take place parallel to
each other.
● The sequences shown in the diagram above may vary depending on the transmission
speeds of PROFIBUS and the MOBY-MDS.
● If the PROFIBUS implementation on the DP master only provides limited resources
(buffer) for non-cyclic data transmission, the PROFIBUS data transmission may take
quite a while. This is particularly noticeable in extensive bus configurations with MOBY-
ASM.
● If the PROFIBUS master can be set to permit several non-cyclic telegrams between cyclic
data communication, PROFIBUS data transmission can be accelerated in a bus
configuration with many MOBY-ASMs. However, this has a negative effect on the cyclic
data communication of I/O modules which are also part of the same PROFIBUS branch.
The cycle time of PROFIBUS becomes irregular and sporadically may become very high.
FB 45
148 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.3 Methods of operation with the ASM
● When more commands are to be processed by the ASM than ASM buffer space, the user
must first fetch results from the ASM before new commands can be sent to the ASM.
● The ASM does not absolutely require the chaining bit in the command. However, from the
user's point of view, it is an elegant way to identify related partial commands. A chaining
bit which is set in the command is returned by the ASM in the acknowledgment.
● The number of buffers on the ASM varies with the type of ASM. For more information,
see Section "Command repetition".
Command repetition
The procedure for command repetition and its advantages have already been described in
Section "Command repetition".
Programming of command repetition at the PROFIBUS level will now be discussed. The I/O
input or I/O output word controls command repetition (see Section "Cyclic control word
between master and MOBY-ASM").
The following diagram shows telegram communication between user (DP master) and
MOBY-ASM.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 149
Programming the MOBY-ASM on PROFIBUS
B.3 Methods of operation with the ASM
7LPHD[LV
$60LV
SURJUDPPHGRQFH
DVGHVFULEHGHDUOLHU
'3PDVWHU LQWKLVVHFWLRQ 02%<$60
&RPPXQLFDWLRQGLUHFWLRQ
UHSHDWBFRPPDQGB
$60BEXV\B
$1=B0'6BSUHVHQWB
6ORZ0'6VHTXHQFH
$60BEXV\B
LPPHGLDWHO\LQGLFDWHVWKH )DVW0'6VHTXHQFH
SURJUDPPLQJRID H[HFXWLRQRIWKHQHZ0'6LV
FRPPDQG $IWHU
IDVWHUWKDQWKHWUDQVPLVVLRQ
$1=B0'6BSUHVHQWB
RIWKHGDWD
WKHFRPPDQGLVVWDUWHG
LPPHGLDWHO\
7KHFRPPDQGLV 7KHFRPPDQGLV
H[HFXWHG H[HFXWHG
WKHDFNQRZOHGJHPHQW WKHDFNQRZOHGJHPHQW
FRXQWHULVGHFUHPHQWHG FRXQWHULVGHFUHPHQWHG
DQGWKHUHVXOWLV DQGWKHUHVXOWLV
WUDQVIHUUHG WUDQVIHUUHG
7KHFRPPDQGDQGDFNQRZOHGJHPHQWWHOHJUDPLVDQDF\FOLF'39WHOHJUDPZLWK'39UHVSRQVH
$VWDUWLVRQO\DOORZHGDIWHUFKDQJLQJWKHFRPPDQGDQGRUDFNQRZOHGJHPHQWFRXQWHU
&KDQJHFRPPDQGFRXQWHU,IWKHFRPPDQGLVUHSHDWHGWKHFRPPDQGFRXQWHUDOZD\V
UHWDLQVWKHVDPHFRXQWHUYDOXH
&KDQJHDFNQRZOHGJHPHQWFRXQWHU1HZVWDWXV ROGVWDWXVF\FOLFZRUG
1RFKDQJHWRF\FOLFGDWD
FB 45
150 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.3 Methods of operation with the ASM
7LPHD[LV
$60LVSURJUDPPHG
RQFHDVGHVFULEHG
'3PDVWHU HDUOLHULQWKLVVHFWLRQ 02%<$60
&RPPXQLFDWLRQGLUHFWLRQ
$ %
UHSHDWBFRPPDQGB
FRPPDQGBUHSHDWBDFWLYHB
$60BEXV\B
$1=B0'6BSUHVHQWB
7KHFRPPDQGDQGDFNQRZOHGJHPHQWWHOHJUDPLVDQDF\FOLF'39WHOHJUDPZLWK'39UHVSRQVH
$VWDUWLVRQO\DOORZHGDIWHUFKDQJLQJWKHFRPPDQGDQGRUDFNQRZOHGJHPHQWFRXQWHU
&KDQJHFRPPDQGFRXQWHU,IWKHFRPPDQGLVUHSHDWHGWKHFRPPDQGFRXQWHUDOZD\V
UHWDLQVWKHVDPHFRXQWHUYDOXH
&KDQJHDFNQRZOHGJHPHQWFRXQWHU1HZVWDWXV ROGVWDWXVF\FOLFZRUG
1RFKDQJHWRF\FOLFGDWD
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 151
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
%\WH Q
7KHFRPPDQGVSHFLILFGDWDDUHGHVFULEHGLQGHWDLORQWHIROORZLQJSDJHV
7KHPLQOHQJWKLVWKHPD[GDWDOHQJWK
LV E\WHV
7KHVWDWXVE\WHDOZD\VKDVWKHYDOXHZKHQDFRPPDQGLVLVVXHG
,QWKHUHVXOWRUHUURUWHOHJUDPWKHE\WHKDVWKHIROORZLQJPHDQLQJ
%LW
%DWW %DWW (&& (UURUFRGH)
'HWDLOHGHUURUGHVFULSWLRQVHH&KDSWHU
(UURUPHVVDJHVDQGWURXEOHVKRRWLQJ
(&&FRUUHFWLRQZDVSHUIRUPHGWKHGDWDLQWKH
UHVXOWWHOHJUDPDUHRN
)RU0'6RQO\6WDWXVRIGLDORJEDWWHU\RQ0'6
EDWWHU\EHORZWKUHVKROG
WKLVELWFDQEHRUZLWKRWKHU0'6W\SHV
%DWWHU\YROWDJHRQ0'6KDVGURSSHGEHORZWKUHVKROG
7KLVELWLVDOZD\VVHWRQ0'6W\SHVZLWK((3520PHPRU\
7KHLPSOHPHQWHGFRPPDQGVDUHGHVFULEHGRQWKHIROORZLQJSDJHV
*HQHUDOFRPPDQGIRUPDW
&RPPDQGFRGH)
FKDLQHGFRPPDQG
UHVHUYHGIRUV\VWHPIXQFWLRQVHJILUPZDUHXSGDWH
$PRXQWRIE\WHV
Q WRWDOQXPEHURIE\WHVLQWHOHJUDP$%E\WHLVQRWFRXQWHG
PLQLPXP$%
PD[LPXP$% PD[LPXPOHQJWKIRU352),%86'39LVE\WHV
7KHOHQJWKVSHFLILHGKHUHLVWKHPD[LPXPOHQJWKIRU352),%867KH$60
LVDQH[FHSWLRQZLWKDOHQJWKE\WHVKRUWHUPD[GDWDOHQJWK FRPPDQGVSHFLILFGDWD
FB 45
152 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
Command table
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 153
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
FB 45
154 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
5(6(7
W6&$1 3DUDP 237 6WDW 9HUV+ 9HUV/ 5HV
QRW
02%<8
RU )LUPZDUHYHUVLRQLQ$60YHUVLRQB02%<B
5) HJKH[KH[9
%LW
VFDQQLQJBWLPHB
VHH0'6GHVFULSWLRQ XQDVVLJQHG
%LW
XQDVVLJQHG
5HVHW(55/('
FRQWLQXRXVVFDQQLQJIRUSUHVHQFHFKHFN VWRSIODVKLQJ
YLDILHOGVFDQQLQJGHIDXOW 7LPHRXW
7LPHYDOXH)LVPXOWLSOLHGE\ $60UHVSRQGVZLWKHUURULIQR
WLPHEDVH 0'6SUHVHQW
7LPHEDVH 7LPHYDOXH
PV
7LPHYDOXH
PV 767B21IRU02%<,9RQO\
7LPHYDOXH
V $60UHVSRQGVZLWKDQHUURULIILHOG
7LPHYDOXH
V GLVWXUEDQFHVH[LVWRQWKHZULWHUHDG
GHYLFH
%LW
02%<BPRGHB
GHIDXOW
02%<,(
3UHVHQFHFKHFNDQG0'6FRQWURO 02%<,ZLWK0'6
0'6BFRQWUROB UHV
QRSUHVHQFHFKHFN UHV
QR0'6FRQWUROSUHVHQFHFKHFNYLD UHV
ILUPZDUHGHIDXOW 02%<,GLDORJ
0'6FRQWURODQGSUHVHQFHFKHFNYLDILUPZDUH 02%<9
$ 02%<)0'6[[
% 02%<)0'6[[
& 02%<)0'6[[
(&&GULYHUDFWLYDWHG
)XQFWLRQRIW6&$1LPSRUWDQWIRU0'6
,IWKHUHLVQR0'6ZLWKLQWKHILHOGWKH$60VFDQVWKHHQYLURQPHQWFRQWLQXRXVO\IRUDQ0'6,IDQ0'6ZDVGHWHFWHG
$1=B0'6BSUHVHQWB $1:/(' 21WKHHQYLURQPHQWLVQRZRQO\VFDQQHGDWWKHLQWHUYDOVVSHFLILHGLQW6&$1
,HWKH$1=B0'6BSUHVHQWBVLJQDOFDQRQO\EHFDQFHOHGZLWKLQWKHW6&$1WLPHLQWHUYDOV
:KHQ02%<BPRGHB DOOVHWWLQJVLQRSWLRQE\WHDQGW6&$1DUHLJQRUHG
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 155
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
02%<8 02%<8
ILHOGB21BFRQWUROVHHLQSXWSDUDPHWHU ILHOGB21BWLPHBVHHLQSXWSDUDPHWHUV
%(52RSHUDWLQJPRGH KH[ ZLWKRXW%(52V
KH[ ZLWKRXW%(52VQRZULWHUHDG KH[))KH[ V21GXUDWLRQ
GHYLFHV\QFKURQL]DWLRQ IRUWKHZULWHUHDGGHYLFHILHOG
02%<'
KH[ ILHOGB21BWLPHVZLWFKHVWKHILHOG 0'6W\SHVHHLQSXWSDUDPHWHUV
RII KH[ ,FRGHHJ0'6'
KH[ VW%(52VZLWFKHVWKHILHOGRQ
KH[ ,620'6
QG%(52VZLWFKHVWKHILHOGRII KH[ GXDOGULYHU,&RGHDQG,62
KH[ ZULWHUHDGGHYLFHV\QFKURQL]DWLRQ KH[ 0'6'RSWLPL]DWLRQRQO\IRUZULWHUHDG
YLDFDEOHFRQQHFWLRQDFWLYDWHGVHHPDQXDO GHYLFH'6
IRUFRQILJXULQJPRXQWLQJDQGVHUYLFHIRU KH[ 0'6'[[RSWLPL]DWLRQRQO\IRUZULWHUHDG
02%<8 GHYLFH'66
5)
02%<'5)QRWXVHGKH[ ILHOGB21BWLPHVHHLQSXWSDUDPHWHUV
KH[ 5)PRGHQR,62
KH[ 0DQXIDFWXUHULQGHSHQGHQWWDJ
KH[ ,62P\G,QILQHRQ65)93
KH[ ,62)XMLWVX0%5
KH[ ,62,&RGH6/,1;36/,&6
02%<8 KH[ ,627DJLW+),7H[DV,QVWUXPHQWV
GLVWDQFHBOLPLWLQJBVHHLQSXWSDUDPHWHUV KH[ ,6267/5,.
$)(KH[ P
$)($KH[ GLWWRZLWKUHGXFHGRXWSXWSRZHU
02%<'+)UDWLQJVHHLQSXWSDUDPHWHUV
5)
GLVWDQFHBOLPLWLQJRQO\IRU5)5FKDQJHRIRXWSXWSRZHU
KH[ : KH[ b:
KH[ : KH[ b:
KH[ b: KH[ :
KH[ b:
2SWLRQ02%<5)RQO\
%LW
XQDVVLJQHG XQDVVLJQHG
UHVHW(55/('RQWKHZULWHUHDGGHYLFH
GRQRWUHVHW(55/('RQWKHZULWHUHDGGHYLFH
%LW
02%<8'RU5)ದZLWKRXWPXOWLWDJ
UHV
3UHVHQFHFKHFNDQG0'6FRQWURO0'6BFRQWUROB
QRSUHVHQFHFKHFN
QR0'6FRQWUROSUHVHQFHFKHFNYLD
ILUPZDUHGHIDXOW
02%<8
VFDQQLQJBWLPHBVWDQGE\WLPHIRUWKH0'6VHHLQSXWSDUDPHWHUV
KH[ QRVWDQGE\PRGH
KH[&KH[ PVPVVWDQGE\WLPH
02%<'5)QRWXVHGKH[
FB 45
156 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
$GGUHVV
ZULWH $% /1* ''Q
06% /6% &
&RXQWHULV
LQFUHPHQWHGZLWK
HDFKQHZ0'6
%LW $1=B0'6BSUHVHQWB
%LW +5 VHH$SSHQGL[$
SURFHVVLPDJHPRGH
,QWKHHYHQWRIDQHUURUWKHIRUPDWRIWKHUHVXOWWHOHJUDPLVDVIROORZV
7KH$%E\WHFDQVWRUHDYDOXH!IRUWKHUHDGFRPPDQG &RPPDQG (UURU
,QWKLVFDVHWKHGDWDDUHRQO\SDUWLDOO\FRUUHFWDQGPXVWEHUHMHFWHG
7KHVWDWXVE\WHLQWKHUHVXOWWHOHJUDPGHSHQGVRQWKH0'6W\SHEDWWHU\VWDWHV
7HOHJUDPZKHQUHDGLQJIL[HGFRGH0'602%<)7KH$60UHDGVHDFK0'6DXWRPDWLFDOO\
2QO\UHVXOWVDUHWUDQVPLWWHG
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 157
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
PD[
02%<b8
VW QWK
PRGH :ULWHUHDGGHYLFH $% 6WDW Q FRPPDQG
FRPPDQG
GLDJQRVWLFV,
)XQFWLRQFDOOV
7HOHJUDPKHDGHUVRI
ODVWFRPPDQGV
H[HFXWHG
KH[KH[ PD[PHVVDJH
IUDPHVDUHWUDQVIHUUHG
PD[
02%<b8
VWHUURU
PRGH :ULWHUHDGGHYLFH $% 6WDW Q QWKHUURU
GLDJQRVWLFV,,HUURU
PHVVDJHV
,QGLFDWHVODVWHUURU
ZKLFKRFFXUUHG
KH[(%KH[ PD[HUURU
PHVVDJHV
PD[
02%<b8
PRGH :ULWHUHDGGHYLFH $% 6WDW Q 0'6 QWK0'6
GLDJQRVWLFV,,,LGHQWLILHG
0'6
,'VRIWKH0'6XQLWVODVW
GHWHFWHGLQWKHWUDQVPLV
VLRQZLQGRZ
KH[KH[ PD[0'6,'V
02%<b8
PRGH :ULWHUHDGGHYLFH $% 6WDW Q WREHGHILQHG
GLDJQRVWLFV,9
&RPPXQLFDWLRQTXDOLW\
FB 45
158 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
1(;7 6WDW
(1' PRGH 6WDW
3URFHVVLQJZLWKWKLV0'6KDV
WHUPLQDWHG
3URFHVVLQJSDXVHZLWKWKH
0'67HUPLQDWHVFDQQLQJBWLPH
IRU02%<80'6LPPHGLDWHO\
$$
$ $
DQWHQQD PRGH 6WDW
212)) $ $
6ZLWFKRQDQWHQQD
6WDQGE\VZLWFKRIIDQWHQQD
0DWFKDQWHQQDWRHQYLURQPHQW
02%<)))7
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 159
Programming the MOBY-ASM on PROFIBUS
B.4 Command and acknowledgement telegrams
%%
0'6 %
PRGH ZHHN \HDU
VWDWXV %
PRGH 5) ZHHN
\HDU % 6WDW 8,' 'LDJQRVWLFGDWD
1RWUHOHYDQW
7KHPHDQLQJRIWKH
GLDJQRVWLFVGDWDLV
GHVFULEHGLQ8'7
7KHPHDQLQJRIWKH
GLDJQRVWLFVGDWDLV
GHVFULEHGLQ8'7
*7$%*7$%
FB 45
160 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.5 PROFIBUS implementation
02%<$60
,QWHUIDFHWRXVHU %XV $60b
$60BDGGUHVV
$60BFKDQQHO
6$31,/
0'6BFRQWURO 3$:[ 3$:[
(&&BPRGH 6HTXHQFH
02%<BPRGH 6$31,/
FRQWURO
3(:[ 3(:[
VFDQQLQJBWLPH
'6[ 6$3
)XQFWLRQ SDUDPHWHUV '6[
&RPPDQGV EORFN
02%<
'6[ 6$3
0'6
'6[Q GULYHU
GDWD GDWD
'DWD
DFNQRZO
'6[
HGJHPHQWV
'6[
[ FKDQQHO
Q 1RRIFRPPDQGLQ$60QPD[ QXPEHURIEXIIHUVLQ$60VHH6HFWLRQ&RPPDQGUHSHWLWLRQ
6,0$7,&6XVHV6$3DQG6$3IRUDF\FOLFFRPPXQLFDWLRQ
7KHWUDQVIHURIWKHFRQWUROZRUG3$:3(:WDNHVSODFHYLDWKHF\FOLFGDWDBH[FKDQJHVHUYLFH
RI352),%866$3 1,/
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 161
Programming the MOBY-ASM on PROFIBUS
B.5 PROFIBUS implementation
The following figure shows the layout of a non-cyclic data record. SAP 51 is used to transmit
the data. The data unit (DU) indicates how the MOBY-ASM is addressed.
6' /( /(U 6' '$ 6$ )& '6$3 66$3 '8 )&6 ('
%\WH
)XQFWLRQFRGHHJ'6B5HDGUHT
5HTXHVW5HVSRQVHRND\
5HVSRQVH(UURU)UDPH
%\WH
6ORWB1XPEHU$60
$60 WRWR
FRUUHVSRQGVWRWKHVORW
ZLWKLQDQ(70
(7;
%\WH
,QGH[ฬ GDWDUHFRUGQXPEHUIRUFKDQQHOV
WRVHHWDEOHEHORZ
%\WH
'DWDOHQJWK
FB 45
162 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.5 PROFIBUS implementation
The following data records have been implemented on the MOBY-ASM for communication.
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 163
Programming the MOBY-ASM on PROFIBUS
B.6 Example of a PROFIBUS Trace
Note
Using FB 45 on PROFINET
If the FB 45 is used on PROFINET, the PROFINET trace is similar to the PROFIBUS trace.
The data contents are identical. The header data of the telegrams are different.
68 0b 0b 68 03 02 5d 00 00 00 00 00 00 00 00 00 16 Start-up of ASM
68 0b 0b 68 02 03 08 80 00 80 00 80 00 80 00 00 16
68 0b 0b 68 03 02 7d 80 00 80 00 80 00 80 00 00 16 FB sets the start-up bit.
68 0b 0b 68 02 03 08 80 00 80 00 80 00 80 00 00 16
68 0b 0b 68 03 02 5d 80 00 80 00 80 00 80 00 00 16 ASM sets the command counter to one.
68 0b 0b 68 02 03 08 88 00 88 00 88 00 88 00 00 16
68 0b 0b 68 03 02 7d 00 00 00 00 00 00 00 00 00 16 FB resets the start-up bit.
68 0b 0b 68 02 03 08 88 00 88 00 88 00 88 00 00 16
68 0b 0b 68 03 02 5d 00 00 00 00 00 00 00 00 00 16 ASM also resets the start-up bit.
68 0b 0b 68 02 03 08 08 00 08 00 08 00 08 00 00 16
68 0f 0f 68 83 82 5c 33 36 5f 01 68 06 05 00 00 00 2b 02 00 16 RESET telegrams to 4th channel
E5
68 05 05 68 83 82 5c 33 36 00 16 PROFIBUS confirmation of the RESET
68 09 09 68 82 83 08 36 33 5f 01 68 06 00 16
68 0b 0b 68 03 02 7d 00 00 00 00 00 00 00 00 00 16 Command counter for 4th channel is incremented to
68 0b 0b 68 02 03 08 08 00 08 00 08 00 10 00 00 16 2.
68 0b 0b 68 03 02 7d 00 00 00 00 00 00 00 00 00 16 Acknowledgment counter for 4th channel is
68 0b 0b 68 02 03 08 08 00 08 00 08 00 30 00 00 16 incremented to one.
68 0b 0b 68 03 02 7d 00 00 00 00 00 00 00 00 00 16 Optional: Presence is set.
68 0b 0b 68 02 03 08 08 00 08 00 08 00 31 00 00 16
68 09 09 68 83 82 5c 33 36 5e 01 68 06 00 16 Request of FB for a non-cyclic telegram
E5
68 05 05 68 83 82 5c 33 36 00 16 Return acknowledgment telegram of the RESET to
68 0f 0f 68 82 83 08 36 33 5e 01 68 06 05 00 00 00 00 00 00 16 the FB
FB 45
164 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Programming the MOBY-ASM on PROFIBUS
B.6 Example of a PROFIBUS Trace
68 0f 0f 68 83 82 7c 33 36 5f 01 65 06 05 00 00 00 2b 02 00 16 RESET command
68 05 05 68 83 82 7c 33 36 00 16 Acknowledgment that RESET is being processed
68 09 09 68 82 83 08 36 33 5f 01 65 06 00 16
68 09 09 68 83 82 5c 33 36 5e 01 65 06 00 16 Request for an acknowledgment from ASM
68 05 05 68 83 82 5c 33 36 00 16 RESET acknowledgment
68 0f 0f 68 82 83 08 36 33 5e 01 65 06 05 00 00 00 00 00 00 16
68 0f 0f 68 83 82 7c 33 36 5f 01 6f 06 05 02 00 00 40 0c 00 16 Read command: MDS addr. = 0, length = 0c
68 05 05 68 83 82 7c 33 36 00 16 Acknowledgment that read is in progress
68 09 09 68 82 83 08 36 33 5f 01 6f 06 00 16
68 09 09 68 83 82 7c 33 36 5e 01 6f 12 00 16 Request for an acknowledgment from ASM
68 05 05 68 83 82 7c 33 36 00 16
68 1b 1b 68 82 83 08 36 33 5e 01 6f 12 11 02 00 00 40 0c aa aa Acknowledgment for read with the MDS data
bb bb cc cc dd dd ee ee ff ff 00 16
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 165
Programming the MOBY-ASM on PROFIBUS
B.6 Example of a PROFIBUS Trace
FB 45
166 Function Manual, 10/2009, J31069-D0166-U001-A3-7618
Service & Support C
Technical support
You can reach the technical support team for all A&D projects at:
● Telephone: +49 (0) 180 5050 222
● Fax: +49 (0) 180 5050 223
Internet
Visit our site on the Internet at:
http://www.siemens.com/automation/service&support
You can find the latest general information about our RFID systems on the Internet at:
http://www.siemens.com/simatic-sensors/rfid
You can find the catalog and online ordering systems at:
http://www.siemens.com/automation/mall
C.1 Contacts
If you have any further questions on the use of the products described in this manual, please
contact one of our representatives at your local Siemens office.
The addresses are found on the following pages:
● On the Internet at: http://www.siemens.com/automation/partner
● In catalog CA 01
● In Catalog FS 10 specially for factory automation sensors
FB 45
Function Manual, 10/2009, J31069-D0166-U001-A3-7618 167
Service & Support
C.2 Training
C.2 Training
Training center
We offer appropriate courses to get you started. Please contact your regional training center
or the central training center in D-90327, Nuremberg, Germany.
Telephone: +49 (911) 895-3200
http://www.siemens.com/sitrain
FB 45
168 Function Manual, 10/2009, J31069-D0166-U001-A3-7618