×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 38845041, Entry date: 10/26/2009
(0)
Rate

How do you connect the MV440 sensor to an S7-300 controller using ASM456?

  • Entry
  • Associated product(s)

Description:
Using the ASM456 interface module, you can connect the MV440 sensor to a SIMATIC S7-300 controller via PROFIBUS. Here, we show the settings required using a sample project that is available for downloading at the end of this entry.

Note:
Using the standard block FB79 via PROFINET, you can connect the MV440 sensor directly to the controller without having to use the interface module (ASM). More information on this and how to commission the sensor in general is described in the "SIMATIC MV440" operating instructions in Entry ID 35126583.

Contents:
1. Parameterizing the MV440 sensor
2. Incorporation in the hardware configuration
3. Program structure of the sample project
4. Testing with the variable table
5. Downloading the sample project

1. Parameterizing the MV440 sensor
The following steps describe what you have to set in addition for connection to an S7-300 controller when parameterizing the MV440 sensor.

  1. Open the Connections tab and set the baud rate under Ports > ASM.


    Fig. 01: Baud rate
     
  2. Select Connections > Integration > Connections and define the trigger source and target for the result.


    Fig. 02: Trigger source and target

    More information on triggering is available in the "SIMATIC MV440" operating instructions (Entry ID 35126583), section 10.1.6.3 "READ Commands".
     
  3. Select Connections > Result & string > Format string


    Fig. 03: Format string
     
  4. Switch the MV440 into the Processing mode


    Fig. 04: Processing range

2. Incorporation in the hardware configuration
In the sample project, the ASM456 has the PROFIBUS address 9 and the I/O address begins at 256. A CPU 317-2 PN/DP with the address 2 is used as SIMATIC controller.


Fig. 05: Hardware configuration

Below are the device-specific parameters of the ASM456.


Fig. 06: Device-specific parameters of the ASM456

3. Program structure of the sample project


Fig. 07: Program structure

Note:

  • For information on calling the MOBY FB 45 and on the structure of the data blocks is available in the function manual "RFID Systems FB 45" in Entry ID: 21738808
  • The UDTs required for creating the data blocks are included in multiple languages in the update for function block FB 45 in Entry ID: 33148645

4. Testing with the variable table
Setting the "MOBY Param_e_blocks.command_start" bit triggers a read procedure in the MV440 and the result is stored in data block DB30 as from data word 2. The length of the data read is stored in data block byte DBB1. You can reset the ASM with the "MOBY Param_e_blocks.init_run" bit.


Fig. 08: Variable table

5. Downloading the sample project

MV440_with_ASM456.zip ( 212 KB )

Creation environment:
The download in this FAQ has been created with STEP 7 V5.4 SP5.

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Support to the statistics
With this function the IDs found are listed according to number (format .txt).

Generate list
Copy URL
Display page in new design
mySupport Cockpit
Related links