Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

24.2 INSTRUCTION TYPES

 

· There are basic categories of instructions,

  1. Basic (discussed before)
    1. - relay instructions
    2. - timer instructions
    3. - counter instructions
  2. Program Control
    1. - branching/looping
    2. - immediate inputs/outputs
    3. - fault/interrupt detection
  3. Basic Data Handling
    1. - moves
    2. - computation instructions
    3. - boolean instructions
    4. - conversion
  4. Logical
    1. - comparisons
  5. Advanced Data Handling
    1. - file instructions
    2. - shift registers/stacks
  6. Complex
    1. - PID
    2. - communications
    3. - high speed counters
    4. - ASCII string functions

 

· The reader should be aware that some functions are positive edge triggered (i.e. they only work the scan is active). while most are active any time the input is active. Some examples of edge triggered and non-edge triggered functions are listed below,

  1. Edge Triggered
    1. CTU, CTD
  2. Non-edge triggered
    1. TON, TRO, TOF, ADD, MUL, etc.

 

 

24.2.1 Basic Data Handling

24.2.2 Logical Functions

24.2.3 Boolean Operations

24.2.4 Binary Mathematics

24.2.5 BCD (Binary Coded Decimal)

24.2.6 Advanced Data Handling

24.2.7 Complex Functions

24.2.8 Program Control Structures

24.2.9 Block Transfer Functions