Author Topic: DateTimePicker or MonthCalendar to PLC Tag  (Read 339 times)

ScottM

  • Newbie
  • *
  • Posts: 13
    • View Profile
DateTimePicker or MonthCalendar to PLC Tag
« on: March 24, 2022, 02:26:10 PM »
Hey guys,

Wondering if anyone has implemented a MonthCalendar or a DateTimePicker in to a CLX project..

Want to figure out how I could get one of them to write to a tag in my PLC.

Thanks

ScottM

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: DateTimePicker or MonthCalendar to PLC Tag
« Reply #1 on: March 24, 2022, 03:58:31 PM »
I Got it, Little digging and came up with this and it works perfect..
Label1 is just for a test to see the change..

 Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Label1.Text = DateTimePicker1.Value.ToShortDateString()
        EthernetIPforCLXCom1.Write("DateStringHMI", DateTimePicker1.Value.Date)
    End Sub

Thanks