Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

M-Duino PLC 38AR+ USB Control

By
ADMIN
on 3/12/18, 5:41 PM 182 views

Hello,

It is possible to control M-Duino PLC 38AR+ directly by USB instead of Ethernet? I mean, not only programming it but also using it.

If it is possible, how can I control it?

Thanks.


0

ADMIN

--ADMIN--

2506
| 1 0 1
Sant Fruitós de Bages, Spain
--ADMIN--
ADMIN
On 3/12/18, 5:42 PM

Hello,

If you want to interact with the M-Duino while it is running the application you can communicate with Arduino using a “command line”. This means that you will send him commands via USB and the PLC will answer you while it is running the application. I let you a post which can help you to understand this better.

Command Line Arduino library

The main idea is to use the Serial.read(), this function will read the message from serial (USB), we could say for example DI_I0_0 (Digital input I0_0). Once you send this using the serial, the function Serial.read() will catch it and in your sketch you need to put a condition that if what you have received from the serial is this DI_I0_0, he will do a digitalRead(I0_0) and a Serial.write() of what he has read. Using this concept you can interact stablishing the commands you want.

I hope your doubts have been solved,


Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 3/12/18, 5:41 PM
Seen: 182 times
Last updated: 12/5/18, 1:51 PM