logical controllers' programming 4- treatment of data 4.1- comparison of data programming

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

Upload: allison-summers

Post on 01-Jan-2016

216 views

Category:

Documents


4 download

TRANSCRIPT

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

Logical controllers' programming

4- Treatment of Data

4.1- Comparison of Data

Programming

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

Logical controllers' programming

CMP CMP

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 comparisoncomparison.

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

Logical controllers' programming

Whenever this instruction is executed, the value contained in 001 is compared, with the value contained in 002.

4.1- Comparison of Data

CMP CMP

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

Logical controllers' programming

4.1- Comparison of Data

CMP CMP

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

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

Logical controllers' programming

4.1- Comparison of Data

CMP 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.

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

Logical controllers' programming

MOVMOVThe 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.

4.2- Transfer of Data

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

Logical controllers' programming

Example of application of the instruction MOVEExample 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.

4.2- Transfer of data

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

Logical controllers' programming

Example of application of the instruction MOVEExample of application of the instruction MOVE

When the counter reaches 0 (zero) automatically it gives him the counter's resetreset 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 On

4.2- Transfer of data

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

Logical controllers' programming

The function SHIFT allows to implement a flag displacement beginning in to Word 001 to end in to Word 002.

4.3- Displacement of Data

SFT SFT

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

Logical controllers' programming

4.3- Displacement of Data

SFT SFT

To Word 001 it should have a smallersmaller address or equalequal 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.

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

Logical controllers' programming

4.3- Displacement of Data

SFT 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.

The third, are the condition of RESET. When its state is OnOn, the bits of the words affected by the function SHIFT, are forced Off.Off.