KennNova Posted March 14, 2014 Share Posted March 14, 2014 We are looking to use a couple of the output bits sent to an ABB FMAC-01 station at Gate3[0].MacroOutA[4][3]. It appears from the ABB documentation that bits 31,30,29,28 are unsed. However, when we attempt to write to that location, it is over written. We were actually attempting to point the brake control to that location, but that didn't seem to work either. We did find an undocumented pPMAC feature called Motor[x].MacroCrtl. It appears we can write to that location and the bits to flow through Macro to the FMAC-01 registers. However, pointing Motor[x].pBrake to Motor[x].MacroCrtl doesn't seem to work either. Better ways of doing this? Help! Link to comment Share on other sites More sharing options...
steve.milici Posted April 3, 2014 Share Posted April 3, 2014 Using Motor[x].MacroCrtl is the correct approach. Since selective bit assignments to Motor[x].MacroCtrl are not allowed (firmware greater than vs 1.6.0.30 may now allow this) use the following method for example to change bit 31: ptr test3->motor[1].macroctrl test3 = test3 | $80000000 // Write to bit 31 test3 = test3 & $7FFFFFFF // Clear bit 31 Link to comment Share on other sites More sharing options...
Recommended Posts