Upload
wwwotomasyonegitimicom
View
219
Download
0
Embed Size (px)
Citation preview
8/2/2019 Comparison of the Mover and Rotate Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com
http:///reader/full/comparison-of-the-mover-and-rotate-commands-in-step7-micro-and-step5-wwwotomasyonegitim 1/4
show the entry listComparison of the mover and rotate commands in STEP7 Micro and STEP5
Display part number
QUESTION:What is the difference in the configuration of the move and rotate commands in STEP7 Micro and STEP5 inSTL mode?
ANSWER:The table below compares the move and rotate commands in STEP7 Micro and STEP5. In STEP7 Microyou use the command SHR_X with X= B (byte),W (word) and DW (double-word) to move the contents of INto OUT by "N places". In the case of move commands, the spaces of the moved bits are occupied by "0". Inthe case of rotate commands the bits are moved to the other side (to left in the case of rotate right) andreinserted into the memory area.
The "Permissible operands" column lists the operands of the command together with possible address areasand a relevant example.
In STEP5 the move and rotate commands are executed independent of the result of logic operation (RLO).In STEP7 Micro these commands are executed ONLY when the query of the top stack value is equal to"1" (e.g. LD E 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
Move IN bytes by Nbits to the right andstore in OUT
Non-existent
MOVBSHR_B
IN, OUTOUT,N
IN:VB,IB,QB,MB,constants,AC,SMB,SBN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VB,IB,QB,MB,SMB,AC,SB
Page 1 of 4Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...
11.09.2010http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&8/2/2019 Comparison of the Mover and Rotate Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com
http:///reader/full/comparison-of-the-mover-and-rotate-commands-in-step7-micro-and-step5-wwwotomasyonegitim 2/4
8/2/2019 Comparison of the Mover and Rotate Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com
http:///reader/full/comparison-of-the-mover-and-rotate-commands-in-step7-micro-and-step5-wwwotomasyonegitim 3/4
Rotate IN bytes byN bits to the rightand store in OUT
Non-existent
MOVBROR_B
IN, OUTOUT,N
IN:VB,IB,QB,MB,constants,AC,SMB,SBN :VB,IB,QB,MB,constants,AC,SMB,SB
OUT:VB,IB,QB,MB,SMB,AC,SB(only CPU215+216)
Rotate IN words byN bits to the rightand store in OUT
LRRWT
INNOUT
IN:EW,AW, MW,DW,N: 0 to 15OUT:EW,AW, MW,DW,
MOVWROR_W
IN, OUTOUT,N
IN:VW,EW,AW,MW,SMW,AC,SW,T,ZN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VW,EW,AW,MW,SMW,AC,SW,T,Z
Rotate IN double-word by N bits tothe right and storein OUT
LRRDT
INNOUT
IN:ED,AD, MD,DW,KF,KT,KH,KY,KZ,KM,KGN: 0 to 32OUT:ED,AD, MDW,DW,
MOVDROR_DW
IN, OUTOUT,N
IN:VD,ED,AD,MD,SMD,AC,SD,T,ZN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VD,ED,AD,MD, SMD,AC,SD
Rotate IN bytes byN bits to the left andstore in OUT
Non-existent
MOVBROL_B
IN, OUTOUT,N
IN:VB,IB,QB,MB,constants,AC,SMB,SBN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VB,IB,QB,MB,SMB,AC,SB(only CPU215+216)
Rotate IN words byN bits to the left andstore in OUT
LRLWT
INNOUT
IN:EW,AW, MW,DW,N: 0 to 15OUT:EW,AW, MW,DW,
MOVWROL_W
IN, OUTOUT,N
IN:VW,EW,AW,MW,SMW,AC,SW,T,ZN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VW,EW,AW,MW,SMW,AC,SW,T,Z
Rotate IN double-word by N bits tothe left and store in
LRLDT
INNOUT
MOVDROL_DW
IN, OUTOUT,N
Page 3 of 4Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...
11.09.2010http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&8/2/2019 Comparison of the Mover and Rotate Commands in STEP7 Micro and STEP5 Www.otomasyonegitimi.com
http:///reader/full/comparison-of-the-mover-and-rotate-commands-in-step7-micro-and-step5-wwwotomasyonegitim 4/4
OUTIN:ED,AD, MD,DW,KF,KT,KH,KY,KZ,KM,KGN: 0 to 32OUT:
ED,AD, MDW,DW,
IN:VD,ED,AD,MD,SMD,AC,SD,T,ZN :VB,IB,QB,MB,constants,AC,SMB,SBOUT:VD,ED,AD,MD, SMD,AC,SD
Entry ID:363421 Date:1998-07-09
I regard this article.... as helpful as not helpful
Copy link Suggestion for the entry Send to a friend
Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use
Page 4 of 4Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...
11.09.2010http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&