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 ProgrammingDuplicate Refresh Error Cause Flag (A426.15)/Task Number Generating theDuplicate Refresh Error (A426.00 to 426.11)A402.13 Interrupt Task Error Description A426.15Interrupt TaskError(when InterruptTask Error Detectionis enabled inthe PLC Setup)If Duplicate Refresh Error Detection is enabled inthe PLC Setup, the Duplicate Refresh Error Flagwill turn ON if the following conditions occur for thesame Special I/O <strong>Unit</strong>.• There is a conflict between an IORF, FIORF,IORD, or IOWR instruction executed in the interrupttask and an IORF, FIORF, IORD, or IOWRinstruction executed in the cyclic task.• There is a conflict between an IORF, FIORF,IORD, or IOWR instruction executed in the interrupttask and the <strong>CPU</strong> <strong>Unit</strong>'s I/O refreshing (ENDrefreshing).When a Special I/O <strong>Unit</strong>'s Cyclic Refreshing isenabled in the PLC Setup, and an IORF, FIORF,IORD, or IOWR instruction is executed for the sameSpecial I/O <strong>Unit</strong>, there will be duplicate refreshingand an Interrupt Task Error will occur.A426.00 to426.111 (ON) The unit numberof the Special I/O<strong>Unit</strong> beingrefreshed will bestored in 12 bits ofbinary data (unitNo. 0 to 95: 000 to05F Hex).Task Number when Program Stopped (A294)The type of task and the current task number when a task stops execution due to a program errorwill be stored as follows:TypeInterrupt taskCyclic task Flags Related to All TasksA2948000 to 80FF Hex (correspond to interrupttask numbers 0 to 255)0000 to 007F Hex (correspond to task numbers0 to 127)55-2 Tasks5-2-4 Designing TasksTask Error Flag (A295.12)The Task Error Flag will turn ON if one of the following task errors occurs.• No cyclic tasks are READY during a cycle.• The program allocated to a cyclic task (including extra cyclic tasks) does not exist. (This situationwill not occur when using the CX-Programmer.)• No program is allocated to an activated interrupt task (including extra cyclic tasks).Task Number When Program Stopped (A294)The type of task and the current task number when a task stops execution due to a program errorwill be stored as follows:TypeCyclic taskInterrupt task (includingextra cyclic task)A2940000 to 007F Hex (correspond to task numbers0 to 127)8000 to 80FF Hex (correspond to interrupttask numbers 0 to 255)This information makes it easier to determine where the fatal error occurred, and it will be clearedwhen the fatal error is cleared. The program address where task operation stopped is stored in A298(rightmost bits of the program address) and in A299 (leftmost bits of the program address).<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>5-33

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

Saved successfully!

Ooh no, something went wrong!