Read inputs of one controller from another controller

4 years 11 months ago #29534133 by jcco104
is it possible to have a MDC2460 as the master conected to a Hbl2360 as the slave in robocan, then have the master ask for inputs of the slave?

Please Log in or Create an account to join the conversation.

4 years 11 months ago - 4 years 11 months ago #29534134 by Gabriel_Isko
There is no strict master/slave architecture in Robocan, however you should take a look at the scanCanValue() microbasic function.

Please Log in or Create an account to join the conversation.

4 years 11 months ago #29534135 by jcco104
So can I use this function to read the input from another node?
like this for example


scanCanValue(02, _din, 04, 255, 0) ' initiate scan of the digital input #4 in node 02 with 255 milisecond refresh in buffer 0

Please Log in or Create an account to join the conversation.

4 years 11 months ago - 4 years 11 months ago #29534139 by Gabriel_Isko
That code only initiates a scan, you still have to check the value as it is reported back to your controller. I have attached a sample script where I use scan, let me know if you have any questions about it.

File Attachment:

File Name: 18.6.26RIO...KING.zip
File Size:2 KB
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.060 seconds