LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple value request from a device

Solved!
Go to solution

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.

0 Kudos
Message 1 of 17
(3,647 Views)

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?

 

 


GCentral
0 Kudos
Message 2 of 17
(3,612 Views)

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.

Message 3 of 17
(3,597 Views)

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.


GCentral
0 Kudos
Message 4 of 17
(3,583 Views)

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.

0 Kudos
Message 5 of 17
(3,580 Views)

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 🙂

0 Kudos
Message 6 of 17
(3,575 Views)

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...

waitForced.png

(I don't know how long you should wait though...)


GCentral
Message 7 of 17
(3,559 Views)

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.

0 Kudos
Message 8 of 17
(3,555 Views)

I'm not certain it will work, because I'm not familiar with RTU or the Bytes at Port node (typically the advice is to avoid this and use a termination character, like you see in the ASCII commands) but perhaps you can try this VI?

 


GCentral
0 Kudos
Message 9 of 17
(3,541 Views)

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. 🙂

0 Kudos
Message 10 of 17
(3,534 Views)