Is there any way to use OPC or Modbus communication protocols from Activate?

Faisal Shaikh
Faisal Shaikh Altair Community Member
edited March 2024 in Community Q&A

Hi,

I would like to connect a Twin Activate model I made to some industrial controllers and HMI in real time, preferably using the OPC communication protocol. Is there any implementation of this or another product or add-on that could be used to achieve this?

Modbus would also be an option is that is possible.

Answers

  • João Marabisa
    João Marabisa
    Altair Employee
    edited March 2024
  • Faisal Shaikh
    Faisal Shaikh Altair Community Member
    edited March 2024
  • Faisal Shaikh
    Faisal Shaikh Altair Community Member
    edited March 2024
  • João Marabisa
    João Marabisa
    Altair Employee
    edited March 2024

    Hi Joao, I have used the Read from PLC block, it works and I can observer live values on a scope in Activate.

    However I am having problems with the Write_From_PLC block. There is an error message:

    Error: "The value supplied for the attribute is not of the same type as the attribute"s value."(BadTypeMismatch). Failed in updating the model at an event. ( -1 )
    Block(s): Write_To_PLC/PyCustomBlock_1

    Do you have any ideas what could be causing this error?

    I have some other OPC explorer software on my PC to check the connections, and I was able to write to the tag. 

    Thanks

     

    Hi @Faisal Shaikh ,

    This can be due to the data type. The model that I sent you uses 'double' by default:

    image

    Please double check the expected data type in your reader, then you can change it in Twin Activate.