Hello Guest it is April 24, 2024, 04:26:18 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 - Peter Homann

51
Modbus / Re: TCP over Ethernet help
« on: June 13, 2015, 09:23:54 PM »
The brain does not write to the modus interface as such. Brains write to a memory buffer area only. The area is defined by the CFG# number in the Modbus plugin.

The Modbus plugin transfers the data in the CFG# continuously at the rate defined in the plugin, i.e. 25Hz

-------------------------------------------------
"Enter Modbus Address to use:" 0
"Output" Radio selected
"Bit Only" Checked
"0" Bit 0-15
Source: "TCP Modbus" Radio button, Cfg# "0"

This would display in the brain Terminator as MOD:0-D0-T:0, correct?

------------------------------------------------------

In the above, ""Enter Modbus Address to use:" 0" defines the offset into the Modbus CFG# buffer. It is not the actual modbus address.

Have a look at at the videos that Art produced when he wrote the Modbus plugin. It should give tou a good understanding.

Cheers,

Peter

52
Modbus / Re: TCP over Ethernet help
« on: June 12, 2015, 11:29:59 PM »
In the two images you've attached, the CFG configurations re different. Which one are you using?


In the image showing the brain, it is unclear what the dialog box

Your brain is writing to MOD:2-D1-T:0

This equates to writing to bit 1 or register 2 on CFG#0

Don't you want to be writing to bit 0, that is  MOD:2-D0-T:0


Cheers,

Peter

53
Modbus / Re: TCP over Ethernet help
« on: June 12, 2015, 11:01:11 PM »
Oops ignore that.  :)


Cheers,

Peter

54
Modbus / Re: TCP over Ethernet help
« on: June 12, 2015, 10:45:24 AM »
Hi,

Have a look at this article I wrote and see if it answers your questions.

http://www.homanndesigns.com/pdfs/Using_Modbus_with_Mach3.pdf

Cheers,

Peter

55
OK, I'll send it off.

Cheers,

Peter

56
Hiya Peter, Do you still have all the parts for the hand pendant ? Can I buy them from you ? I would REALLY love to get it finished up and on the machine. I have an new extra MODIO board here I can use if needed. I have triesd to email you in the past but no luck. I think your PC doesn't like me and dumps me in the trash can.

(;-) TP

Hi Terry,

I still have this one for you. I just can't seem to find the time to finish it. I can send it off to you if you like?

 I'll even dust it down. :)

Cheers,

Peter

57
Hi Roger,

Have a look in the General Config Tab. In the bottom left hand corner is a program safety input. This uses input #1. When this goes active Mach3 pauses the translation.

This my help in what you are trying to achieve?

Cheers,

Peter

58
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 24, 2015, 09:57:57 PM »
I've always used bit packing with Mach3, it's been reliable, so I don't know why you say it is broken.

Peter

59
Modbus / Re: ModBus TCP Help
« on: May 08, 2015, 12:00:29 AM »
No that's not quite right. :)

40001 is "PLC addressing" used to identify the 1st holding register in the PLC

if you want to access this register using the Modbus protocol you need to set Mach3 up to read holding registers and read the 1st register which will be address '0'

So in Mach3 CFG#0 set up to read 10 holding registers  set the start register address to 0 as this equates to 40001.
The 10 registers returned  will be PLC addresses 40001 to 40011

When Modbus was originally designed they specified that,

1) output coils started at address 1 to 9999 or hex addresses 0000-270E
2) input registers started at address 10001 to 19999 or hex addresses 0000-270E
2) input registers started at address 30001 to 39999 or hex addresses 0000-270E
4) holding registers started at address 40001 to 49999 or hex addresses 0000-270E


So what that means is that each of the above types of registers have their own block of registers in memory. Depending on which type of register you are accessing will determine  register block the register will be read from.

In Mach3 it is valid to read holding registers starting at address 0 and also read input registers starting at address 0. Even though both reads are reading address 0, they are reading from different sets of registers.

All clear? :)


Cheers,

Peter

60
Modbus / Re: modbus vs psm or which is what?
« on: March 23, 2015, 07:50:17 AM »
Yes, that's correct. You will need a rs232 to Rs485 converter.

Then lots of reading of the VFD manual.
You then need to set up the modbus transactions to get the data to/from the VFD.
You then need to write a Mach3 brain or two to interface between Mach3 and the modbus registers.

Have a look at this article I wrote. Hopefully there is enough information to gt you started.
http://www.homanndesigns.com/pdfs/Using_Modbus_with_Mach3.pdf


Cheers,

Peter