We use cookies to ensure that we give you the best user experience on our website.If you want to find out more about the cookies we use, you can access to our Privacy Policy here.By continuing your visit to our website, we'll assume you consent to our use of cookies.

DENSO DENSO WAVE

Close

Technical Information

Application Development Manual | Receiving files

Receiving files

Function

Receive files with the BHT-protocol, BHT-Ir protocol, and Ymodem protocol.

Syntax

Detailed Description

This OUT statement specifies the communications protocol for subsequent file transfers with XFILE statements.

XFILE statement can receive both a program file and a data file.
If the BHT already has a file with the same name, the new file generally replaces the old one. Note that the existing file must be closed before receiving the new one in those cases.

If the new file has a different field structure from the existing one, the download aborts with run-time error 3Dh. Delete the file and try again.

We recommend that file transfer routines use error trapping, displaying an error message offering to retry, because the process is subject to communications errors--the target PC might not be ready or the BHT might not be firmly seated in the CU, for example. →Error trapping

Pressing the C key during a file transfer aborts the transfer with run-time error 47h.

The BHT-7000, BHT-7500, BHT-8000, and BHT-100 series do not support the Ymodem protocol.

Examples

Receive the file TEST.PD4 using the Ymodem protocol.

  open "COM1:115200" as #1
out &h6060, 3
xfile "TEST.PD4"
close #1

Receive the file TEST1.DAT using the Ymodem protocol.

  open "COM1:115200" as #1
out &h6060, 3
xfile "TEST1.DAT"
close #1

Receive the file TEST2.DAT using the BHT-Ir protocol.

  open "COM1:115200" as #1
out &h6060, 2
xfile "TEST2.DAT"
close #1

Contact us

QBdirect

If you have not registered

The services on this member site are available only for registered customers.

New member reg.