The text of a manual · part 44 of 47
PDT 1100 Terminal Programmer's Guide: Appendix M Communications, pages 378 to 387
Pages 378 to 387 of 413, from PDT 1100 Terminal Programmer's Guide
The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol PDT-1100
Page 378
Communications
Note: You may modify the number of ENQ iterations. Refer to the SET LINKUP TIME screen in System Mode and the XFILE statement given in PDT 1100 Terminal Programmer’s Guide p/n 70-36099-01. Abnormal termination of phase 1 (Abort of phase 1): If the sending station receives no ACK from the receiving station after sending an ENQ 10 times in succession, it sends an EOT to the receiving station three seconds after 10th ENQ to terminate the message transmission. Sending Station
ENQ (1)
3 seconds
ENQ (2)
3 seconds
ENQ (3)
3 seconds
Receiving Station
ENQ (10) EOT
Abnormal Termination 35864056.eps
Figure M-8. Abort of Phase 1 Note: The receiving station's default timeout is 30 seconds. You may modify the timeout length on the SET LINKUP TIME screen in System Mode (p. 52) or by using the XFILE statement (refer to the PDT 1100 Terminal Programmer’s Guide p/n 70-36099-01).
Phase 2: Data Transmission Normal phase 2: The sending station first sends a transmission block containing the heading text. Each time the sending station receives an ACK from the receiving station, it sends a transmission block containing the data texts as shown below. Upon receipt of an ACK in response to the last transmission block (data text n), the sending station shifts to phase 3. If
M-11
Page 379
PDT 1100 Terminal Programmer’s Guide a transmission message contains no data text, the sending station transmits the heading text only. Sending Station
Heading Text
Receiving Station
ACK Data Text 1
ACK Data Text n-1
ACK Data Text n
ACK To phase 3. 35864057.eps
Figure M-9. Normal Phase 2
Phase 2 with NAK If the sending station receives a NAK from the receiving station in response to a transmission block containing text data, it sends that transmission block again immediately as shown
M-12
Page 380
Communications below. If the sending station receives an ACK before receiving a NAK 10 times in succession, it continues the subsequent message transmission. Sending Station
Data Text m
Receiving Station
NAK Data Text m
NAK Data Text m
ACK Data Text m+1
Figure M-10. Phase 2 with NAK If the sending station receives a NAK 10 times in succession or it fails to send a same transmission block, it proceeds to phase 3 to terminate the message transmission. Even if the Phase 3 terminates normally, the transmission is aborted. Sending Station
Data Text m(1)
Receiving Station
NAK Data Text m(2)
NAK
Data Text m(10)
NAK Occurrence of an error To phase 3.
35864059.eps
Figure M-10. Phase 3 Termination
M-13
Page 381
PDT 1100 Terminal Programmer’s Guide
Phase 2 with EOT: If the sending station receives an EOT anytime during phase 2, it proceeds to phase 3 to terminate the message transmission. Even if the phase 3 terminates normally.
Sending Station
Receiving Station EOT
Occurrence of an error To phase 3.
Figure M-11. Phase 2 with EOT Phase 2 with repeated ENQ transmission due to no response or invalid response : If the sending station receives no response or any invalid response from the receiving station in response to a transmission block sent, it resends an ENQ every 3 seconds up to nine times. If the sending station receives an ACK during this time, it continues the message transmission. Sending Station Data Text m
3 seconds
ENQ
3 seconds
ENQ
Receiving Station
ACK Data Text m+1
35864058.eps
Figure M-11. Phase 2 with Repeated ENQ Transmission
M-14
Page 382
Communications
Abort of phase 2: If the sending station receives no ACK from the receiving station after sending an ENQ nine times in succession, it sends an EOT to the receiving station 3 seconds after 9th ENQ to terminate the transmission sequence. Sending Station
Receiving Station
3 seconds
ENQ (1)
3 seconds
ENQ (2)
ENQ (9) 3 seconds EOT Abnormal Termination
Figure M-12. Abort of Phase 2
Phase 3: Release of Data Link Normal phase 3: The sending station transmits an EOT to the receiving station. When an ACK is received from the receiving station, the sending station terminates the message transmission normally and releases the data link. Sending Station
EOT
Receiving Station
ACK
Normal Termination 35864060.eps
Figure M-12. Normal Phase 3 Phase 3 with Repeated EOT transmission due to no response or invalid response: If the sending station receives no response or any invalid response from the receiving station in response to an EOT sent, it repeats the EOT at three-second intervals up to ten times. If the M-15
Page 383
PDT 1100 Terminal Programmer’s Guide sending station receives an ACK during this time, it terminates the message transmission normally and releases the data link. Sending Station 3 seconds 3 seconds
EOT
Receiving Station
EOT EOT
ACK Normal Termination
Figure M-13. Phase 3 with repeated EPTs Abnormal termination of phase 3: If the sending station receives no ACK from the receiving station within three seconds from the 10th EOT, it aborts the message transmission and releases the data link. Sending Station 3 seconds
EOT(1)
3 seconds
EOT(3)
3 seconds
Receiving Station
EOT(2)
EOT(10)
Abnormal Termination 35864061.eps
Figure M-13. Abnormal Termination of Phase 3
Aborting Data Transmission Pressing the C key aborts data transmission. If the C key is pressed during downloading, the PDT 1100 transmits an EOT and aborts the file transmission. If it is pressed during uploading, the PDT 1100 transmits the current transmission block followed by EOT and then aborts the file transmission.
M-16
Page 384
Communications
BCC for Horizontal Parity Checking The PDT 1100 supports horizontal parity checking for every transmission block to check data transmission. A horizontal parity byte called BCC (Block Check Character) is appended after the ETX of every transmission block. Every parity bit of BCC is set so that all set bits at the same bit level (including a parity bit) in the transmission block characters have an even number by binary addition, excluding SOH, STX, and functions SOH$ and STX$. (Refer to SOH$ on page 11-47 and STX$ on page 11-50.) (Vertical Parity)
35864062.eps
Character
[For 8-bit Data]
Horizontal Parity Byte (BCC)
Figure M-14. Horizontal Parity Checking Shown below is a data text block indicating the bits to be added for horizontal parity checking. S T X
Serial Number
E T X
Data Text
To be added for horizontal parity checking
B C C
35864064.eps
Figure M-15. Bits to be Added
M-17
Page 385
PDT 1100 Terminal Programmer’s Guide
Text Format Before transmission, text should be formatted according to the standard of the protocol. Following are two types of the standard text formats for program files and data files.
Program Text Format Byte Position
1
2
3
4
5
6
7
8
9 10
11 12 13 14 15 16 17 Number of Data Texts Contained (5 bytes)
Program File Name (12 bytes) Example of Contents
P
R
O G
The program file name should be a maximum of 12 characters in length and consist of FILE NAME and .EXTENSION. The FILE NAME should be 1 to 8 characters. The EXTENSION should be.PD3 (.FN3 and.EX3 may be available for future functional expansion).
1
.
P D
3
If the program file name is less than 12 characters in length, the lower blank bytes are filled with space characters.
0
0
5
35864064.eps
Figure M-16. ProgramText Format
M-18
3
2
The number of data texts should be 0 to 32767. If it is less than 5 digits, the upper blank bytes are filled with zeros (0).
Page 386
Communications
Data Text Format 128 or 130 Byte Position
1
2 3 4 128 bytes if extension is .PD3; 130 bytes if it is .FN3 or .EX3.
Program Data Example of Contents
0 D 0 A 0
0
0 0
0 0 35864065.eps
Object file (compiled from a source program file having the extensions.PD3, .FN3, or .EX3.)
If a program data field is less than the maximum digits, the lower blank bytes are filled with zeros (0).
Figure M-17. Data Text Format
Number of Fields (2 bytes) Length of Data Field 1 (2 bytes) Byte Position
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 Number of Data Texts Contained (5 bytes)
Data File Name (12 bytes) Example of Contents
M A
S T
E R ..
Length of Data Field n (2 bytes)
D A
T
0 0
5
9
2 n
0
1
6
0 3
The data file name should be a maximum of 12 characters and consists of FILE NAME and.EXTENSION. The FILE NAME should be 1 to 8 characters. The EXTENSION should not be .PD3, .FN3, and.EX3, and may be omitted (together with a period).
The number of data texts should be 0 to 32767. If less than 5 digits, the upper blank bytes are filled with zeros (0). If the data name is less than 12 characters, the lower blank bytes are filled with space characters.
The number of fields should be 1 to 16. If it is less than 2 digits, the upper blank byte are filled with zero (0).
Every data field should be 1 to 254 digits. If less than 2 digits, the upper blank byte are filled with zero (0). If a data field is 100 to 199 digits, @0 to I9 are given; if it is 200 to 254 digits, P0 to U4 are given. 10X 11X 12X ... 18X 19X
@ A B ... H I
20X 21X ... ... 24X 25X
P Q ... ... T U
Figure M-18. HeadingText M-19
Page 387
PDT 1100 Terminal Programmer’s Guide
To transfer a data file containing a data field(s) of 100 digits or more, use the Windows-based Transfer Utility. The MS-DOS-based Transfer Utility does not support transmission of data fields exceeding 99 digits.
Data Text
Data Field 1 Example of Contents
T 1
0
0
Every data field should be 1 to 99 digits in length.
9
Data Field 2
1
S 1
2
3
Data Field n
9 2 0 2 1 4 1 3 2 5
3
If a data field is less than the maximum digits, the lower blank bytes are filled with space characters.
Figure M-19. Data Text The total length of all data fields plus the number of the character count bytes (= the number of the fields) should be 255 bytes or less. When you transfer five 50-digit (50-byte) fields, for example, the total length of all data fields is 250 (50 x 5) bytes and the number of the character count bytes is 5. The total is 255, so you can transfer the file.
M-20