Download Technical Manual TNC 360
Transcript
3.5.2 LESS THAN (<) < Abbreviation for the PLC Editor: < (LESS THAN) Execution time [µs] Number of bytes Byte/Word/Double 1.8 to 2.4 6 Constant 2.0 8 Operands: B, W, D, K Operation: With this command, a direct transfer from Word to Logic processing occurs. The contents of the Word Accumulator are compared with the contents of the addressed operand. If the Word Accumulator is smaller than the operand, the condition is true and the Logic Accumulator is set to 1. If the Word Accumulator is greater than or equal to the operand, the Logic Accumulator is set to 0. The comparison takes place over the number of bits in the operand, i.e. B = 8 bit, W = 16 bit and D = K = 32 bit. Example: A constant is to be compared with the contents of Doubleword D8. The result is then assigned to Marker M500. Initial state: Constant = 16 000 Doubleword D8 = 15 000 The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator contents (2 147 483 647). Line Instruction Accumulator Contents x x x x Operand Contents x x x x x x 1 6 0 0 0 1 L K16000 1 < D8 . . . 7 0 ... x x x x x x 0 x x x x x x x 2 = M500 ... x x x x x x 0 x x x x x x x Bit 31 1 5 0 0 0 0 Line 1: The constant is loaded into the Accumulator Line 2: The contents of the Accumulator and the Operand are compared (Accumulator < Operand ?). As the condition is not fulfilled the Logic Accumulator is set to 0. Line 3: The contents of the Logic Accumulator (The result of the comparison) are assigned to Marker M500. 7-64 TNC 360 3 Commands 8/95
Related documents
Technical Manual TNC 407, TNC 415 B, TNC 425
ElektronikNytt.com
User's Manual TNC 406, TNC 416
Technical Manual TNC 116 up to NC Software: 246
Technical Manual TNC 122
Special price
Service Manual TNC 306, TNC 360
User's Manual TNC 122
Modo de empleo TNC 122
Compaq EVO N410C User's Manual
MP3XXX User Manual _English_
Service Manual - Manuales de Service