Mitsubishi FR - S500 Operation at alarm occurrence, Communication error, Program example, 129

Models: FR - S500

1 191
Download 191 pages 47.82 Kb
Page 138
Image 138

(5) Operation at alarm occurrence

 

 

 

Operation Mode

Fault Location

Description

Communication

 

Operation

External Operation

 

 

 

 

 

 

(RS-485 connector)

 

 

Inverter operation

Stop

Stop

Inverter fault

Communication

RS-485

Continued

Continued

 

connector

Communication error

Inverter operation

 

Stop/continued (*3)

Continued

(Communication from

Communication

RS-485

Stop

Stop

RS-485 connector)

connector

*3: Can be selected using the corresponding parameter (factory-set to stop).

(6) Communication error

Fault Location

Error Message

Remarks

(Operation panel)

 

 

Communication error

OPT

Error code is OPT

(Communication from RS-485 connector)

 

 

(7) Program example

To change the operation mode to computer link operation

Program

Line number

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

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

30ON COM(1)GOSUB*REC

40COM(1)ON

50 D$="01FB10000"

60 S=0

70FOR I=1 TO LEN(D$)

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

90A=ASC(A$)

100S=S+A

110NEXT I

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

130 PRINT#1,D$

140 GOTO 50

1000 *REC

1010 IF LOC(1)=0 THEN RETURN

1020 PRINT"RECEIVE DATA"

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

1040 RETURN

General flowchart

Initial setting of I/O file

Opening the communication file

ON/OFF setting of circuit control signals (RS, ER)

Interrupt definition for data receive

Interrupt enable Send data setting

Sum code calculation

Addition of control and sum codes Data send

Interrupt data receive

Interrupt occurrence during data receive

2

Line number

10

 

 

I/O file initial

 

 

 

 

to

 

 

 

 

 

 

 

 

setting

 

 

 

 

40

 

 

 

 

 

 

 

 

 

 

1000

 

 

 

 

 

 

 

 

 

 

50

 

 

 

 

 

 

 

Send data processing

Receive data processing

 

 

 

Data setting

 

 

 

 

 

to

 

 

Interrupt to

 

 

Data import

 

 

Sum code calculation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Screen display

140

 

 

Data send

1040

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

129

Page 138
Image 138
Mitsubishi FR - S500 Operation at alarm occurrence, Communication error, Program example, General flowchart, 129