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

Pages: [1]
1
Open Discussion / Autoscale screen
« on: February 18, 2015, 03:18:22 PM »
Is there a way to autoscale the Mainform screen so that it can shrink or grow to fit any monitor size and still display all the controls?  I recently created a project on a 14.7" screen but now am having troubles fitting the screen to the 13.3" monitor that I'm running the program on continuously.  When I click the "start debugging" feature in Visual Basic to run the project on the 13.3" monitor, the mainform screen is huge and I have to use the scroll bars to access all the controls.  Thank you.

2
It works.  Thank you.

3
Here is the code I ended up after entering N70:110 in the PLCAddressValue field of datasubscriber.  I still got an error when trying to run it.  Can you see what I'm missing?

Code:
    Private Sub DataSubscriber1_DataChanged(sender As System.Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged
        EthernetIPforPLCSLCMicroCom1.Write("N7:55", e.Values(0) * 2)
    End Sub

Error:
Overload resolution failed because no accessible 'Write' can be called without a narrowing conversion:
    'Public Function Write(startAddress As String, dataToWrite As String) As String': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'String'.
    'Public Function Write(startAddress As String, dataToWrite As Single) As Integer': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'Single'.
    'Public Function Write(startAddress As String, dataToWrite As Integer) As Integer': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'Integer'.

4
I am trying to figure out a way to read an address on the PLC, scale the value, and then write the scaled value to another PLC address.  For example, if address "N70:110" read 30, then scale 30 x 2, and write 60 to address "N7:55."  Any suggestions?  Thank you.

5
Hello,

I am using the AdvancedHMI program to read data from a control panel.  The control panel has a SLC 5/04 processor and some 1746-NI8 input modules.  I connect to the panel from my laptop via an ethernet/IP connection.  I am trying to set up some DigitalPanelMeter displays on the AdvancedHMI screen to show the actual milliamp (mA) value going into each channel on the input module. 

In the RSLogix program, each of these channels is given an address I:e.# where e = slot and # = the word being read from each of these channels (e.g., I:8.5 is the address for the fifth channel on the input module in slot 8).  In the AdvancedHMI program, I have entered these addresses as the PLCAddressValue in the DigitalPanelMeter properties.

This did not work as I had expected.  The DigitalPanelMeter only displays the reading from Channel 0 for each channel in the input module.  For example, if the reading to Channel 0 on the input module in the eighth slot is 5.7 mA and the reading to Channel 5 is 13.7 mA, then the DigitalPanelMeter setup to read PLCAddressValue I:8.5 displays "5.7 mA" instead of "13.7 mA."

Is there another way to write the PLCAddressValue or to adjust the properties so that the DigitalPenelMeter display reads the correct I:8.5 address instead of the I:8.0 address?

Thank you!

6
Tips & Tricks / Re: Very Simple Data Logging
« on: October 29, 2014, 03:36:49 PM »
I do not see the "Timer" listed in the AdvancedHMI Components in my Toolbox.  Am I looking in the wrong place?

Pages: [1]