809 const uint8_t sys = ((
data[0] & 0x1c)<<2) | (
data[1]);
822 if (alarm) out <<
" UPS-PowerLoss";
823 if (batt) out <<
" UPS-OnBattery";
824 if (charge) out <<
" UPS-Charging";
825 if (emcy) out <<
" EmcyOk";
826 if (vltg) out <<
" OvervoltOk";
827 if (mode) out <<
" ManualMove";
829 Info(
"New system status["+to_string(
node)+
"]:"+out.str());
831 Out() <<
"PDO3[" << (int)
node <<
"] StatusSys=" << hex << (
int)
fStatusSys << dec << endl;
834 const uint8_t axis = (
data[0]&0xa1) | (
data[3]&0x06);
839 const bool ready = axis&
kAxisBb;
846 if (ready) out <<
" DKC-Ready";
847 if (move) out <<
" Moving";
848 if (rpm) out <<
" RpmMode";
849 if (rf) out <<
" RF";
850 if (power) out <<
" PowerOn";
852 Info(
"New axis status["+to_string(
node)+
"]:"+out.str());
virtual void UpdateStatus(const Time &, const array< uint8_t, 3 > &)
int Info(const std::string &str)