13.07.2015 Views

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AppendicesInstruction Mnemonic Code Symbol/Operand Function Location ExecutionconditionTime ComparisonUNSIGNEDCOMPAREDOUBLEUNSIGNEDCOMPARELD, AND,OR + = DT, DT, < DT, DT,>= DTCMP!CMP341 (=DT)342 (DT)343 (=DT)LD (LOAD):AND:OR:SymbolCS1S2SymbolCS1S2SymbolCS1S2C: Control wordS1: 1st word ofpresent timeS2: 1st word ofcomparison timeTime comparison instructions compare two BCD time valuesand create an ON execution condition when the comparisoncondition is true.There are three types of time comparison instructions, LD(LOAD), AND, and OR. Time values (year, month, day, hour,minute, and second) can be masked/unmasked in the comparisonso it is easy to create calendar timer functions.LD:LogicstartAND,OR:ContinuesonrungLD: NotrequiredAND, OR:Required020 Output RequiredCMP(020) Compares two unsigned binary values (constants and/orthe contents of specified words) and outputs the result toS 1the Arithmetic Flags in the Auxiliary Area.S Unsigned binary2comparisonS1: Comparisondata 1S2: ComparisonArithmetic Flags(>, >=, =, =, =, =, =, =, =,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!