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

Pages: [1]
1
Thanks I had been looking at how C# code is different

2
I'm not sure what going on but I can't seam to correct the Errors

Below is my code;

using AdvancedHMIControls;
using System;
using System.Activities.Expressions;
using System.Activities.Statements;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AdvancedHMICS
{
    public partial class MainForm : Form
    {
        public object BasicLabel1 { get; private set; }
        public object Label2 { get; private set; }

        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
        }

        private void analogValueDisplay1_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
       
        }

        private void OFDReader_FileOk(object sender, CancelEventArgs e)
        {
           
       

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            Try
                Label1.Text = BasicLabel1.Text
                Label2.Text = Label1.Text - BasicLabel1.Text
            Catch ex as exception
                Label2.Text = ex.message
            End Try
        }

        private void label3_Click(object sender, EventArgs e)
        {
           
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }
    }
}

3
I am working on updating my HMI project on a "BasicTrendChart" on the 2nd page with 3 Basiclabels; 2 with the same registers address; 1st Label will display the current valve and the 2nd Label will display the current valve in a set time period (say in15 minute) note: the pressure values will be live data and all the labels will be updating every second, and the 3rd Basiclabel will display the difference value between the first and second label.
I know I will have to write a code to achieve my goal but not sure when to start.

Thanks for any help

4
Support Questions / Re: Modbus 16bit addresses Read Only
« on: February 15, 2024, 05:19:23 AM »
Update; The information was correct and it works perfect....Thanks for the help

5
Support Questions / Re: Modbus 16bit addresses Read Only
« on: February 13, 2024, 09:13:39 AM »
Thanks I will try it out when I get back on shift tonight

6
Support Questions / Modbus 16bit addresses Read Only
« on: February 12, 2024, 11:54:12 PM »
Hello all this is my first time here and I am working on a small project to try to make a HMI on just reading values; so for I had setup my PT sensors to display my readings on my screen but now I'm trying to display the valves to show if they are Open or Closed.
The address for one of the Valve status Indicator = 30209 and will have a reading of 1 if the Valve is Closed and 2 if the Valve is Open.
I had read different post but still haven't found a solution
I had tried different Controls Components but I couldn't fine where I can enter in a value of 1 for one color and 2 for another

Thanks

Pages: [1]