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 ProgrammingUsing Differentiated Instructions in Interlocks (IL - ILC Instructions)In the following example, the previous value flag for the differentiated instruction maintains the previousinterlocked value and will not output a differentiated output at point A because the value will notbe updated while the interlock is in effect.0.00IL0.01DIFU001000ILC000000IL isexecutingIL isexecuting000001001000Using Differentiated Instructions in Jumps (JMP(004) - JME(005) Instructions)Just as for interlocks, the previous value flag for a differentiated instruction is not changed when theinstruction is jumped, i.e., the previous value is maintained.• With downwardly differentiated instructions (DIFD(014) or instructions with a %), outputs will turnON when inputs turn OFF only when the previous value flag is ON.• With both upwardly and downwardly differentiated instructions, outputs will turn OFF in the nextcycle.Precautions for Correct UseDo not use the Always P_On Flag or A200.11 (First Cycle Flag) as the input bit for an upwardlydifferentiated instruction. Do not use the Always P_Off Flag as the input bit for a downwardly differentiatedinstruction. If either is used, the instruction will never be executed.5-66 <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!