![](/images/new-backgrounds/1166768/16676863x1.webp)
Read Module Configuration
The Read Module Configuration command reads the 485SDA10’s address first, then the
The steps to reading a module’s configuration are given below:
1)Constructing the command string:
Command$ = “!” + CHR$(addr) + “RC”
Where addr is the module’s address.
2)Transmitting the command string:
Print #1, Command$
3)Receiving the address data:
Reply$ = INPUT$(1,#1)
4)Determining the address: address = ASC(Reply$)
5)Receiving the
Reply$ = INPUT$(1,#1)
6)Determining the
Refer to Read Digital I/O earlier in this chapter for the steps to determine the status of individual output states.
7)Receiving the
Reply$ = INPUT$ (1,#1)
8)Determining the
Example 5.7 – Determining the configuration of the module with an address of 10.
addr = 10
Command$ = “!” + CHR$(addr) + “RC” Print #1, Command$
‘Determine the module’s address
Reply$ = INPUT$ (1,#1) address = ASC(Reply$)
‘Determine the module’s
Reply$ = INPUT$ (1,#1) states = ASC(Reply$)
‘Determine the module’s
Reply$ = INPUT$ (1,#1) delay = ASC(Reply$)
28 | 485SDA103798 Manual |
B&B Electronics
PH (815)