This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== GetRegister ==== Get the value of a register === Description === <code>GetRegister( deviceno, registerno, {type} )</code> Fetches the value of a register === Parameters === | ''deviceno'' | Device number (1-40) | | ''registerno'' | Which register to fetch | | ''type'' | (optional) a variable that will be set to the register type (NULL/UINT/INT/FLOAT) | === Return value === The value of the register === Example usage === <code javascript> new x, type; AllocateRegisters(3, 8); // Allocate eight registers for device 3 SetRegister(3, 1, 1234, INT); // Set register 1 on device 3 to the value 1234 x = GetRegister(3, 1); // x is now 1234 x = GetRegister(3, 1, type); // type will be INT </code> ezeio2/scriptref/getregister.txt Last modified: 2020-08-14 20:21by andreh Log In