- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Read inputs of one controller from another controller
Read inputs of one controller from another controller
4 years 11 months ago #29534133
by jcco104
Read inputs of one controller from another controller was created 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.
- Gabriel_Isko
4 years 11 months ago - 4 years 11 months ago #29534134
by Gabriel_Isko
Replied by Gabriel_Isko on topic Read inputs of one controller from another controller
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
Replied by jcco104 on topic Read inputs of one controller from another controller
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
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.
- Gabriel_Isko
4 years 11 months ago - 4 years 11 months ago #29534139
by Gabriel_Isko
Replied by Gabriel_Isko on topic Read inputs of one controller from another controller
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.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Read inputs of one controller from another controller
Time to create page: 0.060 seconds