06-14-2017 11:37 PM
Hi Everyone.
I'm a newbie for Labview (just started 2 days ago) and then I have some problems. I use this device (http://www.toma.nl/nl/manuals/toma/shinko%20jcs-33a.pdf) and i want to request PV and SV but i can only request one of two values, just value that i request first(the second value return only 0). can someone help me please.
ps. sorry for my English. I'm from the country that not use English for a main language.
Solved! Go to Solution.
06-15-2017 12:01 AM
Is there some information about the communications protocol? I see only a brief description at the end regarding option C5 (which I guess you have already) which gives information about rates, stop bits and so on.
Since you get one result, your difficulty probably isn't communication. I would guess it is related to the input number of Bytes, but I'm not sure.
Where did you find the hex codes you're sending to get the values?
06-15-2017 01:10 AM
I found the hex code from this manual(http://www.shinko-technos.co.jp/e/manual/english/JC3CE11.pdf) in the RTU mode at page 6.
ps. i try to request them seperately and it's work. The problem is how to combine it together.
06-15-2017 01:38 AM
Ah - I see.
I don't think that you can, without reading from 0001 (the first value, SV1) to 0080 (PV) and getting all values in between, then parsing them all. I think reading them separately, one after the other is best.
Do you need to use RTU mode because of high rate or other instruments? If not, using the ASCII mode and having a termination character might be much easier.
If you need to use RTU, you should do what you have now, but just use one after the other. The RTU mode requires a wait of 3.5 character times between each mode, which makes it a little more complicated. With ASCII, you can use VISA Read with the termination character set to LF (0A, the default) and it will give you one message at a time.
06-15-2017 01:45 AM
Could you explain more about "reading one after the other" please.
And I have to use RTU mode because i have to practice before using Modbus RTU with RS - 485.
06-15-2017 01:58 AM - edited 06-15-2017 02:05 AM
Sorry but i want to know that after i'm using "flat sequence" does it mean left subdiagram is doing before right subdiagram?
Is it the same thing that you told me to reading one bofore other?
Anyway. Thanks for try to help me 🙂
06-15-2017 02:23 AM
The Flat Sequence will mean that left happens before right, but you shouldn't need to use it - if you connect the error wires then they have to happen in the order they are wired anyway.
A common use of the flat sequence structure is to place a wait at a certain time, which you might need to do. You could do that like this...
(I don't know how long you should wait though...)
06-15-2017 02:47 AM
okay. now you make me understand about how to use flat sequence. 🙂
but i still have same problem with before ... i seriously don't know how to fix 2nd value return 0 all the time. 😞
can you give me some advices to help me fix this problem.
thanks.
06-15-2017 03:54 AM
06-15-2017 04:04 AM
i can't try it now because of labview version (i use labview 2015) but i will try your VI and tell you the result as fast as i can. (I can't download new version now because i use public network).
Thank you. 🙂