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.

10 <strong>CPU</strong> <strong>Unit</strong> FunctionsExample Programs Example Program 1In the following example, program/network symbol files ABC.OBJ and XYZ.OBJ are stored in theMemory Card and one program or the other is selected depending upon the value of D0. D0 is set to#1234 to select ABC.OBJ or to #5678 to select XYZ.OBJ.Another task is started to perform any processing required before program replacement, includingset the IOM Hold Bit.Main Task (Cyclic Task 0)A200.11First Cycle FlagMOV← Program version← Version storage areaA650.15a A343.15 A343.13Memory CardDetectedFlagFile MemoryOperationFlagA650.15ReplacementStart BitMOV#A5A5A651=D00000#1234Writes the file name"ABC" in A654 toA657.=D00000#5678Writes the file name"XYZ" in A654 toA657.TKON31Main processing programENDTask Protecting Data during Program Replacement(Cyclic task 31, standby status at startup)ONAlways ON FlagProcessing to protectdata before programreplacement beginsA500.12IOM Hold BitOutputs to requiredloads duringprogramreplacement.END10-46 <strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!