how do you address the asi slaves via the 243-2 in step 7-micro win www.otomasyonegitimi.com

Upload: wwwotomasyonegitimicom

Post on 05-Apr-2018

302 views

Category:

Documents


3 download

TRANSCRIPT

  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    1/12

    show the entry list

    S7-200 Communication interface modules -- Configuring and programming communication --AS-Interface communication

    How do you address the ASI slaves via the 243-2 in STEP 7-Micro/WIN?

    Does the S7-22x have a connection to the AS-i bus?

    Why are the slaves of the ASI master CP 243-2 of an S7-22x CPU read slowly or incorrectly?

    Does the S7-21x have a connection to the AS-i bus?

    How do you address the ASI slaves via the CP 242-2 in STEP 7-Micro/WIN?

    How do you address the ASI slaves via the 243-2 in STEP 7-Micro/WIN?

    Display part number

    Instructions:STEP 7-Micro/WIN from Version 3.2 recognizes the inputs and outputs of slaves automatically withthe help of the AS-i wizard and reserves a variable memory area to evaluate the signal.The AS-i wizard also provides the option of slave addressing.

    These functions are explained in the following examples:Output 3 ("Q3") of the signal light with the address 7 should light on input of 1 ("I1") of slave 1 andinput of 2 ("I2") of slave 31.

    The setup of this configuration corresponds with the set up of Micro Automation Set 16 on Entry ID:21693687.

    Page 1 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    2/12

    Fig. 01: Structure

    1. After setup, switch the CPE in STOP and accept the current configuration in CP 243-2 by pressing"SET" and checking the slave address assignment in "DISPLAY". To end, press "SET" again andswitch the CPU to RUN again. If further slave errors are displayed after ending, it can be due to anidentical address assignment. If this is the case, you need to ensure that each slave address is onlyconnected to the AS-i Bus once and rename identical addresses one after the other (step 4).

    2. Connect the CPU with your PC and open STEP 7-Micro/WIN. First create the connection with yourCPU in the "Communication" view so that no other CPU from a previous project causes moduleposition shifts in the AS-i wizard.

    Fig. 02: Communication

    3. Open the AS-i wizard.

    Fig. 03: Open the AS-i wizard.

    4. Select "Change AS-i slave address" in AS-i wizard

    Page 2 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    3/12

    Figure 04: Select "Change AS-i slave address"

    5. The CPU must be switched to STOP to read the AS-i master (CP 243-2). If the CPU is still in theRUN mode, switch the CPU to STOP via the wizard. Select the slave address you want to change (inthis case, address 3), specify the new address to be assigned and confirm with "Modify". Repeat thisstep until all slaves have the desired addresses and accept the current configuration again in CP 243-2 (step 1).

    Fig. 05: Change AS-i slave address

    6. After error-free configuration of the slave addresses, open the AS-i wizard in STEP 7-Micro/WIN(step 3) again. However, this time select "Map AS-i slaves" (Figure 04: "Map AS-i slaves.").

    Page 3 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    4/12

    7. Enter the module position by clicking on "Read module". To read the CP 243-2, the CPU must beswitched to STOP again. Select the module to be read and confirm with "Enter >".

    Fig. 06: Specify module position

    8. Skip the offset assignment and slave type specification of the wizard. You can see and also changethe symbolic name assignment of a slave input and output in the window "Specify digital slaves".

    Fig. 07: Specify digital slaves

    9. Specify the start address for your configuration in the variable memory. The slave inputs andoutputs with their symbolic names (Figure 07) are displayed in this memory area and can therefore beevaluated in the STEP 7-Micro/WIN project.

    Page 4 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    5/12

    Fig. 08: Assign memory for configuration

    10. Complete the AS-i wizard in the project component overview.

    11. Call the subroutine "ASI0_CTRL" in program block "MAIN" cyclically and assign the variableaddress for the "Error" byte.

    Fig. 09: Call "ASI0_CTRL" cyclically

    12. Open the "ASI0_SYM" table in the "symbol table" view and look for the inputs and outputs to beevaluated.

    Page 5 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    6/12

    Fig. 10: Symbol table "ASI0_SYM"

    13. Compile the connection of the inputs and outputs to be evaluated in the "MAIN" program block.

    Fig. 11: Connecting the inputs and outputs to be evaluated

    14. Load the project into the CPU and change to RUN mode. Check the function by closing input 1 ofslave 1 and input 2 of slave 31. The red signal light (output 3 of slave 7) lights up.

    Notes:More information on "S7-200 AS-Interface" is available in:

    l S7-200 system manual in Entry ID: 1109582l CP 243-2 AS Interface Master manual in Entry ID: 2659515l MAS 16: In AS Interface network, switch to standalone within the industrial applications in Entry

    ID: 21693687

    Keywords:Module addressing, Address assignment, Distributed I/O

    Does the S7-22x have a connection to the AS-i bus?

    Display part number

    Guidance:Yes with the AS-i master module CP243-2. With this you can connect up to 62 AS-i slaves.

    Page 6 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    7/12

    One AS-i master module can be connected to the CPU222 and up to two of these modules can berun on the 224/ 224XP/ 226 controllers.

    Keyword: I/Os

    Why are the slaves of the ASI master CP 243-2 of an S7-22x CPU read slowly or incorrectly?

    Display part number

    Instructions:Inputs from the ASI Bus are interpreted as analog values. These analog values are imported by theCPU 22x with smoothing (filtering). This has the effect that the whole word changes when there is achange to the signal of an input and signals are displayed "flickering".

    When using an ASI master, you must disable the analog input filter for the addresses occupied by theASI master on the CPU 22x. You make this setting in the "system data block" window, in the"Analog input filter" tab.

    Keywords:Filters

    Does the S7-21x have a connection to the AS-i bus?

    Display part number

    Guidance:Yes with the AS-i master module CP242-2 or CP242-8. With this you can connect up to 31 AS-islaves. One AS-i master module can be connected to the CPU212 and up to two of these modulescan be run on the 214/215/216 controllers. With the CP242-8 the S7-200 can be master for the AS-isystem and slave for PROFIBUS-DP.

    Keyword: I/Os

    Page 7 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    8/12

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    9/12

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    http:///reader/full/how-do-you-address-the-asi-slaves-via-the-243-2-in-step-7-micro-win-wwwotomasyonegitimic 10/12

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    http:///reader/full/how-do-you-address-the-asi-slaves-via-the-243-2-in-step-7-micro-win-wwwotomasyonegitimic 11/12

    Subprogram for data communications between S7-200 CPU and CP 242-2

    Keywords:

    distributed I/Os, address assignment, address allocation

    SBR 0 Subprogram for the 1st cycle

    LD SM 0.0 In every cycle

    SI Q2.7,1 Set the "PLC_RUN" bit to "1" in the control byte (8 DO) ofthe CP 242-2

    RI Q2.0,4 Select base 0 for slave data (control byte 8 DQ, Q 2.0 to Q

    2.7 on the CP 242-2). For this BS0 to BS3 must be set to"0" in the control byte.

    RET Subprogram has terminated

    SBR 1 Subprogram for data communications between CPU andCP242-2

    LD SM 0.0 In each cycle

    BMW AIW 0,VW 800,8 Store 8 words of input data in the variable memory fromVW800 to VW814

    LD V800.0 Input 1 of Slave 1

    A V815.1 Input 2 of Slave 15

    = V903.2 Address Output 3 of Slave 7

    LD SM0.0 In each cycle

    BMW VW900,AQW0,8 Copy 8 words ( 16 bytes ) as of variable memory VW 900in the output data of the ASI slaves to the analog addressarea of the CP 242-2

    RET Subprogram 1 has terminated

    Entry ID:29451960 Date:2008-06-10

    I regard this article.... as helpful as not helpful

    Copy link Suggestion for the entry Send to a friend

    Print

    Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

    Page 11 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automati...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519 ...

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519
  • 8/2/2019 How Do You Address the ASI Slaves via the 243-2 in STEP 7-Micro WIN Www.otomasyonegitimi.com

    http:///reader/full/how-do-you-address-the-asi-slaves-via-the-243-2-in-step-7-micro-win-wwwotomasyonegitimic 12/12

    Page 12 of 12Siemens - Industry Automation and Drive Technologies - Service& Support - Automati...

    10 09 2010htt // t t ti i /WW/lli i dll/29451960?f ll& bjId 294519

    http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519http://support.automation.siemens.com/WW/llisapi.dll/29451960?func=ll&objId=294519