SIMATIC S5. S5-100U Programmable Controller CPU 100/102/103. Reference Guide. Order No. 6ES5 997-8MA21



Similar documents
I N G E N I E U R B Ü R O F Ü R TEC HNOLOGIE TRA NSFER DIPL.-I NG. B. P. SCHULZ-HEISE. Training Manual. STEP 5 S5 for Windows Training

MICROPROCESSOR AND MICROCOMPUTER BASICS

Programmable Logic Controller PLC

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

PART B QUESTIONS AND ANSWERS UNIT I

SIMATIC. C7-621, C7-621 AS-i Control Systems. Volume 2 Working with C7 A B C D E. Contents. User Information. Introduction. Startup.

Programming Examples. B.1 Overview of Programming Examples. Practical Applications. Instructions Used

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

CPUs - CPU PN/DP

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

Automating with STEP7 in LAD and FBD


NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

The string of digits in the binary number system represents the quantity

Automating witfi STEP7 in LAD and FBD

8254 PROGRAMMABLE INTERVAL TIMER

Counters. Present State Next State A B A B

S7 for Windows S7-300/400

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

An overview of Computerised Numeric Control (C.N.C.) and Programmable Logic Control (P.L.C.) in machine automation

SIMATIC. Statement List (STL) for S7-300 and S7-400 Programming A B C. Preface, Contents. Bit Logic Instructions. Comparison Instructions

ABB i-bus EIB Logic Module LM/S 1.1

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

User Manuals. Connection to Siemens S5 PU (AS511) Part Number: Version: 2. Date:

(Refer Slide Time: 00:01:16 min)

LADDER LOGIC/ FLOWCHART PROGRAMMING DIFFERENCES AND EXAMPLES

HD44780-Based LCD Modules. Introduction to the LM018L

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

INGENIEURBÜRO FÜR TECHNOLOGIE TRANSFER DIPL.-ING. B. P. SCHULZ-HEISE. Getting Started with. S7 for Windows. Version 6.x

IBS IP KIS A. Data Sheet INTERBUS-S. Digital I/O Module

Application Unit, MDRC AB/S 1.1, GH Q R0111

8051 MICROCONTROLLER COURSE

SIMATIC. System Software for S7-300 and S7-400 Program Design A B C D. Programming Manual C79000-G7076-C Preface, Contents

THE STEP7 PROGRAMMING LANGUAGE

Siemens S7 Status Word

Publication Rev. C SIEMENS. (S5 Communications) Reference

DS1621 Digital Thermometer and Thermostat

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

MACHINE ARCHITECTURE & LANGUAGE

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

DS1621 Digital Thermometer and Thermostat

1 Classical Universal Computer 3

Microprocessor & Assembly Language

Central Processing Unit (CPU)

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Traditional IBM Mainframe Operating Principles

8085 INSTRUCTION SET

S7-1500/S7-1500F Technical Data

Programming A PLC. Standard Instructions

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

5 Combinatorial Components. 5.0 Full adder. Full subtractor

DS Wire Digital Thermometer and Thermostat

Z80 Instruction Set. Z80 Assembly Language

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

FM75 Low-Voltage Two-Wire Digital Temperature Sensor with Thermal Alarm

SPROG DCC Decoder Programmer

Chapter 9 Computer Design Basics!

PLC-ANALYZER pro 5. PLC-Driver Siemens SIMATIC S5 Industrial Ethernet TCP/IP. Driver-Addendum. The logic analyzer for programmable logic controls

CPU systron S S S 250c. systron S S S 250c. CPUs to the process modules. Stand-alone PLC

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

S7-1500/S7-1500F Technical Data

SIMATIC. Testing Your S7 Programs with S7-PLCSIM. Preface, Contents. Product Overview. Installing the S7-PLCSIM Software. Getting Started with

Software redundancy for SIMATIC S7 SIMATIC. S7-300/S7-400 Software redundancy for SIMATIC S7. Contents 1

SIMATIC S7-300, CPU 315-2DP CPU WITH MPI INTERFACE INTEGRATED 24 V DC POWER SUPPLY 128 KBYTE WORKING MEMORY 2

Microtronics technologies Mobile:

HT1632C 32 8 &24 16 LED Driver

MBP_MSTR: Modbus Plus Master 12

Training Document for Integrated Automation Solutions Totally Integrated Automation (TIA) MODULE M1

ADS9850 Signal Generator Module

Modbus RTU Communications RX/WX and MRX/MWX

OPTREX CORP. LCD MODULE

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

2011, The McGraw-Hill Companies, Inc. Chapter 3

LCM Design Engineering SPECIFICATION FOR LCD MODULE TYPE ITEM NO.: MDLS MDLS16265-LV-G-LED04G (BB) (DOC. REVISION 1.0)

Analog Inputs and Outputs

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

Technical Manual. FAN COIL CONTROLLER COOLING or HEATING ANALOG or PWM Art A

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

State of Michigan Data Exchange Gateway. Web-Interface Users Guide

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

Informatica e Sistemi in Tempo Reale

8051 hardware summary

Chapter 2 Logic Gates and Introduction to Computer Architecture

Decimal Number (base 10) Binary Number (base 2)

Modbus Protocol. PDF format version of the MODBUS Protocol. The original was found at:

Export of audit trail events from Salto software. Version 2.0

İSTANBUL AYDIN UNIVERSITY

SIMATIC. PLC Simulation for S7-300 and S Preface, Contents Installing the PLC. Simulation Software Getting Started with

PROBLEMS (Cap. 4 - Istruzioni macchina)

Start-up of IVI-KHD2-4HRX, IVI-KHA6-4HRX at S7-300 V1.1. Table of Contents TABLE OF CONTENTS... 1

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Software Manual RS232 Laser Merge Module. Document # SU Rev A

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar

Introduction to LogixPro - Lab

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Monitoring of Intravenous Drip Rate

Transcription:

SIMAI S S-U Programmable ontroller // eference Guide Order No. ES 99-MA

Index Page Explanations of the s ist Explanations of the Operands Basic s Boolean ogic s Set/eset s oad s ransfer s imer s ounter s Arithmetic s omparison s Block all s eturn s No s Stop s Display Generation s Supplementary s Boolean ogic s Bit s Set/eset s imer and ounter s oad and ransfer s onversion s Shift s Jump s Other s System s Set s oad and ransfer s Block all s and eturn s Jump s Arithmetic s Other s Machine ode isting Alphabetical Index of s Integral Blocks Integral Organization Blocks Integral unction Blocks Integral Data Block Evaluation of and

Explanation of the s ist Abbreviation AU Explanation Accumulator (When accumulator is loaded, any existing contents are shifted into accumulator.) AU Accumulator / ondition code /ondition code S ormal operand AD OV PII PIQ O SEP control system flowchart method of representation Expression with a maximum of characters. he first character must be a letter of the alphabet. SEP ladder diagram method of represent. Overflow. his condition code bit is set if, e.g., a numerical range is exceeded during arithmetic operations. Process image input Process image output esult of logic operation O reloaded? Y N he O does not change. he O cannot be combined any further. When the next binary operation takes place (but not assignment operation), the O is reloaded. Depending on whether the operation affects the O, the O is combined further or left unchanged according to the operation and the status of the bit that was scanned. O Y dependent? Y / N he statement is executed only if the O is. he statement is executed only on positive/negative edge change of the O. he statement is always executed. O affected? S Y/N he O is affected/not affected by the operation. SEP statement list method of represent.

Explanation of the Operands Abb. Explanation Permissible operand value range for BN Byte constant (fixed-point number) - to + ounter - remanent - not remanent - for the bit test and set operations (system operat.) to to to to to to to to to. to. D Data word ( bit) - for load operations (supplementary operations) and transfer operations (system operations) - for bit test and set operations (system operations). to. DB Data block to to D D Data word (left byte) Data word (right byte) to to DW Data word to B lag - remanent - not remanent unction block. to.. to. to to * to * +integrated Bs such as

Abb. Explanation Permissible operand value range for B lag byte - remanent - not remanent to to to to W lag word - remanent - not remanent to to to to I Input. to. IB Input byte to IW Input word to KB onstant ( byte) to K onstant (count) to 999 K KH KM onstant (fixed-point number) onstant (hexadecimal code) onstant (-byte bit pattern) - to + to arbitrary bit pattern ( bits) KS onstant ( characters) any two alphanumeric characters K onstant (time). to 999. KY onstant ( bytes) to (per byte)

Abb. Explanation Permissible operand value range for OB Organization block for special applications:,,,,,,, to to PB Program block (with block call and return operations) to to PB/ PY* Peripheral byte to PW Peripheral word to Q Output. to. QB Output byte to QW Output word to S System data range - for load operations (supplementary operations) and transfer operations (system operations) - for bit test and set operations (system operations) to. to. SB Sequence block imer - for the bit test and set operations (system operat.) to to to to. to. * Depending on the type of programmer used

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Boolean ogic s A I, Q,, N Y N typ.,, Scan operand for and combine with O through logic AND. AN I, Q,, N Y N typ. 9,, Scan operand for and combine with O through logic AND. O I, Q,, N Y N typ.,, Scan operand for and combine with O through logic O. ON I, Q,, N Y N typ. 9,, Scan operand for and combine with O through logic O. O N Y Y,, ombine AND operations through logic O. A( N Y Y,, O( N Y Y,, ombine expressions enclosed in parentheses through logic AND ( nesting levels). ombine expressions enclosed in parentheses through logic O ( nesting levels). ) N Y N,, lose parentheses (conclusion of a parenthetical expr.). Set/eset s S I, Q, Y N Y typ.,, Set operand to.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Set/eset s (cont.) I, Q, Y N Y typ.,, eset operand to. = I, Q, N N Y typ.,, Assign value of O to operand. oad s IB N N N 9,, oad an input byte from the PII into AU. QB N N N,, oad an output byte from the PIQ into AU. IW N N N 9,, oad an input word from the PII into AU : byte n AU (bits -); byte n+ AU (bits -) QW N N N,, oad an output word from the PIQ into AU : byte n AU (bits -); byte n+ AU (bits -) PB/PY (PG dep.) -- -- N -- -- 9 Permissible in OB and OB. oad an input byte of the digital/analog inputs from the interrupt PII into AU. PW -- -- N -- -- 9 9 Permissible in OB and OB. oad an input byte of the digital/analog inputs from the interrupt PII into AU. B N N N,, oad a flag byte into AU.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction oad s (cont.) W N N N,, D N N N 9, D N N N, DW N N N, oad a flag word into AU : byte n AU (bits -); byte n+ AU (bits -) oad a data word (left-hand byte) of the current data block into AU. oad a data word (right-hand byte) of the current data block into AU. oad a data word of the cur-rent data block into AU : byte n AU (bits -); byte n+ AU (bits -) KB N N N 9, oad a constant (-byte number) into AU. KS N N N,, oad a constant ( characters in ASII format) into AU. K N N N,, oad a constant (fixed-point number) into AU. KH N N N,, oad a constant (hexadecimal code) into AU. KM N N N,, oad a constant (bit pattern) into AU. KY N N N,, oad a constant (-byte number) into AU. K N N N,, oad a constant (time in BD) into AU.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction oad s (cont.) K N N N,, oad a constant (count in BD) into AU., N N N typ. 9,, oad a time or count (in binary code) into AU., N N N 9, oad times or counts (in BD) into AU. ransfer s IB N N N,, QB N N N,, IW N N N,, ransfer the contents of AU to an input byte (into the PII). ransfer the contents of AU to an output byte (into the PIQ). ransfer the contents of AU to an input word (into the PII): AU (bits -) byte n; AU (bits -) byte n+ QW N N N,, ransfer the contents of AU to an output word (into the PIQ: AU (bits -) byte n; AU (bits -) byte n+ PB/PY (PG dep.) -- -- N -- -- Permissible in OB and OB. ransfer the contents of AU to the interrupt PIQ with updating of the PIQ.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction ransfer s (cont.) PW -- -- N -- -- Permissible in OB and OB. ransfer the contents of AU to the interrupt PIQ with updating of the PIQ. Y N N N,, ransfer the contents of AU to a flag byte. W N N N,, D N N N, D N N N, ransfer the contents of AU to a flag word (into the PIQ): AU (bits -) byte n; AU (bits -) byte n+ ransfer the contents of AU to a data word (lefthand byte) ransfer the contents of AU to a data word (righthand byte) DW N N N 9, ransfer the contents of AU to a data word imer s SP Y N Y,9 SE Y N Y,9 Start a timer (stored in AU ) as a signal-contracting pulse. Start a timer (stored in AU ) as extended pulse (signal contracting and stretching).

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction imer s (cont.) SD Y N Y,9 Start an on-delay timer (stored in AU ). SS Y N Y,9 Start a stored on-delay timer (stored in AU ). S Y N Y,9 Start an off-delay timer (stored in AU ). Y N Y 9,9 eset a timer. ounter s U Y N Y 9,9 ounter counts up. D Y N Y 9,9 ounter counts down. S Y N Y,9 Set counter. Y N Y 9 9,9 eset counter. Arithmetic s + N N N,, Add two fixed-point numbers: AU +AU. / /OV are affected. - N N N,, Subtract one fixed-point number from another: AU - AU. / /OV are affected.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction omparison s!= N Y N 9,, ompare two fixed-point numbers for equal to : If AU =AU, the O is. / are affected. >< N Y N,, ompare two fixed-point numbers for not equal to : If AU AU, the O is. / are affected. > N Y N 9,, ompare two fixed-point numbers for greater than : If AU > AU, the O is. / are affected. >= N Y N 9,, ompare two fixed-point numbers for greater than or equal to : If AU AU, the O is. / are affected. < N Y N,, ompare two fixed-point numbers for less than : If AU < AU, the O is. / are affected. <= N Y N,, ompare two fixed-point numbers for less than or equal to : If AU AU, the O is. / are affected. Block all s JU PB N N Y 9, Jump unconditionally to a program block. JU B N N Y 9, Jump unconditionally to a function block.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Block all s (cont.) JU SB N N Y -- --, Jump unconditionally to a sequence block. J PB Y Y ) Y 9, Jump conditionally to a program block. J B Y Y ) Y 9, Jump conditionally to a function block. J SB Y Y ) Y -- -- 9, Jump conditionally to a sequence block. DB N N N 9, all a data block. G DB N N Y -- -- Generate or delete a data block. he number of data words in the block must be stored in AU. eturn s BE N N Y 9, Block end (termination of a block) BE Y Y ) Y 9, Block end, conditional BEU N N Y 9, Block end, unconditional (BEU cannot be used in organization blocks.) No s NOP N N N,, No operation (all bits reset) ) O is set to.

Basic s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction No s (cont.) NOP N N N,, No operation (all bits set) Stop s SP N N N Stop: scanning is still completed before a stop. Error ID SS is set in the ISAK. Display Generation s BD BD BD BD BD N N N,, N N N,, N N N,, N N N,, N N N,, Display generation operation for the programmer: carriage return generates blank line. Display generation operation for the programmer: switch to statement list (S). Display generation operation for the programmer: switch to control system flowchart (S). Display generation operation for the programmer: switch to ladder diagram (AD). Display generation operation for the programmer: terminate a segment.

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Boolean ogic s A= ormal operand, Q,,, N Y N -- -- AND operation: scan formal operand for. (Data type: BI) AN= ormal operand, Q,,, N Y N -- -- AND operation: scan formal operand for. (Data type: BI) O= ormal operand, Q,,, N Y N -- -- O operation: scan formal operand for. (Data type: BI) ON= ormal operand, Q,,, N Y N -- -- O operation: scan formal operand for. (Data type: BI) AW N N N 9,, OW N N N 9,, XOW N N N 9,, ombine contents of AU and AU through logic AND (word operation). esult is stored in AU. / are affected. ombine contents of AU and AU through logic O (word operation). esult is stored in AU. / are affected. ombine contents of AU and AU through logic EXUSIVE O (word operation). esult is stored in AU. / are affected. Bit s B, N Y N -- -- est a bit of a timer or counter word for.

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Bit s (cont.) B D N Y N -- -- est a bit of a data word for. B S N Y N -- -- est a bit of a data word in the system data area for. BN, N Y N -- -- est a bit of a timer or counter word for. BN D N Y N -- -- est a bit of a data word for. BN S N Y N -- -- est a bit of a data word in the system data area for. SU, N N Y -- -- Set a bit of a timer or counter word unconditionally. SU D N N Y -- -- Set a bit of a data word unconditionally. U, N N Y -- -- 9 eset a bit of a timer or counter word unconditionally. U D N N Y -- -- 9 eset a bit of a data word unconditionally. Set/eset s S= ormal operand I, Q, Y N Y -- -- Set a formal operand (when O=). (Data type: BI) B= ormal operand I, Q, Y N Y -- -- eset a formal operand (when O=). (Data type: BI)

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction Set/eset s (cont.) D= ormal operand, Y N Y -- -- 9 eset a formal operand (digital) (when O=). == ormal operand I, Q, Y N Y -- -- Assign the value of the O to the status of the formal operand. (Data type: BI) imer and ounter s, Y N Y -- -- 9,9 Enable a timer/counter for cold restart. If O=, - restarts the timer - sets, decrements, or increments the counter. = ormal operand, Y N Y -- -- 9* * Enable formal operand (timer/ counter) for cold restart (for detailed description, see operation). SP= ormal operand Y N Y -- -- 9* * Start a timer (formal operand) as pulse with the value stored in AU. SD= ormal operand Y N Y -- -- 9* * Start an on-delay timer (formal operand) with the value stored in AU. SE = ormal operand, Y N Y -- -- 9* * Start a timer (formal operand) as an extended pulse with the value stored in AU, or set a counter (formal operand) with the next count value indicated. * + Processing time for the substituted command

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction imer and ounter s (cont.) SSU = ormal operand, Y N Y -- -- 9* * Start a stored on-delay timer (formal operand) with the value stored in AU, or increment a counter (formal operand). SD = ormal operand, Y N Y -- -- 9* * Start an off-delay timer (formal operand) with the value stored in AU, or decrement a counter (formal operand). oad and ransfer s = ormal operand I, Q,,, N N N -- -- * * oad the value of the formal operand into AU. (Data type: BY, W Additional actual operands: D, D, DW) S N N N -- -- oad a word from the system data area into AU. = ormal operand, N N N -- -- 9* * oad the value of the formal operand in BD code into AU. W= ormal operand N N N -- -- oad a formal operand bit pattern into AU. (Data type: D Parameter type: K, K, KH, KM, KS, K, KY) = ormal operand I, Q, N N N -- -- 9* 9* ransfer the contents of AU to the formal operand. (Data type: BY, W Additional actual operands: D, D, DW) * + Processing time for the substituted command

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operands O depend. O affected O reloaded typical Execution ime in µs MA MA unction onversion s W N N N,, orm the one's complement of AU. SW N N N,, orm the two's complement of AU. / and OV are affected. Shift s SW Parameter n=... N N N + n + n,, Shift the contents of AU to the left by the value specified in the parameter. Unassigned positions are padded with zeros. / are affected. SW Parameter n=... N N N + n + n,, Shift the contents of AU to the right by the value specified in the parameter. Unassigned positions are padded with zeros. / are affected. Jump s JU = Symb. address max. charact. N N N,, Jump unconditionally to the symbolic address. J = Symb. address max. charact. Y Y ) Y,, Jump conditionally to the symbolic address. (If the O is, it is set to.) JZ = Symb. address max. charact. N N N 9,, Jump if the result is zero. he jump is made only if = and =. he O is not changed. ) O is set to.

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operanden O depend. O affected O reloaded typical Execution ime in µs MA MA unction Jump s (cont.) JN = Symb. address max. charact. N N N 9,, Jump if the result is not zero. he jump is made only if. he O is not changed. JP = Symb. address max. charact. N N N,, Jump if the sign of the result is +. he jump is made only if = and =. he O is not changed. JM = Symb. address max. charact. N N N,, Jump if the sign of the result is -. he jump is made only if = and =. he O is not changed. JO = Symb. address max. charact. N N N,, Jump on overflow. he jump is made only if the OVEOW bit is set. he O is not changed. Other s IA N N N -- -- A N N N -- -- D N N N -- -- 9,9 I N N N -- -- 9,9 Disable interrupt. Input/output interrupt or timer OB processing is disabled. Enable interrupt. his operation cancels the effect of IA. Decrement the low byte (bits to ) of AU by the value n (n= to ). Increment the low byte (bits to ) of AU by the value n (n= to ).

Supplementary s or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (AW) Permissible Operanden O depend. O affected O reloaded typical Execution ime in µs MA MA unction Other s (cont.) DO= ormal operand N N Y -- -- * * Process a block. (Only DB, JU OB, J U PB, JU B, JU SB can be substituted.) Actual operands: DB, JU OB, JU PB, JU B, JU SB DO DW ** N N N -- -- 9 Process data word. he next operation is combined with the parameter specified in the data word (O operation) and then carried out. DO W ** N N N -- -- 9 Process flag word. he next operation is combined with the parameter specified in the flag word (O operation) and then carried out. * + Processing time for the substituted command ** Permissible operations: A, AN, O, ON;,, ; S,, =; JU, J, JZ, JN, JP, JM, JO, SW, SW;,, S, SD, SP, SS, SE ; D, I;,, S, U, D ; DB, S, NB

System s (for and higher) or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operanden O depend O affected O reloaded typical Execution ime in µs MA MA unction Set s SU S N N Y -- -- Set bit in system data area unconditionally. U S N N Y -- -- eset bit in system data area unconditionally. oad and ransfer s I ( AU ) ( AU ) N N N -- -- oad the contents of a memory word (addressed by AU ) indirectly into the register (: AU ; : AU ). I ( AU ) ( AU ) N N N -- -- ransfer the register contents (: AU ; : AU ) indirectly into the memory word (addressed by AU ). NB Parameter n=... N N N -- + n 9 (+ n 9) 9+ n + n ransfer a field byte by byte (number of bytes to ). S N N N -- -- 9 ransfer a word to the system data area. Block all s and eturn s JU OB N N Y -- --, all an organization block unconditionally. J OB Y Y ) Y -- -- 9, all an organization block conditionally. ) O is set to

System s (for and Higher) or organization blocks (OB) or program blocks (PB) or function blocks (B) or sequence blocks (SB) (S) Permissible Operanden O depend. O affected O reloaded typical Execution ime in µs MA MA unction Jump JU N N N -- -- Jump at random within a function block (jump distance - to + ) Arithmetic s ADD B N N N -- -- Add byte constant (fixed point) to AU. ADD K N N N -- -- Add fixed-point constant (word) to AU. Other s SS N N N -- -- Stop operation. Program processing is interrupted immediately after this operation. AK N N N -- -- Swap the contents of AU and AU.

Machine ode isting Explanation of the Indices a + byte address b + bit address c + parameter address d + timer number e + constant f + block number g + word address h + number of shifts i + relative jump address k + register address l + block length in bytes m + jump displacement ( bits) n + value o + counter number Machine ode B B B B Operand NOP W d d l l NB d d BE c c = c c A= IA A 9 SW A a a Y B a a Y d d D i i JO=

Machine ode B B B B Operand E c c = c c O= BD BD BD BD BD n n I a a W a a W d d S i i JP= c c SD= c c S= 9 n n D d d SE D f f J B E c c SE= c c == f f DB > < ><!= A >=

Machine ode B B B B Operand <= g g D g g D d d SD i i JM= c c SD= c c AN= e e KB A g g D B g g D d d SS D i i JU= E c c SSU= c c ON= e e e e K e e e e K e e e e K e e e e KS e e e e KY e e e e KH e e e e KM g g DW g g DW d d SP i i JN= c c SP=

Machine ode B B B B Operand c c B= d d D f f JU Y E c c D= c c W= k I AW o o o o i i JZ= c c = k I 9 OW A a a IB A a a QB B a a IB B a a QB o o D f f J OB E g g DO W e e ADD B XOW a a IW a a QW a a IW a a QW

Machine ode B B B B Operand o o D f f e e e e J PB ADD K 9 - o o S D f f J SB h h SW g g S g g S BE BEU c c = 9 h h SW o o U D f f JU OB E g g DO DW SS AK SP B JU o o B o o BN o o SU o o U d d B d d BN

Machine ode B B B B Operand d d SU d d U b g g B D b g g BN D b g g SU D b g g U D b g g B S b g g BN S b g g SU S b g g U S d d PB d d PB f f JU PB c c DO= f f G DB 9 + A a a PW B a a PW o o D f f JU SB b a a A b a a O 9 b a a S 9 b a a = A b a a AN A b a a ON

Machine ode B B B B Operand B b a a B o o A B 9 o o O B A A( B B O( B o o AN B D o o ON B ) b a a A I b a a A Q b a a O I b a a O Q D b a a S I D b a a S Q D b a a = I D b a a = Q E b a a AN I E b a a AN Q E b a a ON I E b a a ON Q b a a I b a a Q d d A 9 d d O A i i J= B O

Machine ode B B B B Operand d d AN D d d ON NOP

Alphabetical Index of s Page Page A,, A(, A=,, ADD,, AN, -9 AN=, AW, BE, BE, BEU, BD, BD, BD, BD, BD,, D, W, SW, U, D, DO,, DO=,,, =, G, I, IA, J,, - J=, JM=, JN=, JO=, JP=, JU,,, - JU, JU=, JZ=,,,,, - =,,, =, I, W=, NOP, NOP, 9

Page Page O,,, O(, O=, ON, -9 ON=, OW,,, - A, B=, D=, U,,, S,, - S=, SD, SD=, SE, SE=, S, SD=, SP=, SW, SP, JU, SW, SS, SSU=, SP, SS, SU,,,,,, - =, AK, B,,, BN,, I, NB, XOW, ), =,, ==, +, -,!=, >, >=, ><, <, <=,

Integral Blocks Intregral Organisation Blocks OB-No. unction OB integrated in You must program the OB. he operating system calls up the OB. OB yclic program processing Interrupt-driven program processing OB Interrupt-driven program processing OB yclic program processing Handling start-up procedures OB When starting manually (SOP to UN) OB When power returns Handling programming errors and device errors OB Battery failure he OB is already programmed. You must call up the OB. OB Scan time triggering OB PID control algorithm OB is ready or is supported by the operating system

Integral unction Blocks B-No. unction B integrated in B -tetrad BD code converter B -bit fxed-point converter B -bit binary multiplier B -bit binary divider B ead analog value B Output analog value B is ready

Integral Data Block Parameter Argument Meaning SN S E KBE KBS PGN Block ID: S: SINE p DBx DWy DBxDWy MBy MBy p p=... x=... y=... p=... Slave number ocation of Send Mailbox ocation of eceive Mailbox ocation of oordination Byte eceive ocation of oordination Byte Send Programmer bus number Block ID: SDP: System-Dependent-Parameter WD D Number of timers being processed (Watch-Dog-imer) Block ID: B: imer-unktions-baustein OB p Intervals (ms) at which OB is called up and is processed p=... (State in ms steps) Block ID: P: lock-parameters K SW SP SAV OHE SE IS OHS p DBxDWy,MWz,EWv or AWv DBxDWy,MWz,EWv or AWv J/Y/N J/Y/N J/Y/N wd dd.mm.yy hh:mn:ss AM/PM wd dd.mm. hh:mn:ss AM/PM hhhhhh:mn:ss Inputting the correction factor (orrection actor) ocation of the clock data (ock Data) ocation of the status word (Satus Word) Updating the clock during SOP (SoP) Saving the clock time after the last change from UN to SOP or Power O (SAVe) Enabling the operating hours counter ( Hour counter Enable) Setting the clock time and date Setting the prompting time (imer Interrupt Set) Setting the operating hours counter ( Hour counter Set) wd=... (weekday=sun... Sat) dd=... (day) mm=... (month) yy=... 99 (year) hh=... (hours) If an argument such as seconds, for example, is not to be entered, input XX. he clock continues to run with the updated data. he IS parameter block does not acknowledge this argument. mn=... 9 (minutes) x=... ss=... 9 (seconds) y=... hhhhhh=... 999999 (hours) z=... p=... j/j=ja (yes) v=... y/y=yes n/n=no If you input AM or PM after the clock time, the clock runs in the -hour mode. If you omit this argument, the clock runs in the -hour mode. You must use the same time mode in the SE and IS parameter blocks.

Evaluation of and Arithmetic s Digital ogic s omparison s Shift s onversion s esult = esult = AU = AU shifted bit = - esult < - AU < AU - esult < esult > esult AU > AU shifted bit = esult >

Siemens AG AU EB Postfach 9 Werner-von-Siemens- Str. D-99 Amberg ed. ep. of Germany Should you come across any printing errors when reading this publication, we would ask you to inform us using this form. We would also welcome any suggestions you may have for improvement rom Name ompany/department Address elephone Publication: Programmable ontroller SIMAI S-U ( //) eference Guide Order No.: ES 99-MA Suggestions / orrections:

Siemens AG Automation Group Industrial Automation Systems Postfach, Nürnberg Siemens AG 99 Subject to change without prior notice Siemens Aktiengesellschaft Order No. ES 99-MA Printed in the ed. ep. of Germany