max Posted December 11, 2012 Share Posted December 11, 2012 Does anyone have example code using the auxiliary serial port on the UMAC to communicate to an external device? Per the manual : "Turbo PMAC permits its default command parser to be disabled on the auxiliary serial port, which enables the user to process input strings on this port" Link to comment Share on other sites More sharing options...
Sina.Sattari Posted December 12, 2012 Share Posted December 12, 2012 Max, I had written the following code to read a 3D Gyroscope over the auxiliary serial port of a Turbo PMAC2. It should give you a head start: I have also included the communication specification on the sensor used in this code as a reference for some of the commands sent to the device in this code.Serial Port Manual Parser Code.zip3DM-GX1%20Data%20Communication%20Protocol%203101.pdf Link to comment Share on other sites More sharing options...
wxjd87 Posted May 27, 2013 Share Posted May 27, 2013 Max, I had written the following code to read a 3D Gyroscope over the auxiliary serial port of a Turbo PMAC2. It should give you a head start: I have also included the communication specification on the sensor used in this code as a reference for some of the commands sent to the device in this code. wow,I have been finding this topic for a long time! Hope it's useful Link to comment Share on other sites More sharing options...
kramrellim Posted November 28, 2013 Share Posted November 28, 2013 Sina, would it possible to show an example of sending data out the serial port either main or aux. I have a app that needs to communacate to a arduino board via serial (rs232). I will need to send data like... "?P1200" or "!W" etc. I then will need to read some response like "1200" etc. This app will be using the NC program by the way. Link to comment Share on other sites More sharing options...
Sina.Sattari Posted December 4, 2013 Share Posted December 4, 2013 I have made an app note which explains how to read/write to main/auxiliary serial ports on Turbo PMAC including examples for each of the cases. This file is also available in FileDepot under file name "Direct Access to Turbo PMAC’s Serial Port Buffers.PDF"Direct Access to Turbo PMAC’s Serial Port Buffers.pdfRead Main Serial Port.pmcWrite Main Serial Port.pmcRead Auxiliary Serial Port.pmcWrite Auxiliary Serial Port.pmc Link to comment Share on other sites More sharing options...
kramrellim Posted January 5, 2014 Share Posted January 5, 2014 I have made an app note which explains how to read/write to main/auxiliary serial ports on Turbo PMAC including examples for each of the cases. This file is also available in FileDepot under file name "Direct Access to Turbo PMAC’s Serial Port Buffers.PDF" Sina, I've tried these out and they seem to work so far except I have one problem. I'm only sending one value If I set P3001 to the following and set P3000=1 this is the results I removed the CR an LF chars at the end. P3001=12345 49 50 51 52 53 looks OK P3001=9999 57 57 57 57 Ok P3001=1000 49 48 48 48 Ok P3001=10000 58 208 34 188 46 183 Bad P3001=11111 49 49 49 49 49 Ok Got any ideas what could be causing this? Mark Miller Link to comment Share on other sites More sharing options...
Sina.Sattari Posted January 8, 2014 Share Posted January 8, 2014 Hi Mark, I think I found the problem in the code (It was caused by a division round off error). I didn't have time to test it though. Would you mind trying and let me know how it works.Write Main Serial Port.pmcWrite Auxiliary Serial Port.pmc Link to comment Share on other sites More sharing options...
Sergio Posted May 10, 2016 Share Posted May 10, 2016 Hello, I have a turbo clipper and I have a need to interface to a amplifier that measures pressures via the main serial port on the clipper. Does any one knows the frequency in which I could get data via the serial interface? Thanks, Link to comment Share on other sites More sharing options...
Omron Forums Support Posted May 10, 2016 Share Posted May 10, 2016 That is dictated by the baud rate you select. Baud is bits per second. Link to comment Share on other sites More sharing options...
Sergio Posted May 10, 2016 Share Posted May 10, 2016 Thanks CharlesP. Follow-up: Any documentation/examples on setting the communication baud, parity, etc..? Thanks. Link to comment Share on other sites More sharing options...
steve.milici Posted May 11, 2016 Share Posted May 11, 2016 This is described in the Turbo Clipper User's manual: "http://www.deltatau.com/manuals/pdfs/TURBO%20PMAC%20CLIPPER%20HRM.pdf?id=635787783280797412" See page 18 Link to comment Share on other sites More sharing options...
Recommended Posts