A
Sys Config = PLC 32+ Inputs & Outputs + VB6 HMI
I have a driver to establish com with the PLC via VB, and I am able read inputs & outputs in to VB w/o any issues.
I read single bits and update On/Off indicators on the GUI. This to me seems like not the most efficient way to go. Especially when I want to poll the plc every 1 to 2 seconds.
#1) What is the preferred method of doing this?
Do I read the data in words and then do a bitwise operation in VB and assign results to my HMI display controls?
#2) Would this (Bitwise OP) slowdown my VB program considerably? Especially if I want to poll the PLC every 1 or 2 seconds?
I/Os in the PLC may grow past 256 in the future. So I am trying to learn the best way to do this and see what approaches the GURUs use and recommend.
Your help will be much appreciated!
-Bitwise & Byte foolish.
I have a driver to establish com with the PLC via VB, and I am able read inputs & outputs in to VB w/o any issues.
I read single bits and update On/Off indicators on the GUI. This to me seems like not the most efficient way to go. Especially when I want to poll the plc every 1 to 2 seconds.
#1) What is the preferred method of doing this?
Do I read the data in words and then do a bitwise operation in VB and assign results to my HMI display controls?
#2) Would this (Bitwise OP) slowdown my VB program considerably? Especially if I want to poll the PLC every 1 or 2 seconds?
I/Os in the PLC may grow past 256 in the future. So I am trying to learn the best way to do this and see what approaches the GURUs use and recommend.
Your help will be much appreciated!
-Bitwise & Byte foolish.