Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Automation Systems > PLCs
Minimize Text   Default    Enlarge Text
 

Print
E-mail

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?




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.

 




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2008-10-31
Modified 2009-04-28
Views 2632

 

You are not logged in.