Author Topic: HMI Command To PLC #2 Based on Signal From PLC #1  (Read 5969 times)

AabeckControls

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: HMI Command To PLC #2 Based on Signal From PLC #1
« Reply #15 on: September 25, 2015, 11:05:39 PM »
I deleted the entire project on my computer, then copied a backup from 2 days ago back from my network storage.

Opened the project, added DF1Com5 & DataSubscription1 to every page that they weren't on, then pasted the final code above into each D.S., closed all forms & rebuilt.

Now it works fine. (Until I find something else to break)

AabeckControls

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: HMI Command To PLC #2 Based on Signal From PLC #1
« Reply #16 on: September 26, 2015, 08:18:36 PM »
Archie,

Just tried the whole-word-of-bits just like you had in the first suggestion and it works great.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: HMI Command To PLC #2 Based on Signal From PLC #1
« Reply #17 on: September 26, 2015, 09:07:31 PM »
The reason the bits do not work with that code is because the result of a reading a bit is a string of True or False. But when writing to a boolean, the driver only accepts a 0 or 1