27
Communication for XGB and Drive (iG5A) - Modbus RTU protocol HANTECH Automation ebsite: www.hantech.vn Email: [email protected] Tel: 093.5858.658

VFD com _XGB-iG5A__Modbus-1

Embed Size (px)

DESCRIPTION

mạng modbus

Citation preview

Communication for XGB and Drive (iG5A) - Modbus RTU protocol HANTECH Automation Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) Configuration RS-485 (Modbus communication) Baud rate: 9600, Data bit: 8, Stop bit: 1, Parity bit: None Note that baud rate and stop/parity bit are selectable in I/O group. * I/O group: I61 baud rate, I65: parity/stop bit setting. Wiring Diagram + - XGBRS-485 Built-in Cnet S+ S- iG5A Station: 1 S+ S- iG5A Station: 2 Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) Drive parameter setting Set up each drive communication-concerning parameter as follows. For iG5A (station: 1) * DRV-03 [Drive mode]: 3 [RS-485] * DRV-04 [Freq. mode]: 7 [RS-485] * I/O 59 [Communication protocol]: 0 [Modbus RTU] * I/O 60 [VFD station number]: 1 * I/O 61 [communication speed]: 3 (9600bps) For iG5A (station: 2) * DRV-03 [Drive mode]: 3 [RS-485] * DRV-04 [Freq. mode]: 7 [RS-485] * I/O 59 [communication protocol]: 0 [Modbus RTU] * I/O 60 [VFD station number]: 2 * I/O 61 [communication speed]: 3 (9600bps) XGB Parameter setting: XG-PD For XGB communication parameter setting, XG-PD (Network Manager) is used. After running XG-PD, select [Online][Connect]. When connected, select [Online][Read IO Information]. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XGB Setup XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XGB parameter setting: XG-PD Doubleclick After setting is done, click [P2P].Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD P2PXG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XGB parameter setting: XG-PD DoubleclickWebsite: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD P2PXG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) P2P parameter setting: iG5A (station 1) Write request Doubleclick Slave Click address Conditional flag: M0000 This request frame is sent from XGB at M0 bit rising edge. Data type/Data size This request frame is to write 4 word data to iG5A. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD P2PXG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) P2P parameter setting: iG5A (station 1) Write request Modbus corresponding addresses of iG5A are acquired by the following formula. [Modbus address] = [iG5A address] - 1 Modbus word output area is from 0x40000. Therefore, [0x0005] is to be [0x40004]. Here D0000 is assigned to 0x40004, which means D0 data value is sent to ref. Freq. area. In the previous slide, 4 words are to be sent. Therefore, D0 for Reference Frequency D1 for Run command (D1.0 bit is on iG5A stop; D1.1 bit is on iG5A forward run, etc). D2 for ACC time D3 for DEC time Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Application Solution Communication with VFD (Variable Frequency Drive) Configuration P2P parameter setting: iG5A (station 1) Read request Drive Setup PD P2PSlave Click XG5000address Diagnosis Conditional flag: M0001 This request frame is sent from XGB at M1 bit rising edge. Data type/Data size This request frame is to read 8 word data from iG5A. Note that data size should be less than or equal to 8. If not, iG5A does not respond properly. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD P2PXG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) P2P parameter setting: iG5A (station 1) Read request Modbus word input area is from 0x30000. Therefore, [0x0007] to be [0x30006]. Here D0020 is assigned to 0x30006, which means ACC time is sent to D20. In the previous slide, 8 words to be sent from drive to XGB. Therefore, D20 for ACC time; D21 for DEC time, D22 for Output Current; D23 for Reference Frequency; D24 for Output voltage; D25 for DC Link voltage; D26 for Output power; D27 for drive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc). Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Application Solution Communication with VFD (Variable Frequency Drive) Configuration P2P parameter setting: iG5A (station 2) Write request Drive Setup PD P2PSlave Click XG5000address Diagnosis Conditional flag: M0002 This request frame is sent from XGB during M2 bit rising edge. v Data type/Data size This request frame is to write 4 word data to iG5A. v Data assignment method: the same as iG5A (station 1) D100 for Reference Frequency D101 for Run command (D1.0 bit is on iG5A stop; D1.1 bit is on iG5A forward run, etc). D102 for ACC time D103 for DEC time Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Application Solution Communication with VFD (Variable Frequency Drive) Configuration P2P parameter setting: iG5A (station 2) Read request Drive Setup PD P2PSlave Click XG5000address Diagnosis Conditional flag: M0003 This request frame is sent from XGB during M3 bit rising edge. v Data type/Data size This request frame is to read 8 word data from drive to XGB. v Data assignment method: the same as iG5A (station 1) D120 for ACC time; D121 for DEC time, D122 for Output Current; D123 for Reference Frequency; D124 for Output voltage; D125 for DC Link voltage; D126 for Output power; D27 for drive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc). Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD Down & Link XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG-PD download/Link enable After link enable, select [Online][Reset]. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Programming Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG5000 Programming: Part I For programming, please refer to XG5000 program after opening it. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Programming Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG5000 Programming: Part II Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Programming Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG5000 Programming: Part III [View][Devices/Variables] or other item to see its variable or comment. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Programming Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG5000 Programming: Part IV Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Programming Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) XG5000 Programming: Part V Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#1) Control: Set Ref. Freq. and make it run forward Reference frequency is set as 12.34Hz. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#1) Control: Set ACC/DEC time of station 1 iG5A reference frequency is set as 12.34Hz. Its status is FWD Run. ACC and DEC time is set as 1.0 and 2.0 sec, respectively. Now let's monitor iG5A. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#1) Monitoring: operation information iG5A is running as we set in the previous slide. D27.1 bit means its operation status is FWD Run. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#2) Control: Ref. Freq., Operation command and ACC/DEC time Station 2 reference frequency: 43.21Hz Station 2 operation command: Reverse running Station 2 ACC time: 3.0 sec Station 2 DEC time: 4.0 sec Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#2) Monitoring: operation information iG5A is running as we set in the previous slide. D27.1 bit means its operation status is REV Run. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#1 & #2) Communication Status Click [Variable Monitoring] icon: Now there is no error in either station 1 or 2. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Monitoring Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) iG5A (#1 & #2) Communication Status When station 1 is turned off or disconnected from network, its error flags are increased. After the problem is recovered, error-concerned flags are not increased but hold their values. Note that L relay is latched. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) System diagnosis: XG-PD In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status. Right-mouse click Select [Channel 2] and click [Start] then you will see its communication frame. Even though XGB has no RTC, but it shows time stamp when the transmission/reception frame pass through the comm. port. This is important because in 1:N comm. In RS-485 (half-duplex) system, transmission and reception frame should be interlocked. And a user could know the best possible conditional flag to send each frame by this time stamp. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Application Solution Communication with VFD (Variable Frequency Drive) Configuration System diagnosis: XG-PD Drive Setup 12 PD 3 XG5000 4 Diagnosis (1) If there is 'unknown' in Result, the frame is wrong. (2) It shows when each frame passes through the communication port. (3) When the transmission frame is sent to iG5A (station 1) at 0:00:02:770 (2.770sec after monitoring start), the reception frame is delivered to XGB from station 1 after 0.03sec later. (4) It shows one cycle in this system composed of 8 frames. Write request to #1 (M0 bit ) Write response from #1 Read request to #1 (M1 bit ) Read response from #1 Write request to #2 (M2 bit ) Write response from #2 Read request to #2 (M3 bit ) Read response from #2 Note that every transmission frame is sent with 200ms period. Website: www.hantech.vnEmail: [email protected]: 093.5858.658 Configuration Drive Setup PD XG5000 Diagnosis Application Solution Communication with VFD (Variable Frequency Drive) System diagnosis: XG-PD In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status. Right-mouse click Select [P2P Service] and click [Multiple Reading] then you will see comm. status. Whenever an communication error occurs, its error count will increase. Website: www.hantech.vnEmail: [email protected]: 093.5858.658