LabVIEW communication with Atlas Copco controller by Using Serial Communication referring open Atlas's protocol.
Since I am trying to get detailed tightening results to logging into LabVIEW. I found one document that guild to communicate with Atlas Copco controller you can find more detailed as an attached document.
The way to communicate with this controller by using Serial communication is 2 kinds of serial protocol.
Referred to an attached document, we need to open the serial port for communication first(Once we send a message to open the port will be opening only 15 seconds for your access) which means you need to send a command to access within 15 seconds. While the port is open we can send commands to communicate with the controller. After we get a talked-back message, we can send a command to close the protocol.
In this example, I also attached the LabVIEW project that inclued by VIs following the detalied below:
You can specify what is the value that you would like to get by using "String subset" in LabVIEW and you can also adjust the offset and length of string to get your wanted value. The table on page 136 will help you with data selecting, and config Sting subset at offset and length.
PS. Please make sure that you open the port before you are tightening.
if you have any comments, please drop me your comment. Thank you.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi Misa_Phongsit,
I am Trying to read Tightening torque value from FP-4000 Module, I am trying the same code which you linked.
but not getting the values from controller. Is there any setting we need to do at controller side?, to get the response.
We are using the Ethernet port 4545.
Need help !
Thanks
Vikram
Solved_The Torque And Angle Values Read From Atlas Copco PF-4000 Instrument over TCP/IP.
Hardware Required.
PF-4000
PC with Lab-view 2016 Installed.
Ethernet Cable (Straight).
Reference Document:
OpenProtocol_W7.5.pdf from https://www.scribd.com/document/73140058/Atlas-Copco-Open-Protocol-V7-5
Read Torque Value and Angle Value Using Open Protocol.
Download the attached Vi Snippet. TCP Driver
MAIN VI
Set IP Address and Make Sure the Port 4545 is configured of PF-4000.
To Read the Value from PF Controller we need to do following things:
1) Open TCP/IP
2) Start Communication (MID 0001) Revision2 TO PF-4000.
we Receive the Reply from PF-4000:(00620002002 0100010000020003Bolt torquing M/C -002 04ACT)
3) Subscribe Result (MID 0060)TO PF-4000.
F/B from PF-4000: (00240005 00000060)
4) Alive Communication (MID 9999) TO PF-4000.
F/B from PF-4000:(00209999 0000)
5) Read Values FROM PF-4000.( After every bolt Torquing it Gives following F/B)
Ex. F/B from PF-4000: 038500610021 0000010000020003Bolt torquing M/C -002 04
05000006001070208000030900001000001111221311411511611711811912000000000002100270022003300230030002400301325000002609999270000028000772900000300999931000003200033150340003500024036999900370000003800024039001600400000004100000000634200000430000044
F0470858452018-08-21:13:15:18462018-08-17:09:24:21
6) Stop Communication (MID 0003)TO PF-4000.(You Can Directly close TCP port).
7) Close TCP/IP
2.2 Message structure (All The Instruction Send to controller is formed as per the instruction given in Messahe Structure)
it contained (Header+ End Message) Refer the OpenProtocol_W7.5.pdf for More Details.
All information sent over the communication links is ASCII format.
Also Refer
5 All messages to Read/Write Particular Parameter to PF-4000.
Thanks
Vikram
Hi VGAPL17 i have been trying read Tightening torque value using open protocol, but i did not get succeed. I send a message to the controller but i did not get any response. Could you attached the .vi that or more images of the .vi please!!
note: using ethernet with a static ip adress and port 4545.
note:i try to drag the snippet that you attached but i couldn't.
Need help
Thanks
Hi everibody. Could you please share the VIs?