Download Manual
Transcript
4.22 Read latched digital input Modules: For 9041,9044,9050,9052,9053,9060,9063X,9065X Description: Read latched digital input Command: $AALS[CHK](cr) Syntax: Response: (see Note)\ $ Command leading code AA Module address ID (00 to FF) L Command for reading latched digital input S =1 latched high status =0 latched low status CHK Check sum (cr) Carriage return !HHLL[CHK](cr) Valid command ?AA[CHK](cr) Invalid command ! Delimiter for valid command ? Delimiter for invalid command HH High byte Latched input status LL Low byte latched input status 00 Always be 00 CHK Check sum (cr) Carriage return Example: Read latched input status of module address ID=30 Command: $30L1<CR> Response: !012300<CR> ! Command is valid., High byte latched status(D8~D15)=01 Low byte latched status(D0~D7)=23 Example: Clear latched input status of module address ID=30 Command: $30C<CR> Response: !30<CR> ! Command is valid., and clear latched input status Example: Read latched input status of module address ID=30 Command: $30L1<CR> Response: !000000<CR> ! Command is valid., High byte latched status(D8~D15)=00 Low byte latched status(D0~D7)=00 55