Preface, Contents Bit Logic Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14
SIMATIC Statement List (STL) for S7-300 and S7-400 Programming
Comparison Instructions Conversion Instructions Counter Instructions Data Block Instructions Logic Control Instructions
Integer Math Instructions Floating-Point Math Instructions Load and Transfer Instructions Program ControlInstructions Shift and Rotate Instructions Timer Instructions Word Logic Instructions Accumulator Instructions Appendices
This manual is part of the documentation package with the order number: 6ES7810-4CA08-8BW1
Overview of All STL Instructions Programming Examples Parameter Transfer
A B C
This manual contains notices you have to observe inorder to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The notices shown below are graded according to the degree of danger.
! ! !
indicates that death or severe personal injury will result ifproper precautions are not taken.
indicates that death or severe personal injury may result if proper precautions are not taken.
with a safety alert symbol indicates that minor personal injury can result if proper precautions are not taken.
without a safety alert symbol indicates that property damage can result if proper precautions are not taken.
indicates that anunintended result or situation can occur if the corresponding notice is not taken into account. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
The device/system may only be set upand used in conjunction with this documentation. Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notices in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards.
Note the following:
This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly aswell as careful operation and maintenance.
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware andsoftware described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
Siemens AG Automation and Drives Postfach 4848 90437 NÜRNBERG GERMANY
Copyright © Siemens AG 2006 Technical data subject to change
This manual is your guide to creating user programs in the Statement List programming language STL. The manual also includes a reference section that describes the syntax and functions of the language elements of STL.
Basic Knowledge Required
The manual is intended for S7 programmers, operators, and maintenance/service personnel. In order to understand this manual, general knowledge of...