327
Communication operation and setting
4
P
ARAME
T
E
R
S
(8) Instructions for the program
1) When data from the computer has any error, the inverter does not accept that error. Hence, in the user program,
always insert a retry program for data error.
2) All data communication, e.g. run command or monitoring, are started when the computer gives a communication
request. The inverter does not return any 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
To change the operation mode to computer link operation
CAUTION
Always set the communication check time interval before starting operation to prevent hazardous conditions.
Data communication is not started automatically but is made only once when the computer provides a
communication request. If communication is disabled during operation due to signal loss etc., the inverter cannot
be stopped. When the communication check time interval has elapsed, the inverter will come to an alarm stop
(E.PUE, E.SER). The inverter can be coasted to a stop by switching on its RES signal or by switching power off.
If communication is broken due to signal loss, computer fault etc., the inverter does not detect such a fault. This
should be fully noted.
OPEN"COM1:9600,E,8,2,HD"AS #1
COMST1,1,1:COMST1,2,1
ON COM(1)GOSUB*REC
COM(1)ON
D$="01FB10002"
S=0
FOR I=1 TO LEN(D$)
A$=MID$(D$,I,1)
A=ASC(A$)
S=S+A
NEXTI
D$=CHR$(&H5)+D$+RIGHT$(HEX$(S),2)
PRINT#1,D$
GOTO 50
*REC
IF LOC(1)=0 THEN RETURN
PRINT"RECEIVE DATA"
PRINT INPUT$(LOC(1),#1)
RETURN
Initial setting of I/O file
Send data setting
Sum code calculation
: Addition of control code and sum code
Data transmission
Interrupt data receive
: Interrupt occurrence at data receive
General flow
10
20
30
40
50
60
70
80
90
100
110
120
130
140
1000
1010
1020
1030
1040
Line number
10
40
50
140
Interrupt
1000
1040
: Communication file open
: Circuit control signal (RS, ER) ON/OFF setting
: Interrupt definition at data receive
: Interrupt enable
Initial setting
of I/O file
Data setting
Sum code
calculation
Data send
Send data processing
Data import
Screen display
Receive data
processing
to
to
to
Содержание FR-A740-00023-EC
Страница 58: ...48 MEMO...
Страница 70: ...60 MEMO...
Страница 400: ...390 MEMO...
Страница 450: ...440 MEMO...
Страница 473: ...463 MEMO...