Toshiba TOSVERT VF-AS1 Print #1,B$, 160 T=TIMER COUNT=TIMER-T, If Count 0 then T=TIMER

Page 27

efesotomasyon.com -Toshiba inverter,drive,servo,plc

E6581315

Ex. 3 BASIC program for communication tests (RS232C, ASCII mode)

(Toshiba version of Advanced BASIC-86 Ver. 3.01.05J)

Accessing a parameter (with error code.) 1) Examples of programs

100 INPUT "Baud rate=9600/4800/2400/1200";SPEED$

----Selects a baud rate.

110 INPUT "Parity=even(E)/odd(O)";PARITY$

----Selects parity.

120

OPEN "COM1:"+SPEED$+","+PARITY$+",8,1"AS #1

130

INPUT "Send data";B$

---- Enters a command.

140

PRINT #1,B$

 

150

C$=""

 

160 T=TIMER

 

170 COUNT=(TIMER-T)

 

180 IF COUNT >3 THEN 270

 

190

IF COUNT <0 THEN T=TIMER

---- Prevents an increase in the number of digits.

200IF LOC(1)= 0 THEN A$="":GOTO 220

210A$=INPUT$(1,#1)

220

IF A$ <>CHR$(13) THEN 240

---- Carriage return

230

GOTO 290

(CR) to finish reading in.

240IF A$="" THEN 160

250C$=C$+A$

260GOTO 160

270COLOR @0,7:PRINT "!!! There is no data to return. !!! ";:COLOR @7,0:PRINT

280 GOTO 130

---- Repeats.

290PRINT A$;

300C$=C$+A$

310PRINT "Return data=";c$;

320 GOTO 130---- Repeats.

2) Examples of program execution results (In this example, the inverter number is 00.)

Baud rate=9600/4800/2400? 9600

---- Selects 9600 baud.

Parity=even(E)/odd(O)? E

---- Select E (even parity).

Send data? (00R0011)

---- Carries out test communication.

Return data= (00R00111770)

 

Send data? ()

---- Error

!!! There is no data to return. !!!

---- No data is returned.

Send data? (R0011)

 

Return data= (R00111770)

 

Send data?

 

:

 

:

 

26

Image 27
Contents E6581315② Tosvert VF-AS1 Series RS485 Communication FunctionE6581315 Read first Safety precautionsContents General outlines of the communication function BIT15 BIT8BIT7 BIT0Bit Word BIT2 Data transmission specificationsCommunication protocol About the handling of received framesMOUBUS-RTU Toshiba Inverter Protocol Binary mode 2FHData Data transmission format used in Ascii modeData transmission format INV-NO CMD28H Bytes Checksum area 5bytes BlankData SUM INV-NOData transmission format used in binary mode Sum 1 bytes Checksum not omissible 00H to FFH Command receivedReturned for the 57H W and 50H P commands Byte Bytes2FH Byte 4EH6EH Bytes NornTransmission format of Block Communication Page Bytes Blank Start Code INV-NO Block communication Computer Inverter CommandsDummy data is required for this command Reads the data with the specified communication numberRFE03077BCR RFE03CRPage Transmission errors Format error Data transmission format does not matchCommunication There is no communication number that matches Broadcast communication function VF-AS1 RFC90CR Examples of the use of communication commandsAscii mode Computer → Inverter Inverter → Computer From the computer H = 24d  trip statusExamples of Communication programs Goto =LENS$ For I=1 to LNext Input #1,B$160 T=TIMER COUNT=TIMER-T If Count 0 then T=TIMERPrint #1,B$ Page End If MSComm1.Output = Text2.Text & Chr13 End SubText2.Text = Text1.Text = End Sub Inverter number  MODBUS-RTU protocolRead command MODBUS-RTU transmission formatCRC Text size is 8 bytes fixed Inverter Write commandBlank Command 1 byte 5bytes Blank Command 1 byteEnd Return CRC Error codesCRC Generation Bit counter =Inter-drive communication Never use pin-7 P11 QWiring 4-wire RS485 communication) E6581315 QWiring 2-wire RS485 communicationPage Parameters relating to the slave side example =0.01% Proportional control of speed80.00Hz 40.00Hz Slave 100.00Hz 00%90.00Hz 45.00Hz Slave 100.00Hz1 00%INV-NO 1 byte Inverter number Transmission format for inter-drive communication0OFF Communication parametersMODBUS-RTU Inverter number Baud rate,  , Parity INV INV → PC PC → INV „ Timer Time-out period Computer linkPC → INV Master INV To SlaveSend waiting time ,  Free notesUse this function for the following case OFF Commands and monitoring from the computerCommunication commands commands from the computer PI OFFBraking answer BA Electric Power quantityForcibly braked Preliminary excitation Brake release BWire RS485 communication FA32 Output terminal no Specified data output „ Terminal board output data FA50„ FM analog output FA51 „ AM analog output FA52Monitoring from the computer RFD00CRUnit 0.01% N·m BIT15 „ Input terminal board status FD06, FE06RES Input terminal function selection 9 f119„ Output terminal board status FD07, FE07 ST=ON ST=OFF „ Inverter operating status 1 FD01, FE01„ Inverter operating status 3 FD49, FE49 „ Inverter operating status 2 FD42, FE42„ Inverter operating command mode status FD45, FE45 „ Inverter operating frequency mode status FD46, FE46Preset speed operation „ Alarm information monitor FC91 „ Cumulative operation time alarm monitor FE79Bit Specifications Remarks E6581315 Model Data „ Inverter model capacity code FB05LED setting by communication Parameter Name Range SettingUtilizing panel LEDs and keys by communication „ Block Communication Function for LED Display Blank Ascii LED display data code 00H-1FH are blankKey utilization by communication FA10=0FA10=1 Parameter data ROM EEPPage FE29 Input power Alarm codeFE02 Frequency command value 01Hz FE19 Torque commandTion FE80 Cumulative power on time E6581315 FD50 Light-load high-speed torque 01%FE84 Binary input value option ESC Appendix 1 Table of data codesCan SUBResponse time „ Data transmission time Appendix 2 Response timeVF-A7 Appendix 3 Compatibility with the communication functionAppendix 4 Troubleshooting Appendix 5 Connecting for RS485 communication TXB RXARXB TXA
Related manuals
Manual 326 pages 49.22 Kb Manual 10 pages 12.86 Kb