Message:
[DLE][STX][UID][CMD][PRM][VL4]
[VL3][VL2][VL1][DLE][ETX][CSM]
Response:
If no errors
[DLE][STX][UID][ACK][DLE][ETX][CSM] else
[DLE][STX][UID][NAK][ERR][DLE][ETX][CSM]
Definitions:
[PRM] - Parameter number
[VL4]..[VL1] - parameter value cast as a long integer
[ERR] - Reported Error
[80]- Unit not in remote mode
[82]- Illegal parameter number
[83]- Illegal parameter value
[86]- Illegal Command number
Read Analog Input (87)
Command: Read Analog Input
Description:
This command tells the unit to return the value of one of the analog inputs.
CMD = [87] UID = [01] - [FF]
ATD = [01 ]or [02] depending on which Analog input is being read.
Message:
[DLE][STX][UID][CMD][ATD][DLE][ETX][CSM]
Response:
If no errors [DLE][STX][UID][ACK][AD4][AD3] [AD2][AD1][DAT][DLE][ETX][CSM]
else [DLE][STX][UID][NAK][ERR][DLR][ETX][CSM]
Definitions:
[ATD] - Analog input number [01] or [02]
[AD4] - Value of analog input, Most Sig Byte
[AD1] - Value of analog input, Least Sig Byte
[ERR] - Reported error
[80]- Unit not in remote mode
[84]- Illegal channel number
[86]- Illegal Command number
Read Analog Output (88)
Command: Read Analog Output
Description:
This command tells the unit to return the value of one of the analog outputs.
CMD = [88] UID = [01] - [FF]
DTA = [01] or [02] depending on which Analog output is being read.
Message:
[DLE][STX][UID][CMD][DTA][DLE][ETX][CSM]
Response:
If no errors
[DLE][STX][UID][ACK][DA4][DA3]
[DA2][DA1][DLE][ETX][CSM] else
[DLE][STX][UID][NAK][ERR][DLE][ETX][CSM]
Definitions:
[DTA] - Analog output number 01 or 02 [DA4] - [DA1] Value of analog output, cast as unsigned long.
[ERR] - Reported error
[80]- Unit not in remote mode
[84]- Illegal channel number
[86]- Illegal Command number
Write Analog Output (89)
Command: Write Analog Output
Description:
This command tells the unit to put out a specific value of analog voltage on a selected analog output.
Page 50 | Revised 7/95 | |
|
| POWERTEC Ind. Corp.© |