Hello Guest it is April 26, 2024, 07:01:11 PM

Author Topic: Modbus control huanyang GT vfd  (Read 3912 times)

0 Members and 1 Guest are viewing this topic.

Re: Modbus control huanyang GT vfd
« Reply #20 on: November 05, 2021, 04:14:17 AM »
That will be because the PMC is continuously writing to that register every couple of milliseconds. So whatever value you enter is being instantly overwritten.

I modified the script on my system to update another register I created, and when I enter S1000 into the MDI the register updates. So I am not sure why this isn't working on your system..
Re: Modbus control huanyang GT vfd
« Reply #21 on: November 05, 2021, 06:12:56 AM »
i STILL CANT GET A RESOLUTION TO THE REQUIRED SCRIPT TO MAKE THIS OPERATE PROPERLY!
Re: Modbus control huanyang GT vfd
« Reply #22 on: November 06, 2021, 12:05:49 AM »
Hi,
have you thought about putting some code in the PLC script instead?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Modbus control huanyang GT vfd
« Reply #23 on: November 06, 2021, 04:50:50 AM »
Hi,
have you thought about putting some code in the PLC script instead?

Craig
Yes definitely thought about it, but i am unsure as to how to write the code!  This is the main problem and why i'm here asking for help! if i was a scripting guru i would have written the solution by now lol
Re: Modbus control huanyang GT vfd
« Reply #24 on: November 06, 2021, 05:06:46 AM »
I have used the pmc editor a couple of times, but i am not sure how the structure should look to acheive the desired result
Re: Modbus control huanyang GT vfd
« Reply #25 on: November 06, 2021, 06:36:37 AM »
Hi,
I gave you the outline of what is required in post #8. Did you try it?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Modbus control huanyang GT vfd
« Reply #26 on: November 06, 2021, 06:44:36 AM »
Hi,
I gave you the outline of what is required in post #8. Did you try it?

Craig
I pasted that code into the lua file for the spindle control, but I had no success with that unfortunately
Re: Modbus control huanyang GT vfd
« Reply #27 on: November 06, 2021, 06:46:22 AM »
Hi,
I gave you the outline of what is required in post #8. Did you try it?

Craig
I noticed you have posted about this kind of thing a while ago - Do you use modbus spindle control yourself?  If so do you mind sharing the script?
Re: Modbus control huanyang GT vfd
« Reply #28 on: November 06, 2021, 06:48:05 AM »
Hi,

Quote
I pasted that code into the lua file for the spindle control, but I had no success with that unfortunately

But it doesn't go in the spindle control file, wherever it is and whatever it is, it goes in the PLC script. The code is not completed,
you have to add some details, you'll not just be able to paste it in as is.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Modbus control huanyang GT vfd
« Reply #29 on: November 06, 2021, 06:51:56 AM »
Hi,

Quote
I noticed you have posted about this kind of thing a while ago - Do you use modbus spindle control yourself?  If so do you mind sharing the script?

I don't use MODBUS on my machine but a friend of mine has a CNC pressbrake which I helped him the interface Mach4 to the PLC of the machine.
It does not have a spindle .

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'