Jump to content
IHC-User.dk
  • 0
bartmarchand

Input & outputmodules & arduino

Question

Hello,

Is there any information about connection inputmodules and outputmodules to an arduino?

I want to replace the controller but need to keep the input and outputmodules.

The idea was to program a modbus to ihc converter (or mqtt or another protocol). The modbus part of the arduino is easy, the ihc not.

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

The communication protocol is the same. You could use the code from ArduinoIHC. IHCInput to listen to input modules and IHCOutput to talk to output modules. I think the only problem is that the IHCInput class only listens to the first 8 bits since it is designed to emulate an output module with just 8 outputs. Change that to 16 bits and it should work as a controller. I'm trying to do the same thing as you and I have a working prototype for listening to my input modules and will start working on output modules next. 

Share this post


Link to post
Share on other sites
  • 0

I've succesfully created a modbus to IHC output converter, with the Basicoutput example.

Now I want to do the same for the input module, with the Basicinput example. The Basicinput code is loaded into an arduino, dataline from the input module connected to the arduino.

I get no readings from it when I change an input on the inputmodule.

Any tips? I think I'm doing something wrong. I'm sure the inputmodule works.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

Privacy Policy og We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.