Introduction to programming 
Introduction to programming
The list below shows all available commands for a Programmable DPS. Using these commands the developer will be able to create many useful programs for a broad range of applications. Users can write their own programs using LabView®, MatLab®, Visual C++®, Visual Basic® or Hyper Terminal which is useful for testing and writing simple programs – see single DPS and Master-Slave examples. The Programmable DPS can communicate with a PC via the RS-232 Serial Port.
There are four categories of commends:
Read - all commands in the Read category show the existing DPS operation status. There are 13 available commands in this category: h, H, !I, !L, !M, !N, !P, !Q, !W, !y, !Y, !Z, !#
Write - all commands in the Write category enforce the DPS operation. There are 6 available commands in this category: I, L, M, N, P, Q
Switch Mode – all commands in the Switch Mode category control modes of the DPS operation. There are 7 available commands in this category: G, g, K, k, J, j, X
Action - All commands in the Action category relate to the program transfer or saving. There are 5 available commands in this category: #A, W, w, $, ZABCD.
Table I contains a description of several cryptograms used in this document:
Sign | Description |
>> [!] or [?] | The expression describes the output status produced by the command execution |
>> | Denotes “returns” or “answer back” |
[!] | Notification - denotes “OK” |
[?] | Notification - denotes “ERROR” |
[CR] | Carriage return - do not type “[“ and “]” |
_ | In this document this sign is used to indicate “Space” |
XXXX | In this document letters “XXXX” denotes “Data” in hexadecimal format |
* | Denotes – “Global Address” |
] | Typing symbol “]” ends the program step |
} | Typing symbol “}” ends the program” |
A | In this document letter “A” denotes the “Address”, except command “ZABCD” where the letter “A” is part of the command. |
C | In this document letter “C” denotes “Command” |
R | In this document letter “R” denotes – “Read” |
S | In this document letter “S” denotes – “Store” |
T | In this document letter “T” denotes “Time” in hexadecimal format |
W | In this document letter “W” denotes – “Write” |
Important | Important information |
IMPPORTANT: Do not confuse letters A and C (used in this document) with the hexadecimal characters “A” and “C” (0, 1, 2……….A, B, C, D, E, F).
Read category command structure: C[CR].
Note: An exception to this format is command “h & H”. Both the “h” & “H” commands require additional description in the form of “XXXX” (hexadecimal number)=> hXXXX[CR] or HXXXX[CR]. For details see commands description.
Write category command structure: CXXXX[CR].
Switch Mode category command structure: C[CR].
Note: An exception to this format is command “X” which requires an additional string: either FFFF or *0000 => XFFFF[CR] or X*0000[CR].
Action category command structure: C[CR].
![[Home]](../images/button88.jpg)
![[Products]](../images/button8B.jpg)
![[Applications]](../images/button8E.jpg)
![[Order Info]](../images/button5E.jpg)
![[ F. A. Q. ]](../images/button70.jpg)
![[Software]](../images/button55.jpg)
![[Feedback]](../images/button91.jpg)
Copyright © 2004 [MAGTORX]. All rights reserved. Rev. 1.1