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.

5 Understanding ProgrammingInputInput ON delay time(Interrupt Input <strong>Unit</strong> retrieval)Ready for nextinterrupt Input <strong>Unit</strong> retrievalInterrupt task executionI/O interrupt taskinterrupt response timeLadder programexecution timeCyclic taskreturn timeCycle execution task execution(main program)External InterruptsInterrupt processing is performed at the <strong>CPU</strong> <strong>Unit</strong> in PLCs containing Special I/O <strong>Unit</strong>s or <strong>CPU</strong> Bus<strong>Unit</strong>s. Settings do not have to be made at the <strong>CPU</strong> <strong>Unit</strong> unless the program contains an external interrupttask for a particular task number. The Special I/O <strong>Unit</strong> or <strong>CPU</strong> Bus <strong>Unit</strong> must be connected in the<strong>CPU</strong> Rack to enable external interrupts.Receiving external interrupt tasks is always enabled. The maximum number of tasks is 256 (interrupttask numbers 0 to 255).Example: External Interrupt from a CJ1W-CT021 High-speed Counter <strong>Unit</strong><strong>CPU</strong> <strong>Unit</strong>Cyclic taskSpecifiesexternal interrupttask number andrequestsinterruptprocessing.CJ1W-CT021Data55-2 TasksInterrupt task5-2-3 Interrupt TasksI/O memoryTo communicate to the <strong>CPU</strong> <strong>Unit</strong> the status information for the two external control inputs and 32 outputsof this <strong>Unit</strong> for other than I/O refreshing, set the external control inputs or outputs so that they triggerthe external interrupt task.Precautions for Correct UseDo not use the same number for more than one interrupt task.If an external interrupt task (0 to 255) has the same number as a power OFF task (task 1),scheduled interrupt task (task 2 or 3), or I/O interrupt task (100 to 131), the interrupt task will beexecuted for either interrupt condition (external interrupt or the other interrupt condition). Overhead Time for External Interrupt TasksFor external interrupt tasks, the time until the <strong>CPU</strong> <strong>Unit</strong> receives the interrupt signal depends on thetype of <strong>Unit</strong> or Board (i.e., Special I/O <strong>Unit</strong> or CJ-series <strong>CPU</strong> Bus <strong>Unit</strong>) that requests execution of theexternal interrupt task from the <strong>CPU</strong> <strong>Unit</strong> and the service type of the interrupt request. For details,refer to the relevant <strong>Unit</strong> manual.<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>5-27

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

Saved successfully!

Ooh no, something went wrong!