mtconnect / adapter

MTConnect adapter framework
90 stars 73 forks source link

Negative PMC Addresses incorrect #3

Open ellisware opened 10 years ago

ellisware commented 10 years ago

Hello,

Line 378 of fanuc_adapter.cpp incorrectly handles negative return values. A simple change to: mPMCVariable[i]->setValue(-buf.u.cdata[0] + 128); to return a decimal value of 0 to 255.

Outstanding work, thank you very much for your vision.