Professional Documents
Culture Documents
Page 1 of 4
show the entry list Comparison 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 in STL mode? ANSWER: The table below compares the move and rotate commands in STEP7 Micro and STEP5. In STEP7 Micro you use the command SHR_X with X= B (byte),W (word) and DW (double-word) to move the contents of IN to OUT by "N places". In the case of move commands, the spaces of the moved bits are occupied by "0". In the case of rotate commands the bits are moved to the other side (to left in the case of rotate right) and reinserted into the memory area. The "Permissible operands" column lists the operands of the command together with possible address areas and 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 F I Q D K Flag Digital inputs Digital outputs Data bit of a data word from a data block Constants
Operand area in STEP7 MICRO M I Q V SM AC S Bit memory Digital inputs Digital outputs Variable memory Special marker Accus 0 to 3 Sequence control system relay
STEP5 Operation Move IN bytes by N bits to the right and store in OUT Nonexistent Permissible operand
S7Micro Operation MOVB SHR_B Permissible operand IN, OUT OUT,N IN: VB,IB,QB,MB,constants,AC,SMB,SB N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VB,IB,QB,MB,SMB,AC,SB
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
11.09.2010
Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 2 of 4
(only CPU215+216) Move IN words by N bits to the right and store in OUT L SRW T IN N OUT IN: EW,AW, MW,DW, N: 0 to 15 OUT: EW,AW, MW,DW, Move IN doubleword by N bits to the right and store in OUT L SRD T IN N OUT IN: ED,AD, MD, DW,KF,KT,KH, KY,KZ,KM,KG N: 0 to 32 OUT: ED,AD, MDW, DW, Move IN bytes by N bits to the left and store in OUT Nonexistent MOVB SHL_B MOVD SHR_D MOVW SHR_W IN, OUT OUT,N IN: VW,IW,QW,MW,SMW,AC, SW,T,Z N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VW,EW,AW,MW,SMW,AC,SW,T,Z IN, OUT OUT,N IN: VD,ED,AD,MD,SMD,AC,SD,T,Z N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VD,ED,AD,MD, SMD,AC,SD
IN, OUT OUT,N IN: VB,IB,QB,MB,constants,AC,SMB,SB N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VB,IB,QB,MB,SMB,AC,SB (only CPU215+216)
L SLW T
MOVW SHL_W
L SLD T
IN N OUT IN: ED,AD, MD, DW,KF,KT,KH, KY,KZ,KM,KG N: 0 to 32 OUT: ED,AD, MDW, DW,
MOVD SHL_D
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
11.09.2010
Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 3 of 4
Nonexistent
MOVB ROR_B
IN, OUT OUT,N IN: VB,IB,QB,MB,constants,AC,SMB,SB N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VB,IB,QB,MB,SMB,AC,SB (only CPU215+216)
L RRW T
MOVW ROR_W
L RRD T
IN N OUT IN: ED,AD, MD, DW,KF,KT,KH, KY,KZ,KM,KG N: 0 to 32 OUT: ED,AD, MDW, DW,
MOVD ROR_DW
Nonexistent
MOVB ROL_B
IN, OUT OUT,N IN: VB,IB,QB,MB,constants,AC,SMB,SB N: VB,IB,QB,MB,constants,AC,SMB,SB OUT: VB,IB,QB,MB,SMB,AC,SB (only CPU215+216)
L RLW T
MOVW ROL_W
L RLD T
IN N OUT
MOVD ROL_DW
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
11.09.2010
Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 4 of 4
OUT IN: ED,AD, MD, DW,KF,KT,KH, KY,KZ,KM,KG N: 0 to 32 OUT: ED,AD, MDW, DW,
as helpful
http://support.automation.siemens.com/WW/llisapi.dll/363421?func=ll&objId=363421&...
11.09.2010