Stojan Posted March 31, 2020 Report Posted March 31, 2020 On 3/4/2019 at 9:18 PM, ORSO2001 said: Hi all, untill now I used the MODBUS protocol to connect the PLC with PC (C#) ...now I am trying for the first time the SQL and FTP (two different jobs) but a library/driver for the .NET like in the VISION (I took a fast look) could be nice. thanks Hi ORSO2001, i am new to PLC and i was searching for solution how to connect with PLC. Since there is no Netdriver for Unistream, can you give me some guide line hot to make connection with PLC. I have Unistream 15.6'' . Thanks you in advance.
ORSO2001 Posted April 1, 2020 Report Posted April 1, 2020 Hi Stojan, all depends about what you need to do/transfer/check with the remote PC. 1) you can setup the PLC as Modbus SLAVE by TCP/IP connection....to do this you have to search in the "solution explorer" window: PLC communication -> Protocols -> MODBUS -> Slaves -> Panel Ethernet. done this you have to create SLAVE and add coils or registers ...Unistream expose some types of operation to manage the modbus coils/reguster...so I think that is better if you take a look at the online help. in this way you will create your own registers list...that can be only readable or readable and writable... 2) you can create structs that contain the information that you need...then write these information in some Data Tables...store these Tables in some files (SD card in the PLC is needed) and transfer by FTP these files (CSV format) in the remote PC...the remote PC will manage these files. 3) store all the information in some DB in the remote PC all these possible way need that the PC is able to manage the information...then some specific program has to be or created or uploaded and installed... from your message I don't understood if you will create the PC program; if this program is already present...or what.
Stojan Posted April 3, 2020 Report Posted April 3, 2020 On 4/1/2020 at 4:34 PM, ORSO2001 said: Hi Stojan, all depends about what you need to do/transfer/check with the remote PC. 1) you can setup the PLC as Modbus SLAVE by TCP/IP connection....to do this you have to search in the "solution explorer" window: PLC communication -> Protocols -> MODBUS -> Slaves -> Panel Ethernet. done this you have to create SLAVE and add coils or registers ...Unistream expose some types of operation to manage the modbus coils/reguster...so I think that is better if you take a look at the online help. in this way you will create your own registers list...that can be only readable or readable and writable... 2) you can create structs that contain the information that you need...then write these information in some Data Tables...store these Tables in some files (SD card in the PLC is needed) and transfer by FTP these files (CSV format) in the remote PC...the remote PC will manage these files. 3) store all the information in some DB in the remote PC all these possible way need that the PC is able to manage the information...then some specific program has to be or created or uploaded and installed... from your message I don't understood if you will create the PC program; if this program is already present...or what. Sorry for not been clear. I am trying to make a widows form program in C# from which will read/write to PLC. I have found some old examples for connecting with Unitronics PLC but nothing worked for me for my Unistream. Those are all for other models. I need some guide lines how in C# how to make code. Br.
Gabriel Franco Posted April 3, 2020 Report Posted April 3, 2020 I suggest you get a MODBUS TCP function to achieve what you want
Stojan Posted April 4, 2020 Report Posted April 4, 2020 17 hours ago, Gabriel Franco said: I suggest you get a MODBUS TCP function to achieve what you want Any more info? Some code sample? Br.
MVP 2023 Joe Tauser Posted April 4, 2020 MVP 2023 Report Posted April 4, 2020 He's talking about getting Modbus TCP library that you can include and call from your code. Google is your friend- https://sourceforge.net/projects/easymodbustcp/#focus Joe T.
cmarcus Posted July 8, 2020 Report Posted July 8, 2020 On 4/7/2019 at 11:50 PM, Joe Tauser said: @cmarcus - Did you write a specific and separately running program in C# using the .NET driver to hook into an SAP system? Joe T. Hi Joe, Sorry, this reply is over a year in the making. Yes, the .NET SAP driver was specifically developed to perform production step confirmation transactions in SAP. The broader system is a .NET application with a fancy user interface. The operators bar code scan the relevant SAP production info into the HMI of the .NET application. The .NET application establishes connections with several production devices (thickness gauge, vision inspection camera, weight scale and a Vision PLC with multiple count sensors for tracking various defect modes). The manufacturing process is run and data from all the connected devices is streamed back to the single .NET app on a part by part basis. Live trends, yields, and failure modes are displayed and log files are developed for tractability. When the order is complete, the operator simply clicks the "Close Order" button and we run the SAP transaction in the background, using the bar code scanned order number, material number, operator ID, and the integrated device data for production yield and itemized scrap codes. The operator does not touch the SAP interface, nor do they keystroke anything in the process. The Vision's PLC's .NET driver was a game changer for us. It was the most straight forward way to have machine level / tag level access, and combine this data with the results of our various other devices. Unfortunately, when it comes to the Unistream, I still have not seen any examples as clean and as reliable as the Vision .NET driver to gain tag level access to the data from a stand-alone PC application. Thanks, Chris
MVP 2023 Joe Tauser Posted July 8, 2020 MVP 2023 Report Posted July 8, 2020 Understood - thanks for the explanation. Let us call on the Wizards of Input - @AlexUT, @Cara Bereck Levy, @Saragani Joe T.
Cara Bereck Levy Posted July 19, 2020 Author Report Posted July 19, 2020 On 7/9/2020 at 2:11 AM, Joe Tauser said: Understood - thanks for the explanation. Let us call on the Wizards of Input - @AlexUT, @Cara Bereck Levy, @Saragani Joe T. LOL!!! sorry for the delay--I will speak with the relevant gurus to see if they have input.
jakabasej7 Posted June 22 Report Posted June 22 On 7/9/2020 at 7:11 AM, Joe Tauser said: Understood - thanks for the explanation. Let us call on the Wizards of Input - @AlexUT, @Cara Bereck Levy, @Saragani Joe T. 😁
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now