12-15-2005 02:44 AM
12-15-2005 03:45 AM
Dear Mr. Srinivas,
Let us become friends first, instead of you call me sir.
Here you can do is to just put the parameters which are required, like No of registers, protocol start address, modbus slave address, Modbus function etc. now take all these parameters and generate a CRC for that, to generate the CRC, the VI is given in the MODBUS driver, and MBwaitforserial register is not used anywhere, uptil now, may be it will come in use afterwards, i dont know much more about that, whenever you generate a query, generate a seprate query in each case and whenever u take the reply, take it seperately, in individual case, so it doesnt clash the modbus function and main thing is the case is drived by the modbus functions like 03:Read output Reister,16:Write multiple o/p register etc. and make the sequential case structure, for clearing the port, sending the query and taking the response form the device.
i think which helps you now.
12-15-2005 06:33 AM
Thanks Mr. Nishant,
can you explain me what is the use of shift registers that are located on a loop?
thanks
12-15-2005 12:20 PM
12-15-2005 09:55 PM
Thanks Michael,
I want to ask that, is this only works on LV8, coz we have the LV7.1 & i haven't tried it, so please help me.
Thanks,
Nishant
12-15-2005 10:01 PM
Mr. Srinivas,
Use of shift register on the loop is just to increment the count of the functions we have added in to the loop. by attaching it to the variable, the variable will increment after each count increment of loop.
Thanks,
Nishant
12-16-2005 12:23 AM
so we can have shift registers only in while loop.we dont require these with for loop,m i right?
thanks
12-16-2005 01:08 AM
No,
Absolutely not and another thing, for which purpose u r usig for loop?
we can complete it through case structure and sequential structures only, no need to use any other loops.
see this image. that shows you how we have generated the query and this for one case, function 16, and for other cases you can generate the query like this.

Thanks,
Nishant
12-16-2005 01:10 AM
Sorry,
I am attaching the image here.
12-16-2005 04:25 AM
but the image is nt visible Mr. Nishant.
can you send it again?
thanks