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

Pages: [1]
1
Tips & Tricks / Re: CLICK PLCs and modbusTcp
« on: April 04, 2016, 09:32:38 AM »
I am using the same unit Tinker, with AHMI on Rpi and a touchscreen and ran into the same issue with the inputs. I just added Contacts in parrallel with all my inputs to get around it.

2
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: April 04, 2016, 09:03:40 AM »
Quick update. Still no luck with modbus rtu but the brand of plc i use has just bought out an ethernet based model.
I was able to connect direct to the plc via ethernet port of raspberry pi for cheap standalone touchscreen hmi. Exactly what i needed! Thanks for all the help guys!

3
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 29, 2015, 06:58:43 AM »
Thanks Godra. I had a feeling that was the case. Thank you for confirming.

4
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 29, 2015, 01:48:21 AM »
Hi Godra,
               Please Excuse my lack of VB Coding Knowledge but I have been trying to find the sections of code where you modified the "Open Serial Port" commands and I cant find them anywhere in the Advanced HMI files. Am I missing something? Was hoping to replicate your successful attempt at getting the com port open. Could it be that the code is different in V3.98t to the v3.84 that you modified? Or am I looking in the wrong places? Browsed through all .vb files in the advanced HMI folder looking for "open serial port" and "WaitForResponse" but didnt come across anything. Apologies if this is a really basic Noob question.

zip

5
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 21, 2015, 11:38:14 PM »
That is the same error message that i have been getting.

6
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 19, 2015, 09:19:09 PM »
Still no luck.
I have a feeling modbusRTU driver would work in wine with a link between COM1 and /dev/ttyUSB0 in DOSDevices folder as Godra suggested earlier. Unfortunately i cant test that as wine wont run on pi and i have no other linux machine. Might build a virtual on windows one of these days.
Last night tried Vitors experiment connecting to plc through pi via pc using Modbus TCP driver and Ser2net on pi to link IP to ttyUSB0. Connection works (although garbled as my plc is not compatable with TCP). RxTx flashing away nicely on plc port though as soon as AHMI opened on PC.
Considering a workaround using modbustcp-rtu software on the pi. Thoughts?

Godra i tried the linux distro instructions you suggested but ourputs were significantly different. Also could not get GetSerial exe. To run. It would open briefly then close. Both GUI and Command line files did the same. May i ask the intended pupose of the GetSeriak exe? Could find a whole lot on google except for getserial errors.

7
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 18, 2015, 08:46:59 PM »
That's exactly what im aiming for. Cheap full colour stand alone HMI.
Will let you knkw how i get on.

8
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 17, 2015, 11:57:57 PM »
Thanks Godra will try that soon.
Just read a few of Vitors projects again and there is bits and pieces in there that i think i cann use to point me in the right direction. The difference being i am trying to elominate the use of a PC. I only want to use my PC to design the AHMI interface then load that interface onto the pi so i have a standalone unit consisting of pi (with touchscreen) and PLC.


9
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 17, 2015, 11:27:29 PM »
Sorry, also to clarify, not nessessarily concerned about working with mono. Only that is what is running AHMI on Pi.
So i figured was relevant. I have a touch screen attached to pi to display AHMI comminicating with PLC via RTU. Looking forward to trying out these new suggestions tonight. As frustrating as this can be is a hell of a lot of fun!

10
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 17, 2015, 10:46:46 PM »
Thanks Godra. Re-read Vitors post and you are correct. I must have skimmed over that before. I probably saw the IP address and immediately associated it with TCP connection. Was sifting through so much material. On the plus side learnt alot of cool stuff along the way!

Vitor. Yes i am looking at connecting my pi directly to plc via usb - serial adaptor. Am confident your method will work (prpviding i can get ser2ser etc to run ok. Will let you know of i get stuck/how i go.

Thanks again guys.

11
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 17, 2015, 08:19:20 AM »
Hi Guys,
             Still Bashing head on desk with this one.
Is it possible that the ModbusRTU driver is not recognising /dev/ttyUSB0 for the Port Name? Does it need a COM address. May be due to declining options but I feel as though Godra's suggestion of 'Linking' a COM port with /dev/ttyUSB0 would be successful, unfortunately I cant get that to work in Mono on my Pi. I am unfamiliar with wine, but from what i have googled/hunted for in my pi there is no equivalent to DOSDevices in MONO. I tried a symlink but could not get that to associate with Mono (damn my limited linux knowledge).
PLC is receiving bits through minicom (RX flashing when I push keys) and everything seems to check out with /dev/ttyUSB0 in set serial etc.
FYI i am using a USB to Serial converter into com port 1 of my PLC which runs perfectly with AHMI on Windows (port name COM1)
Tried installing UBUNTU MATE today to see if there was any change but coming up with the same 'FAILED TO OPEN /DEV/TTYUSB0"
At the moment I am trying to install QT Creator to see if I can get Qmodbus-master communicating. Does not do what I require but may help me whittle down where my issue lies. Just thought I would put this out there in the meantime.

@Vitor. Thankyou for reposting link. Unfortunately mu PLC doesnt support TCP without a gateway (as far as I can gather)

12
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 11, 2015, 10:00:27 PM »
Awesome guys. Sounds promising. Thanks for taking the time. I will have a crack as soon as i get back. Will let you know how i get on.

13
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 11, 2015, 05:37:29 AM »
No worries Archie. I will keep trying. My PLC is recieving data sent via serial from pi so i know my connection is good. 99% sure it is just identifying the com port of the Pi in the ModbusRTU driver. On my PC COM3 etc works a treat but Pis /dev/ttyAMAO or /dev/USB0 cant be opened by AHMI. I can find my way around Pis and PLC ok but my VB skills are non existant.

@Godra
I had read through this thread previously but cannot open the link inside of the downloaded files. Ethernet communication or modbusTCP via a gateway is the next route i will explore, just trying to keep it identical to how we connect via our pc's.

Thanks for your comments!
Great forum and fantastic product Archie

14
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: August 10, 2015, 09:14:14 AM »
Hi Archie,
                  I am hoping to connect use AHMI on an RPi connected to a plc communicating via ModbusRTU. I have been using this perfectly from PC and i am fairly sure my issue lies  with the com port setting in the RTU Driver within AHMI. I assumed it should be /dev/ttyUSB0 which my pi is showing as location of the usb-serial i am using. Also tried /dev/ttyAMAO with a GPIO-serial adapter with no luck. I am fairly sure my serial setting are all set correctly via minicom so i dont think there is an issue there. Any suggestions would be greatly appreciated.

Zip

Pages: [1]