Sample program – Toshiba SX 2000 User Manual

Page 55

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

Advertising
background image

The send time-out is detected when the time from the starting character to the
trailing code exceeds the following time.

Long scan time or short send message, low baudrate avoid the send time-out.

Chapt.1 System Configuration

Baudrate

Time-out setting

300, 600, 1200 bps

30 seconds

2400 bps

15 seconds

4800 bps

7 seconds

9600 bps

3 seconds

19200 bps

1.5 seconds

Sample program:

Rung 1: Sets the parameters for the XFER instruction.

The registers of 256 words starting with D1500 are reserved to store
the transmitting message.

Rung 2: When R0200 is set to ON, the message stored in the D1500 and after

are transmitted.

If the operation is completed normally, R0201 is set to ON.
If some error has occurred during the operation, R0202 is set to ON.

Rung 3: When R0200 is reset to OFF, the result status (R0201 and R0202)

are reset to OFF.

When using the above sample program as a part of entire application program, write
the transmitting message (including the trailing code) in D1500 and after, and set

R0200 to ON in the main processing part. By this operation, message transmitting is
started. When the message transmitting is completed, R0201 (at normal) or R0202
(at error) comes ON. Confirm these result status and reset R0200 to OFF.

While a message is transmitting, do not change the contents of the transmitting

message which has been set in D1500 and after.

38

Sequence Controller S2T

Advertising