PARAMETERS

(5) Instructions for the program

1)If the data from the computer is in error, the inverter will not accept that data. Hence, always insert a data- error retry program in the user program.

2)Since any data communication, such as operation command or monitoring, is always requested by the computer, the inverter will not return data without the computer's request. Hence, design the program so that the computer gives a data read request for monitoring, etc. as required.

3)Program example

When the operation mode is switched to communication operation

10 OPEN "COM1: 9600, E, 8, 2, HD" AS #1

20 COMST1, 1, 1: COMST1, 2, 1

30 ON COM (1) GOSUB*REC

40 COM (1) ON

50D$= "01FB10002"

60S=0

70FOR I=1 TO LEN (D$)

80A$=MID$ (D$, I, 1)

90A=ASC (A$)

100S=S+A

110NEXTI

120D$=CHR$ (&H5) +D$+RIGHT$ (HEX$ (S) , 2)

130PRINT#1, D$

140GOTO 50

1000 *REC

1010 IF LOC (1)=0 THEN RETURN

1020 PRINT "RECEIVE DATA"

1030 PRINT INPUT$ (LOC (1) , #1)

1040 RETURN

General flowchart

 

 

Line number

 

 

10

I/O file

to

initial setting

40

 

 

 

 

 

 

 

Initial setting of I/O file

:Communication file opening

:Circuit control signal (RS, ER) ON/OFF setting

:Interrupt definition at data receive

:Interrupt enable

Transmission data setting

Sum code calculation

: Addition of control and sum codes Data transmission

Interrupt data receive

: Interrupt occurrence at data receive

50Transmission data processing

to

$Data setting

 

$Sum code calculation

140

$Data transmission

1000

Receive data processing

Interrupt to $Data import

4

$

Screen display

 

1040

 

 

CAUTION

When the inverter's communication check time interval is not set, interlocks are provided to disable operation to prevent hazard. Always set the communication check time interval before starting operation.

Data communication is not started automatically but is made only when the computer provides a communication request. If communication is disabled during operation due to signal cable breakage etc, the inverter cannot be stopped. When the communication check time interval has elapsed, the inverter will come to an alarm stop (E.PUE).

The inverter can be coasted to a stop by switching on its RES signal or by switching power off.

If communication is halted due to signal cable breakage, computer fault etc., the inverter does not detect such a fault. This should be fully noted.

115

Page 128
Image 128
Mitsumi electronic 55K, FR-F520-0.75K instruction manual Instructions for the program, Return