Hi Anshul,
You can achieve this by using Web service interface provided by equipment vendor.
Steps (High Level)
1.create a BLS in MII and make your business logic and use webservice action block to map the required schema with required value to achieve the task on shop floor.
2. once BLS execute,webservice will return the response/success , capture it and process your response to work in MII or SAP.
You can also connect to the Historian/Oracle database through Data connector in MII to query the values for machine integration etc.
Go through SAP PCO help to get more details on the MII to machine configuration :
Plant Connectivity 2.3 – SAP Help Portal Page
Hope it helps.
Nikhil