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 - DougLyons

Pages: 1 [2] 3 4 5
16
Support Questions / Problem with multidrop Modbus & ModRSsim2
« on: January 09, 2017, 11:30:13 PM »
Godra,

All settings for the ModRSsim2 program are stored in the registry here:
[HKEY_CURRENT_USER\Software\Adroit Technologies\Adroit\Simulators\ModbusRTUSim]

There is a later version of the software available for download that may work better on small screen sizes.

Thanks,

Doug Lyons

17
Support Questions / Problem with multidrop Modbus
« on: January 06, 2017, 04:10:33 PM »
Godra,

I'm glad that you found another useful feature of the ModRSsim2 program. I believe that the original author, Conrad Braam, did an excellent job when he created it's structure. I see that you referred to the program as "MOD RSSim" which is not exactly correct and might make it more difficult to locate if someone were searching for it on the Internet. For simplicity, here is the website for my fork. https://sourceforge.net/projects/modrssim2/

To further clarify how this is used, you can refer to the <F1> - Help instructions and look under the "Protocols" section. By default a common set of registers are used for all station numbers, but by changing an advanced setting you can have separate register sets for each station. This unfortunately works in a somewhat confusing manner and limits you to only a subset of the whole range of addresses, but it does work.

Thanks,

Doug Lyons

18
I recommend ModRSsim2 (Archie left out the second s) and the 2 on the end is a later version.
It supports Modbus Function Code 22 (Hex 16) for both Serial and Ethernet protocols.
It is available here: https://sourceforge.net/projects/modrssim2/
The original version of Mod_RSsim only supported the serial protocol and had a bug in its implementation of this function.

19
Support Questions / ModbusTCPCom Write Bit Failure
« on: August 29, 2016, 09:40:42 AM »
Archie,

I appreciate your persistence on this. How this works is not easily understood.
I have downloaded and installed your latest patch and all seems to be great now.

I will do a bit more testing later, but I think that you have conquered this problem.

Thanks,
Doug Lyons

20
Support Questions / ModbusTCPCom Write Bit Failure
« on: August 29, 2016, 02:23:41 AM »
Archie,

I appreciate your efforts on this, but there is still a problem with the button press.
Here is what we had before as noted above:

Original Value of zero at beginning:
Button Press: In=0000 And=FFFF Or=0001 Out=0000
Button Release: In=0000 And=FFFE Or=0000 Out=0000

Here is what I see with the new version 3.99p:

Original Value of zero at beginning:
Button Press: In=0000 And=0000 Or=0001 Out=0001
Button Release: In=0001 And=FFFE Or=0000 Out=0000

This case does work as expected, but if I put FFFF Hex into the 40001 register here is what we get:

Original Value of FFFF at beginning:
Button Press: In=FFFF And=0000 Or=0001 Out=0001

Since our address was 40001.0 we only wanted to affect the low bit.
But here we have reset all of the other bits except the low bit.
What I would have expected is for the AND to be the same as in the Button Release and be FFFE.
This would have left all of the other bits alone and only affected the low bit.

Hopefully you can review and fix this.

Thanks,
Doug Lyons


21
Support Questions / ModbusTCPCom Write Bit Failure
« on: August 25, 2016, 10:47:30 PM »
That's great. Thanks, Archie.

22
Support Questions / ModbusTCPCom Write Bit Failure
« on: August 25, 2016, 09:22:08 PM »
Per the Standard Modbus Manual PI-MBUS-300 Rev. J we have this on Page 66.

Result = ( Current Contents AND And_Mask ) OR ( Or_Mask AND Not(And_Mask) )

For example:

                                  HEX       Binary
Current Contents   =      12       0001 0010
  And_Mask           =      F2       1111 0010
     Or_Mask          =      25       0010 0101

   Not(And_Mask)   =     0D       0000 1101

     Result              =    17        0001 0111

In a short summary:
1) If the AND bit is Set, then the existing bit will not be touched.
2) if the AND bit is Not Set, then the output bit will be forced to the OR mask bit value.

Thanks. Doug Lyons

23
Support Questions / ModbusTCPCom Write Bit Failure
« on: August 25, 2016, 07:45:41 PM »
I am using AHMI Version 3.99n which I believe is the latest. I started with adding a ModbusTCPCom driver to the form.
Then I added a DigitalPanelMeter and set its PLCAddress value to 40001. Then I added a MomentaryButton and set its PLCAddressClick to 40001.0.
When I run this program, clicking on the button makes no change to the value in 40001 when it is zero.
If I set it to 1, then clicking the button has no effect until it is released and then the value goes to zero. Using ModRSsim2 I can see the following debug information.

Original Value of zero at beginning:
Button Press: In=0000 And=FFFF Or=0001 Out=0000
Button Release: In=0000 And=FFFE Or=0000 Out=0000

Original Value of one at beginning:
Button Press: In=0001 And=FFFF Or=0001 Out=0001
Button Release: In=0001 And=FFFE Or=0000 Out=0000

It seems that in the case of the Button Press, the And value should be FFFE like it is in the Button Release.

Also, I noticed that if I delete the DigitalPanelMeter and run the program there is no polling or communications at all.
Nothing is sent to the server (ModRSsim2) at all when the button is pressed or released.

Thanks for any help that you can provide.

24
Open Discussion / OPC tag borwser
« on: May 05, 2016, 11:30:04 PM »
For VB6 there is great source code available here:

https://info.kepware.com/visual-basic-source-code

This requires registration, but I have seen no ill effects from this.

Doug Lyons

25
Support Questions / Help with New Guy Error (RSEmulate 500 Problem)
« on: January 26, 2016, 10:48:45 AM »
Charles,

One way that we might be able to help is to have a log of the traffic from your project.
There is a project here http://www.compuphase.com/software_termite.htm called Termite.
Please download and install this and put it in series between your AdvancedHMI and the RSLogix Emulator.
To do this create another virtual COM cable similar to what you did originally using ELTIMA.
One Virtual Cable will be AHMI <==> Termite Port and the other Termite Port Forward <==> RSLogix.
Also, copy the attached file into the installation directory and then select "Log Hex" from the Settings with "Hex Mode" checked.
Now run your test and reply and attach your output file.

For an example look at the TermiteExample attached. COM4 and COM5 are Termite In and Out ports here.

Doug Lyons

26
Support Questions / Help with New Guy Error (RSEmulate 500 Problem)
« on: January 25, 2016, 04:12:38 AM »
The recommended software version to use is Visual Studio Community Edition 2015

 https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

Can you try it?

27
Support Questions / IO address for embeddded 1100 analog inputs
« on: January 23, 2016, 10:27:51 PM »
hopeful,

From my reading of the manual for which Godra posted the link it seems that these should be as follows:
1) I:0.0
2) I:0.1
For the two onboard analog inputs.

Doug Lyons

28
Open Discussion / Siemens Protocols
« on: November 28, 2015, 12:40:58 PM »
Baguinn,

Can you share some of the things that you found to get around your DCOM issues? I am curious about how you did this and it could help others as well.

Thanks.

29
Open Discussion / writing to excel
« on: November 06, 2015, 10:28:57 PM »
Mr. Pike,

Try changing your w.Write statement to this:

Code: [Select]
       w.Write("TIME, KW, KVAR, VAB, VBC, VCA, IA, IB, IC, HZ" & Chr(13) & Chr(10))

This adds a Carriage Return and Line Feed to your write to get down to the next line.

Doug Lyons

30
Support Questions / 399a and Remote OPC Server
« on: November 02, 2015, 09:55:41 PM »
Baguinn,

Matrikon (www.matrikonopc.com) also publishes some very good White Papers on DCOM settings for OPC.
I suggest that you review and implement their recommendations for your particular operating system.
They are available as a free download, but you do have to register with them.

Another vendor with reference material on DCOM is Software Toolbox (www.softwaretoolbox.com).
Their tutorial is available without registering and is free as well.

I am sure that there are others and you can just do a search and see what you find.
Look for "OPC" and "DCOM Problems" or similar.

Sometimes you have to make DCOM very open on both the OPC Server and the OPC Client.
In general this defeats much of its security, but in a fairly closed network you might be willing to do this.
I would not recommend this for any machine with direct Internet access though.

Doug Lyons

Pages: 1 [2] 3 4 5