S7-400H Instruction List

Size: px
Start display at page:

Download "S7-400H Instruction List"

Transcription

1 41-5H PN/DP, 414-5H PN/DP, 416-5H PN/DP, 417-5H PN/DP 03/01 A5E

2 Copyright Siemens AG 01 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Siemens AG Industry Sector Postfach 4848, D-9037 Nürnberg Siemens Aktiengesellschaft Disclaimer of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG 01 Subject to change without prior notice. A5E

3 Contents Applicability... 5 Address Identifier and Parameter Ranges... 6 Constants and Ranges... 9 Abbreviations Registers... 1 Examples of Addressing Examples of how to calculate the pointer Execution Times with Indirect Addressing Examples of Calculations... 1 List of Instructions... 3 Bit Logic Instructions...4 Bit Logic Instructions with Parenthetical Expressions...7 ORing of AND Instructions...9 Logic Instructions with Timers and Counters...30 Word Logic Instructions with the Contents of Accumulator Evaluating Conditions Using AND, OR and EXCLUSIVE OR...34 Edge-Triggered Instructions...37 Setting/Resetting Bit Addresses...38 Instructions Directly Affecting the RLO...40 Timer Instructions...41 Counter Instructions...44 Load Instructions...46 Load Instructions for Timers and Counters...5 Transfer Instructions...53 Load and Transfer Instructions for Address Registers...56 Load and Transfer Instructions for the Status Word...58 Load Instructions for DB Number and DB Length...59 Integer Math (16 Bits)...60 Integer Math (3 Bits)...6, 03/01, A5E

4 Floating-Point Math (3 Bits)...64 Square Root and Square Instructions (3 Bits)...66 Logarithmic Function (3 Bits)...67 Trigonometrical Functions (3 Bits)...68 Adding Constants...69 Adding Using Address Registers...70 Comparison Instructions (16-Bit Integers)...71 Comparison Instructions (3-Bit Integers)...7 Comparison Instructions (3-Bit Real Numbers)...73 Shift Instructions...74 Rotate Instructions...76 Accumulator Transfer Instructions, Incrementing and Decrementing...77 Program Display and Null Operation Instructions...78 Data Type Conversion Instructions...79 Forming the Ones and Twos Complements...8 Block Call Instructions...83 Block End Instructions...86 Exchanging Data Blocks...87 Jump Instructions...88 Instructions for the Master Control Relay (MCR)...93 Oganization Blocks (OB)...95 Function Blocks (FB) Functions (FC) and Data Blocks (DB) System Functions...10 System Function Blocks...10 Sublist of the System Status List (SSL) Index of Instructions , 03/01, A5E

5 Applicability This list of instructions applies to the s listed below. Name 41-5H PN/DP 414-5H PN/DP 416-5H PN/DP 417-5H PN/DP Order number 6ES7 41 5HK06 0AB0 6ES HM06 0AB0 6ES HS06 0AB0 6ES HT06 0AB0, 03/01, A5E

6 Address Identifier and Parameter Ranges Address Identifier and Parameter Ranges Addr. ID Parameter Range 41-5H 414-5H 416-5H 417-5H Q 1) 0.0 to to to to Output (in PIQ) QB 1) 0 to 55 0 to 55 0 to to 103 Output byte (in PIQ) QW 1) 0 to 54 0 to 54 0 to 10 0 to 10 Output word (in PIQ) QD 1) 0 to 5 0 to 5 0 to to 100 Output double word (in PIQ) DBX 0.0 to to to to Data bit in DB DB 1 to to to to Data block DBB 0 to to to to Data byte in DB DBW 0 to to to to 6553 Data word in DB DBD 0 to to to to Data double word in DB DIX 0.0 to to to to Data bit in instance DB DI 1 to to to to Instance data block DIB 0 to to to to Data byte in instance DB DIW 0 to to to to 6553 Data word in instance DB DID 0 to to to to Data double word in instance DB Description 1) Default setting can be changed, see Technical Specifications, 03/01, A5E

7 Address Identifier and Parameter Ranges Address Identifier and Parameter Ranges, continued Address Identifier and Parameter Ranges, continued Addr. ID Parameter Range 41-5H 414-5H 414-5H 417-5H I 1) 0.0 to to to to Input (in PII) IB 1) 0 to 55 0 to 55 0 to to 103 Input byte (in PII) IW 1) 0 to 54 0 to 54 0 to 10 0 to 10 Input word (in PII) ID 1) 0 to 5 0 to 5 0 to to 100 Input double word (in PII) L 1) 0.0 to to to to Local data LB 1) 0 to to to to 3767 Local data byte LW 1) 0 to to to to 3766 Local data word LD 1) 0 to to to to 3764 Local data double word M 0.0 to to to to Bit memory MB 0 to to to to Bit memory byte MW 0 to to to to 1638 Bit memory word MD 0 to to to to Bit memory double word Description 1) Default setting can be changed, see Technical Specifications, 03/01, A5E

8 Address Identifier and Parameter Ranges Address Identifier and Parameter Ranges, continued Address Identifier and Parameter Ranges, continued Addr. ID Parameter Range 41-5H 414-5H 414-5H 417-5H Description PQB 0 to to to to Peripheral output byte (direct I/O access) PQW 0 to to to to 1638 Peripheral output word (direct I/O access) PQD 0 to to to to Peripheral output double word (direct I/O access) PIB 0 to to to to Peripheral input byte (direct I/O access) PIW 0 to to to to 1638 Peripheral input word (direct I/O access) PID 0 to to to to Peripheral input double word (direct I/O access) T 0 to to to to 047 Timer C 0 to to to to 047 Counter, 03/01, A5E

9 Constants and Ranges Constants and Ranges Constant Range Description B(b1,b) - Constant, or 4 bytes B(b1,b,b3,b4) D# Date - IEC date constant L# Integer - 3-bit integer constant P# Bit pointer - Pointer constant S5T# Time value - S7 time constant 1) T# TIme value - Time constant TOD# Time value - IEC time constant C# Count value - Counter constant (BCD code) #n - Binary constant B#16# W#16# DW#16# - Hexadecimal constant 1) For loading of S7 timers, 03/01, A5E

10 Abbreviations Abbreviations The following abbreviations and mnemonics are used in the Instruction List: Abbrev. Description Example k8 8-bit constant 3 0 to 55 k16 16-bit constant to k3 3-bit constant to i8 8-bit integer to + 17 i16 16-bit integer to i3 3-bit integer to m Pointer constant P#40.3 n Binary constant p Hexadecimal constant EA1 Label Symbolic jump address (max. 4 characters) DESTINATION a Byte address, 03/01, A5E

11 Abbreviations Abbreviations, continued Abbreviations, continued Abbrev. Description Example b Bit address c Address area I, Q, M, L, DBX, DIX d Address in: MD, DBD, DID or LD e Number in: MW, DBW, DIW or LW f Timer/counter No. g Address area IB, QB, PIB, PQB, MB, LB, DBB, DIB h Address area IW, QW, PIW, PQW, MW, LW, DBW, DIW i Address area ID, QD, PID, PQD, MD, LD, DBD, DID q Block No., 03/01, A5E

12 Registers Registers ACCU1 to ACCU4 (3 Bit) The accumulators are registers for processing bytes, words or double words. The address identifiers are loaded into the accumulators, where they are logically gated. The result of the logic Instr. (RLO) is in ACCU1 and can be transferred from there to a memory cell. The accumulators are 3 bits long. Accumulator designations: ACCU ACCUx (x = 1 to 4) Bit 0 to 31 ACCUx-L Bit 0 to 15 ACCUx-H Bit 16 to 31 ACCUx-LL Bit 0 to 7 ACCUx-LH Bit 8 to 15 ACCUx-HL Bit 16 to 3 ACCUx-HH Bit 4 to 31 Bit, 03/01, A5E

13 Registers Adress Registers AR1 and AR (3 Bit) The address registers contain the area-internal or area-crossing pointers for instructions using indirect addressing. The address registers are 3 bits long. Die The area-internal and/or area-crossing pointers have the following syntax: Area-internal pointer: bbb bbbbbbbb bbbbbxxx Area-crossing pointer: yyyyyyyy 00000bbb bbbbbbbb bbbbbxxx Legend: b Byte address x Bit number y Area identifier (see Examples of Addressing ), 03/01, A5E

14 Registers Status word (16 Bits) The status word bits are evaluated or set by the instructions. The status word is 16 bits long. Bit Assignment Description 0 /FC First check bit 1 RLO Result of logic Instr. STA Status 3 OR Or (AND before OR) 4 OS Stored overflow 5 OV Overflow 6 CC 0 Condition code 0 7 CC 1 Condition code 1 8 BR Binary result 9 to 15 Unassigned -, 03/01, A5E

15 Examples of Addressing Examples of Addressing Addressing Examples Immediate Addressing L + 7 Load 16-bit integer constant 7 into ACCU1 L L#-1 Load 3-bit integer constant -1 into ACCU1 L # Load binary constant into ACCU1 L DW#16#A0F0BCFD Load hexadecimal constant into ACCU1 L ENDE Load ASCII character into ACCU1 L T#500 ms Load time value into ACCU1 L C#100 Load count value into ACCU1 L B#(100,1) Load -byte constant L B#(100,1,50,8) Load 4-byte constant L P#10.0 Load area-internal pointer into ACCU1 L P#E0.6 Load area-crossing pointer into ACCU1 L -.5 Load real number into ACCU1 L D# Load date L TOD 13:0:33.15 Load time of day Direct Addressing1 A I 0.0 ANDing of input bit 0.0 L IB 1 Load input byte 1 into ACCU1 L IW 0 Load input word 0 into ACCU1 L ID 0 Load input double word 0 into ACCU1 Description, 03/01, A5E

16 Examples of Addressing Examples of Addressing, continued Examples of Addressing, continued Addressing Examples Description Indirect Addressing of Timers/Counters SP T [LW 8] Start timer; the timer number is in local data word 8 CU C [LW 10] Count upwards; the counter number is in local data word 10 Area-Internal Memory-Indirect Addressing A I [LD 1] AND Instr.: The address of the input is in local data double word 1 as pointer Example: L P#. T LD 1 A I [LD 1] A I [DBD 1] AND Instr.: The address of the input is in data double word 1 of the open DB as pointer A I [DID 1] AND Instr.: The address of the output is in data double word 1 of the open instance DB as pointer A I [MD 1] AND Instr.: The address of the output is in memory double word 1 as pointer Area-Internal Register-Indirect Addressing A I [AR1,P#1.] AND Instr.: The address of the input is calculated from the pointer value in AR 1 + P#1., 03/01, A5E

17 Examples of Addressing Examples of Addressing, continued Examples of Addressing, continued Addressing Examples Area-Internal Register-Indirect Addressing Description Area Coding Area identifier (binary) hex. P I/O area I Input area Q Output area M Bit memory area DB Data area DI Instance data area L Local data area VL Predecessor local data area (access to local data of invoking block) L B [AR1,P#8.0] Load byte into ACCU1: The address is calculated from the pointer value in AR 1 + P#8.0 A [AR1,P#3.3] AND Instr.: The address of the operand is calculated from the pointer value in AR 1 + P#3.3 Addressing Via Parameters A Parameter Addressing via parameters, 03/01, A5E

18 Examples of how to calculate the pointer Examples of Addressing, continued Examples of how to calculate the pointer Example for sum of bit addresses 7: LAR1 P#8. U E [AR1,P#10.] Result: Input 18.4 is addressed (by adding the byte and bit addresses) Example for sum of bit addresses >7: L P#10.5 LAR1 U E [AR1,P#10.7] Result: Input 1.4 is addressed (by adding the byte and bit addresses with carry over), 03/01, A5E

19 Execution Times with Indirect Addressing Examples of Addressing, continued Execution Times with Indirect Addressing When using indirect addresses statement consists of two parts: Part 1: Load the address of the instruction Part : Execute the instruction In other words, when working with indirect addresses, you must calculate the execution time of an instruction from these two parts. Calculating the Execution Time The total execution time is calculated as follows: Time required for loading the address + execution time of the instruction = Total execution time of the instruction The execution times listed in the chapter entitled List of Instructions apply to the execution times of the second part of an instruction, i.e. for the actual execution of an instruction. You must then add the time required for loading the address of the instruction to this execution time (see following Table)., 03/01, A5E

20 Execution Times with Indirect Addressing The execution time for loading the address of the instruction from the various areas is shown in the following table. Addresse is in... Bit memory area M Word Double word 41-5H 414-5H 416-5H 417-5H Data block DB/DX Word Double word Local data area L Word Double word AR1/AR (area-internal) 0.0 1) 0.0 1) 0.0 1) 0.0 1) AR1/AR (area-crossing) 0.0 1) 0.0 1) 0.0 1) 0.0 1) Parameter (word)... for: Timers Counters Block calls Parameter (double word)... for Bits, bytes, words and double words Address registers AR1/AR do not need to be loaded in separate cycles for addressing, 03/01, A5E

21 Examples of Calculations Examples of Calculations You will find a few examples here for calculating the execution times for the various methods of indirect addressing. Calculating the Execution Times for Area-Internal Memory-Indirect Addressing Example: A I [DBD 1] with 414 Step 1: Load the contents of DBD 1 (time required is listed in the table on page 0) Address is in... Bit memory area M Word Double word Data block DB/DX Double word Step : AND the input addressed in this way (execution time see page 4) Typical Direct Addressing indirecte Adressing Time for IE Total execution time ns + ns ns, 03/01, A5E

22 Examples of Calculations Execution Time for Area-Crossing Register-Indirect Addressing Example: U [AR1, P#3.1]... with I 1.0 in AR1 with Step: Load the contents of AR1, and increment them by the offset 3.1 (the time required is in the table on page 19) Address is in... : : AR1/AR (Area-crossing ) : :. Step: AND link of the input addressed this way (see page 4 for the execution time 4) Direct Addressing 13.5 : Indirect Addressing Time for AI 0 + Total execution time 0 ns ns 13.5 ns, 03/01, A5E

23 List of Instructions Examples of Addressing, continued This chapter contains the complete list of instructions for the S7-400H s. The descriptions have been kept as concise as possible. You will find a detailed functional description in the various STEP 7 reference manuals. Please note that, in the case of indirect addressing (examples see page 16), you must add the time required for loading the address of the particular instruction to the execution times listed (see page 19)., 03/01, A5E

24 Bit Logic Instructions Bit Logic Instructions All logic instructions generate a result (new RLO). The first instruction in a logic string generates the new RLO from the signal state scanned. The subsequent logic instructions generate the new RLO from the signal state scanned and the old RLO. The logic string ends with an instruction which limits the RLO (e.g. a memory instruction); that is, the /FC bit is set to zero Instr. Address ID Description U/UN I/Q a.b M a.b L a.b DBX a.b DIX a.b c [d] c [AR1,m] c [AR,m] [AR1,m] [AR,m] Parameter AND/AND-NOT Input/output Bit memory Local data bit Data bit Instance data bit Memory-indirect, area-internal 1) Register-ind., area-internal (AR1) 1) Register-ind., area-internal (AR) 1) Area-crossing (AR1) 1) Area-crossing (AR) 1) Via parameter 1) Length in words 41-5H 414-5H 416-5H 417-5H 1 ) / 1 3) / / / / / / / / / / / / / / / / / / / / / / / / / ) 3) + I, Q, M, L / DB, DI With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

25 Bit Logic Instructions, continued Bit Logic Instructions, continued Instr. Address ID Description O/ON I/Q a.b M a.b L a.b DBX a.b DIX a.b c [d] c [AR1,m] c [AR,m] [AR1,m] [AR,m] Parameter OR/OR-NOT Input/output Bit memory Local data bit Data bit Instance data bit 1) Memory-indirect, area-internal Register-ind., area-internal (AR1) 1) Register-ind., area-internal (AR) 1) Area-crossing (AR1) 1) Area-crossing (AR) 1) Via parameter 1) Length in words 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / / / Status word for: O, ON BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes Yes Instruction affects: Yes Yes 1 1) ) 3) + I, Q, M, L / DB, DI With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

26 Bit Logic Instructions, continued Bit Logic Instructions, continued Instr. Address ID Description X/XN E/A a.b M a.b L a.b DBX a.b DIX a.b c [d] c [AR1,m] c [AR,m] [AR1,m] [AR,m] Parameter EXKLUSIV-OR/ EXKLUSIV-OR-NOT Input/output Bit memory Local data bit Data bit Instance data bit Memory-indirect, area-internal. 1) Register-ind., area-internal (AR1) 1) Register-ind., area-internal (AR) 1) Area-crossing (AR1) 1) Area-crossing (AR) 1) Via parameter 1) Length in words 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / / / Status word for: X, XN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes Yes Instruction affects: Yes Yes 1 1) + I, Q, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

27 Bit Logic Instructions with Parenthetical Expressions List of Instructions Bit Logic Instructions with Parenthetical Expressions Saving the RLO and OR bits and the relevant function identifier (A, AN,...) to the nesting stack. Seven nesting levels are possible per block. After the right parenthesis, the logic operation indicated by the function identifier is performed on the saved RLO and the current RLO; the current OR is overwritten with the saved OR. Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H A( AND left parenthesis AN( AND NOT left parenthesis O( OR left parenthesis ON( OR NOT left parenthesis X( EXCLUSIVE OR left parenthesis XN( EXCLUSIVE OR NOT left parenthesis Status word for: A(, AN(, O(, ON(, X(, XN( BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Yes Yes Instruction affects: , 03/01, A5E

28 Bit Logic Instructions with Parenthetical Expressions, continued List of Instructions Bit Logic Instructions with Parenthetical Expressions, continued Instr. Address ID Description ) Right parenthesis, removing an entry from the nesting stack. Length in words 41-5H 414-5H 416-5H 417-5H Status word for: ) BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: Yes 1 Yes 1, 03/01, A5E

29 ORing of AND Instructions ORing of AND Instructions The ORing of AND instructions is implemented according to the rule: AND before OR O Instr. Address ID Description ORing of AND operations according to the rule: AND before OR Length in words 41-5H 414-5H 416-5H 417-5H Status word for: O BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes Yes Instruction affects: Yes 1 - Yes, 03/01, A5E

30 Logic Instructions with Timers and Counters Logic Instructions with Timers and Counters Examining the status of the addressed timer/counter and gating the result with the RLO according to the appropriate logic function. Instr. Address ID Description A/AN T f T [e] Z f Z [e] Timer para. Counter para. AND/AND NOT Timer Timer, memory-indirect addressing Counter Counter, memory-indirect addressing Timer/counter (addressing via parameter) Length in words 1 1) / 1 1) / Execution Time ns 41-5H 414-5H 416-5H 417-5H Status word for: A, AN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Yes Yes Instruction affects: Yes Yes Yes 1 1) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

31 Logic Instructions with Timers and Counters, continued List of Instructions Logic Instructions with Timers and Counters, continued Instr. Address ID Description O/ON X/XN T f T [e] Z f Z [e] Timerpara. Zählerpara. OR/OR-NOT Timer Timer, memory-indirect addr. Counter Counter, memory-indirect addressing Timer/counter (addressing via parameter) EXCLUSIVE OR/EXCLUSIVE OR NOT Length in words 1 1) / 1 1) / Execution Time ns 41-5H 414-5H 416-5H 417-5H T f T [e] Z f Z [e] Timer para. Counter para. Timer Timer, memory-indirect addr. Counter Counter, mem.-indirect addr. EXCLUSIVE OR timer/counter (addressing via parameter) Status word for: O, ON, X, XN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes Yes Instruction affects: Yes Yes 1 1) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

32 Word Logic Instructions with the Contents of Accumulator 1 List of Instructions Word Logic Instructions with the Contents of Accumulator 1 Gating the contents of ACCU1 and/or ACCU1-L with a word or double word according to the appropriate function. The word or double word is either specified in the instruction as an address or is in ACCU. The result is in ACCU1 and/or ACCU1-L. Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H AW AND ACCU-L AW W#16#p AND 16-bit constant OW OR ACCU-L OW W#16#p OR 16-bit constant XOW EXCLUSIVE OR ACCU-L XOW W#16#p EXCLUSIVE-OR 16-bit constant Status word for: AW, OW, XOW BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Instruction affects: - Yes , 03/01, A5E

33 Word Logic Instructions with the Contents of Accumulator 1, continued Word Logic Instructions with the Contents of Accumulator 1, continued Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H AD AND ACCU AD DW#16#p AND 3-bit constant OD OR ACCU OD DW#16#p OR 3-bit constant XOD EXCLUSIVE OR ACCU XOD DW#16#p EXCLUSIVE OR 3-bit constant Status word for: AD, OD, XOD BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Instruction affects: - Yes , 03/01, A5E

34 Evaluating Conditions Using AND, OR and EXCLUSIVE OR List of Instructions Evaluating Conditions Using AND, OR and EXCLUSIVE OR All logic instructions generate a result (new RLO). The first instruction in a logic string generates the new RLO from the signal state scanned. The subsequent logic instructions generate the new RL from the signal state scanned and the old RLO. The logic string ends with an instruction which limits the RLO (e.g. a memory instruction); that is, the FC bit is set to zero. Instr. Address ID Description A/AN O/ON X/XN AND/AND NOT OR/OR-NOT EXCLUSIVE OR/ EXCLUSIVE-OR-NOT ==0 Result=0 (CC1=0 and CC0=0) >0 Result>0 (CC1=1 and CC0=0) <0 Result<0 (CC1=0 and CC0=1) <>0 Result 0 ((CC1=0 and CC0=1) or (CC1=1 and CC0=0)) Length in words 41-5H 414-5H 416-5H 417-5H Status word for: A, AN, O, ON, X, XN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: - Yes Yes - - Yes - Yes Yes Instruction affects: Yes Yes Yes 1, 03/01, A5E

35 Evaluating Conditions Using AND, OR and EXCLUSIVE OR, continued Evaluating Conditions Using AND, OR and EXCLUSIVE OR, continued Instr. Address ID Description A/AN O/ON X/XN <=0 Result>=0 ((CC1=1 and CC0=0) or (CC1=0 and CC0=0)) >=0 Result<=0 ((CC1=0 and CC0=1) or (CC1=0 and CC0=0)) Length in words 41-5H 414-5H 416-5H 417-5H Status word for: A, AN, O, ON, X, XN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: - Yes Yes - - Yes - Yes Yes Instruction affects: Yes Yes Yes 1, 03/01, A5E

36 Evaluating Conditions Using AND, OR and EXCLUSIVE OR, continued Evaluating Conditions Using AND, OR and EXCLUSIVE OR, continued Instr. Address ID Description A/AN O/ON X/XN Length in words 41-5H 414-5H 416-5H 417-5H UO AND/AND-NOT OR/OR-NOT EXCLUSIVE-OR/ EXCLUSIVE-OR-NOT Unordered math instruction (CC1=1 and CC0=1) OS AND OS= BR AND BR= OV AND OV= Status word for: A, AN, O, ON, X, XN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: - Yes Yes - - Yes - Yes Yes Instruction affects: Yes Yes Yes 1, 03/01, A5E

37 Edge-Triggered Instructions Edge-Triggered Instructions The current RLO is compared with the status of the instruction or edge bit memory. FP detects a change from 0 to 1 ; FN detects a change from 1 to 0. Instr. Address ID Description FP/FN I/Q a.b M a.b L a.b 1) DBX a.b DIX a.b c [d] ) c [AR1,m] ) c [AR,m] ) [AR1,m] ) [AR,m] ) Parameter ) The positive/negative edge is indicated by RLO = 1. The bit addressed in the instruction is the auxiliary edge bit memory. Length in words 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / + + / + + / + + / + + / + + / + Status word for: FP, FN BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: Yes Yes 1 1 Unnecessary if the bit being monitored is in the process image (local data of a block are only valid while the block is running). I, Q, M, L /DB, DI + Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

38 Setting/Resetting Bit Addresses Setting/Resetting Bit Addresses Assigning the value 1 or 0 to the addressed instruction when RLO = 1. The instructions can be dependent on the MCR (see page 4). S R Instr. Address ID Description I/Q a.b M a.b L a.b DBX a.b DIX a.b c [d] c [AR1,m] c [AR,m] [AR1,m] [AR,m] Parameter Set addressed bit to 1 Set addressed bit to 0 Input/output Bit memory Local data bit Data bit Instance data bit Memory-indirect, area-internal 1) Register-ind., area-internal (AR1) 1) Register-ind., area-internal (AR) 1) Area-crossing (AR1) 1) Area-crossing (AR) 1) Via parameter 1) Length in words 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / + + / + + / + + / + + / + + / + Status word for: S, R BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: Yes ) 3) + I, Q, M, L / DB, DI With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

39 Setting/Resetting Bit Addresses, continued Setting/Resetting Bit Addresses, continued The RLO is written to the address of the instruction. The instructions can be dependent on the MCR (see page 93). = Instr. Address ID Description I/Q a.b M a.b L a.b DBX a.b DIX a.b c [d] c [AR1,m] c [AR,m] [AR1,m] [AR,m] Parameter Assign RLO to Input/output to Bit memory to Local data bit to DData bit to Instance data bit 1) Memory-indirect, area-internal Register-ind., area-internal (AR1) 1) Register-ind., area-internal (AR) 1) Area-crossing (AR1) 1) Area-crossing (AR) 1) Via parameter 1) Length in words 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / + + / + + / + + / + + / + + / + Status word for: = BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: Yes ) 3) + I, Q, M, L / DB, DI With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

40 Instructions Directly Affecting the RLO Instructions Directly Affecting the RLO The following instructions have a direct effect on the RLO. Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H CLR Set RLO to "0" Status word for: CLR BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Instruction affects: SET Set RLO to "1" Status word for: SET BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Instruction affects: NOT Negate RLO Status word for: NOT BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Yes - Instruction affects: Yes - SAVE Save RLO to the BR bit Status word for: SAVE BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: Yes , 03/01, A5E

41 Timer Instructions Timer Instructions Starting or resetting a timer. The time value must be in ACCU1-L. The instructions are triggered by an edge transition in the RLO; that is, when the status of the RLO has changed between two calls. SP SE SD Instr. Address ID Description T f T [e] Timerpara. T f T [e] Timerpara. T f T [e] Timer para. Start timer as pulse on edge change from 0 to 1 Start timer as extended pulse on edge change from 0 to 1 Start timer as ON delay on edge change from 0 to 1 Length in words 1 1) / H 414-5H 416-5H 417-5H ) / ) / Status word for: SP, SE, SD BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

42 Timer Instructions, continued Timer Instructions, continued SS Instr. Address ID Description T T f [e] Start timer as retentive ON delay on edge change from 0 to 1 Length in words 1 1) / H 414-5H 416-5H 417-5H SF Timer para. T f T [e] Timer para. Start timer as OFF delay on edge change from 0 to ) / Status word for: SS, SF BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: ) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

43 Timer Instructions, continued Timer Instructions, continued Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H FR T f Enable timer for restarting on edge 1 1) / T [e] change from 0 to 1 (reset edge bit memory for starting timer) Timer para R T f Reset timer 1 1) / T [e] Timer para Status word for: FR, R BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: ) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

44 Counter Instructions Counter Instructions The count value must be in ACCU1-L in the form of a BCD number (0-999). 3 Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H S Z f Presetting of counter on edge change 1 1) / Z [e] from 0 to Counter para R Z f Reset counter to 0 when RLO = 1 1 1) / Z [e] Counter para CU Z f Increment counter by 1 on edge 1 1) / Z [e] change from 0 to Counter para Status word for: S, R, CU BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: ) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

45 Counter Instructions, continued Counter Instructions, continued Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H CD Z f Decrement counter by 1 on edge 1 1) / Z [e] change from 0 to Counter para FR Z f Enable counter on edge change from 1 1) / Z [e] 0 to 1 (reset edge bit memory for up and down counting and setting the counter) Counter para Status word for: CD, FR BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes - Instruction affects: ) + With direct instruction addressing; Address area 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

46 Load Instructions Load Instructions Loading address identifiers into ACCU1. The contents of ACCU1 are first saved to ACCU. The status word is not affected. L Instr. Address ID Description EB a AB a PEB a MB a LB a DBB a DIB a g [d] g [AR1,m] g [AR,m] B[AR1,m] B[AR,m] Parameter Load... Input byte Output byte Peripheral input byte ( 1) ) Peripheral input byte () Bit memorybyte Local data byte Data byte Instance data byte... into ACCU1 Memory-indirect, area-internal. 4) Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) Length in words 1 ) / 1 ) / 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H ) 3) 4 + Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

47 Load Instructions, continued Load Instructions, continued If there is a remainder of 3 following an integral division of the used addresses by 4, the execution times for instructions specified on this page are doubled. L Instr. Address ID Description IW a QW a PIW a MW a LW a DBW a DIW a h [d] h [AR1,m] h [AR,m] W[AR1,m] W[AR,m] Parameter Load... Input word Output word Peripheral input word ( 1) ) Peripheral input word () Bit memory word Local data word Data word Instance data word... into ACCU1-L 4) Memory-indirect, area-internal Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) Length in words 1 ) / 1 ) / 1 ) / 1 3) / Execution time in ns 41-5H 414-5H 416-5H 417-5H ) Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With indirect instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

48 Load Instructions, continued Load Instructions, continued the used address is divisible by 4without a remainder, the execution times for instructions specified on this page is doubled. L Instr. Address ID Description ID a QD a PID a MD a LD a DBD a DID a i [d] i [AR1,m] i [AR,m] D[AR1,m] D[AR,m] Parameter Load... Input double word Output double word Peripheral-Input double word ( 1) ) Peripheral-Input double word () Bit memory double word Lokaldaten double word Data double word Instance data double word... into ACCU1 4) Memory-indirect, area-internal Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) Length in words 1 ) / 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / / / ) 3) 4 + Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With indirect instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

49 Load Instructions, continued Load Instructions, continued L L L Instr. Address ID Description k8 k16 k3 Load... 8-bit constant into ACCU1-LL 16-bit constant into ACCU1-L 3-bit constant into ACCU1 Length in words H 414-5H 416-5H 417-5H Parameter Load constant into ACCU1 (from parameter) #n Load 16-bit binary constant into ACCU1-L Load 3-bit binary constant into ACCU B#16#p Load 8-bit-hexadecimal constant into ACCU1-L W#16#p Load 16-bit hexadecimal constant into ACCU1-L DW#16#p Load 3-bit hexadecimal constant into ACCU Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

50 Load Instructions, continued Load Instructions, continued Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H L x Load 1 character xx Load characters xxx Load 3 characters xxxx Load 4 characters L D# Zeitwert Load IEC date L S5T# Zeitwert Load S7 time constant (16 bits) L TOD# Load IEC time constant Zeitwert L T# Zeitwert Load 16-bit time constant Load 3-bit time constant L C# Zählwert Load counter constant (BCD code) L B# (b1, b) Load constant as byte (b1, b) B# (b1, b, b3, b4) Load constant as 4 bytes (b1, b, b3, b4) , 03/01, A5E

51 Load Instructions, continued Load Instructions, continued Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H L P# Bi tpointer Load bit pointer L L# Integer Load 3-bit integer constant number L Real number Load floating-point number , 03/01, A5E

52 Load Instructions for Timers and Counters Load Instructions for Timers and Counters Loading a time value or count value into ACCU1. The contents of ACCU1 are first saved to ACCU. The bits of the status word are not affected. L L LC LC Instr. Address ID Description T f T [e] Timer para. Z f Z [e] Counter para. T f T [e] Timer para. Z f Z [e] Counter para. Length in words Load time value 1 1) / Load time value (addressed via parameter) Load count value 1 1) / Load count value (addressed via parameter) Load time value in BCD 1 1) / Load time value in BCD (addressed via parameter) Load count value in BCD 1 1) / Load count value in BCD (addressed via parameter) 41-5H 414-5H 416-5H 417-5H ) + With direct instruction addressing; timer/counter no. 0 to 55 Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

53 Transfer Instructions Transfer Instructions Transferring the contents of ACCU1 to the addressed operand. Note that some instructions are affected by the MCR (see page 4). The status word is not affected. T Instr. Address ID Description IB a QB a PQB MB a LB a DBB a DIB a g [d] g [AR1,m] g [AR,m] B[AR1,m] B[AR,m] Parameter Transfer contents of ACCU1-LL to... input byte output byte peripheral output byte 1) bit memory byte local data byte data byte instance data byte Memory-indirect, area internal 4) Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) Length in words 1 ) / 1 ) / 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / / / ) ) 3) 4 + Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

54 Transfer Instructions, continued Transfer Instructions, continued If there is a remainder of 3 following an integral division of the used addresses by 4, the execution times for instructions specified on this page are doubled. T Instr. Address ID Description Length in words IW a QW a PQW a MW a LW a DBW a DIW a h [d] h [AR1,m] h [AR,m] W[AR1,m] W[AR,m] Parameter Transfer contents of ACCU1-L to... Input word Output word peripheral output word 1) Bit memory word Local data word Data word Instance data word Memory-indirect, area internal 4) Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) 1 ) / 1 ) / 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / /.5 + 1) ) 3) 4 + Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

55 Transfer Instructions, continued Transfer Instructions, continued If the used address is divisible by 4without a remainder, the execution times for instructions specified on this page is doubled. T Instr. Address ID Description ID a QD a PQD a MD a LD a DBD a DID a T i [d] i [AR1,m] i [AR,m] D[AR1,m] D[AR,m] Parameter Transfer contents of ACCU1 to... Input double word Output double word Periph. output double word 1) Bit memory double word Local data double word Data double word Instance data double word Memory-indirect, area internal 4) Register-ind., area-internal (AR1) 4) Register-ind., area-internal (AR) 4) Area-crossing (AR1) 4) Area-crossing (AR) 4) Via parameter 4) Length in words 1 ) / 1 ) / 1 3) / 41-5H 414-5H 416-5H 417-5H / / / / / / / / / / / / / / / / / / / / / / /.5 + 1) ) 3) 4 + Plus acknowledgment time of the I/O module (> 1 µs), bus runtimes and synchronization time in mode With direct instruction addressing; Address area 0 to 17 With direct instruction addressing; Address area 0 to 55 I, Q, P, M, L / DB, DI Plus time required for loading the address of the instruction (see page 0), 03/01, A5E

56 Load and Transfer Instructions for Address Registers List of Instructions Load and Transfer Instructions for Address Registers Loading a double word from a memory area or register into address register 1 (AR1) or address register (AR). The status word is not affected. Instr. Address ID Description LAR1 LAR - AR DBD DID a m LD a MD a - DBD a DID a m LD a MD a Load contents from... ACCU1 Address register Data double word Instance data double word 3-bit constant as pointer Local data double word Bit memory double word... into AR1 Load contents from... ACCU1 Data double word Instance data double word 3-bit constant as pointer Local data double word Bit memory double word... into AR Length in words H 414-5H 416-5H 417-5H , 03/01, A5E

57 Load and Transfer Instructions for Address Registers, continued Load and Transfer Instructions for Address Registers, continued Transferring a double word from address register 1 (AR1) or address register (AR) to a memory area or register. The contents of ACCU1 are first saved to ACCU. The status word is not affected. Instr. Address ID Description TAR1 TAR CAR - AR DBD a DID a LD a MD a - DBD a DID a LD a MD a Transfer contents from AR1 in... ACCU1 Address register Data double word Instance data double word Local data double word Bit memory double word Transfer contents from AR in... ACCU1 Data double word Instance data double word Local data double word Bit memory double word Exchange the contents of AR1 and AR Length in words H 414-5H 416-5H 417-5H , 03/01, A5E

58 Load and Transfer Instructions for the Status Word Load and Transfer Instructions for the Status Word Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H L STW Load status word into ACCU Status word for: L BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Yes Yes Yes Yes Yes Yes Yes Yes Yes Instruction affects: Instr. Address ID Description T STW Transfer ACCU1 (bits 0 to 8) to the status word Length in words 41-5H 414-5H 416-5H 417-5H Status word for: T BR CC1 CC0 OV OS OR STA RLO /FC Instruction depends on: Instruction affects: Yes Yes Yes Yes Yes Yes Yes Yes Yes, 03/01, A5E

59 Load Instructions for DB Number and DB Length Load Instructions for DB Number and DB Length Loading the number/length of a data block into ACCU1. The old contents of ACCU1 are saved to ACCU. The status word is not affected. Instr. Address ID Description Length in words 41-5H 414-5H 416-5H 417-5H L DBNO Load number of data block L DINO Load number of instance data block L DBLG Load length of data block into byte L DILG Load length of instance data block into byte , 03/01, A5E

Instruction list of IM154 8FX PN/DP CPU SIMATIC. ET 200pro Instruction list of. Validity Range of the Instructions List

Instruction list of IM154 8FX PN/DP CPU SIMATIC. ET 200pro Instruction list of. Validity Range of the Instructions List Instruction list of IM154 8FX PN/DP SIMATIC CPU ET 200pro Instruction list of IM154 8FX PN/DP CPU Parameter Manual Validity Range of the Instructions List 1 Address Identifiers and Parameter Ranges 2 Constants

More information

A B C SIMATIC. Statement List (STL) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions 1. Comparsion Instructions 2

A B C SIMATIC. Statement List (STL) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions 1. Comparsion Instructions 2 s SIMATIC Statement List () for S7-300 and S7-400 Programming Function Manual Preface Bit Logic Instructions 1 Comparsion Instructions 2 Conversion Instructions 3 Counter Instructions 4 Data Block Instructions

More information

VIPA. Standard Operation List Manual

VIPA. Standard Operation List Manual VIPA Standard Operation List Manual HB00E_OPL_STD Rev. 11/22 May 2011 Copyright VIPA GmbH. All Rights Reserved. This document contains proprietary information of VIPA and is not to be disclosed or used

More information

Automating with STEP 7 in STL

Automating with STEP 7 in STL Automating with STEP 7 in STL SIMATICS 7-300/400 Programmable Controllers by Hans Berger Publicis MCD Verlag Contents Introduction 16 1 SIMATIC S 7-300/400 Programmable Controller 17 1.1 Structure of the

More information

SIMATIC. Statement List (STL) for S7-300 and S7-400 Programming A B. Important Notes, Contents. Bit Logic Instructions 1. Comparison Instructions 2

SIMATIC. Statement List (STL) for S7-300 and S7-400 Programming A B. Important Notes, Contents. Bit Logic Instructions 1. Comparison Instructions 2 Important Notes, Contents Bit Logic Instructions 1 SIMATIC Statement List () for S7-300 and S7-400 Programming Reference Manual This manual is part of the documentation package with the order number: 6ES7810-4CA05-8BR0

More information

A B C SIMATIC. Ladder Logic (LAD) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions 1. Comparison Instructions 2

A B C SIMATIC. Ladder Logic (LAD) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions 1. Comparison Instructions 2 s SIMATIC Ladder Logic (LAD) for S7-300 and S7-400 Programming Reference Manual Preface Bit Logic Instructions 1 Comparison Instructions 2 Conversion Instructions 3 Counter Instructions 4 Data Block Instructions

More information

SIMATIC. Standard Software for S7-300 and S7-400 Standard Functions Part 2. Preface, Contents. Bit Logic Functions. Table Functions.

SIMATIC. Standard Software for S7-300 and S7-400 Standard Functions Part 2. Preface, Contents. Bit Logic Functions. Table Functions. SIMATIC Standard Software for S7-300 and S7-400 Standard Functions Part 2 Reference Manual Preface, Contents Bit Logic Functions Table Functions 2 Shift Functions 3 Move Function and Function Block 4 Timer

More information

LEARNING ACTIVITY PACKET MECHATRONICS BASIC PLC PROGRAMMING (SIEMENS S7-300/STEP 7) B25014-AA02UEN

LEARNING ACTIVITY PACKET MECHATRONICS BASIC PLC PROGRAMMING (SIEMENS S7-300/STEP 7) B25014-AA02UEN MECHATRONICS LEARNING ACTIVITY PACKET BASIC PLC PROGRAMMING (SIEMENS S7-300/STEP 7) B25014-AA02UEN LEARNING ACTIVITY PACKET 2 BASIC PLC PROGRAMMING INTRODUCTION This LAP covers how to enter, edit, and

More information

Timers. Time Value: Bits 0 through 9 of the timer word contain the time value in binary code.

Timers. Time Value: Bits 0 through 9 of the timer word contain the time value in binary code. Timers Memory Area: Timers have an area reserved for them in the memory of your CPU. This memory area reserves one 16-bit word for each timer address. When you program in FBD, 256 timers are supported.

More information

SIMATIC. Function Block Diagram (FBD) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions. Comparsion Instructions

SIMATIC. Function Block Diagram (FBD) for S7-300 and S7-400 Programming. Preface. Bit Logic Instructions. Comparsion Instructions s SIMATIC Function Block Diagram (FBD) for S7-300 and S7-400 Programming Reference Manual Preface Bit Logic Instructions 1 Comparsion Instructions 2 Conversion Instructions 3 Counter Instructions 4 Data

More information

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1 CSIS1120A 10. Instruction Set & Addressing Mode CSIS1120A 10. Instruction Set & Addressing Mode 1 Elements of a Machine Instruction Operation Code specifies the operation to be performed, e.g. ADD, SUB

More information

SIMATIC S5. S5-155H Programmable Controller (CPU 948R) The Pocket Guide CPU 948R Order No. 6ES UR21 is included in this manual.

SIMATIC S5. S5-155H Programmable Controller (CPU 948R) The Pocket Guide CPU 948R Order No. 6ES UR21 is included in this manual. How to Use the Manual, Contents Introduction 1 SIMATIC S5 S5-155H Programmable Controller (CPU 948R) Programming Guide Volume 2/2 This manual is part of the documentation package with the order number:

More information

This chapter describes the SIMATIC instruction set for the S7-200.

This chapter describes the SIMATIC instruction set for the S7-200. 9 This chapter describes the SIMATIC instruction set for the S7-200. Chapter Overview Section escription Page 9.1 SIMATIC Bit ogic Instructions 9-2 9.2 SIMATIC Compare Instructions 9-10 9.3 SIMATIC Timer

More information

S7-400, M7-400 Programmable Controllers

S7-400, M7-400 Programmable Controllers This Supplement contains additional information about the products. It is a separate component and should be considered more up-to-date than the information in the manuals and catalogs if uncertainties

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

SIMATIC S5. S5-115U Programmable Controller CPU 941/942/943/944. Reference Guide. Order No. 6ES LA21

SIMATIC S5. S5-115U Programmable Controller CPU 941/942/943/944. Reference Guide. Order No. 6ES LA21 SIMAI S S-U Programmable ontroller 9/9/9/9 Reference Guide Order No. ES 99-A Index Page Explanations of the s ist Explanations of the Operands Basic s Boolean ogic s Set/Reset s oad s ransfer s imer s

More information

SIMATIC. ET 200S IM CPU Interface Module. Introduction. New features 2. Technical specifications 3. Product Information 06/2007 A5E

SIMATIC. ET 200S IM CPU Interface Module. Introduction. New features 2. Technical specifications 3. Product Information 06/2007 A5E SIMATIC ET 200S SIMATIC Introduction 1 New features 2 Technical specifications 3 ET 200S Product Information 06/2007 A5E01159154-01 Safety Guidelines Safety Guidelines This manual contains notices you

More information

Data sheet CC 03, Commander Compact (603-1CC21)

Data sheet CC 03, Commander Compact (603-1CC21) Data sheet CC 03, Commander Compact (603-1CC21) Technical data Order. Type 603-1CC21 CC 03, Commander Compact General information Note - Features Display: 2 x 20 characters Interface: MP²I User memory:

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

Chapter 6 Basic Function Instruction

Chapter 6 Basic Function Instruction Chapter 6 Basic Function Instruction T 6-2 C 6-5 SET 6-8 RST 6- : MC 6-2 : MCE 6-4 2: SKP 6-5 3: SKPE 6-7 4: DIFU 6-8 5: DIFD 6-9 6: BSHF 6-2 7: UDCTR 6-2 8: MOV 6-23 9: MOV/ 6-24 : TOGG 6-25 : (+) 6-26

More information

SIMIT 7. Gateways. User Manual

SIMIT 7. Gateways. User Manual SIMIT 7 Gateways User Manual Edition January 2013 Siemens offers simulation software to plan, simulate and optimize plants and machines. The simulation- and optimizationresults are only non-binding suggestions

More information

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad Introduction to MS-DOS Debugger DEBUG In this laboratory, we will use DEBUG program and learn how to: 1. Examine and modify the contents of the 8086 s internal registers, and dedicated parts of the memory

More information

SIMATIC. ET 200S Interface Module IM 151/CPU C D. Important Notes, Contents. Product Overview. Addressing. ET 200S in the PROFIBUS Network

SIMATIC. ET 200S Interface Module IM 151/CPU C D. Important Notes, Contents. Product Overview. Addressing. ET 200S in the PROFIBUS Network SIMATIC ET 200S Interface Module IM 151/CPU Manual This manual is part of the document package with the order number: 6ES7 151-1AA00-8BA0 Important Notes, Contents Product Overview Addressing 2 ET 200S

More information

Code segment Stack segment

Code segment Stack segment Registers Most of the registers contain data/instruction offsets within 64 KB memory segment. There are four different 64 KB segments for instructions, stack, data and extra data. To specify where in 1

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands

More information

Assembly Language Design

Assembly Language Design Assembly Language Design Instruction Set 1. Data Movement 2. Arithmetic 3. Logical 4. Conversion 5. Program Control 6. System Control Syntax & System Characteristics 1. Assembly Directives 2. Constants

More information

Digital IP Cell 8-bit Microcontroller PE80

Digital IP Cell 8-bit Microcontroller PE80 1. Description The is a Z80 compliant processor soft-macro - IP block that can be implemented in digital or mixed signal ASIC designs. The Z80 and its derivatives and clones make up one of the most commonly

More information

Introduction to Microprocessor

Introduction to Microprocessor Introduction to Microprocessor The microprocessor is a general purpose programmable logic device. It is the brain of the computer and it performs all the computational tasks, calculations data processing

More information

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS Q.2 a. Draw pin diagram and signal group diagram of 8085 microprocessor. (8) b. List out the various categories of the 8085 instructions. Give examples of the instructions for each group. (8) Data transfer

More information

SIMATIC. Communications processor CP First Steps in Commissioning. Getting Started 09/2008 A5E

SIMATIC. Communications processor CP First Steps in Commissioning. Getting Started 09/2008 A5E SIMATIC Communications processor Getting Started 09/2008 A5E02291899-01 Legal information Warning notice system This manual contains notices you have to observe in order to ensure your personal safety,

More information

Special Memory (SM) Bits

Special Memory (SM) Bits C Special memory bits provide a variety of status and control functions, and also serve as a means of communicating information between the CPU and your program. Special memory bits can be used as bits,

More information

Intel 8086 MICROPROCESSOR ARCHITECTURE

Intel 8086 MICROPROCESSOR ARCHITECTURE Intel 8086 MICROPROCESSOR ARCHITECTURE 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14, 16

More information

PLC AUTOMATION SYSTEM LABORATORY. Manual

PLC AUTOMATION SYSTEM LABORATORY. Manual MRS AVN COLLEGE POLYTECHNIC VISAKHAPATNAM DEPARTMENT OF ELECTRICAL ELECTRONICS ENGINEERING PLC AUTOMATION SYSTEM LABORATORY Manual PLC Automation System Laboratory Lab 1 : Getting familiar with Step 7-

More information

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Intel 8086 MICROPROCESSOR. By Y V S Murthy Intel 8086 MICROPROCESSOR By Y V S Murthy 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14,

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

A PLC Achievement Test

A PLC Achievement Test A PLC Achievement Test Abstract - Recent actions by EET leadership signaled development of a nationally normed assessment exam for graduating EET students. This decision was made by the Electrical and

More information

Ladder logic (LAD) representation Statement list (STL) representation Available in these CPUs

Ladder logic (LAD) representation Statement list (STL) representation Available in these CPUs 1 he following conventions are used in this chapter to illustrate the equivalent ladder logic and statement list instructions and the CPUs in which the instructions are available: = n n adder logic ()

More information

8088/8086 Programming Integer Instructions and Computations

8088/8086 Programming Integer Instructions and Computations Unit3 reference 2 8088/8086 Programming Integer Instructions and Computations Introduction Up to this point we have studied the software architecture of the 8088 and 8086 microprocessors, their instruction

More information

Computer Organization CS 206 T Lec# 2: Instruction Sets

Computer Organization CS 206 T Lec# 2: Instruction Sets Computer Organization CS 206 T Lec# 2: Instruction Sets Topics What is an instruction set Elements of instruction Instruction Format Instruction types Types of operations Types of operand Addressing mode

More information

CPU 224. The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design

CPU 224. The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design CPU 224 The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design The CPU 224 is equipped with the following: Integral 24 V encoder/load current

More information

SIMATIC. Communications processor CP 340 first commissioning steps. Getting Started 04/2005 A5E

SIMATIC. Communications processor CP 340 first commissioning steps. Getting Started 04/2005 A5E SIMATIC Communications processor Getting Started 04/2005 A5E00442606-01 Safety Guidelines This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent

More information

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats William Stallings Computer Organization and Architecture 8 th Edition Chapter 11 Instruction Sets: Addressing Modes and Formats Addressing Modes Immediate Direct Indirect Register Register Indirect Displacement

More information

Motors I Automation I Energy I Transmission & Distribution I Coatings. SoftPLC CFW100. User Manual

Motors I Automation I Energy I Transmission & Distribution I Coatings. SoftPLC CFW100. User Manual Motors I Automation I Energy I Transmission & Distribution I Coatings SoftPLC CFW User Manual SoftPLC User Manual Series: CFW Language: English Document Number: 2965849 / 2 Publication Date: /24 Contents

More information

Intel 8086: Instruction Set

Intel 8086: Instruction Set IUST-EE (Chapter 6) Intel 8086: Instruction Set 1 Outline Instruction Set Data Transfer Instructions Arithmetic Instructions Bit Manipulation Instructions String Instructions Unconditional Transfer Instruction

More information

Berger Automating with SIMATIC S7-1500

Berger Automating with SIMATIC S7-1500 Berger Automating with SIMATIC S7-1500 Automating with SIMATIC S7-1500 Configuring, Programming and Testing with STEP 7 Professional by Hans Berger Publicis Publishing Bibliographic information from the

More information

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers. Lecture 5: Computer Organization Instruction Execution Computer Organization Addressing Buses Fetch-Execute Cycle Computer Organization CPU Control Unit U Input Output Memory Components Control Unit fetches

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

SIMATIC. Automation system BRAUMAT/SISTARClassic V5.3 Block library basic. Preface, Content. Blocks in SIS_USR. Appendix. Manual

SIMATIC. Automation system BRAUMAT/SISTARClassic V5.3 Block library basic. Preface, Content. Blocks in SIS_USR. Appendix. Manual Preface, Content SIMATIC Automation system BRAUMAT/SISTARClassic V5.3 Block library basic Blocks in SIS_USR Appendix 1 2 3 4 Manual This manual is part of the documentation package with the order number:

More information

Instruction Sets: Characteristics and Functions Addressing Modes

Instruction Sets: Characteristics and Functions Addressing Modes Instruction Sets: Characteristics and Functions Addressing Modes Chapters 10 and 11, William Stallings Computer Organization and Architecture 7 th Edition What is an Instruction Set? The complete collection

More information

Chapter. Computer Architecture

Chapter. Computer Architecture Chapter 4 Computer Architecture Figure 4.1 Input device Central processing unit Main memory Output device Bus Data flow Control Figure 4.2 Central processing unit () Status bits ( ) Accumulator ( ) Index

More information

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers o How to disassemble an MC9S12 instruction sequence o Binary numbers are a code and represent what the programmer intends for the

More information

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers o How to disassemble an MC9S12 instruction sequence o Binary numbers are a code and represent what the programmer intends for the

More information

Data sheet CPU 115 (115-6BL02)

Data sheet CPU 115 (115-6BL02) Data sheet CPU 115 (115-6BL02) Technical data Order no. 115-6BL02 Type CPU 115 General information Note - Features 16 (20) inputs 16 (12) outputs from which are 2 PWM 50 khz outputs 16 kb work memory,

More information

Migration of STL Programs to S7-1500

Migration of STL Programs to S7-1500 FAQ January 2013 Migration of Programs to S7-1500 STEP 7 (TIA Portal) https://support.industry.siemens.com/cs/ww/en/view/67655405 This entry is from the Siemens Industry Online Support. The general terms

More information

S7-300 Programmable Controller

S7-300 Programmable Controller S7-300 Programmable Controller This description belongs to the following documentation packages with the order numbers given: S7 300 Programmable Controller 6ES7 398 8AA02 8BA0 ET 200M Distributed I/O

More information

The Instruction Set. Chapter 5

The Instruction Set. Chapter 5 The Instruction Set Architecture Level(ISA) Chapter 5 1 ISA Level The ISA level l is the interface between the compilers and the hardware. (ISA level code is what a compiler outputs) 2 Memory Models An

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

icroprocessor istory of Microprocessor ntel 8086:

icroprocessor istory of Microprocessor ntel 8086: Microprocessor A microprocessor is an electronic device which computes on the given input similar to CPU of a computer. It is made by fabricating millions (or billions) of transistors on a single chip.

More information

PLC Programming D R. T A R E K A. T U T U N J I

PLC Programming D R. T A R E K A. T U T U N J I PLC Programming D R. T A R E K A. T U T U N J I PLC Programming As PLCs developed and expanded, programming languages have developed with them. The three types of programming languages used in PLCs are:

More information

csitnepal Unit 3 Basic Computer Organization and Design

csitnepal Unit 3 Basic Computer Organization and Design Unit 3 Basic Computer Organization and Design Introduction We introduce here a basic computer whose operation can be specified by the resister transfer statements. Internal organization of the computer

More information

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

S7-PLCSIM V5.3 incl. SP1

S7-PLCSIM V5.3 incl. SP1 SIMATIC S7-PLCSIM V5.3 incl. SP1 User Manual Edition: 01/2005 Copyright and Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety, as well as to protect

More information

Data sheet VIPA CPU 115DP (115-6BL22)

Data sheet VIPA CPU 115DP (115-6BL22) Data sheet VIPA CPU 115DP (115-6BL22) Technical data Order no. Type 115-6BL22 VIPA CPU 115DP General information Note - Features Work memory [KB]: 16 Load memory [KB]: 24 Onboard 16x DI / 12x DO / 4x DIO

More information

Computer Organisation CS303

Computer Organisation CS303 Computer Organisation CS303 Module Period Assignments 1 Day 1 to Day 6 1. Write a program to evaluate the arithmetic statement: X=(A-B + C * (D * E-F))/G + H*K a. Using a general register computer with

More information

Computer Architecture

Computer Architecture Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two

More information

SIMATIC S7-PLCSIM V5.0. User Manual. Edition 06/

SIMATIC S7-PLCSIM V5.0. User Manual. Edition 06/ SIMATIC S7-PLCSIM V5.0 User Manual Edition 06/2001 2809918-0002 Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA) SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA) TIA Portal Module 020-060 Diagnostics and Troubleshooting SCE Training Curriculum Page 1 of 36 To be used

More information

Computer Architecture 1 ح 303

Computer Architecture 1 ح 303 Lecture 4 A. Addressing MODES 1. Introduction to assembly language programming: Program is a sequence of commands used to tell a microcomputer what to do. Each command in a program is an instruction Programs

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Central processing units CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226

Central processing units CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226 Overview CPU 226 The high-performance package for complex technical tasks With additional PPI port for more flexibility and communication options With 40 inputs/outputs on board Expansion capability for

More information

Instruction Set Architecture

Instruction Set Architecture C Fortran Ada etc. Basic Java Instruction Set Architecture Compiler Assembly Language Compiler Byte Code Nizamettin AYDIN naydin@yildiz.edu.tr http://www.yildiz.edu.tr/~naydin http://akademik.bahcesehir.edu.tr/~naydin

More information

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA) SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA) Siemens Automation Cooperates with Education TIA Portal Module 020-060 Diagnostics and Troubleshooting SCE

More information

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E09. PROFINET with 2x CPU 315F-2 PN/DP

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E09. PROFINET with 2x CPU 315F-2 PN/DP Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE PROFINET with 2 x CPU 315F-2 PN/DP T I A Training Document Page 1 of 45 Module This document has been

More information

Assembly Language. Dr. Esam Al_Qaralleh CE Department Princess Sumaya University for Technology. Overview of Assembly Language

Assembly Language. Dr. Esam Al_Qaralleh CE Department Princess Sumaya University for Technology. Overview of Assembly Language 4345 Assembly Language Assembly Language Dr. Esam Al_Qaralleh CE Department Princess Sumaya University for Technology Assembly Language 3-1 Overview of Assembly Language Advantages: Faster as compared

More information

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA) SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA) TIA Portal Module 030-030 Data Blocks of SIMATIC S7-300 SCE Training Curriculum Page 1 of 31 To be used

More information

Assembly Language programming (1)

Assembly Language programming (1) EEE3410 Microcontroller Applications LABORATORY Experiment 1 Assembly Language programming (1) Name Class Date Class No. Marks Familiarisation and use of 8051 Simulation software Objectives To learn how

More information

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA,

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Data sheet SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated value (DC) permissible range, lower

More information

9/25/ Software & Hardware Architecture

9/25/ Software & Hardware Architecture 8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called

More information

CS401 Assembly Language Solved MCQS From Midterm Papers

CS401 Assembly Language Solved MCQS From Midterm Papers CS401 Assembly Language Solved MCQS From Midterm Papers May 14,2011 MC100401285 Moaaz.pk@gmail.com MC100401285@gmail.com PSMD01(IEMS) Question No:1 ( Marks: 1 ) - Please choose one The first instruction

More information

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

UNIT-II. Part-2: CENTRAL PROCESSING UNIT Page1 UNIT-II Part-2: CENTRAL PROCESSING UNIT Stack Organization Instruction Formats Addressing Modes Data Transfer And Manipulation Program Control Reduced Instruction Set Computer (RISC) Introduction:

More information

UNIT 2 PROCESSORS ORGANIZATION CONT.

UNIT 2 PROCESSORS ORGANIZATION CONT. UNIT 2 PROCESSORS ORGANIZATION CONT. Types of Operand Addresses Numbers Integer/floating point Characters ASCII etc. Logical Data Bits or flags x86 Data Types Operands in 8 bit -Byte 16 bit- word 32 bit-

More information

Siemens Spares SIMATIC. CFC for M7 Continuous Function Chart A B. Preface, Contents. CFC for SIMATIC M7. Handling Blocks.

Siemens Spares SIMATIC. CFC for M7 Continuous Function Chart A B. Preface, Contents. CFC for SIMATIC M7. Handling Blocks. Preface, Contents SIMATIC Continuous Function Chart Manual CFC for SIMATIC M7 1 Handling Blocks 2 Configuring Tasks 3 Compiling and Downloading 4 Test and Commissioning 5 Creating Block Types 6 This manual

More information

Supply voltage. Input current. Encoder supply. Memory

Supply voltage. Input current. Encoder supply. Memory Data sheet SIMATIC S7-200, CPU 224XP COMPACT UNIT, DC POWER SUPPLY 14 DI DC/10 DO DC, 2 AI, 1 AO 12/16 KB CODE/10 KB DATA, 2 PPI/FREEPORT PORTS Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated

More information

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE B5 Structured programming with function blocks

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE B5 Structured programming with function blocks Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE B5 T I A Training document Page 1 of 20 Module B5 This document was provided by Siemens A&D SCE (automation

More information

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital hardware modules that accomplish a specific information-processing task. Digital systems vary in

More information

Chapter 6 Descriptions of Function Instructions

Chapter 6 Descriptions of Function Instructions Chapter 6 Descriptions of Function Instructions 6.1 The Format of Function Instructions In this chapter we will introduce the function instructions of FB-PLC in details. All the explanations for each function

More information

3.1 DATA MOVEMENT INSTRUCTIONS 45

3.1 DATA MOVEMENT INSTRUCTIONS 45 3.1.1 General-Purpose Data Movement s 45 3.1.2 Stack Manipulation... 46 3.1.3 Type Conversion... 48 3.2.1 Addition and Subtraction... 51 3.1 DATA MOVEMENT INSTRUCTIONS 45 MOV (Move) transfers a byte, word,

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING

More information

Question Bank Part-A UNIT I- THE 8086 MICROPROCESSOR 1. What is microprocessor? A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary information

More information

C7-623/P (MLFB 6ES DE01-0AE3) C7-624/P (MLFB 6ES DE01-0AE3) C7-626/P (MLFB 6ES DG02-0AE3) C7-626/P DP (MLFB 6ES DG02-0AE3)

C7-623/P (MLFB 6ES DE01-0AE3) C7-624/P (MLFB 6ES DE01-0AE3) C7-626/P (MLFB 6ES DG02-0AE3) C7-626/P DP (MLFB 6ES DG02-0AE3) Control Systems C7-623/P (MLFB 6ES7 623-1DE01-0AE3) C7-624/P (MLFB 6ES7 624-1DE01-0AE3) C7-626/P (MLFB 6ES7 626-1DG02-0AE3) C7-626/P DP (MLFB 6ES7 626-2DG02-0AE3) The control systems listed above have

More information

Note that none of the above MAY be a VALID ANSWER.

Note that none of the above MAY be a VALID ANSWER. ECE 270 Learning Outcome 4-1 - Practice Exam / Solution OUTCOME #4: An ability to design and implement computer logic circuits. Multiple Choice select the single most appropriate response for each question.

More information

Siemens S7 MPI Driver PTC Inc. All Rights Reserved.

Siemens S7 MPI Driver PTC Inc. All Rights Reserved. 2017 PTC Inc. All Rights Reserved. 2 Table of Contents Siemens S7 MPI Driver 1 Table of Contents 2 Siemens S7 MPI Driver 3 Overview 3 Setup 4 Channel Properties General 4 Channel Properties Serial Communications

More information

Internal architecture of 8086

Internal architecture of 8086 Case Study: Intel Processors Internal architecture of 8086 Slide 1 Case Study: Intel Processors FEATURES OF 8086 It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 220 memory locations (1

More information

Commander compact. Commander compact Lines displays. System SLIO. System 100V. Lines displays Commander compact 603-1CC CC21.

Commander compact. Commander compact Lines displays. System SLIO. System 100V. Lines displays Commander compact 603-1CC CC21. 0-CC 0-CC Order number 0-CC 0-CC Figure Type CC 0, Commander Compact CC 0DP, Commander Compact, PROFIBUS-DP slave General information Note - - Features x 0 characters, x 0 characters, Integrated PLC-CPU,

More information

CPU 412H. Function. Parameterizable properties

CPU 412H. Function. Parameterizable properties CPU 412H Function Block protection: In addition to the keylock switch, a password concept protects the user program from unauthorized access. Integrated HMI services: In the case of HMI devices, the user

More information

2. ADDRESSING METHODS

2. ADDRESSING METHODS 2 Addressing Methods STUDY MATERIALS ON COMPUTER ORGANIZATION (As per the curriculum of Third semester BSc Electronics of Mahatma Gandh Uniiversity) Compiled by Sam Kollannore U Lecturer in Electronics

More information

Assembly Language programming (2)

Assembly Language programming (2) EEE3410 Microcontroller Applications LABORATORY Experiment 2 Assembly Language programming (2) Name Class Date Class No. Marks Arithmetic, Logic and Jump instructions Objectives To learn and practice the

More information

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples. (1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on

More information