Hello Guest it is April 16, 2024, 03:43:26 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Greolt

171
General Mach Discussion / Re: Pendant
« on: January 22, 2011, 03:42:08 PM »
Have you tried an MPG via Pokeys USB?

You might be a bit surprised how well it responds.

Greg

172
Modbus / Re: Hitachi SJ200 and ModBus Control Problems
« on: January 19, 2011, 11:00:49 PM »
It is actually fairly straight forward.  I don't know why it took me such a struggle.  I am not that smart I guess.  :D

Here are pics of the main setup info,

Greg

173
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 19, 2011, 08:37:33 PM »

OEMDRO99 ranges from 0.0-1.0  so that would give you a range of 0-4000



OK I get it.  I have never used that DRO. 

I use "Overriden spindle speed DRO  202 "  Which reads in RPM.   So as the max RPM is 24,000  then I divide that by 6 to give max value of 4000 out to VFD  (400hz = 24,000 RPM)

Anyway thanks very much for your help so freely given.  It is much appreciated.

Greg

174
Modbus / Re: Hitachi SJ200 and ModBus Control Problems
« on: January 19, 2011, 06:53:43 PM »
Got it going.  At last !!

Thanks Peter and Paul.

Greg

175
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 19, 2011, 06:43:09 PM »
YAY !!!!!!!!   IT WORKS !!!!!!!

Thanks very much to Scott, Peter and Paul for the help.

Now I look at the settings and see they really are very basic.   I don't know why I struggled so much to get it going.  Obviously I am not so smart.

A couple of pics of the settings for any reading this who are interested.

Greg

176
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 19, 2011, 03:57:51 AM »
Scott

Let me say first up that I appreciate very much you taking the time to look at this and respond with suggestions.

Quote

   you will need to set parameter:
A001 = 03
A002 = 03
your modbus port speed is set to:
9600, same in the VFD, but once you get it all working
you could set C071 = 06, and modbus to 19200.


Yes I have all that.  As i said above, communication has been checked in the "Test Modbus" dialogue.  That is all OK.


Quote
Note: according to how your manual reads, for your digital output coils, your modbus BASE starts at (in the VFD in decimal), at 30001,
so, for your two discrete outputs, you would need your offset plus your base, cnf#0,so Address Modbus (var) would be 30002, 2 registers, output coils (see attached screen shot).

for your spindle speed out, you would use cfg#1, address base is 40001 plus the offset so, start address for where the speed register is, is 40003 and only 1 register since that is the only holding your writing to, output holding type.(see attached screen shot).

This is where it gets interesting.  I have Mach successfully writing to the coils, with this setting at zero instead of 30,002.  See pic in my post above.

When I try the setting to 30,002 as in your modbus config pic.  It no longer will write to the coils.

So it is working with zero and will not work with 30,002

Also on looking more, some PDF manuals have no mention of this number, and some do.  Go figure.  :D

Quote

DRO99->Formula(A*4000)->Serial Plugin Modbus, Modbus address to use would be "0" since your output holding is the first (and also the start) address,
 tick "output", tick "Serial Plugin Enabled", put a #1 in the CFG.   (see second screen shot......)


Yeah got all that.  I know about reload brains etc.  

The only bit that I do not get is  Formula(A*4000)  

It is actually A/6 this gives the correct out put range the VFD needs.  0 to 4000  ( 0 to 400hz )

Greg




177
Modbus / Re: Hitachi SJ200 and ModBus Control Problems
« on: January 19, 2011, 02:59:32 AM »

Also when writing to a Holding Registers I can write to one register at a time if I try to do anymore I get a timeout
error in Test ModBus this is a probable solution to your problem in setting Holding Registers.


Paul

Yes it took me much longer than it should have to figure this out.  

Only write to the one register alone.  Anything more and it will come back as an illegal operation.

I can read as many as I like but write only to the one.  

The next several registers are designated read only in the manual.  I should have caught on earlier.   :)


Peter

Thanks for the diagram.  The one point that threw me (and maybe others) is the Hitachi manual has a 0000h designation.

List of coil numbers,
0000h  -  Reserved
0001h  -  Run Command
0002h  -  FW/REV Command
0003h  -  External Trip  (alarm mode)

But then again I can easily be confused.   :D

Greg

178
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 18, 2011, 10:30:34 PM »
And here are my Modbus Configuration page and the brain termination dialogue.

Reading the manual it suggests to me that I should be entering 40001 + offset somewhere.   But that just gets rejected whenever I try.

And the coil numbers suggests similar (30001 + offset) but clearly works without any reference to any such number.

Seems to me the key info I am getting wrong is the places marked in my pics. 

"Modbus Var" on the configuration page "Cfg# 1"   (Cfg# 0 works as is)

"Enter Mobus Address to use" on th ebrain termination dilalogue.


179
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 18, 2011, 10:22:58 PM »
So now armed with that information I proceed to set up "Modbus Configuration"  as well as the brains to send the appropriate data.

The first configuration (Cfg #0) works fine with the run command brain.  No problem there.

The second configuration (Cfg #1) along with its speed control brain is where I am stuck.

Here are a coup[le of relevant pages of the Hitachi manual.  

Full manual PDF link,  driveswarehouse.com/documentation/Hitachi/SJ200M.pdf


Greg

180
Brains Development / Re: Help with Modbus I/O with Brains
« on: January 18, 2011, 08:43:02 PM »
I have made some progress.  :o

Now I can operate the run command, direction command and speed (or frequency) command,  all via the "Test Modbus" dialogue.

I had not succeeded with this before, so was getting ahead of myself, playing around with the modbus configuration.

Now I need to translate those commands over to the serial plugin modbus, to be controlled via brains.  Run command works no problem.  Speed command is where I fall over.

Here are some screen grabs of the "Test Modbus" dialogues with the numbers that work.

Greg