FSoE¶
-
class
ingeniamotion.fsoe.
FSoEError
(servo, transition_name, description)¶ FSoE Error descriptor
-
class
ingeniamotion.fsoe.
FSoEMasterHandler
(slave_address, connection_id, watchdog_timeout, application_parameters, report_error_callback)¶ FSoE Master Handler.
- Parameters
-
set_reply
()¶ Get the FSoE slave response from the Safety Slave PDU PDOMap and set it to the FSoE master handler.
- Return type
-
is_sto_active
()¶ Check the STO state.
- Return type
- Returns
True if the STO is active. False otherwise.
-
wait_for_data_state
(timeout=None)¶ Wait the FSoE master handler to reach the Data state.
- Parameters
timeout (
Optional
[float
]) – how many seconds to wait for the FSoE master to reach the Data state, ifNone
it will wait forever.None
by default.- Raises
IMTimeoutError – If the Data state is not reached within the timeout.
- Return type
-
class
ingeniamotion.fsoe.
PDUMapper
¶ Helper class to configure the Safety PDU PDOMaps.
-
classmethod
configure_rpdo_map
(rpdo_map)¶ Configure the RPDOMap used for the Safety Master PDU.
-
classmethod
-
class
ingeniamotion.fsoe.
FSoEMaster
(motion_controller)¶ FSoE Master.
- Parameters
motion_controller (MotionController) – The MotionController instance.
-
create_fsoe_master_handler
(servo='default', fsoe_master_watchdog_timeout=1)¶ Create an FSoE Master handler linked to a Safe servo drive.
-
configure_pdos
(start_pdos=False)¶ Configure the PDOs used for the Safety PDUs.
-
stop_master
(stop_pdos=False)¶ Stop all the FSoE Master handlers.
-
sto_deactivate
(servo='default')¶ Deactivate the Safety Torque Off.
-
sto_activate
(servo='default')¶ Activate the Safety Torque Off.
-
ss1_deactivate
(servo='default')¶ Deactivate the SS1.
-
ss1_activate
(servo='default')¶ Activate the SS1.
-
get_safety_inputs_value
(servo='default')¶ Get a drive’s safe inputs register value.
-
get_safety_address
(servo='default')¶ Get the drive’s FSoE slave address.
-
set_safety_address
(address, servo='default')¶ Set the drive’s FSoE slave address.
-
check_sto_active
(servo='default')¶ Check if the STO is active in a given servo.
-
wait_for_state_data
(servo='default', timeout=None)¶ Wait for an FSoE master handler to reach the Data state.
-
get_fsoe_master_state
(servo='default')¶ Get the servo’s FSoE master handler state.
-
subscribe_to_errors
(callback)¶ Subscribe to the FSoE errors.