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

Pages: [1]
1
Support Questions / Re: Writing a string value to Controllogix tags
« on: November 12, 2013, 09:37:44 PM »
I understand.
Thanks Archie, I am not good with coding and had no idea what the DataSubscriber control meant until now.

2
Support Questions / Re: Writing a string value to Controllogix tags
« on: November 12, 2013, 04:08:21 PM »
Thanks! It works!

I need a little addition: (Test_Bool is a controller scoped bit)
Quote
If Test_Bool = 1, then
EthernetIPforCLXCom1.Write("Test_String", "Hello")

Is that possible by any chance ?


I didn't mention the whole idea earlier.
I am logging part data to a database. I have a few basic cameras which save images of the current part to a computer. I need to somehow tie that image to the part data.
To solve this, I want to send the name of the file to the PLC, who ties the filename to the part number in a UDT. This info is then stored to a database.
I could have logged to the database directly from the HMI, but since I don't know how and since that part is being worked on by another programmer, I can't change that too much.

3
Support Questions / Writing a string value to Controllogix tags
« on: November 12, 2013, 01:31:26 PM »
Hopefully, this is a simple enough to solve.

I was testing the software and could not find a way to send a string or DINT value to a Controllogix PLC connected via ethernetIP.

Say, I want to write "Hello" to a tag called "Test_String" ; or write "500" to a tag called "Test_Number", when a bit turns on.

I was able to set up communication and read values and display them in a meter control, but how do you write something ?

Thanks.

Pages: [1]