ISPSoft not working as it should

EVentomar

Member
Join Date
Apr 2022
Location
Brasil
Posts
6
Hello mates!!

I'm a few days trying to put this to work but I can't.

hIlJz-iQR8B7


https://prnt.sc/hIlJz-iQR8B7


First of all, as soon as the RUN mode activates, Y0 activates also. So when I press X0, Y1 activates.

ZqQXzed2thEY


https://prnt.sc/ZqQXzed2thEY


But when I release, instead of Y2, Y0 becomes active.

kCvULfDzcG6G

https://prnt.sc/ZqQXzed2thEY

Going back to the same initial state.
 
Last edited:
What is it that you are trying to do. As per your software, only the operation you have mentioned will take place.
 
Y'x are cicles. X0 is a button to advance to another cicle. Everytime I press the button it should go to the next step.

But apparently, the rising border is not working. It it going thru all the steps with only one press.
 
ISPSoft not working as it should


This is the clearest, though indirect, statement of the problem


I.e. the problem is the programmer's presuppositions/assumptions that

  • the PLC "should" do what they WANT it to do,
  • and the PLC is not doing EXACTLY what they TOLD it to do.
The only way to programming success in any environment is to invert that presupposition/assumption.

PLCs will always do the latter i.e. what I tell them to do.


So only by telling (i.e. programming) them to do what I want them to do will the PLC do the former.

Until I inculcate those last two statements into our very essence, I am wasting our time.
 
Y'x are cicles. X0 is a button to advance to another cicle. Everytime I press the button it should go to the next step.
But apparently, the rising border is not working. It it going thru all the steps with only one press.

Reverse the order of the rungs, and then please come back and tell us if that worked (it will).

Caveats

1) I assume

  • if the button for X0 is pressed, then the value of X0 is 0, and
  • if the button for X0 is released, the the value of X0 is 1
but it will work either way: if the sense of X0 is the opposite (i.e. X0=1 for pressed, X0=0 for released), then the advance to the next circle will occur when the button is released.

2) You may need a debounce on the button that effects changes to X0.
 
To be more robust, it may be advisable to have the rising edge of M1002 (on original [Network 1]) execute resets of Y1 and Y2.
 
As far as I can see the problem is a rising & falling edge i.e. pulse contact will be on for one scan or off for one scan PLSR or PLSF (Pulse rising or pulse falling) what you need is for the pulse to be reset from the state before the next rung.
it looks like you are trying to do running lights sort of.
so it turns on each output i.e. Y0 first, then Y1, then Y2 every time the button X0 is pushed.
Write down the actual sequence i.e.
Initial state (I am assuming M1002 is first scan as I don't know ISPSoft)
Y0 is turned on
When the button is pressed Y1 goes off Y1 comes on etc.
 
Thanks for so many advices DrBitboy!!!

Actually, I found out the error. Once it went off, it would complete all the cycles because X0 or X1 would still be on for this scan. I need to reset them as soon as I change cicle.

Exactly what parky said.
 
One of the best ways (not the only way) is to use say a counter & compares of the counter value or possibly an integer that you increment.
 
Thanks for so many advices DrBitboy!!!

Actually, I found out the error. Once it went off, it would complete all the cycles because X0 or X1 would still be on for this scan. I need to reset them as soon as I change cicle.

Exactly what parky said.

which is why reversing the order of (the execution of) the rungs will also fix it, because ... wait a minute ...

whoops, you also need to put the X0 falling edge detections before (to the left of) the Yx checks.

that way only one step will complete on any single XP falling edge, because that falling edge instruction is actually looking for the falling edge of the logical AND of the tag AND the input rung state.
 
what is interesting is that the individual rungs and choice of instructions were fundamentally correct, but the order in which those components were arranged to be executed was not.

this reinforces the idea that a large part of PLC programming is about time.
 
parky, drbitboy, it is impossible to exaggerate your dedication and generosity. And of course your PLC programming skills are superb.
 
whoops again, it is yet more complicated: because the AVANÇA button advances either from Y0 to Y1, or from Y1 to Y2, or from Y2 back to Y0, it is not as simple as only inverting the order of the rungs. It's not overly complex, but it not as trivial as I thought.

Also, it appears that, once M1002 has a rising edge and starts the cycle with Y0=1, there is no way to return to the state where Y0, Y1, and Y2 are all 0 again.

Finally, in order to help OP, there needs to be more information provided.
 
Last edited:
This is how I see it, the assumptions are:
You set Y0 on PLC going to run
Then every time you press the button (X0) it will set the next output Y1 & reset Y0 & so on
When Y2 is on & the button is pressed it then it reset Y2 & sets Y1 (sort of running lights).
Note: used a pulse bit rather than the pulse of the input (usually inputs cannot be reset within a program),
Because a pulse flag will be on for one scan need to reset it directly after setting the following output so it is off on the next rung.
Doing it in reverse order will not work if you need to go back to Y0 hence the pulse bit reset.
If you do not have a pulse output then create a one shot

LD X0 AND NOT M1 OUT M0

LD X0 OUT (M1)

Sequence.png
 
Last edited:

Similar Topics

Posted by u/mr_biodtox 44 minutes ago Delta ISPSoft - Establishing communication with thermocouple module Hi, How do I establish communication...
Replies
1
Views
347
Hi, I have a Delta DVP-12SE setup in ISPSoft. I created a few custom function blocks for motors and now want to implement it but the moment I...
Replies
2
Views
1,163
I'm trying to set and reset M0 and M1 at the same network. But for some unkown reason it doesn't work. I tried the reset alone and it worked but...
Replies
1
Views
650
HI everybody. im using ISPsoft for doing a project. but some networks in my project does not work true for no reason some times and I cant find...
Replies
4
Views
1,079
we are trying to do a Modbus Rtu communication between a Delta plc and an Abb inverter, using ISPsoft and NWconfig. do you have any sample program...
Replies
3
Views
3,953
Back
Top Bottom