Jump to content

Recommended Posts

Hi

Thanks you in advace for your help.

I am a newbie with visilogic and I am struggling with the last subroutine of my program.

I will explain what I want to happen:

As HMI loads, O3 to automatically open until a set pressure is reached (103 mbar)

O3 then closes and remains closed whilst a leak test is undertaken - if the pressure drops below 103 mbar during the test time, O3 should not re-open.

As the set pressure is reached, a timer should be activated to start the leak test timer (10 seconds)

At the end of the 10 seconds, if the pressure is below 100 mbar then HMI FAIL should load

If the pressure is above 100 mbar then HMI PASS should load.

When the program finishes, all timers shoudl be reset ready for the next run test.

This is working ok the first time i run through the program, but when I restart the routine the timer is running before the set pressure is reached. I also cannot lockout the O3 control.

Can anyone help?!

I have attached screenshots of my ladder.

Thanks

Russ

post-8755-0-73231300-1343233016_thumb.jpg

post-8755-0-15270100-1343233022_thumb.jpg

Link to post
Share on other sites

Russ,

You're running into a classic problem that I often see with new programmers - you're trying to control a sequence with logical operands when what you need is a state machine. If you add enough contacts and coils you'll eventually get it to work but you'll have a hell of a time troubleshooting it. I call these "bit-bangers".

A state machine uses a pointer register to step through the sequence in a very controlled way. I've attached what I would do.

Study this programming method - it is the easiest way to do a sequence and it won't fail you.

Joe T.

post-18-0-82858500-1343264231_thumb.jpg

post-18-0-27713100-1343264253_thumb.jpg

state machine example.vlp

  • Upvote 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...