Comparison of the Incrementing and Decrementing Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com

Embed Size (px)

Citation preview

  • 8/2/2019 Comparison of the Incrementing and Decrementing Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com

    1/3

    show the entry listComparison of the incrementing and decrementing commands in STEP7 Micro and STEP5

    Display part number

    QUESTION:How are the incrementing and decrementing commands configured in STEP7 Micro compared with STEP5 in ST

    ANSWER:The following table lists a comparison between the incrementing and decrementing commands in STEP5 and STAs opposed to STEP5, incrementing (increasing) and decrementing (decreasing) can be done without changing tcontents. In STEP7 MICRO you can only increase or decrease by "1" as opposed to STEP5 ( 0 to 255).The "Permissible operand" column lists the operands of the command together with possible address areas andexample.The incrementing and decrementing commands in STEP7 Micro are ONLY executed, when the query of the uppevalue is equal to "1" (e.g. LD I 0.6 must be "1").

    Operand area in STEP5 Operand area in STEP7-MICRO

    F Flag M Bit memory

    I Digital inputs I Digital inputs

    Q Digital outputs Q Digital outputs

    D Data bit of a data word from a datablock

    V Variable memory

    K Constants SM Special marker

    AC Accus 0 to 3

    S Sequence control system relay

    STEP5 S7Micro

    Operation Permissible operand Operation Permissible operand

    Increase byte by 1 fromIN to OUT

    LIT

    IN+1OUT

    IN:IB,QB,FB, DL,DR,

    OUT:QB,FB,DL,DR

    MOVBINC_B

    IN, OUTOUT

    IN:VB,IB,QB,MB,SMB,QC,SOUT:

    VB,IB,QB,MB,SMB,QC,S(only CPU215+216)

    Increase word by 1 LIT

    IN+1OUT

    IN:IW,QW, FW,DW,

    OUT:

    MOVWINC_W

    IN, OUTOUT

    IN:VW,IW,QW,MW,SMW,QSW,T,ZOUT: VW,IW,QW,MW,SMW,QC,SW,T,Z

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

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

    http://support.automation.siemens.com/WW/llisapi.dll/363274?func=ll&objId=363274&http://support.automation.siemens.com/WW/llisapi.dll/363274?func=ll&objId=363274&
  • 8/2/2019 Comparison of the Incrementing and Decrementing Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com

    2/3

    IW,QW, FW,DW,

    Increase double-word by1

    LINCT

    IN+1

    IN:ID,QD, FD,DW,KF,KT,KH,KY,KZ,KM,KG

    OUT:ID,QD, FDW,DW,

    MOVDINC_D

    IN, OUTOUTIN: VD,ID,QD,MD,SMD,AC,SD,T,ZOUT: VD,ID,QD,MD,SMD,AC,SD

    Decrease byte by 1 fromIN to OUT

    LDT

    IN+1OUT

    IN:IB,QB,FB, DL,DR,OUT:

    QB,FB,DL,DR

    MOVBDIC_B

    IN, OUTOUT

    IN:VB,IB,QB,MB,SMB,QC,SOUT:VB,IB,QB,MB,SMB,QC,S

    (only CPU215+216)

    Decrease word by 1 LDT

    IN+1OUT

    IN:IW,QW, FW,DW,

    OUT:IW,QW, FW,DW,

    MOVWDIC_W

    IN, OUTOUT

    IN:VW,IW,QW,MW,SMW,QSW,T,ZOUT: VW,IW,QW,MW,SMW,AC,SW,T,Z

    Decrease double-word by

    1A

    L

    DT

    IN

    +1OUT

    IN:ID,QD, FD,DW,KF,KT,KH,KY,KZ,KM,KG

    OUT:ID,QD, FDW,DW,

    MOVD

    DIC_D

    IN, OUT

    OUTIN: VD,ID,QD,MD,SMD,AC,SD,T,ZOUT: VD,ID,QD,MD,SMD,AC,SD

    Entry ID:363274 Date:1998-07-09

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

    Copy link Suggestion for the entry Sen

    Print

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

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

    http://support.automation.siemens.com/WW/llisapi.dll/363274?func=ll&objId=363274&http://support.automation.siemens.com/WW/llisapi.dll/363274?func=ll&objId=363274&
  • 8/2/2019 Comparison of the Incrementing and Decrementing Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com

    3/3

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

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

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

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