M
Sys Config = PLC 32+ Inputs & Outputs + VB6 HMI
(I have a driver to establish com with the PLC via VB, and have read inputs & outputs in to VB w/o any issues).
Here lies my problem, 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.
Q.#1) What is the proffered method of doing this?
Do I read the data in words, and then do a bitwise operation in VB, and then assign results to my HMI Display controls?
Would this (Bitwise OP) slowdown my VB program considerably, especially if I want to poll the PLC every 1 or 2 seconds?
I/O's 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 GURU's 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 have read inputs & outputs in to VB w/o any issues).
Here lies my problem, 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.
Q.#1) What is the proffered method of doing this?
Do I read the data in words, and then do a bitwise operation in VB, and then assign results to my HMI Display controls?
Would this (Bitwise OP) slowdown my VB program considerably, especially if I want to poll the PLC every 1 or 2 seconds?
I/O's 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 GURU's use and recommend.
Your help will be much appreciated!
-Bitwise & Byte foolish.