Search the Community
Showing results for tags '.net'.
-
I've seen a couple of examples explaining using the .net library to read/write multiple MI's/MB's during a single call is it possible to read discrete I/O, Counters, Timers as well as MI/MB/DW/MF/ and SB in one call to the PLC using the .net library? Could you provide an example of the function, and then is there detail of the array structure that's generated on the PC side. Thanks -a
-
Hi, As another user, i'm tring to read a timer value by using com driver .net and I 've got an exception (see the attach file). Have you got a solution. Thank you
-
Hello, I'm having an issue with getting the .NET driver to connect and read values. I am having no problems connecting using Visilogic, but when I take those properties and use them in the .NET driver they don't seem to be working. The interesting this is that I'm not getting an exception, so my application believes the driver is connected, but looking at the properties for the Ethernet object it appears not to be. When I put a break point on the oPLC object, it states that the object could not be evaluated because the previous function had timed out. When run it down to the
-
Good afternoon, Is it possble to upload a PLC program from a connected PC programmicly? I've using the Vision 230 in a peice of equipment with 100+ installations around the world, recently we added several features that we need to distrubute to all the PLC's From a hardware standpoint, we have a supervisory computer connected to #1 RS232 port. We distrubute the PC Superviory software via windows click-once, I'd like to build a batch file that would run post appilcation installation to update the PLC. 1) has anyone every done a project that the PLC code is distrubuted with a Visu
- 1 reply
-
- vision 230
- .net
-
(and 3 more)
Tagged with:
-
Hello, I have a .net application that connects to a 570 via RS-232 using System.IO.Ports.SerialPort. Normally, it will connect. However, when playing with different baud rates, it sometimes does not connect until I connect the same PC with any Unitronics software (Visilogic or Remote Operator). My question is this: With VIsilogic, it appears that you can define the baud rate to anything in the connection properties and it always connects. How does the controller adapt accordingly? I think "out of the box", the rate is set to 115200. If I change my application to 57600, it failes to
-
hello, I.m a newbee and I'm developing a scada application, and I want to connect with multiple plc's using UniOPC Server. Scada is developed in C# .net and I'm using for opc client: OPC .NET API 2.00 Redistributables. For connecting to uniopc server, i need the name and location for the server: Thanks in advance.
-
How would I retrieve the hardware serial number from the V230 throught the .net interface? Currently I'm following the documented example of plc = PLCFactory.GetPLC(serial, 0) Dim version As PlcVersion = plc.Version System.Diagnostics.Debug.Print(version.OSVersion) System.Diagnostics.Debug.Print(version.HWVersion) System.Diagnostics.Debug.Print(version.OPLCModel) System.Diagnostics.Debug.Print(version.Boot) plc.RTC = DateTime.Now ' write current time and date to the PLC Thanks Aaron
-
Hi all, Im having a new application in which i want to fetch data from 5 - V130 Plcs and store into a database(MS access). Im planning to poll plc data by c# code. for just a serial interface i can get the data from the plc. But how can i call each unitID? Is there any examples for modbus c# codes. send me someguidelines. Thanks in advance, Jerin....
-
All, I need to write to a timer preset and am getting an 'object' error using the .net driver. I'm sort of between a rock and a hard place... THanks in advance. Below is the 'function' that attempts to write - Public Function Write_TimerPreset(ByVal tmrIndex As Int16, ByVal TmrValue As integer) As Boolean Dim values As Object() = New Object(2) {} Try values(0) = DirectCast(TmrValue, Object) Catch System.Windows.Forms. MessageBox.Show("One of more of the values are not valid") Return False Exit Function End Try Dim wo As WriteOperands = New WriteOperands() With wo .NumberOfOp
-
Hi, We are using datatables in V570. Trying to write to the first column in the first table in V570, address 0 – which is a Integer column. I’m not able to write to it, I Just get an UserInputException (Invalid write values). I’m able to read the same column, using the same addressing. What’s wrong with my code? Public Function WriteTableFeedPlan(ByVal FeedPlanId As Integer) Dim rw() As ReadWriteRequest = New ReadWriteRequest(0) {} Dim StartAddress As UInteger = 0 Dim NumberOfBytesToWriteInRow As UShort = 2 Dim NumberOfRowsToWrite As UShort = 1 Dim RowSizeInBytes As UShor
- 1 reply
-
- Datatables
- .net
-
(and 2 more)
Tagged with:
-
Good morning, I'm reviewing the .net verision of the Com Drive, I've got an applicaiton that requires serial communication between the PC and the PLC occur on a seperate thread from the UI due to performance concerns. Has anyone done this successfuly and would you be willing to share the .net class code? Thanks a million, any help would get me out of a pickel. Aaron
-
People who see the SD Card Explorer in action usually sometimes wish to have the same functionality in their own application.Some of them contact Unitronics in order to get some details on the protocol, or ways that they can do the same, while others fear from the worst: that it's a lot of work.I know very few people that will be happy to write the whole protocol by themselves.The only guy I can think of in that matter is Ash Nielson... I have no idea where he gets his strength and energy from, but the solution for this problem is actually simpler than you think.You don't have to be energetic
- 3 comments
-
- Communication
- C#
-
(and 9 more)
Tagged with:
-
Multi Connection Listener on the .Net Communication Driver
Saragani posted a blog entry in Saragani's Blog
You are probably saying to yourself "Hey, you promised that the next episode of 'Build your own SD Card Explorer' will be published, so how come Saragani posts about something else?"Well, I actually said that the next episode will be posted next week :-)It is going to have a lot of code and it will be a lot of work writing it so I might split it to few pieces.Besides, I can use this blog entry to post about new features of the Com Driver.I wrote this multi listener a while ago, but the source code of the communication driver was not published since then.You might assume that writing the Multi-