Jump to content
Sign in to follow this  
AusStudent

debug mode - checking logic

Recommended Posts

I'm a new user of Ladder Logic and M91 PLC's. I'm trying to debug a program I have uploaded off of an old PLC.

I understand that in U90 there is no way to force input/output states. Considering this how can you check that your logic is correct?

E.g. how can I check that a certain combination of inputs will cause a change of state or particular output?

[i don't consider a red flow of logic sufficient, especially as I can only see it for the power on state.]

Thanks

Share this post


Link to post
Share on other sites

Hi,

If I have understood correctly, you have a couple of options, all of which involve some legwork, but will give you the results you need.

1. Get some wires and apply 24V to the inputs you need to activate.

2. Modify the program and put an MB contact in parallel with each the physical input contacts. Then you can manually toggle the MB values to simlulate inputs changing. Save a copy of the original program before making the changes.

If events happen too fast to see, you may also need to add math functions to increment a register each time the event occurs, so you know it happened.

I hope this helps.

Share this post


Link to post
Share on other sites

Thanks that was helpful.

Sadly my program won't download due to system error '9'. I've emailed the code to unitronics' support team so hopefully they can help me with it.

Another question though while we're here:

In the code I uploaded I found output set and reset coils connected in series. I understand this will work for Memory BIts, but can you do that for output coils? Surely they should be connected in parallel.

Cheers

Share this post


Link to post
Share on other sites

Unitronics does not require output conditions to be in parallel. This is different to "traditional" ladder logic. Of course it is fine if you want to put the output coils in parallel, but that will have no effect on the function of the program.

When you get the error9 does that only happen for a download, or when you save the file? You must save the file to a fixed harddisk on the computer. It will not play nicely with a network drive or removable drive.

What type of serial port are you using - USB dongle or direct RS232?

Share this post


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.

Sign in to follow this  

×
×
  • Create New...