258 •
••
• ASCII Protocol QUICKDESIGNER
The terminal program has several Settings that are used to establish communications. Here is a list of
the settings used for this example.
Settings:
Terminal Emulation: VT100
Function Keys:
LEVEL1 F1 RD DM0001 ^R1,1^M
F2 RD DM0002 ^R2,1^M
F3 WT 03=1 ^V3,1^M
F4 WT 03=0 ^V3,0^M
F5 WT 04=2 ^V4,2^M
F6 WT 04=0 ^V4,0^M
F7 WT 05=9999 ^V5,9999^M
F8 WT 05=0 ^V5,0^M
LEVEL2 F1 RD 06 ^R6,1^M
F2 WT 06=3456 ^V6,3456^M
F3 WT 07 ^V7,TOTAL^M
F4 WT 07 ^V7,CONTROL^M
F5 WT 08 ^V8,QUICK^M
F6 WT 08 ^V8,^M
F7 WT 09=48 ^V9,48^M
F8 WT 09=20 ^V9,20^M
LEVEL3 F1 TIME ^L08,05,96,02,20,00^M
Communications: 9600, 8 Data Bits, 1 Stop Bit, No Parity, No Flow Control, COM2.
When you have completed configuring the terminal program, save the file for future use. Make sure the
display is connected to the host device. The function keys allow reading and writing to all the panel
elements and are intended to show the basic operation of the ASCII protocol.
Testing the ASCII Protocol
The target display has been downloaded with setup information and a panel. The host is configured to
communicate with the display using the Terminal program. Now you must send an ASCII string to the
display and receive a reply. Use the function keys described above to send the strings to the display.
Read Command:
The read command is used to read 1 or more integers and only 1 string at a time from the QP2.
Format: (^R)(Variable ID number)(,) (Count) (^M)
Example: ^R1,1^M (Level 1, F1)
Explanation: Read 1 Tag starting with tag 1. Tag 1 is DM0001, which is assigned to the Push Button.
The initial reading of the Push Button should be 0.
Data returned from the display: ^R0^M
Note: Push the button on the display and the pilot light assigned to the Push Button should change to 1.
Send the read command again and the value returned should be 1.