About initial operation
The communication by serial port does not often work well after launching softaware, supplying power of device or plugging a cable.
It is because of remaining unnecessary data in the receive buffer of each device.
In this case, it should be performed the initial operation.
The method of it is very simple.
It is just only to transmit a broadcast command to all devices three times at 80ms (or more) intervals .
The length of this interval is every OK, if it is more than 80ms.
And it is important to wait 80ms after the third transmitting, too.
("Broadcast command means that it has ID number as 127.)
("NOP" command is shown in System commands in other page.)
This operation should be performed at detecting any bad communication because of connecting cable or supplying power again.
It is strongly recommended that your software has this communication recovery operation.
After selection of Serial port of PC(controller), It should be performed the operation of this initializing process.
And, after changing ID number, it may be better do it.
|
|