Operation procedure – Toshiba AS311 User Manual

Page 44

Advertising
background image

42

ASCII Interface Module (AS311)

5. Operation Procedure



Explanation for this sample program:


(1) The “received message read sequence” is programmed on Subroutine No. 0.

(2) The Subroutine No. 0 is called from Main program with resetting R0200 and R0300

to

OFF.

(3) When a message is received normally, R0200 will come ON and the message

(ASCII characters) will be stored in D0000 to D0063. In this sample program, the

received message length information (buffer memory address 19) is not used. The

maximum length of a message is 128 bytes (64 words) because the number of

read words of the READ instruction is programmed as 64 words.

(4) When an error has occurred in receiving the message, R0300 will come ON and

the error information will be stored in D3000. For details of the error information,

refer to section 6.2.3.

Advertising