Set the value of a register
SetRegister( deviceno, registerno, {Fixed,Float,_}:value, type=INT )
Directly sets the value of a register.
deviceno | Device number (1-40) |
registerno | Which register to set |
value | The new value |
type | One of INT, UINT, FLOAT or NULL |
none
AllocateRegisters(3, 8); // Allocate eight registers for device 3 SetRegister(3, 1, 1234, INT); // Set register 1 on device 3 to the value 1234