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.


Topics - cws

Pages: [1]
1
Support Questions / Data Subscriber Question
« on: March 11, 2014, 05:17:39 PM »
Hi,

I'm trying to setup a data subscription using something like:

mSubscriptionIDs(DataSubscriberCount) = EthernetIPforCLXCom1.Subscribe("Fault[0]", 1, 1000, AddressOf SubscribedDataReturned2)

I can read from Fault[0] through Fault[15] but after that, the SubscribedDataReturned2 event doesn't get called.  I'm trying to just subscribe to one value at "Fault[93]" but can't seem to get the event to fire after "Fault[15]".

Thanks,
Chris

2
Support Questions / Data Subscriber Question
« on: November 05, 2013, 10:13:18 AM »
I'm using version 3.5.9.  If I add several Data Subscribers using code that looks something like:

For i = 1 To 8
mobjDataSubscribers(DataSubscriberCount) = New MfgControl.AdvancedHMI.DataSubscriber
         mobjDataSubscribers(DataSubscriberCount).CommComponent = EthernetIPforCLXCom1
         mobjDataSubscribers(DataSubscriberCount).SynchronizingObject = Me
         mobjDataSubscribers(DataSubscriberCount).PLCAddressValue = "AndOn_Call_Sta." & i.ToString   '(i + 1).ToString("D2")
         AddHandler mobjDataSubscribers(DataSubscriberCount).DataChanged, AddressOf DataSubscriber_DataChanged
         DataSubscriberCount += 1
      Next

3
Support Questions / Reading Bool Arrays
« on: October 09, 2013, 05:24:11 PM »
Hi,

I'm trying to read values that were defined as Bool Array (320).  It seems like I can do something like this in code:

Dim values(320) As String
values = EthernetIPforCLXCom1.Read("FAULT[0]", 320)
Dim x As String = values(0)

I really want to see just see 8 values, 231 - 238.  I tried using a BasicLabel control but not sure what I put in for the PLCAddress?  If I use "FAULT[0]", the label shows as "False".  If I use something like "FAULT[0].231", I get an error.  How do I reference the values for setting up DataSubcribers in code and also in controls like the BasicLabel?  I understand .NET but not much with PLC's.

Thanks,
Chris

4
Open Discussion / Basic Label Question
« on: September 30, 2013, 12:59:47 PM »
Hi,

I'm trying to use the BasicLabel control to show bit flags from the PLC.  I want to be able to show each section as a number like "1", "2", "3" etc.. and just set the color based on the "0" or "1" coming from the PLC.   When a value comes back from the PLC, it shows as True or False on the label and overwrites the "1", "2", etc...  I'm I supposed to hook into the TextChanged event and put the numbers back into the Value property or have a different set of number labels overlaying the Basiclabel control?  Also, when I change the BooleanDisplay to "On/Off" or "Yes/No" it still shows "True/False".    Should I be using the BasicLabel control or something else?

Thanks,
Chris

5
Open Discussion / EthernetIPforCLXCom1.GetTagList Question
« on: September 10, 2013, 05:30:18 PM »
Hi,

I'm new to PLC's but experienced with .NET programming.  I'm trying to understand all of the properties and events associated with all of the controls.  Is there a help file that explains each with examples?  For example, I stumbled across the EthernetIPforCLXCom1.GetTagList method which returns an array of MfgControl.AdvancedHMI.Drivers.CLXTag. One of the properties of the class is AbbreviatedType which returns values such as  "44705", "193", and "36739".  Is that data types such as String, Boolean, Integer, etc...?  How do I figure out what data type they map to?  There are other properties such as Instance and BitNumber.  What is the best way to learn about all of the controls, properties, methods, etc...?

Thanks,
Chris

Pages: [1]