22.07.2013 Views

Statement List (STL) for S7-300 and S7-400 - DCE FEL ČVUT v Praze

Statement List (STL) for S7-300 and S7-400 - DCE FEL ČVUT v Praze

Statement List (STL) for S7-300 and S7-400 - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Alphabetical <strong>List</strong>ing of Instructions<br />

A.2 Alphabetical <strong>List</strong>ing with International Names<br />

A-12<br />

Table A-3 provides an alphabetical listing of the full international names of<br />

the statement list instructions. Next to each name is its international<br />

mnemonic abbreviation <strong>and</strong> the page on which the instruction is explained.<br />

Table A-3 <strong>Statement</strong> <strong>List</strong> Instructions Arranged Alphabetically by International Full Name<br />

Name Mnemonic<br />

Abbreviation<br />

Page No.<br />

Absolute Value of a Real (32-Bit IEEE FP) ABS 16-6<br />

Accumulator 1 ---> Accumulator 2 PUSH 10-2<br />

Accumulator 1 Accumulator 3 ENT 10-3<br />

Accumulator 3 ---> Accumulator 4, Accumulator 2 ---> Accumulator 3,<br />

Accumulator 1 ---> Accumulator 2<br />

PUSH 10-2<br />

Activate MCR Area MCRA 23-11<br />

Add Accumulator 1 <strong>and</strong> Accumulator 2 as Double Integer (32-Bit) +D 15-2<br />

Add Accumulator 1 <strong>and</strong> Accumulator 2 as Integer (16-Bit) +I 15-2<br />

Add Accumulator 1 <strong>and</strong> Accumulator 2 as Real (32-Bit IEEE FP) +R 16-2<br />

Add Accumulator 1 to Address Register 1 +AR1 10-7<br />

Add Accumulator 1 to Address Register 2 +AR2 10-7<br />

Add Integer Constant (8, 16, 32-Bit) + 15-6<br />

And A 11-10<br />

And Double Word (32-Bit) AD 19-6<br />

And Not AN 11-9<br />

And Not with Nesting Open AN( 11-14<br />

And with Nesting Open A( 11-14<br />

And Word (16-Bit) AW 19-3<br />

Arc Cosine of a Floating-Point Number (32-Bit IEEE FP) ACOS 16-7<br />

Arc Sine of a Floating-Point Number (32-Bit IEEE FP) ASIN 16-7<br />

Arc Tangent of a Floating-Point Number (32-Bit IEEE FP) ATAN 16-7<br />

Assign = 11-24<br />

BCD to Double Integer (32-Bit) BTD 18-4<br />

BCD to Integer (16-Bit) BTI 18-2<br />

Block End Conditional BEC 23-15<br />

Block End Unconditional BEU 23-15<br />

Call CALL 23-3<br />

Change Byte Sequence in Accumulator 1 (16-Bit) CAW 18-13<br />

Change Byte Sequence in Accumulator 1 (32-Bit) CAD 18-13<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) <strong>for</strong> <strong>S7</strong>-<strong>300</strong>/<strong>S7</strong>-<strong>400</strong><br />

C79000-G7076-C565-01


<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) <strong>for</strong> <strong>S7</strong>-<strong>300</strong>/<strong>S7</strong>-<strong>400</strong><br />

C79000-G7076-C565-01<br />

Alphabetical <strong>List</strong>ing of Instructions<br />

Table A-3 <strong>Statement</strong> <strong>List</strong> Instructions Arranged Alphabetically by International Full Name, continued<br />

Name Mnemonic<br />

Abbreviation<br />

Page No.<br />

Clear RLO (= 0) CLR 11-26<br />

Compare Double Integer (32-Bit) >, =, , =, , =,


Alphabetical <strong>List</strong>ing of Instructions<br />

Table A-3 <strong>Statement</strong> <strong>List</strong> Instructions Arranged Alphabetically by International Full Name, continued<br />

A-14<br />

Name Mnemonic<br />

Abbreviation<br />

Page No.<br />

Jump if Minus or 0 JMZ 22-6<br />

Jump if Not 0 JN 22-6<br />

Jump if OS = 1 JOS 22-5<br />

Jump if OV = 1 JO 22-5<br />

Jump if Plus JP 22-6<br />

Jump if Plus or 0 JPZ 22-6<br />

Jump if RLO = 0 JCN 22-4<br />

Jump if RLO = 0 with BR JNB 22-4<br />

Jump if RLO = 1 JC 22-4<br />

Jump if RLO = 1 with BR JCB 22-4<br />

Jump if Unordered JUO 22-6<br />

Jump to Labels JL 22-3<br />

Jump Unconditional JU 22-3<br />

Load L 14-3<br />

Load Address Register 1 from ... (from address indicated) LAR1 14-11<br />

Load Address Register 1 from Accumulator 1 (if no address is indicated) LAR1 14-11<br />

Load Address Register 1 from Address Register 2 (LAR1 AR2) LAR1 14-11<br />

Load Address Register 1 with Double Integer (32-Bit, LAR1 P#area byte.bit) LAR1 14-11<br />

Load Address Register 2 from ... (from address indicated) LAR2 14-11<br />

Load Address Register 2 from Accumulator 1 (if no address is indicated) LAR2 14-11<br />

Load Address Register 2 with Double Integer (32-Bit, LAR2 P#area byte.bit) LAR2 14-11<br />

Load Current Counter Value into Accumulator 1 as Integer (where the number of the<br />

current counter can be in the range of 0 to 255, <strong>for</strong> example: L C 15)<br />

Load Current Counter Value into Accumulator 1 as BCD (where the number of the<br />

current counter can be in the range of 0 to 255, <strong>for</strong> example: LC C 15)<br />

Load Current Timer Value into Accumulator 1 as BCD (where the number of the<br />

current timer can be in the range of 0 to 255, <strong>for</strong> example: LC T 32)<br />

Load Current Timer Value into Accumulator 1 as Integer (where the number of the<br />

current timer can be in the range of 0 to 255, <strong>for</strong> example: L T 32)<br />

L 13-6<br />

14-8<br />

LC 14-9<br />

LC 13-7<br />

14-10<br />

L 14-7<br />

Load Length of Instance Data Block into Accumulator 1 (L DILG) L 14-12<br />

21-2<br />

Load Length of Shared Data Block into Accumulator 1 (L DBLG) L 14-12<br />

21-2<br />

Load Number of Instance Data Block into Accumulator 1 (L DINO) L 14-12<br />

21-2<br />

Load Number of Shared Data Block into Accumulator 1 (L DBNO) L 14-12<br />

21-2<br />

Load Status Word into Accumulator 1 (L STW) L 14-6<br />

Loop LOOP 22-8<br />

Multiply Accumulator 1 by Accumulator 2 as Double Integer (32-Bit) *D 15-2<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) <strong>for</strong> <strong>S7</strong>-<strong>300</strong>/<strong>S7</strong>-<strong>400</strong><br />

C79000-G7076-C565-01


Table A-3 <strong>Statement</strong> <strong>List</strong> Instructions Arranged Alphabetically by International Full Name, continued<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) <strong>for</strong> <strong>S7</strong>-<strong>300</strong>/<strong>S7</strong>-<strong>400</strong><br />

C79000-G7076-C565-01<br />

Alphabetical <strong>List</strong>ing of Instructions<br />

Name Mnemonic<br />

Abbreviation<br />

Page No.<br />

Multiply Accumulator 1 by Accumulator 2 as Integer (16-Bit) *I 15-2<br />

Multiply Accumulator 1 by Accumulator 2 as Real (32-Bit IEEE FP) *R 16-2<br />

Natural Logarithm of a Floating-Point Number (32-Bit IEEE FP) LN 16-11<br />

Negate Real Number (32-Bit IEEE FP) NEGR 18-14<br />

Negate RLO NOT 11-26<br />

Nesting Closed ) 11-14<br />

Null Operation 0 NOP 0 10-2<br />

Null Operation 1 NOP 1 10-2<br />

Off-Delay Timer SF 12-15<br />

On-Delay Timer SD 12-11<br />

Ones Complement Double Integer (32-Bit) INVD 18-14<br />

Ones Complement Integer (16-Bit) INVI 18-14<br />

Open a Data Block OPN 21-2<br />

Or O 11-10<br />

Or Double Word (32-Bit) OD 19-6<br />

Or Not ON 11-9<br />

Or Not with Nesting Open ON( 11-14<br />

Or with Nesting Open O( 11-14<br />

OR Word (16-Bit) OW 19-3<br />

Program Display Instruction BLD 10-2<br />

Pulse Timer SP 12-7<br />

Reset R 11-22<br />

Reset Counter (where the current counter can have a number in the range of 0 to 255,<br />

<strong>for</strong> example: R C 15)<br />

R 12-5<br />

Reset Timer (where the current timer can have a number in the range of 0 to 255, <strong>for</strong><br />

example: R T 32)<br />

R 13-4<br />

Restore RLO, End MCR )MCR 23-11<br />

Retentive On-Delay Timer SS 12-13<br />

Rotate Accumulator 1 Left via CC 1 (32-Bit) RLDA 20-8<br />

Rotate Accumulator 1 Right via CC 1 (32-Bit) RRDA 20-6<br />

Rotate Left Double Word (32-Bit) RLD 20-6<br />

Rotate Right Double Word (32-Bit) RRD 20-8<br />

Round RND 18-9<br />

Round to Lower Double Integer RND- 18-11<br />

Round to Upper Double Integer RND+ 18-10<br />

Save RLO in BR Register SAVE 11-26<br />

Save RLO in MCR Stack, Begin MCR MCR( 23-11<br />

Set S 11-21<br />

A-15


Alphabetical <strong>List</strong>ing of Instructions<br />

Table A-3 <strong>Statement</strong> <strong>List</strong> Instructions Arranged Alphabetically by International Full Name, continued<br />

A-16<br />

Name Mnemonic<br />

Abbreviation<br />

Page No.<br />

Set Counter Preset Value (where the current counter can have a number in the range of<br />

0 to 255, <strong>for</strong> example: S C 15)<br />

S 13-3<br />

Set RLO (= 1) SET 11-26<br />

Shift Left Double Word (32-Bit) SLD 20-2<br />

Shift Left Word (16-Bit) SLW 20-2<br />

Shift Right Double Word (32-Bit) SRD 20-3<br />

Shift Right Word (16-Bit) SRW 20-2<br />

Shift Sign Double Integer (32-Bit) SSD 20-4<br />

Shift Sign Integer (16-Bit) SSI 20-4<br />

Sine of a Floating-Point Number (32-Bit IEEE FP) SIN 16-7<br />

Square of a Floating-Point Number (32-Bit IEEE PF) SQR 16-9<br />

Square Root of a Floating-Point Number (32-Bit IEEE PF) SQRT 16-9<br />

Subtract Accumulator 1 from Accumulator 2 as Double Integer (32-Bit) -D 15-2<br />

Subtract Accumulator 1 from Accumulator 2 as Integer (16-Bit) -I 15-2<br />

Subtract Accumulator 1 from Accumulator 2 as Real (32-Bit IEEE FP) -R 16-2<br />

Tangent of a Floating-Point Number (32-Bit IEEE FP) TAN 16-7<br />

Toggle Accumulator 1 with Accumulator 2 TAK 10-2<br />

Transfer T 14-3<br />

Transfer Accumulator 1 to Status Word (T STW) T 14-6<br />

Transfer Address Register 1 to ... (to address indicated) TAR1 14-11<br />

Transfer Address Register 1 to Accumulator 1 (if no address is indicated) TAR1 14-11<br />

Transfer Address Register 1 to Address Register 2 (T AR1 AR2) TAR1 14-11<br />

Transfer Address Register 2 to ... (to address indicated) TAR2 14-11<br />

Transfer Address Register 2 to Accumulator 1 (if no address is indicated) TAR2 14-11<br />

Truncate TRUNC 18-12<br />

Twos Complement Double Integer (32-Bit) NEGD 18-14<br />

Twos Complement Integer (16-Bit) NEGI 18-14<br />

Unconditional Call UC 23-7<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) <strong>for</strong> <strong>S7</strong>-<strong>300</strong>/<strong>S7</strong>-<strong>400</strong><br />

C79000-G7076-C565-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!