h. RS485: Address selection, setting & reading
(for more details and examples refer to section D.5; except ‘Nx<c/r>’, these commands are available also in the fill mode):
| Activate the board addressed x. x is between 1 and 64. | |
| Notes | |
:x<c/r> | 1. Wait 10 ms after sending the colon (‘:’) before | |
sending the rest of the command (‘x<c/r>’). | ||
| ||
| 2. Wait 30 ms after sending the ‘:x<c/r>’ command | |
| before analyzing the response(s). | |
| “Hello” command: prompt all existing boards to respond. | |
| Notes | |
:999<c/r> | 1. Wait 10 ms after sending the colon (‘:’) before | |
sending the rest of the command (‘999<c/r>’). | ||
| ||
| 2. Wait 1000 ms after sending the ‘:999<c/r>’ | |
| command before analyzing the response(s). | |
| Read the RS485 address of the active board. | |
| Board’s response: | |
| ’#x<c/r>’, where x is the address of the active board. | |
| x=0 means that the board has been configured as a non- | |
| RS485 device. Other value (between 1 & 64) specifies the | |
| RS485 address of the active board. |
nNotes
1.Wait 1 second after sending the ‘n’ command.
2.If no board is active, there will be no response.
3.In case of malfunction, more than one ’#x<c/r>’ will be responded in sequence. This is theoretically impossible but should be checked in order to be on the safe side.
| Set the required RS485 address. x is between 0 and 64. | |
| Board’s response: ‘OK<c/r>’. | |
| (x=0 sets the board as a | |
| facilitate your coding, as no ‘:x<c/r>’ command will be | |
Nx<c/r> | needed.) | |
Notes | ||
| ||
| 1. The address setting takes effect only upon board | |
| reset. | |
| 2. When the RS485 address is not 0, its value is shown | |
| for a while on the LED display upon board reset. |
31