ct() is trying to turn on motors
We have some motors switched off (not to be moved) and when we do ct we get this error. Can you please suppress it or fix it during setup so that users will not be confused.
15TDXRD [6]: ct(0.1)
!!! === RuntimeError: Axis 'difftz`: Cannot switch power on for axis 21: Power cannot be switched on === !!! ( for more details type
cmd 'last_error' )
!!! === RuntimeError: Axis 'ffdtx2`: Cannot switch power on for axis 26: Power cannot be switched on === !!! ( for more details type
cmd 'last_error' )
!!! === RuntimeError: Axis 'd2rotc`: Cannot switch power on for axis 41: Power cannot be switched on === !!! ( for more details type
cmd 'last_error' )
!!! === RuntimeError: Axis 'ffdtx1`: Cannot switch power on for axis 25: Power cannot be switched on === !!! ( for more details type
cmd 'last_error' )
Wed Jun 03 10:17:37 2020
det = 0.0
mon = 1286.0 ( 12860.0/s)
sec = 0.1 ( 1.0/s)
pico3 = 779125800.0 ( 7791258000.0/s)
pico4 = 60.17231 ( 601.7231/s)
pico5 = 13.791630000000001 ( 137.9163/s)
mch5 = 1742165.3333333333 ( 17421653.333333332/s)
mch6 = 830122.6666666666 ( 8301226.666666666/s) Out [6]: Scan(number=10, name=ct, path=) TDXRD [7]:
DXRD [8]: last_error
Out [8]: Traceback (most recent call last):
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 127, in set_on
self._power(axis, True)
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 141, in _power
_ackcommand(self._cnx, "POWER %s %s" % ("ON" if power else "OFF", axis.address))
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 859, in _ackcommand
return _command(cnx, cmd, data, pre_cmd)
File "/users/blissadm/local/bliss.git/bliss/common/greenlet_utils.py", line 69, in func
return fu(*args, **kwargs)
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 782, in _command
return _command_raw(cnx, cmd, data, pre_cmd, timeout=timeout)
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 842, in _command_raw
raise RuntimeError(msg.replace(b"ERROR ", b"").decode())
RuntimeError: Cannot switch power on for axis 25: Power cannot be switched on
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 111, in initialize_hardware_ax
is
self.set_on(axis)
File "/users/blissadm/local/bliss.git/bliss/controllers/motors/icepap/__init__.py", line 129, in set_on
raise type(e)("Axis '%s`: %s" % (axis.name, str(e)))
RuntimeError: Axis 'ffdtx1`: Cannot switch power on for axis 25: Power cannot be switched on
TDXRD [9]:
Edited by Jonathan Wright