From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Between Atlas Copco PF 4000 and National Instrument Test Panel

Dear All

 

i am trying to send a MID 0001 command to my Atlas Copco PF 4000 via the Open Visa Test Panel or the Simple Serial VI. the command i am sending is 002000010060  00 NUL

but i am unable to get a response.

 

soarin619_0-1577436849283.png

soarin619_1-1577436942780.png

soarin619_2-1577436979254.png

 

 

soarin619_4-1577437030647.png

when i write there is no error when  query there is an error.

 

soarin619_5-1577437122265.png

 

Besides this i also tried using a VI

and i have no idea.

 

could you guys please kindly help me thanks.

 

my aim is to send a MID 0001 to atlas copco and get a feed back of MID 0002.

ps. i have downloaded open protocol (2.7) and i am able to communicate with it

 

 

0 Kudos
Message 1 of 5
(5,010 Views)

Hi soarin, 

 

I haven't checked your VI yet (on phone) but will do so later if I can. 

 

In the mean time, I took a look at a possible set of documentation for Open Protocol I found here: Rickedb GitHub/OpenProtocolInterpreter (this is a project that creates some object oriented handler in C# by the look of the description - it might be worth you taking a closer look if you're interested but I haven't checked it).

 

The message protocol you need seems to be significantly more complicated that the MAX communication you're attempting. I can see a whole collection of additional bytes in the header (e.g x06x09x06x09STX) iirc? that you might be needing.

 

Perhaps use your VI to allow clarity in byte choice and check your null is correct. I'll take a look when I can but read the documentation (or attach a version covering 2.7 of it's different) and try adding the extra bits of communication necessary.

 

Once you have your 1/2 messages working, I suspect there may be a lot of work to go handling the messaging.

 

You could also consider e.g. Fieldbus or Profibus, which may be simpler to use.


GCentral
0 Kudos
Message 2 of 5
(4,949 Views)

It appears you are supposed to be sending binary/hex/raw data bytes, but you are sending ASCII characters.  So with your VI, you should wire up a FALSE to the Enable Termination Character on the VISA Configure Serial Port.  Then you should right-click on your Write Buffer control and select Visible Items->Display Style.  You will see a little "n" show up on your control.  Click it and now select Hex Display.  The control will now show the raw data bytes in a hexadecimal format.  You can now type in your command, using 00 for the NUL character.

 

To give any more advice, I really need a protocol definition.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(4,918 Views)

Hi

 

firstly i would like to thank you for replying me. i really appreciate the help.

 

here is the link to the open protocol PDF. https://kupdf.net/download/atlas-copco-open-protocol-v75_597b8403dc0d607f1c2bb189_pdf

i will only be back at work on thursday. will update on my progress after trying your suggestion.

thank you so much

 

thanks

kenneth

0 Kudos
Message 4 of 5
(4,016 Views)

Hi 

 

i have actually found a sample LABVIEW VI online and it still does not work .

https://github.com/PhongsitMisa/LabVIEW-communication-with-Atlas-Copco-controller-by-Using-Serial-Co...

i tried the code and it does not work

 

thanks

kenneth

0 Kudos
Message 5 of 5
(4,010 Views)