Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

One shot

Status
Not open for further replies.

lekuru

Electrical
Jun 17, 2009
3
Here is my delimann.......In my first line of code whenever the pulse count is 7000 the force decreases by 50. The problem is that my count could be 7000 for a second and plc could scan through the codes execute X numbers of times in a second. Meaning that you would be subtracting 50 times X number of times before it goes to 7001. How do i make sure that my initial settings will not be overwriting my changes every program cycle. Any inputs will greatly be appreciated.

i know i can use one shot function .....use one shot function without overwriting the initial setting???? any help will greatly by appreiciated
 
Replies continue below

Recommended for you

If count>=7000 and temp1=0 then force=force-50
If count>=7000 then temp1=1 else temp1=0

One shot code....
 
Just use a regular coil for B3:3/11. Do not use a latch instruction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor