Hello!
I inherited a test system developed at my employer a few years ago and the documentation that was left to me didn’t exactly cover how some of the relay board commands worked.
I found the manual linked here http://assets.controlanything.com/manuals/R4xR8xPro.PDF for product R41DPDT. The commands listed have clarified things but some of the commands our original developer created don’t quite match up with what I am looking at here, and was wondering if you could help me out.
My understanding so far (taken from the manual):
• 254: Required pre-amble to enter command mode
• 250: Enable a selected device to listen to your commands
• 248: Enables all devices to listen to your commands
• 0-7: Turns off a relay
• 8-15: Turns On a relay
That said, the commands that the developer used all include a 13 at the end of each string, citing “carriage return”.
We develop using C, an example a command string was named K1_Off:
Unsigned char K1_Off [3][1] = {254, 0, 13};
His comments on the code mention that the 254 for command mode, 0 to turn off relay K1, and then 13 for carriage return. Now I understand that the carriage return ASCII value is 13, and in C it is used to move the cursor to the beginning of the current line. I don’t know if you folks use C, but is this 13 actually required?
We don’t have an 8 channel card, so its not relating to K6 in this case.
Secondly, there is a command string that has the ASCII commands {254, 250, 1, 13}, which is said to enable a relay board device. In this case, I am understanding that this sequence follows as: Enter command mode, Enable Specific device command, Device to enable = 1, carriage return. Would enabling device 1 in this case relate to relay 2?
Please let me know if I am not clarifying my questions well enough.