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

Pages: 1 ... 18 19 [20]
286
Support Questions / bit level addressing
« on: December 01, 2014, 07:35:37 PM »
Hi Archie, can you explain the bit level addressing newly added to AHMI 3.86?  How do i go about utilizing it?  This sounds like its what I been looking for, thanks. 

287
Support Questions / Re: Basic Indicator colors
« on: October 30, 2014, 10:19:35 PM »
Thanks, can you explain the PLC Address Select Color 2 and 3 properties?  What about the PLC address is AdvHMI looking for?  I am using AdvHMI to connect to control panels not a PLC so I dont have an individual bit to address here.  I have a register with various bits set depending on different conditions and Im trying to change the color based on a particular bit within the register.

288
Support Questions / Basic Indicator colors
« on: October 30, 2014, 12:49:22 PM »
Hi, can anyone provide code to change the color of a basic indicator? I have tried the following but they did not work. I have Bit5 assigned to a datasubscriber and getting a value of 1 for Bit 5 returned.  PLC properties for the BasicLabel are left blank and "none" for commcomponent. Thanks for the help!   

If Bit5 = 1 Then
            BasicIndicator1.SelectColor2 = True
        End If

        If Bit5 = 1 Then
            BasicIndicator2.Color1 = Color.Red
        End If
 

289
Support Questions / Event Log
« on: October 27, 2014, 09:31:03 AM »
Hi All.  I am trying to access an event log in a control panel.  This panel keeps the log stored and I can access it via modbus.  It requires me to write to a register to request the event number i want and the value is returned by another register.  So say I want event 2 then i write a value 2 to register 1 and the value is returned in register 2.  The problem is all values are returned in register 2 so to get more than one event i would need to constantly cycle the value of register 1 between 1 and 99 for all events. I have found that not writing to the panel returns me event 1 always, so I thought it may be best to avoid writing to the register 1 all together and using code "on data change" of a datasubscriber and then if the value of register 2 changes then a different event must be present.  i just need to know how to keep shifting the events i already have read down a line on my event list.  So event 1 is now event 2, replaced by new event read in register2.  Any help is greatly appreciated, thanks.   

290
Support Questions / Re: Changing colors by bit
« on: October 27, 2014, 09:10:54 AM »
Hi Doug, so I had a chance to test this and the code works well.  However there is one glitch.  I am using the "If LabelX.text=1 then picturebox.show". where I have a "stack" of pictureboxes that change to give me animation.  The problem is that after a short while, like a minute or two the labels all read a value of zero eventhough the status has not changed.  i have another label to show me the value of the register Im polling and it does not change.  It seems like if the data does not change after a short while then visual basic or the datasubscriber stops executing the code, which then my animation is all wrong. Is there another way.  I was going to try and convert the integer to a binary string and try to point some code to a particular bit.  Your thoughts??  Thanks     

291
Feature Request / Re: Email Alert
« on: October 20, 2014, 06:04:15 PM »
Hi Archie.  I see its been awhile since the last post.  is this feature available?  i dont see a control in 3.70 toolbox or an expansion pack, thanks. 

292
Support Questions / Re: Changing colors by bit
« on: October 20, 2014, 01:41:52 PM »
Being new to Vb, Im not sure what that entails.  i just need to display status'(in my case picture boxes) depending on multiple  bits in various registers.  The 4th bit may be position A while 7th bit may be position B.  In addition the 3rd bit of the same register may indicate alarm status.  I have tried to just convert the integer value of a basic label to binary and do some sort of bit check with a "select case" operator but have had no luck. I was also thinking that maybe there would be a way to use the "msg by bit" command for this but not sure how to translate the message to show a picturebox or other graphic.   Is there a way to do this using either method? Many thanks

293
Support Questions / Re: Changing colors by bit
« on: October 20, 2014, 12:34:39 AM »
Im looking to include all bits in the register.  I tried the 5th and 6th bit and this code did not work.  I changed the case to 16 and 32 respectively..no luck.  What code do I need for this to work?  Thanks 

294
Support Questions / Re: Changing colors by bit
« on: October 05, 2014, 07:39:39 PM »
Works great thanks.  What code changes are needed be use this to show an image(.bmp) as well?  Many thanks!!

295
Support Questions / Re: Changing colors by bit
« on: October 05, 2014, 03:13:51 PM »
I am reading a value of 17 (first and 5th bits)as seen by the bottom label2.  I changed the code to include "basiclabel1".  also I decreased the code to only bit 1 and 2 to avoid possible problems with 5th bit.  No success yet.

296
Support Questions / Re: Changing colors by bit
« on: October 05, 2014, 02:37:03 PM »
I tried this without success.  i set the modbus tcp driver parameters and added a data subscriber1 and set to 40015  then added a label as described.  I also tried using a basic label from AdvHMI components and changed the code to include "Basiclabel1"  Neither one worked.  I verified good comms to the devices.  What else should I try, thanks.   

297
Support Questions / Changing colors by bit
« on: October 04, 2014, 07:32:31 PM »
Hello,I am new to Vb and Advanced HMI.  I work with electrical distribution equipment and want to build a project where i can animate a line that represents a busbar with different colors depending on the source of power that is feeding it.  For example utility power is green, generator power is red etc.  I can read modbus bits that tell me what source the bus bar is connected to but how do I change colors depending on register bits?  Also does anyone know of a free software that allows me to create graphics for this purpose.  right now I am using microsoft paint, but that is very cumbersome.  Thanks for the help. 

Pages: 1 ... 18 19 [20]