AdvancedHMI Software
General Category => Open Discussion => Topic started by: larryhts on February 01, 2018, 08:22:47 AM
-
Good Morning, I have a question about writing a value back to the PLC from code, I have a Data Base returning an Integer back to the VB and need to pass that on to the PLC. What would be the best way to use the code to write it to the PLC?
Larry
-
What type PLC and what is the address you want to write to?
You could do something like :
mydriver.myplc.Write("N7:100", valuefromdatabase)
This would be for Allen bradley slc/micrologix
-
jazzplayermark
This one is an AutomationDirect P2-550. I am using the modbusTCP driver, and its working very fast and well. Thanks for the point of a direct call to the driver. " Modbus51.Write("00001", True)" works very well for the bits.
Thanks again. Larry
-
The most important part of this content is more and more, and I can recommend the knowledge so that I can publish it for future use.