Skip to content

Commit

Permalink
Remove watchdog at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
darcato committed Nov 18, 2022
1 parent 2b3e864 commit 4982c68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions beckMotorApp/BeckhoffSrc/BeckDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ BeckPortDriver::BeckPortDriver(const char *portName, int startAddr, int nAxis, c
//printf("Axis %d -- CB 0x%04x -- CB 0x%04x -- CB 0x%04x\n", i, cache_[i][CB], cache_[i][DO], cache_[i][CW]);
}

// remove watchdog
asynInt32Client *watchdog_time = new asynInt32Client(outModbusPort, 0x1120, "UINT16");
asynInt32Client *watchdog_rset = new asynInt32Client(outModbusPort, 0x1121, "UINT16");
watchdog_rset->write(0xBECF);
watchdog_rset->write(0xAFFE);
watchdog_time->write(0);

asynStatus status;
for(size_t axis=0; axis<nAxis_; axis++){
epicsInt32 name;
Expand Down

0 comments on commit 4982c68

Please sign in to comment.