Xfer instruction (message send), Operation – Toshiba SX 2000 User Manual

Page 54

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

When using the above sample program as a part of entire application program,

set R0100 to ON in the main processing part at first. When a message is
received, R0101 (at normal) or R0102 (at error) comes ON. Then reset R0100
and carry out necessary processing for the received message. When the result
status shows normal complete (R0101 is ON), the received message has been
stored in D1100 and after.

When it becomes ready to receive the next message, set R0100 to ON again.

(3) Data send operation

The expanded transfer (XFER) instruction is used to send the message through
the optional communication card.

1.4 Free ASCII mode

XFER instruction (message send):

Input ^ ^ ^ER e ^ C J— Output

Operand

k.

Source register

8 7

Д

Д+i

Operand

B:

Parameter

F

0

в

Transfer length

B+1

Execution status

Operand C: Destination

F 8 7

0

c

HOO H30

C+1

HOOOO

<T-

HOO

Register type

-----

Starting register address

Indirectly designated register

HOO: XWrrW

H01: W

H02: LW

H03: RW

H04: D

H05: F

■ 1 to 256 words

- S2T link port (sending)

Operation:

When the input condition of the XFER instruction comes ON, the message

prepared in the registers starting with

A

is transmitted.

The execution status is monitored by

B+1

as follows.

B+1

(Execution status): FIOOOO ^ Normal complete

FI0001 ^ During transmitting the message

FI0002 _ Communication busy (other receiving or

transmitting routine is under executing)

FI0003 ^ During the reset operation

FI0004 ^ Send time-out (see below)

FI0005 ^ Send message length error

(no trailing code in the source table)

6F8C0926

37

Advertising