hi,
iam doing a windows application.iam displaying values in the form at runtime.
my requirement is from PLC iam retrieving 40 values like 0 and 1 s
then iam displaying 1st 16 values into one textbox
next 16 values into one textbox
next 8 values into one textbox
for example 010000000000000 1 ------ first textbox
and one more thing is values are displaying from right to left
ex : if 1st value is 1 then that is at starting at right
in my previous code iam displaying one value into one textbox.
now my requirement is like this
my previous code
so anyone help me with this code .please its very urgent.
iam doing a windows application.iam displaying values in the form at runtime.
my requirement is from PLC iam retrieving 40 values like 0 and 1 s
then iam displaying 1st 16 values into one textbox
next 16 values into one textbox
next 8 values into one textbox
for example 010000000000000 1 ------ first textbox
and one more thing is values are displaying from right to left
ex : if 1st value is 1 then that is at starting at right
in my previous code iam displaying one value into one textbox.
now my requirement is like this
my previous code
Code:
Dim intVALUE_INDEX As Short Dim intINVISIBLE As Short Dim intCEMCON As Short intCEMCON = mfrmANALOG_VALUES.CURRENT_CEMCON For intVALUE_INDEX = 0 To (muiiobufCEMCON(intCEMCON).ANALOG_INPUTS - 1) If intVALUE_INDEX > 45 Then Exit For mfrmANALOG_VALUES.Label1(intVALUE_INDEX).Text = CStr(intVALUE_INDEX) mfrmANALOG_VALUES.txtVALUE(intVALUE_INDEX).Text = CStr(muiiobufCEMCON(intCEMCON).GET_ANALOG_INPUT(intVALUE_INDEX + 1)) Next intVALUE_INDEX For intINVISIBLE = muiiobufCEMCON(intCEMCON).ANALOG_INPUTS To 45 mfrmANALOG_VALUES.Label1(intINVISIBLE).Visible = False mfrmANALOG_VALUES.txtVALUE(intINVISIBLE).Visible = False Next intINVISIBLE
so anyone help me with this code .please its very urgent.
Comment