- 117 -
8.
Virtual I/O Commands
Command Format: (Leading)(Address)(Command)[CHK](cr)
Response Format: (Leading)(Address)(Data)[CHK](cr)
(Address)
2-character, “01” for PDS virtual I/O
[CHK]
2-character checksum, no checksum for PDS virtual I/O
(cr)
carriage return (0x0D) for ending character of command
Checksum Calculation:
1. Calculate the ASCII sum of all characters in the command (or response) string except
for the return character (cr).
2. Mask the sum of the string with 0ffh
Example:
Command string: $012 (cr)
Sum of the string = ‘$’ + ‘0’ + ‘1’ + ‘2’ = 24 h + 30 h + 31 h + 32 h = B7 h
The checksum is B7 h, and [CHK] =”B7”.
Command string with checksum: $012B7 (cr)
Response string: !01300600 (cr)
Sum of the string = ‘!’ + ‘0’ + ‘1’ + ‘3’ + ‘0’ + ‘0’ + ‘6’ + ‘0’ + ‘0’
= 21 h + 30 h + 31 h + 33 h + 30 h + 30 h + 36 h + 30 h + 30 h = 1AB h
The checksum is AB h, and [CHK] =”AB”.
Response string with checksum: !01300600AB (cr)
Summary of Contents for PDS-700 Series
Page 56: ...PDS Series User Manual V1 4 Oct 2009 56 PDSM 782 D PPDSM 782 D Pin Assignments...
Page 58: ...PDS Series User Manual V1 4 Oct 2009 58 PDS 700 IP67...
Page 59: ...PDS Series User Manual V1 4 Oct 2009 59...
Page 60: ...PDS Series User Manual V1 4 Oct 2009 60...
Page 61: ...PDS Series User Manual V1 4 Oct 2009 61 DS 712 PPDS 712 MTCP Pin Assignments E1 10 100 Base TX...
Page 62: ...PDS Series User Manual V1 4 Oct 2009 62 DS 715 PPDS 715 MTCP Pin Assignments E1 10 100 Base TX...
Page 64: ...PDS Series User Manual V1 4 Oct 2009 64 Digital Output...
Page 66: ...PDS Series User Manual V1 4 Oct 2009 66 PDSM 700 PPDSM 700 MTCP...
Page 67: ...PDS Series User Manual V1 4 Oct 2009 67 PPDS 700 IP67...
Page 68: ...PDS Series User Manual V1 4 Oct 2009 68...
Page 69: ...PDS Series User Manual V1 4 Oct 2009 69 Din Rail Mounting Stack Mounting...
Page 91: ...PDS Series User Manual V1 4 Oct 2009 91...
Page 147: ...147 Init Mode Short INIT and GND PDSM 700 D PPDSM 700 D MTCP Run Mode Open INIT...
Page 152: ...PDS Series User Manual V1 4 Oct 2009 152 Example...