摘要 |
In an encoder constituted from a detection part (a light-emitting part, rotating disk, and light-receiving part), which detects a signal corresponding to the state of a specimen, and calculates and stores the position information of the specimen from a signal outputted from this detection part, and a signal processing part for transmitting the stored position information to a host machine by way of serial communications, the signal processing part being constituted having: a two-way communication mode M1 for receiving command data from the host machine, and, when this command data is a two-way communication request command (commands A through C), transmitting the requested position information and the like to the host machine; a one-way communication mode M2 for transmitting the position information to the host machine by executing one-way transmission processing S105 when the command data is a one-way communication request command (command P); and a quasi one-way communication mode M3 for transmitting the position information to the host machine by executing quasi one-way transmission processing S107 when the command data is a quasi one-way communication request command (command Q). |