Skip to content

Commit 4982c68

Browse files
committed
Remove watchdog at startup
1 parent 2b3e864 commit 4982c68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

beckMotorApp/BeckhoffSrc/BeckDriver.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ BeckPortDriver::BeckPortDriver(const char *portName, int startAddr, int nAxis, c
110110
//printf("Axis %d -- CB 0x%04x -- CB 0x%04x -- CB 0x%04x\n", i, cache_[i][CB], cache_[i][DO], cache_[i][CW]);
111111
}
112112

113+
// remove watchdog
114+
asynInt32Client *watchdog_time = new asynInt32Client(outModbusPort, 0x1120, "UINT16");
115+
asynInt32Client *watchdog_rset = new asynInt32Client(outModbusPort, 0x1121, "UINT16");
116+
watchdog_rset->write(0xBECF);
117+
watchdog_rset->write(0xAFFE);
118+
watchdog_time->write(0);
119+
113120
asynStatus status;
114121
for(size_t axis=0; axis<nAxis_; axis++){
115122
epicsInt32 name;

0 commit comments

Comments
 (0)