Ejemplo n.º 1
0
        def initiate_adapter(self, host, port):

            self.adapter = Adapter((host, port))

            self.mode1 = Event('mode')
            self.adapter.add_data_item(self.mode1)

            self.e1 = Event('exec')
            self.adapter.add_data_item(self.e1)

            self.avail1 = Event('avail')
            self.adapter.add_data_item(self.avail1)

            self.binding_state_material = Event('binding_state_material')
            self.adapter.add_data_item(self.binding_state_material)

            self.cmm_binding = Event('cmm_binding')
            self.adapter.add_data_item(self.cmm_binding)

            self.material_load = Event('material_load')
            self.adapter.add_data_item(self.material_load)

            self.material_unload = Event('material_unload')
            self.adapter.add_data_item(self.material_unload)
Ejemplo n.º 2
0
        def initiate_adapter(self, host, port):

            self.adapter = Adapter((host, port))

            self.mode1 = Event('mode')
            self.adapter.add_data_item(self.mode1)

            self.e1 = Event('exec')
            self.adapter.add_data_item(self.e1)

            self.avail1 = Event('avail')
            self.adapter.add_data_item(self.avail1)

            self.binding_state_material = Event('binding_state_material')
            self.adapter.add_data_item(self.binding_state_material)

            self.cnc_binding = Event('cnc_binding')
            self.adapter.add_data_item(self.cnc_binding)

            self.tool_state = Event('tool_state')
            self.adapter.add_data_item(self.tool_state)

            self.chuck_state = Event('chuck_state')
            self.adapter.add_data_item(self.chuck_state)

            self.door_state = Event('door_state')
            self.adapter.add_data_item(self.door_state)

            self.door_lock_state = Event('door_lock_state')
            self.adapter.add_data_item(self.door_lock_state)

            self.material_load = Event('material_load')
            self.adapter.add_data_item(self.material_load)

            self.material_unload = Event('material_unload')
            self.adapter.add_data_item(self.material_unload)
Ejemplo n.º 3
0
 def create_event_item(self, name, adapt):
     tmp = Event(name)
     self.adapter.add_data_item(tmp)
     return tmp
Ejemplo n.º 4
0
        def initiate_adapter(self, host, port):
            self.adapter = Adapter((host,port))

            self.mode1 = Event('mode')
            self.adapter.add_data_item(self.mode1)

            self.e1 = Event('exec')
            self.adapter.add_data_item(self.e1)

            self.avail1 = Event('avail')
            self.adapter.add_data_item(self.avail1)

            self.binding_state_material = Event('binding_state_material')
            self.adapter.add_data_item(self.binding_state_material)

            self.robot_binding = Event('robot_binding')
            self.adapter.add_data_item(self.robot_binding)

            self.open_chuck = Event('open_chuck')
            self.adapter.add_data_item(self.open_chuck)

            self.close_chuck = Event('close_chuck')
            self.adapter.add_data_item(self.close_chuck)

            self.open_door = Event('open_door')
            self.adapter.add_data_item(self.open_door)

            self.close_door = Event('close_door')
            self.adapter.add_data_item(self.close_door)

            self.change_tool = Event('change_tool')
            self.adapter.add_data_item(self.change_tool)

            self.material_load = Event('material_load')
            self.adapter.add_data_item(self.material_load)

            self.material_unload = Event('material_unload')
            self.adapter.add_data_item(self.material_unload)

            self.material_state = Event('material_state')
            self.adapter.add_data_item(self.material_state)