beautypg.com

10 sampleprograms, 10 sample programs – Toshiba SX 2000 User Manual

Page 65

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

background image

Chapt.1 System Configuration

1.4.10 Sampleprograms

A. Variable speed drive (Toshiba’s VF-S7) control

A sample program for the S2T to control the variable speed drive, VF-S7, is shown

here.

For details of the serial communication function of the VF-S7, read the separate
manual “VF-S7 Serial Communication Function”.

(1)

Link port setting

a) Mode setting of the Link port (S2T):

Select the free ASCII mode by setting the SW069 to "2"

b) Communication parameter setting:

Set the S2T’s communication parameters (baudrate, data bit length, parity and
stop bit length) to be matched the VF-S7’s setting.
The VF-S7’s setting at factory shipment is as follows.

Baudrate: 9600 bps (changeable)
Data bits:

8 bits (fixed)

Parity:

Odd (changeable)

The S2T’s stop bit length should be set to 1 bit.

c) Communication time-out setting of VF-S7:

To let trip the VF-S7 at the case of communication error, enable the time-out
function of the VF-S7. To do this, set the monitor time on the VF-S7’s

parameter F803.

In this sample program, the VF-S7’s operation (start and stop) is controlled

through the serial communication. Flowever, for actual application, it is

recommended to use the terminal inputs for the signals F (forward) and R
(reverse) even if the frequency is controlled through the serial communication.

(2)

Communication commands used in this sample program

In this sample program, the following commands (function numbers) are used.

The VF-S7’s station number is assumed as 01.

FE01 Operation status (read)
FAOO Control command (write) - forward / reverse / stop / reset
FA01 Operation frequency (write)

48

Sequence Controller S2T