1 / 11

Logical controllers' programming

4- Treatment of Data. Logical controllers' programming. 4.1- Comparison of Data. Programming. CMP. Logical controllers' programming. This instruction allows to compare two numeric values being the result dice for the state of three special relays. 4.1- Comparison of Data.

Télécharger la présentation

Logical controllers' programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

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

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

  5. CMP Logical controllers' programming 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. 4.1- Comparison of Data

  6. 4.2- Transfer of Data 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.

  7. Example of application of the instruction MOVE Logical controllers' programming 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. 4.2- Transfer of data

  8. Example of application of the instruction MOVE Logical controllers' programming 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

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

  10. SFT Logical controllers' programming 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. 4.3- Displacement of Data This instruction has to always be controlled by three logical conditions.

  11. 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. Logical controllers' programming  The second, it defines the moment of the displacement, that is verified whenever there is a transition of OFF for On in this condition. 4.3- Displacement of Data  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.

More Related