Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7555215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:32:53+00:00 2026-05-30T11:32:53+00:00

I’m using Omron CP1L PLC and program with CX-programmer. I have hard time understanding

  • 0

I’m using Omron CP1L PLC and program with CX-programmer. I have hard time understanding what exactly is “Differential Instructions”, from the documentation:

With differentiated instructions, execution results for instructions
are reflected in Condition Flags only when execution condition is met,
and results for a pre- vious rung (rather than execution results for
the differentiated instruction) will be reflected in Condition Flags
in the next cycle. You must therefore be aware of what Condition Flags
will do in the next cycle if execution results for differ- entiated
instructions to be used.

My understanding is: instruction always execute when condition is met, and of course if Condition Flags exist to get its state of ON or OFF from previous rung’s instruction, instructions on the next rung would get executed. So I completely do not grasp the point of the explanation in the documentation. And see no difference between the two:

(A) Without using differential

Without differential

(B) Using differential
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:32:54+00:00Added an answer on May 30, 2026 at 11:32 am

    What the manual is warning you about is that, in the incorrect case, Instruction A will be executed only once after C becomes true (differentiated instruction) but the execution of Instruction B depends on the state of the condition flag from the instruction executed in A. If A is executed only once then the condition flag is only valid for the current PLC scan. Subsequent PLC scans with C satisfied will NOT execute differential instruction A but MAY execute differential instruction B — IF a previous rung performs a comparison operation and sets the global condition flag TRUE.

    If you understand the danger of global variables, this is basically the same thing. Some flags in PLC logic are global flags used by certain instructions. They remain valid only immediately after the instruction is executed and will change each time it is executed on different data. In the incorrect case an unguarded rung is dangling with a global condition flag for an operation which is NOT guaranteed to execute.

    In the Correct case the execution condition is differentiated instead of the instruction. When C becomes true it goes to a [DIFU D]. This makes D true for the next PLC scan ONLY – D will only EVER be true for one PLC scan each time C goes from FALSE to TRUE. This guarantees that Instruction A (which generates the Condition Flag value) is executed only once and, further, that it is guaranteed to execute every time that the condition flag exposing Instruction B is encountered.

    Edit : Problematic execution flow – state of CF is RANDOM (more precisely : uncontrolled!) unless we have just performed a comparison operation. All other comparison operations in the entire program will alter its value every time a comparison instruction executes anywhere in the program!

    STATE          C          Instruction A       CF(=)    InstructionB
    
    Scan #1  :    OFF             N/E            RANDOM       N/E
    Scan #2  :    ON         EXECUTES > TRUE      TRUE       EXECUTES  //desired
    Scan #3  :    ON              N/E            RANDOM(T)    N/E
    Scan #4  :    ON              N/E            RANDOM(F)    N/E
    Scan #5  :    ON              N/E            RANDOM(T)  *EXECUTES*!! //UNDESIRED
    

    Here, so long as C remains ON, Instruction B will execute every time the CF switches from FALSE To TRUE due to other comparison operations in other areas of the program. This is not desired – we only want InstructionB to execute if InstructionA has executed and has returned CF= as TRUE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.