The commands will be different depending on weather you plan to use USB or Long Range Wireless communications. I have linked our guide below to help get you started.
Please reference section 2 of our guide to start with so that you can follow the rules of communications.
Next, Please reference section 4.9.17 it will explain the process of reading relay status.
Please let me know if you have trouble with any of this and I will help you further.