How Do I Write A Program To Delay Turning ON A Work Bit For 1 Scan After An Input A Turns ON And Keep The Work Bit ON For Only 1 Scan When Using A CS/CJ-Series PLC?

Modified on Sun, 11 May, 2025 at 10:39 PM



As shown in Figure 1, the program delays for 1 scan after input A turns ON, and turns ON work bit W2.00 for only 1 scan, as shown in Figure 2.
 


Operation: Refer to Figure 3

1.When input A (CIO 0.00) turns ON, the execution condition created by the differentiated input instruction (--|↑|--) will turn ON for only 1 scan.
2.When the execution condition created by the differentiated input instruction (--|↑|--) turns OFF in the next scan, the CONDITION OFF (DOWN) instruction causes the execution condition to turn ON for only one scan, resulting in work bit W2.00 turning ON for only 1 scan.

Applications of this Programming

This programming technique to delay turning ON a work bit for 1 scan after another bit’s status changes (i.e., turns ON) and then turn on the work bit for only 1 scan can be used for time limit control between a data output signal and strobe signal in parallel transmissions.

Example of Time Limit Control in Parallel Transmissions
"Transmission request input from a terminal device turns ON" to "Parallel data (n bits) is output".
to "Strobe signal (1 bit) turns ON after 1 scan".
Application Conditions for this Programming
The signal from the device must meet the following time-related conditions.
The time period required between the parallel data and strobe signal must be less than the Programmable Controllers' shortest scan time.

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article