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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AppendicesInstruction Mnemonic Code Symbol/Operand Function Location7-SEGMENTDECODERSDEC@SDECExecutioncondition078 Output RequiredSDEC(078)Converts the hexadecimal contents of the designateddigit(s) into 8-bit, 7-segment display code and places it intoSthe upper or lower 8-bits of the specified destination words.DiDiDNumber of digitsFirst digit to convertS: Source wordDi: Digit designatorD: 1st destinationwordDIGITALSWITCHINPUTTEN KEYINPUT7-segmentRightmost 8 bits (0)1: Leftmost 8 bits 0: Rightmost 8 bitsDSW 210 Reads the value set on an external digital switch (or thumbwheelDSW (210)Iswitch) connected to an Input <strong>Unit</strong> or Output <strong>Unit</strong> and stores the4-digit or 8-digit BCD data in the specified words.ODC1C2I: Data inputword (D0 to D3)O: Output wordD: 1st result wordC1: Number ofdigitsC2: System wordTKY 211 Reads numeric data from a ten-key keypad connected to an InputTKY (211) <strong>Unit</strong> and stores up to 8 digits of BCD data in the specified words.ID1D2OutputOutputRequiredRequiredA-1 Instruction Functions AppA-1-21 Basic I/O <strong>Unit</strong> InstructionsI: Data input wordD1: 1st register wordD2: Key input wordHEXADECI-MAL KEYINPUTHKY 212 Reads numeric data from a hexadecimal keypad connected to anHKY (212)IInput <strong>Unit</strong> and Output <strong>Unit</strong> and stores up to 8 digits of hexadecimaldata in the specified words.ODCOutputRequiredI: Data inputwordO: Output wordD: 1st registerwordC: System wordMATRIXINPUTMTR 213 Inputs up to 64 signals from an 8 × 8 matrix connected to an InputMTR (213)I<strong>Unit</strong> and Output <strong>Unit</strong> (using 8 input points and 8 output points)and stores that 64-bit data in the 4 destination words.ODCOutputRequiredI: Data inputwordO: Output wordD: 1st destinationwordC: System word<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>A-57

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

Saved successfully!

Ooh no, something went wrong!