Author Topic: Writing to PLC problem  (Read 1628 times)

KanHaz

  • Newbie
  • *
  • Posts: 19
    • View Profile
Writing to PLC problem
« on: June 16, 2015, 12:50:47 PM »
With the older versions I was able to put a timer in the form and run a basic If Then statement to read, do some math, or write to the PLC. Now the timer doesn't work and/or the write function doesn't work. Were there any changes made to the write function? -->
Code: [Select]
EthernetIPforPLCSLCMicroCom_CNC.Write("N7:16", PartCount)


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Writing to PLC problem
« Reply #1 on: June 16, 2015, 01:17:31 PM »
Nothing in the basic functionality of the Write method was changed. If you put a breakpoint at that line of code by clicking in the left margin, then running the app, does it ever go to that break point?

KanHaz

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Writing to PLC problem
« Reply #2 on: June 16, 2015, 01:30:21 PM »
It never made it to the break point. I did find the cause though. The timer was disabled... Thought I checked that before...  >:(