Toshiba TOSVERT VF-AS1 instruction manual =LENS$ For I=1 to L, Next, Input #1,B$, Goto

Page 26

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

E6581315

Ex. 2: BASIC program for executing an input command with checksum (RS232C, ASCII mode) (Toshiba version of Advanced BASIC-86 Ver. 3.01.05J)

Checking if the maximum frequency setting has been changed correctly

1) Examples of programs

 

10

OPEN "COM1:9600,E,8,1" AS #1

--- 9600 baud, even parity, 8-bit length, 1 stop bit

20

INPUT"Send Data=";A$

--- Reads in data to be sent to the inverter.

30

S$="("+A$+"&"

--- Adds “(“ and “&” to the read data in.

40 S=0

 

50

L=LEN(S$)

 

60

FOR I=1 TO L

Calculates the number of bits (checksum).

70S=S+ASC(MID$(S$,I,1))

80NEXT I

90CHS$=RIGHT$(HEX$(S),2)

100

PRINT #1,"("+A$+"&"+CHS$+")"

--- Sends the data including the checksum result

 

 

to the inverter.

110

INPUT #1,B$

--- Receives data returned from the inverter.

120

PRINT "Receive data= ";B$

--- Displays the data received.

130

GOTO 20

--- Repeats.

2) Examples of program execution results

 

Send Data=? R0011

--- Reads the maximum frequency (0011).

Receive Data= (R00111F40&3D)

--- 1F40 (Maximum frequency: 80 Hz)

Send Data=? W00111770

--- Changes the maximum frequency to 60 Hz

 

 

(1770).

Receive Data= (W00111770&36)

 

Send Data=? R0011

--- Reads the maximum frequency (0011).

Receive Data= (R00111770&31)

--- 1770 (Maximum frequency: 60 Hz)

25

Image 26
Contents Tosvert VF-AS1 Series RS485 Communication Function E6581315②Read first Safety precautions E6581315Contents Bit Word General outlines of the communication functionBIT15 BIT8BIT7 BIT0 Data transmission specifications BIT2MOUBUS-RTU Communication protocolAbout the handling of received frames Binary mode 2FH Toshiba Inverter ProtocolINV-NO CMD Data transmission format used in Ascii modeData transmission format Data5bytes Blank 28H Bytes Checksum areaINV-NO Data SUMData transmission format used in binary mode Byte Bytes Command receivedReturned for the 57H W and 50H P commands Sum 1 bytes Checksum not omissible 00H to FFHNorn 2FH Byte 4EH6EH BytesTransmission format of Block Communication Page Bytes Blank Start Code INV-NO Reads the data with the specified communication number CommandsDummy data is required for this command Block communication Computer InverterRFE03CR RFE03077BCRPage Communication There is no communication number that matches Transmission errorsFormat error Data transmission format does not match Broadcast communication function VF-AS1 From the computer H = 24d  trip status Examples of the use of communication commandsAscii mode Computer → Inverter Inverter → Computer RFC90CRExamples of Communication programs Input #1,B$ =LENS$ For I=1 to LNext GotoPrint #1,B$ 160 T=TIMER COUNT=TIMER-TIf Count 0 then T=TIMER Page Text2.Text = Text1.Text = End Sub End IfMSComm1.Output = Text2.Text & Chr13 End Sub MODBUS-RTU protocol Inverter number CRC Read commandMODBUS-RTU transmission format 5bytes Blank Command 1 byte Write commandBlank Command 1 byte Text size is 8 bytes fixed InverterBit counter = Error codesCRC Generation End Return CRCInter-drive communication E6581315 QWiring 2-wire RS485 communication Never use pin-7 P11 QWiring 4-wire RS485 communication)Page Parameters relating to the slave side example Proportional control of speed =0.01%Slave 100.00Hz1 00% Slave 100.00Hz 00%90.00Hz 45.00Hz 80.00Hz 40.00HzTransmission format for inter-drive communication INV-NO 1 byte Inverter numberCommunication parameters 0OFFMODBUS-RTU Baud rate,  , Parity  Inverter numberMaster INV To Slave „ Timer Time-out period Computer linkPC → INV INV INV → PC PC → INVUse this function for the following case Send waiting time , Free notes PI OFF Commands and monitoring from the computerCommunication commands commands from the computer OFFBrake release B Electric Power quantityForcibly braked Preliminary excitation Braking answer BAWire RS485 communication FA32 „ AM analog output FA52 „ Terminal board output data FA50„ FM analog output FA51 Output terminal no Specified data outputUnit 0.01% N·m Monitoring from the computerRFD00CR Input terminal function selection 9 f119 „ Input terminal board status FD06, FE06RES BIT15„ Output terminal board status FD07, FE07 „ Inverter operating status 1 FD01, FE01 ST=ON ST=OFF„ Inverter operating status 2 FD42, FE42 „ Inverter operating status 3 FD49, FE49Preset speed operation „ Inverter operating command mode status FD45, FE45„ Inverter operating frequency mode status FD46, FE46 Bit Specifications Remarks „ Alarm information monitor FC91„ Cumulative operation time alarm monitor FE79 E6581315 „ Inverter model capacity code FB05 Model DataUtilizing panel LEDs and keys by communication LED setting by communicationParameter Name Range Setting „ Block Communication Function for LED Display Ascii LED display data code 00H-1FH are blank BlankFA10=1 Key utilization by communicationFA10=0 Parameter data EEP ROMPage FE19 Torque command Alarm codeFE02 Frequency command value 01Hz FE29 Input powerFE84 Binary input value option Tion FE80 Cumulative power on timeE6581315 FD50 Light-load high-speed torque 01% SUB Appendix 1 Table of data codesCan ESCAppendix 2 Response time Response time „ Data transmission timeAppendix 3 Compatibility with the communication function VF-A7Appendix 4 Troubleshooting Appendix 5 Connecting for RS485 communication TXA RXARXB TXB
Related manuals
Manual 326 pages 49.22 Kb Manual 10 pages 12.86 Kb