Author Topic: Writing BOOL Data  (Read 1419 times)

emarciazr

  • Newbie
  • *
  • Posts: 3
    • View Profile
Writing BOOL Data
« on: February 26, 2015, 06:22:56 PM »
Hi,
 
I'm using the EthernetIPForClxCom,I want to change the value of some BOOL Tags.

I'm  Trying the values  "1", 1 , "True",True, but its not working

With this options, i dont have any errors, but the value don't change in the tag
MyPLC.Write("MyTag","1")
MyPLC.Write("MyTag",1)


With this I have this Cast Error  text to Doble
MyPLC.Write("MyTag","True")

And this can't build the Code
MyPLC.Write("MyTag","1")

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Writing BOOL Data
« Reply #1 on: February 26, 2015, 06:32:47 PM »
Try adding a BasicLabel and set both PLCAddressValue and PLCAddressKeypad to the tag name. Then run the app, click on the label, and enter a 0 or 1.

This will verify the ability to write to the tag.

emarciazr

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Writing BOOL Data
« Reply #2 on: March 03, 2015, 06:26:24 PM »


I think the PLC Programmer was doing something with the variables, because Right I can write without problem.

Thanks for your help.