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

Pages: 1 ... 3 4 [5] 6 7 ... 14
61
Thanks dmroeder! As I look at the property of the button, for address_click, normally I give reference to the bit address. Where do I write the code, Process.Start (file path)?

Yeah sorry, I should have been more specific.  As @MajorFault said, double click the button, this will will bring you to the code editor, specifically, the button click event.  Put the code I mentioned in there.  The "PathToBatchFile" is obviously the windows path to your file "C:\MyBatchFile.bat", process.start accepts a string, so the path will need quotes around it.

62
Just wondering, whether I can use Advanced HMI in non PLC environment, executing a program, start a file etc.

Regards,

Process.Start(pathToBatchFile)

63
Open Discussion / Re: IPv6 Support
« on: March 04, 2021, 12:12:31 AM »
Curious question, even if PLC's and AHMI did support IPv6, why would one want use it?

IPv6 strikes me as something that is necessary for the larger internet, but local networks?  Who needs a trillion addresses?  Why have a more complicated addressing scheme when the number of addresses isn't needed?

I see this:
Quote from: phone conversation
So did you ping the device first?
No, how do I do that?
type: (reads over the phone) p i n g [space] i p v 6 [space] 2 0 0 1 : B
Wait, that first one, was it a b?
No it was a P, as in Paul
Okay, go ahead
So: p i n g [space] i p v 6 [space] 2 0 0 1 : B
Was that a T
No, it was a B as in Bravo
Ok, sorry, where were we at?
ping [space] ipv6 [space]  2 0 0 1 : D B 8 : 8 4 7 f : a 3 8 5 : 3 4 d d : : 4 5
Press Enter, did it respond?
No
Read it back to me
...

64
Open Discussion / Re: AHMI to AB micro 820 communication
« on: January 29, 2021, 12:48:19 AM »
Hi Godra,

I use the CCW to connect to the plc.

@dmroeder how can I be sure that my project is trying to connect to the right adapter.

Thanks all for your help

The scenario I described would only apply if you had more than one network adapter was configured for the same subnet.  The best way to know if there is "adapter confusion" is to understand how your adapters are configured.  Or you could disable all adapters that you are not using to communicate to your PLC.

Please answer the following:
  • What is your computers IP address?
  • Your PLC's addres is 192.168.1.10 correct?
  • If you ping the PLC from the command prompt, what is the response?

65
Open Discussion / Re: AHMI to AB micro 820 communication
« on: January 28, 2021, 12:56:30 PM »
The Micro820 is only ever slot 0.  CompactLogix and Micro820/850 controllers are always slot 0.  Only ControlLogix can have a controller in a slot other than 0.

You get "no response from PLC" because the AHMI project cannot connect to the PLC.  This issue is likely at the network level.

Make sure you can ping the PLC successfully from your development computer.  Test run your application in Visual Studio.  One possible issue is if you have more than one network adapter that is on the same subnet, your project could be confused on which one to use.  For example, maybe you are connected to a wireless network that is 192.168.1.x and you have a wired network that is 192.168.1.x, you application could be trying to find the PLC on the wrong adapter. 

66
Open Discussion / Re: AHMI to AB micro 820 communication
« on: January 26, 2021, 06:19:39 PM »
One thought, make sure that your form objects (button, pilot light, etc) has the your Micro800 driver assigned to the ComComponent property.  I've accidentally had more than one driver on my form and objects pointed to the wrong driver.

67
Tips & Tricks / Re: ControlLogix ReadUDT and WriteUDT
« on: January 08, 2021, 01:26:06 PM »
According to this SINT = SByte. But what about USINT? Can I delcare it as Byte and read/write it with ReadUDT/WriteUDT?
Unsigned tag types are not yet supported, but I will look into getting this implemented in the next beta version.

Unsigned types were added to the 5580/5380 platform only, v32 and above.  Also, Micro800 series.  I'm sure you already know but data types for reference (forgive the extra nonsense):

Code: [Select]
0xc6: (1, "USINT", '<B'),
0xc7: (2, "UINT", '<H'),
0xc8: (4, "UDINT", '<I'),
0xc9: (8, "LWORD", '<Q'),
0xcb: (8, "LREAL", '<d'),

Edit: Maybe you are already supporting those types and you were referring to adding support for read/write UDT specifically.  My bad if that statement is true...
I thought it needed to be implemented for both reading individual tags and parsing when Reading/writing UDTs, but after looking I see support for those new tag types were already implemented when reading them individually. So only parsing the UDT byte steam into equivalent classes needs to be implemented.

After I had posted, I thought I remembered us discussing this when v32 first came out.  I remember borrowing hardware to test this in python.

68
Tips & Tricks / Re: ControlLogix ReadUDT and WriteUDT
« on: January 07, 2021, 11:51:16 PM »
According to this SINT = SByte. But what about USINT? Can I delcare it as Byte and read/write it with ReadUDT/WriteUDT?
Unsigned tag types are not yet supported, but I will look into getting this implemented in the next beta version.

Unsigned types were added to the 5580/5380 platform only, v32 and above.  Also, Micro800 series.  I'm sure you already know but data types for reference (forgive the extra nonsense):

Code: [Select]
0xc6: (1, "USINT", '<B'),
0xc7: (2, "UINT", '<H'),
0xc8: (4, "UDINT", '<I'),
0xc9: (8, "LWORD", '<Q'),
0xcb: (8, "LREAL", '<d'),

Edit: Maybe you are already supporting those types and you were referring to adding support for read/write UDT specifically.  My bad if that statement is true...

69
Support Questions / Re: Read ML1400 PID.CVH
« on: January 06, 2021, 05:52:11 PM »
V3.99y Beta 37 supports all the elements of the PD data type.

https://www.advancedhmi.com/forum/index.php?topic=2838.0

Awesome!.

Just a few hours too late.  I ended up installing rslogix500 for the 7day grace period over teamviewer to set the value.  I have modified the program from home and now just waiting for a time to download (hope wihting the next 6days) I added some logic to mov N register values to the .CVL and .CVH.

Thank you to Archie for the fix though.

Side question, what is the easiest way to upgrade a previous project to the latest?

Microphone check this:

https://www.advancedhmi.com/forum/index.php?topic=218.msg16724#msg16724

70
Support Questions / Re: Read ML1400 PID.CVH
« on: January 06, 2021, 11:47:49 AM »

71
Support Questions / Re: Read ML1400 PID.CVH
« on: January 05, 2021, 09:47:21 PM »
Dang.  Unfortunately I can't do that in this case.  I'm trying to solve a problem where I need to change the CVH value but cannot connect to the PLC.  I was hoping to through together a quick HMI to get around my issue.

Not trying to promote another project, just trying to offer a solution.  You could check out pycomm or libplctag on github to see if it solves your problem before Archie gets to this.

72
Support Questions / Re: Change to program mode in Contollogix?
« on: December 23, 2020, 03:05:00 PM »
I read some release notes in the command line interface tool that suggested after a specific firmware, a full upload of the program is required for the mode to be changed.  So the driver would have to replicate that process in a way that the controller thought it was RSLogix/Studio5000, which would be an order of magnitude beyond the scope of any communication driver like this.

73
I found it from internet. I can't get source code. Decompiling doesn't worth to what i get.

Isn't there a way to use value got from PLC in control's code?
You found a control in a DLL from the internet that has a property PLCAddressValue?

Uh-oh, this has the potential to get a little awkward...

74
Feature Request / Re: Cloud Storage?
« on: September 24, 2020, 11:30:16 PM »
ddddddddddddddddddddddddddddddddddddddd13, what PLC are you working with and are you working with Android or IOS?  If you happen to be working with Android and Compact/Control Logix or Micro800, I might be able to help you make an app.  This would not be with AHMI but using python and Kivy to build an android app using python.

I'm not trying to steer anyone away from AHMI, I'm a full on advocate for it, I'm just offering a solution for a native Android app if it helps.

You could also consider:

https://play.google.com/store/apps/details?id=com.suppanel.suppanel&hl=en_US

75
Support Questions / Re: Slow responce to AHMI from SLC 5/05
« on: August 27, 2020, 01:23:32 PM »
It's not possible to email the projects because they contain .vb files that always get filtered out

I'd bet he could probably 7zip it, or zip it and rename the file extension to .txt.  Those will almost always get zips through the email filter.

Pages: 1 ... 3 4 [5] 6 7 ... 14