Logical controllers' programming 4- Treatment of Data 4.1- Comparison of Data Programming.

Slides:



Advertisements
Similar presentations
Slides created by: Professor Ian G. Harris Efficient C Code  Your C program is not exactly what is executed  Machine code is specific to each ucontroller.
Advertisements

Microprocessors.
There are two types of addressing schemes:
PLC Timer Instructions
Flip-Flops, Registers, Counters, and a Simple Processor
Processor System Architecture
The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
Logical controllers' programming 3-Other instructions 3.1- Memorization of data Programming.
TK 2633 Microprocessor & Interfacing
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Memory - Registers Instruction Sets
ARM 7 Datapath. Has “BIGEND” input bit, which defines whether the memory is big or little endian Modes: ARM7 supports six modes of operation: (1) User.
80x86 Processor Architecture
Chapter 19 Fundamental PLC Programming
The 8051 Microcontroller and Embedded Systems
Introduction to Embedded Systems
Instruction Set Design by Kip R. Irvine (c) Kip Irvine, All rights reserved. You may modify and copy this slide show for your personal use,
Khaled A. Al-Utaibi  Introduction  Arithmetic Instructions  Basic Logical Instructions  Shift Instructions  Rotate Instructions.
3.7 String Instructions Specifying the Operands’ Size and Address and the String Direction STRING = a data collection in memory. String ELEMENTS can be:
Computer Architecture Lecture 13 – part 2 by Engineer A. Lecturer Aymen Hasan AlAwady 7/4/2014 University of Kufa - Information Technology Research and.
Low Level Programming Lecturer: Duncan Smeed Low Level Program Control Structures.
PLC Counter Instructions
Dr. José M. Reyes Álamo 1.  Review: ◦ Statement Labels ◦ Unconditional Jumps ◦ Conditional Jumps.
Microprocessors Monday, Apr. 13 Dr. Asmaa Farouk Faculty of Engineering, Electrical Department, Assiut University.
9-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Execution of an instruction
1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag.
Microprocessors The ia32 User Instruction Set Jan 31st, 2002.
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
Ass. Prof. Dr Masri Ayob Lecture 5: Arithmetic and Logic Instructions TK 2633: Microprocessor & Interfacing.
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
Computer Architecture Lecture 11 by Engineer A. Lecturer Aymen Hasan AlAwady 10/3/2014 University of Kufa - Information Technology Research and Development.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
PROGRAMMABLE LOGIC CONTROLLER (PLC) AND AUTOMATION
LEA instruction The LEA instruction can be used to get the offset address of a variable Example ORG 100h MOV AL, VAR1 ; check value of VAR1 by moving it.
October 1, 2003Serguei A. Mokhov, 1 SOEN228, Winter 2003 Revision 1.2 Date: October 25, 2003.
3.4 Addressing modes Specify the operand to be used. To generate an address, a segment register is used also. Immediate addressing: the operand is a number.
Assembly Language Programming of 8085 BY Prof. U. V. THETE Dept. of Computer Science YMA.
III] Logical Group 1)ANA r : LOGICAL AND REGISTER WITH ACCUMULATOR Format : [A] [A] Λ [r] Addressing : Register addressing Group : Logical group Bytes.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Microprocessor & Assembly Language Arithmetic and logical Instructions.
Page 62 in Chassaing. The.start directive links the section name to start at location address. For the section to have a valid starting address, the.start.
C Examples 6. Download Links MPLAB IDE dsPIC30F4011/4012 Data Sheet dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Assembly Language Wei Gao. Assembler language Instructions.
Unit 1 Instruction set M.Brindha AP/EIE
Basic Computer Organization and Design
9 CHAPTER PLC Counter Instructions. 9 CHAPTER PLC Counter Instructions.
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
Timer and Interrupts.
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
Micro-Operations A computer executes a program Fetch/execute cycle
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Assembly Language Programming Part 2
Microcomputer Programming
CS-401 Assembly Language Programming
GE Counters and Order of Operation
Comparison and Data-handling Instructions
Comparison and Data-Handling Instructions
Chapter 8 Central Processing Unit
TK2633: MICROPROCESSOR & INTERFACING
THE FETCH-EXECUTE CYCLE.
Ladder programming Counter Instruction S7 300
Presentation transcript:

Logical controllers' programming 4- Treatment of Data 4.1- Comparison of Data Programming

Logical controllers' programming CMP This instruction allows to compare two numeric values being the result dice for the state of three special relays Comparison of Data comparison The instruction CMP is always preceded by a logical condition that when it is ON it allows the accomplishment of the comparison.

Logical controllers' programming Whenever this instruction is executed, the value contained in 001 is compared, with the value contained in Comparison of Data CMP

Logical controllers' programming 4.1- Comparison of Data CMP If 1 > 2 the relay is On If 1 < 2 the relay is On If 1 = 2 the relay is On

Logical controllers' programming 4.1- Comparison of Data CMP These special relays referred previously depends on controller for controller, for the that the user will have to discover in each controller which the relays that it allow to do it these functions.

Logical controllers' programming MOV The instruction MOVE it allows to copy the value contained in 001 for the expressed destiny in 002, whenever the logical condition that precedes this instruction is ON Transfer of Data

Logical controllers' programming Example of application of the instruction MOVE The instruction MOV copies the Counters's content (001) for the channel of exits (010). The Counter decrease to the rhythm of the pulse generated by the special relay Transfer of data

Logical controllers' programming Example of application of the instruction MOVE reset On When the counter reaches 0 (zero) automatically it gives him the counter's reset and east returns to the initial value. So that the function Move it is always executed, it has of being always preceded by a special relay On 4.2- Transfer of data

Logical controllers' programming The function SHIFT allows to implement a flag displacement beginning in to Word 001 to end in to Word Displacement of Data SFT

Logical controllers' programming 4.3- Displacement of Data SFT smaller equal To Word 001 it should have a smaller address or equal to Word 002 and the two should belong to the same area of memory. This instruction has to always be controlled by three logical conditions.

Logical controllers' programming 4.3- Displacement of Data SFT  The first defines the state of the bit that enters in the channel 001. In the moment of the displacement, the bit 0 (zero) of the word 001 it will have the logical state of this condition.  The second, it defines the moment of the displacement, that is verified whenever there is a transition of OFF for On in this condition. On Off.  The third, are the condition of RESET. When its state is On, the bits of the words affected by the function SHIFT, are forced Off.