Hello Guest it is April 26, 2024, 03:57:36 PM

Author Topic: Help with this brain please CW and CCW swith via Modbus  (Read 5074 times)

0 Members and 1 Guest are viewing this topic.

Help with this brain please CW and CCW swith via Modbus
« on: November 15, 2013, 10:23:09 PM »
Hi Everybody!
Attached the brain that let me crazy for several days!
Just I have a servo Spindle to control via Modbus . The connection via modbus is ok.
Happen that when the brain is enabled always send the last value (in this case 112 to the modbus and then the spindle always run in reverse.
if I delete the last rung then send the value to run in CW (48).
Means that dont care about the output signal led state.
If I view the brain execution then I can see with the intructions M3 and M4 turn green first led or second but...still send (I think the 2 Modbus orders first 48 and later send the 112)
Where Im wrong?
Thank you in advance
Re: Help with this brain please CW and CCW swith via Modbus
« Reply #1 on: November 16, 2013, 05:24:00 PM »
Hi,

see pict.

hope that works.

alex

Re: Help with this brain please CW and CCW swith via Modbus
« Reply #2 on: November 16, 2013, 09:16:30 PM »
Great ! Great ! Great ! Greaaaaaaaat !
now I should studi what you did !
but..M5 still dont works (not is your wrong) just I didnt ask help about and M5 the value to pass via modbus is 16 and not 0 (just 0 disable the servo shaft.
If you can modify the brain on time then will be great but BTW I will study now it.
Your Help value was really high for me. THANK YOU SO MUCH !
Where I can learn how works the logic of the brains? because I shaw some video tutorials...and also find docs on inet but failed and dont found them.
Thanks Again Alex, for  your prompt and perfect answer.
Justo.
Re: Help with this brain please CW and CCW swith via Modbus
« Reply #3 on: November 17, 2013, 02:29:39 AM »
ok then I got final solution, just I change the way in the driver to let it receive more coherent values:
CW =3
CCW = 7
STOP Keeping enable = 1
and I made this change, Hope helpful for someone.

Works perfect !
Re: Help with this brain please CW and CCW swith via Modbus
« Reply #4 on: November 17, 2013, 02:13:23 PM »
Glad I could help.  :)

Quote
Where I can learn how works the logic of the brains?

Since there isn't much information I dit learning by doing.

alex

Re: Help with this brain please CW and CCW swith via Modbus
« Reply #5 on: November 17, 2013, 08:58:39 PM »
wow! you should be a good assembler programmer or something like that. I guest.
this looks more like logical gates procedures than a sequential programming language.
I still have difficults to understand the logic.
Well, when I have time I will take like a Qitz to lern it
Thanks
Justo
Re: Help with this brain please CW and CCW swith via Modbus
« Reply #6 on: November 18, 2013, 01:30:32 PM »
 :)

alex