キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Multiple value request from a device

解決済み
解決策を見る

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 件の賞賛
メッセージ1/17
4,552件の閲覧回数

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 件の賞賛
メッセージ2/17
4,517件の閲覧回数

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.

メッセージ3/17
4,502件の閲覧回数

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 件の賞賛
メッセージ4/17
4,488件の閲覧回数

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 件の賞賛
メッセージ5/17
4,485件の閲覧回数

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 件の賞賛
メッセージ6/17
4,480件の閲覧回数

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
メッセージ7/17
4,464件の閲覧回数

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 件の賞賛
メッセージ8/17
4,460件の閲覧回数

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 件の賞賛
メッセージ9/17
4,446件の閲覧回数

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 件の賞賛
メッセージ10/17
4,439件の閲覧回数