Toshiba TOSVERT VF-AS1 instruction manual Examples of Communication programs

Page 25

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

E6581315

4.6. Examples of Communication programs

According to the hardware configuration of the computer used, select a serial output port. To use an RS232C port on the computer, you will have to prepare an RS232C-RS485 conversion unit sepa- rately.

An USB-RS485 conversion unit (USB0001Z) is available as our standard offering.

Ex. 1: BASIC program for monitoring the output frequency continuously (RS232C, ASCII mode) (Toshiba version of Advanced BASIC-86 Ver. 3.01.05J)

Monitoring the output frequency continuously 1) Examples of programs

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

20 A$=”FE00”

30 PRINT #1,"("+”R”+A$+")"

40 INPUT#1,B$

50 AAA$=“&H”+MID$(B$,7,4)

60F$=LEFT$(STR$(VAL(AAA$)/100),6)

70PRINT " Output frequency =";F$+“Hz”

80GOTO 20

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

---Specifies the communication number for monitoring the output frequency.

---Transmits data to the inverter.

Note: The carriage return code is added automatically.

---Receives data returned from the inverter.

---Extracts only data items from the data re- turned.

---Converts data into decimal form.

---Displays the output frequency.

---Repeats.

2)Examples of program execution results (stop command issued during 80 Hz operation) Output frequency = 80 Hz ...

Output frequency = 79.95Hz

:

:

Output frequency = 0Hz

24

Image 25
Contents E6581315② Tosvert VF-AS1 Series RS485 Communication FunctionE6581315 Read first Safety precautionsContents BIT15 BIT8BIT7 BIT0 General outlines of the communication functionBit Word BIT2 Data transmission specificationsAbout the handling of received frames Communication protocolMOUBUS-RTU Toshiba Inverter Protocol Binary mode 2FHData transmission format Data transmission format used in Ascii modeINV-NO CMD Data28H Bytes Checksum area 5bytes BlankData SUM INV-NOData transmission format used in binary mode Returned for the 57H W and 50H P commands Command receivedByte Bytes Sum 1 bytes Checksum not omissible 00H to FFH2FH Byte 4EH6EH Bytes NornTransmission format of Block Communication Page Bytes Blank Start Code INV-NO Dummy data is required for this command CommandsReads the data with the specified communication number Block communication Computer InverterRFE03077BCR RFE03CRPage Format error Data transmission format does not match Transmission errorsCommunication There is no communication number that matches Broadcast communication function VF-AS1 Ascii mode Computer → Inverter Inverter → Computer Examples of the use of communication commandsFrom the computer H = 24d  trip status RFC90CRExamples of Communication programs Next =LENS$ For I=1 to LInput #1,B$ GotoIf Count 0 then T=TIMER 160 T=TIMER COUNT=TIMER-TPrint #1,B$ Page MSComm1.Output = Text2.Text & Chr13 End Sub End IfText2.Text = Text1.Text = End Sub Inverter number  MODBUS-RTU protocolMODBUS-RTU transmission format Read commandCRC Blank Command 1 byte Write command5bytes Blank Command 1 byte Text size is 8 bytes fixed InverterCRC Generation Error codesBit counter = End Return CRCInter-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 speed90.00Hz 45.00Hz Slave 100.00Hz 00%Slave 100.00Hz1 00% 80.00Hz 40.00HzINV-NO 1 byte Inverter number Transmission format for inter-drive communication0OFF Communication parametersMODBUS-RTU Inverter number Baud rate,  , Parity PC → INV „ Timer Time-out period Computer linkMaster INV To Slave INV INV → PC PC → INVFree notes Send waiting time , Use this function for the following case Communication commands commands from the computer Commands and monitoring from the computerPI OFF OFFForcibly braked Preliminary excitation Electric Power quantityBrake release B Braking answer BAWire RS485 communication FA32 „ FM analog output FA51 „ Terminal board output data FA50„ AM analog output FA52 Output terminal no Specified data outputRFD00CR Monitoring from the computerUnit 0.01% N·m RES „ Input terminal board status FD06, FE06Input terminal function selection 9 f119 BIT15„ 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 frequency mode status FD46, FE46 „ Inverter operating command mode status FD45, FE45Preset speed operation „ Cumulative operation time alarm monitor FE79 „ Alarm information monitor FC91Bit Specifications Remarks E6581315 Model Data „ Inverter model capacity code FB05Parameter Name Range Setting LED setting by communicationUtilizing panel LEDs and keys by communication „ Block Communication Function for LED Display Blank Ascii LED display data code 00H-1FH are blankFA10=0 Key utilization by communicationFA10=1 Parameter data ROM EEPPage FE02 Frequency command value 01Hz Alarm codeFE19 Torque command FE29 Input powerE6581315 FD50 Light-load high-speed torque 01% Tion FE80 Cumulative power on timeFE84 Binary input value option Can Appendix 1 Table of data codesSUB ESCResponse time „ Data transmission time Appendix 2 Response timeVF-A7 Appendix 3 Compatibility with the communication functionAppendix 4 Troubleshooting Appendix 5 Connecting for RS485 communication RXB RXATXA TXB
Related manuals
Manual 326 pages 49.22 Kb Manual 10 pages 12.86 Kb