Jump to content


Photo

Output serial data on inport change


  • Please log in to reply
2 replies to this topic

#1 Drugge

Drugge

    New Member

  • Members
  • Pip
  • 2 posts

Posted 15 February 2012 - 10:05 AM

I am struggling with a rather simple task. Here is the problem:

I would like my M3 CD12 to send the inport status out on the serial port every time the status of the inport changes. I know that you can send a read command to the M3 and then receive the inport status but I don't want to use that kind of polling method.

Does somebody know how to achive this behavior?

The reason why I need it is because I have an application that needs to react on changes and I don't want to do a lot of work on unnecessary polling.

Any help would be really appreciated.

#2 Jesus Miranda

Jesus Miranda

    Forum Savant

  • Authorized Member
  • PipPipPipPipPipPipPip
  • 125 posts

Posted 15 February 2012 - 01:42 PM

Hello Drugge.

In any type of communication available for the Millenium 3 (Serial Link, Modbus RS-485, Modbus TCP/IP) the controller cannot start the communication. The other device connected to the Millenium has to be a Master/Client and poll from the controller.

Being this said, polling is completely necessary if you want to read information from a Millenium controller.


Best regards,
Jesus

#3 Drugge

Drugge

    New Member

  • Members
  • Pip
  • 2 posts

Posted 16 February 2012 - 04:01 AM

QUOTE(Jesus Miranda @ Feb 15 2012, 08:42 PM)
In any type of communication available for the Millenium 3 (Serial Link, Modbus RS-485, Modbus TCP/IP) the controller cannot start the communication. The other device connected to the Millenium has to be a Master/Client and poll from the controller.

Hello Jesus.

Thank you for your answer. Then I guess I will have to do the polling or find another way (another device?) that can provide the functionallity I am looking for.

Best regards
Emil Drugge




1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


    Yahoo (1)