|
ifw-core
5.0.0-pre2
|
Device Simulator class for the Standard Motor Device. More...
Public Member Functions | |
| def | __init__ (self) |
| Initialise the test application. More... | |
| def | initialise (self) |
| Initialise various parameters of the simulated device. More... | |
| def | data_change_handler (self, node, value, data) |
| Invoked when subscribed "ctrl." and "stat." nodes change value. More... | |
| def | RPC_Init (self, parent) |
| Initiate the initialisation procedure. More... | |
| def | RPC_Reset (self, parent) |
| Reset the motor device (bring it to NotOp/NotReady). More... | |
| def | check_move_conditions_ (self, new_pos=None) |
| Check if the conditions are fulfilled to execute new move. More... | |
| def | RPC_MoveAbs (self, parent, pos, vel) |
| Request an absolute offset. More... | |
| def | RPC_SetDebug (self, parent) |
| Change debug level. More... | |
| def | RPC_SetLog (self, parent) |
| Set log level. More... | |
| def | RPC_Disable (self, parent) |
| Execute SM Disable operation. More... | |
| def | RPC_Off (self, parent) |
| Power off Device Simulator. More... | |
| def | RPC_State (self, parent) |
| Request state of Device Simulator. More... | |
| def | RPC_Enable (self, parent) |
| DeviceSimulatorBase Execute SM Enable operation. More... | |
| def | RPC_ReadNode (self, parent, node_id) |
| Read a node from the Device Simulator namespace. More... | |
| def | RPC_WriteNode (self, parent, node_id, value) |
| Write a node in the Device Simulator namespace. More... | |
| def | RPC_Stop (self, parent) |
| Stop an ob-going operation. More... | |
Device Simulator class for the Standard Motor Device.
| def test_srv.TestSrv.__init__ | ( | self | ) |
Initialise the test application.
| def test_srv.TestSrv.check_move_conditions_ | ( | self, | |
new_pos = None |
|||
| ) |
Check if the conditions are fulfilled to execute new move.
Returns PLC error code.
| def test_srv.TestSrv.data_change_handler | ( | self, | |
| node, | |||
| value, | |||
| data | |||
| ) |
Invoked when subscribed "ctrl." and "stat." nodes change value.
| def test_srv.TestSrv.initialise | ( | self | ) |
Initialise various parameters of the simulated device.
| def test_srv.TestSrv.RPC_Disable | ( | self, | |
| parent | |||
| ) |
Execute SM Disable operation.
| def test_srv.TestSrv.RPC_Enable | ( | self, | |
| parent | |||
| ) |
DeviceSimulatorBase Execute SM Enable operation.
| def test_srv.TestSrv.RPC_Init | ( | self, | |
| parent | |||
| ) |
Initiate the initialisation procedure.
| def test_srv.TestSrv.RPC_MoveAbs | ( | self, | |
| parent, | |||
| pos, | |||
| vel | |||
| ) |
Request an absolute offset.
| def test_srv.TestSrv.RPC_Off | ( | self, | |
| parent | |||
| ) |
Power off Device Simulator.
| def test_srv.TestSrv.RPC_ReadNode | ( | self, | |
| parent, | |||
| node_id | |||
| ) |
Read a node from the Device Simulator namespace.
| def test_srv.TestSrv.RPC_Reset | ( | self, | |
| parent | |||
| ) |
Reset the motor device (bring it to NotOp/NotReady).
| def test_srv.TestSrv.RPC_SetDebug | ( | self, | |
| parent | |||
| ) |
Change debug level.
| def test_srv.TestSrv.RPC_SetLog | ( | self, | |
| parent | |||
| ) |
Set log level.
| def test_srv.TestSrv.RPC_State | ( | self, | |
| parent | |||
| ) |
Request state of Device Simulator.
| def test_srv.TestSrv.RPC_Stop | ( | self, | |
| parent | |||
| ) |
Stop an ob-going operation.
| def test_srv.TestSrv.RPC_WriteNode | ( | self, | |
| parent, | |||
| node_id, | |||
| value | |||
| ) |
Write a node in the Device Simulator namespace.